]> git.tdb.fi Git - r2c2.git/blob - source/engineer/mainpanel.h
3fff2bbeebf9049208c9aa1c4b28668dcf6fbdad
[r2c2.git] / source / engineer / mainpanel.h
1 #ifndef MAINPANEL_H_
2 #define MAINPANEL_H_
3
4 #include <msp/gltk/indicator.h>
5 #include <msp/gltk/label.h>
6 #include <msp/gltk/panel.h>
7
8 class Engineer;
9
10 class MainPanel: public Msp::GLtk::Panel
11 {
12 private:
13         Engineer &engineer;
14         Msp::GLtk::Indicator *ind_on;
15         Msp::GLtk::Indicator *ind_off;
16         Msp::GLtk::Label *lbl_status;
17
18 public:
19         MainPanel(Engineer &, Msp::GLtk::Resources &);
20
21         void set_status_text(const std::string &);
22 private:
23         void power_on();
24         void power_off();
25         void new_loc();
26         void quit();
27         void power_event(bool);
28 };
29
30 #endif