X-Git-Url: http://git.tdb.fi/?p=r2c2.git;a=blobdiff_plain;f=source%2Fremote%2Fstatusbar.h;fp=source%2Fremote%2Fstatusbar.h;h=296b0197b5e28c7822e8b41176d94aae9a0515b8;hp=0000000000000000000000000000000000000000;hb=f8873062b146028c07f55ad625d2767e45133c27;hpb=a9bbf8d37a2f94a720897fe4f0ab06a016779c69 diff --git a/source/remote/statusbar.h b/source/remote/statusbar.h new file mode 100644 index 0000000..296b019 --- /dev/null +++ b/source/remote/statusbar.h @@ -0,0 +1,30 @@ +#ifndef STATUSBAR_H_ +#define STATUSBAR_H_ + +#include +#include +#include +#include "network/client.h" + +class StatusBar: public Msp::GLtk::Panel +{ +private: + R2C2::Client &client; + Msp::GLtk::Indicator *ind_power_on; + Msp::GLtk::Indicator *ind_power_off; + Msp::GLtk::Indicator *ind_halt; + Msp::GLtk::Label *lbl_status; + +public: + StatusBar(R2C2::Client &); + +private: + void ui_on_clicked(); + void ui_off_clicked(); + void ui_halt_clicked(); + void power_changed(bool); + void halt_changed(bool); + void emergency(const std::string &); +}; + +#endif