]> git.tdb.fi Git - r2c2.git/blobdiff - source/engineer/mainpanel.h
Further adjustments to changes in GLtk
[r2c2.git] / source / engineer / mainpanel.h
index 091d9707d31b240317524d3be8b0b1352c13e4ee..4501be7b33bf1a529cd73a67e7849cf01a9c54af 100644 (file)
@@ -1,27 +1,34 @@
 #ifndef MAINPANEL_H_
 #define MAINPANEL_H_
 
+#include <sigc++/trackable.h>
 #include <msp/gltk/indicator.h>
 #include <msp/gltk/label.h>
 #include <msp/gltk/panel.h>
 
 class Engineer;
 
-class MainPanel: public Msp::GLtk::Panel
+class MainPanel: public Msp::GLtk::Panel, public sigc::trackable
 {
-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;
+       Msp::GLtk::Indicator *ind_halt;
+
+public:
+       MainPanel(Engineer &);
 
+       void set_status_text(const std::string &);
+private:
        void power_on();
        void power_off();
+       void toggle_halt();
        void new_loc();
        void quit();
+       void power_event(bool);
+       void halt_event(bool);
 };
 
 #endif