X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fengineer%2Fmainpanel.h;h=a24ef4976c59af9a0e6b9b7e7b71277ace13daa4;hb=6e5d36dbc3f1e4a221d424fa7d57b07998df67a8;hp=3fff2bbeebf9049208c9aa1c4b28668dcf6fbdad;hpb=ca5b1fcfd52a09e3d3b2c4c011dc91ac9ad19694;p=r2c2.git diff --git a/source/engineer/mainpanel.h b/source/engineer/mainpanel.h index 3fff2bb..a24ef49 100644 --- a/source/engineer/mainpanel.h +++ b/source/engineer/mainpanel.h @@ -1,19 +1,28 @@ +/* $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_ +#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 &); @@ -22,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