]> git.tdb.fi Git - r2c2.git/blob - source/engineer/mainpanel.h
Add Id tags and copyright notices to files
[r2c2.git] / source / engineer / mainpanel.h
1 /* $Id$
2
3 This file is part of the MSP Märklin suite
4 Copyright © 2006-2008 Mikkosoft Productions, Mikko Rasa
5 Distributed under the GPL
6 */
7
8 #ifndef MAINPANEL_H_
9 #define MAINPANEL_H_
10
11 #include <msp/gltk/indicator.h>
12 #include <msp/gltk/label.h>
13 #include <msp/gltk/panel.h>
14
15 class Engineer;
16
17 class MainPanel: public Msp::GLtk::Panel
18 {
19 private:
20         Engineer &engineer;
21         Msp::GLtk::Indicator *ind_on;
22         Msp::GLtk::Indicator *ind_off;
23         Msp::GLtk::Label *lbl_status;
24
25 public:
26         MainPanel(Engineer &, Msp::GLtk::Resources &);
27
28         void set_status_text(const std::string &);
29 private:
30         void power_on();
31         void power_off();
32         void new_loc();
33         void quit();
34         void power_event(bool);
35 };
36
37 #endif