]> git.tdb.fi Git - r2c2.git/blobdiff - source/engineer/mainpanel.h
Add networking library and a remote control program
[r2c2.git] / source / engineer / mainpanel.h
index 091d9707d31b240317524d3be8b0b1352c13e4ee..56dd49450a6e9eb0ffb754e43cc86864ac4f6328 100644 (file)
@@ -1,3 +1,10 @@
+/* $Id$
+
+This file is part of the MSP Märklin suite
+Copyright © 2006-2008 Mikkosoft Productions, Mikko Rasa
+Distributed under the GPL
+*/
+
 #ifndef MAINPANEL_H_
 #define MAINPANEL_H_
 
@@ -9,19 +16,22 @@ class Engineer;
 
 class MainPanel: public Msp::GLtk::Panel
 {
-public:
-       MainPanel(Engineer &, Msp::GLtk::Resources &);
-       void set_status_text(const std::string &);
 private:
        Engineer &engineer;
        Msp::GLtk::Indicator *ind_on;
        Msp::GLtk::Indicator *ind_off;
        Msp::GLtk::Label *lbl_status;
 
+public:
+       MainPanel(Engineer &, Msp::GLtk::Resources &);
+
+       void set_status_text(const std::string &);
+private:
        void power_on();
        void power_off();
        void new_loc();
        void quit();
+       void power_event(bool);
 };
 
 #endif