]> git.tdb.fi Git - r2c2.git/blob - source/engineer/mainpanel.h
Convert engineer to use mspgbase instead of SDL
[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 public:
13         MainPanel(Engineer &, Msp::GLtk::Resources &);
14         void set_status_text(const std::string &);
15 private:
16         Engineer &engineer;
17         Msp::GLtk::Indicator *ind_on;
18         Msp::GLtk::Indicator *ind_off;
19         Msp::GLtk::Label *lbl_status;
20
21         void power_on();
22         void power_off();
23         void new_loc();
24         void quit();
25 };
26
27 #endif