X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fengineer%2Fmainpanel.h;h=4501be7b33bf1a529cd73a67e7849cf01a9c54af;hb=d5cac397cab236ac3e1e0bbbc38204890f87d164;hp=3e58d12bdca29ba17c14986672fabafff0376d31;hpb=1d735b80482317fd930eb47ca255ab9f1f120a7d;p=r2c2.git diff --git a/source/engineer/mainpanel.h b/source/engineer/mainpanel.h index 3e58d12..4501be7 100644 --- a/source/engineer/mainpanel.h +++ b/source/engineer/mainpanel.h @@ -1,29 +1,34 @@ #ifndef MAINPANEL_H_ #define MAINPANEL_H_ +#include #include #include #include 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 &); + 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