]> git.tdb.fi Git - r2c2.git/blob - source/remote/statusbar.h
Add a new remote control program with GLtk-based UI
[r2c2.git] / source / remote / statusbar.h
1 #ifndef STATUSBAR_H_
2 #define STATUSBAR_H_
3
4 #include <msp/gltk/indicator.h>
5 #include <msp/gltk/label.h>
6 #include <msp/gltk/panel.h>
7 #include "network/client.h"
8
9 class StatusBar: public Msp::GLtk::Panel
10 {
11 private:
12         R2C2::Client &client;
13         Msp::GLtk::Indicator *ind_power_on;
14         Msp::GLtk::Indicator *ind_power_off;
15         Msp::GLtk::Indicator *ind_halt;
16         Msp::GLtk::Label *lbl_status;
17
18 public:
19         StatusBar(R2C2::Client &);
20
21 private:
22         void ui_on_clicked();
23         void ui_off_clicked();
24         void ui_halt_clicked();
25         void power_changed(bool);
26         void halt_changed(bool);
27         void emergency(const std::string &);
28 };
29
30 #endif