]> git.tdb.fi Git - r2c2.git/blobdiff - source/engineer/mainpanel.h
Return null from Route::find if a route can't be found
[r2c2.git] / source / engineer / mainpanel.h
index 56dd49450a6e9eb0ffb754e43cc86864ac4f6328..a24ef4976c59af9a0e6b9b7e7b71277ace13daa4 100644 (file)
@@ -8,19 +8,21 @@ Distributed under the GPL
 #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
 {
 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 &, Msp::GLtk::Resources &);
@@ -29,9 +31,11 @@ public:
 private:
        void power_on();
        void power_off();
+       void toggle_halt();
        void new_loc();
        void quit();
        void power_event(bool);
+       void halt_event(bool);
 };
 
 #endif