X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fengineer%2Ftrainpanel.h;h=2597d040c3c76f2e05afad4a214c7b8df2bd1f8b;hb=a73b245826e8c1bc1f1394e9aa21618f8f31a6c5;hp=7cfaf8fec5056136b6e849511e96cb10fd750dd5;hpb=3e9c210ddc036cd015228504cc0803c909e27f84;p=r2c2.git diff --git a/source/engineer/trainpanel.h b/source/engineer/trainpanel.h index 7cfaf8f..2597d04 100644 --- a/source/engineer/trainpanel.h +++ b/source/engineer/trainpanel.h @@ -9,9 +9,9 @@ Distributed under the GPL #define TRAINPANEL_H_ #include -#include #include #include +#include #include "libmarklin/train.h" class Engineer; @@ -26,7 +26,8 @@ private: Msp::GLtk::HSlider *sld_speed; Msp::GLtk::Label *lbl_speed; 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 &); @@ -36,7 +37,8 @@ private: void loco_function_changed(unsigned, bool); void train_status_changed(const std::string &); void place_clicked(); - void func_clicked(unsigned); + void forward_toggled(bool); + void func_toggled(bool, unsigned); }; #endif