X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fengineer%2Ftrainpanel.h;h=a76d907a1af33bcb994e365dafbc8a6e8e411b14;hb=212bc6eb3ab2dbad39725984ac715c64f8de29ff;hp=7cfaf8fec5056136b6e849511e96cb10fd750dd5;hpb=3e9c210ddc036cd015228504cc0803c909e27f84;p=r2c2.git diff --git a/source/engineer/trainpanel.h b/source/engineer/trainpanel.h index 7cfaf8f..a76d907 100644 --- a/source/engineer/trainpanel.h +++ b/source/engineer/trainpanel.h @@ -1,7 +1,7 @@ /* $Id$ This file is part of the MSP Märklin suite -Copyright © 2006-2008 Mikkosoft Productions, Mikko Rasa +Copyright © 2006-2009 Mikkosoft Productions, Mikko Rasa Distributed under the GPL */ @@ -9,9 +9,10 @@ Distributed under the GPL #define TRAINPANEL_H_ #include -#include #include #include +#include +#include "libmarklin/route.h" #include "libmarklin/train.h" class Engineer; @@ -25,18 +26,25 @@ private: Msp::GLtk::Label *lbl_name; Msp::GLtk::HSlider *sld_speed; Msp::GLtk::Label *lbl_speed; + Msp::GLtk::Label *lbl_route; Msp::GLtk::Label *lbl_status; - std::map ind_funcs; + Msp::GLtk::Toggle *tgl_forward; + std::map tgl_funcs; public: TrainPanel(Engineer &, const Msp::GLtk::Resources &, Marklin::Train &); private: void speed_slider_changed(double); - void loco_speed_changed(unsigned); + void train_speed_changed(unsigned); + void train_reverse_changed(bool); void loco_function_changed(unsigned, bool); + void train_route_changed(const Marklin::Route *); void train_status_changed(const std::string &); void place_clicked(); - void func_clicked(unsigned); + void edit_clicked(); + void route_clicked(); + void forward_toggled(bool); + void func_toggled(bool, unsigned); }; #endif