X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fengineer%2Ftrainpanel.h;h=a76d907a1af33bcb994e365dafbc8a6e8e411b14;hb=f42183985c65e1e12f19e9246dee90b8e7e44a34;hp=817ba18b238d84a998bd4a6ade21166e15a13e62;hpb=e375f8bf215058398795be1010ffec89d0150114;p=r2c2.git diff --git a/source/engineer/trainpanel.h b/source/engineer/trainpanel.h index 817ba18..a76d907 100644 --- a/source/engineer/trainpanel.h +++ b/source/engineer/trainpanel.h @@ -12,6 +12,7 @@ Distributed under the GPL #include #include #include +#include "libmarklin/route.h" #include "libmarklin/train.h" class Engineer; @@ -25,6 +26,7 @@ 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; Msp::GLtk::Toggle *tgl_forward; std::map tgl_funcs; @@ -34,10 +36,13 @@ public: private: void speed_slider_changed(double); 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 edit_clicked(); + void route_clicked(); void forward_toggled(bool); void func_toggled(bool, unsigned); };