X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fengineer%2Fmainpanel.h;h=017617dafff437f9fdec9281b7337a10a5d2b7c8;hb=d27edb207810f0b4e44be8c3632d421faa5fed80;hp=091d9707d31b240317524d3be8b0b1352c13e4ee;hpb=aead7f2da831199fbb8f6950b067656b2965c2fa;p=r2c2.git diff --git a/source/engineer/mainpanel.h b/source/engineer/mainpanel.h index 091d970..017617d 100644 --- a/source/engineer/mainpanel.h +++ b/source/engineer/mainpanel.h @@ -1,27 +1,38 @@ +/* $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 { -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