X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fengineer%2Ftrainpanel.h;h=2f1453fcbaf00746e5aa4f8aa90a52cde109d025;hb=cf52013784607dc4d307bd1244c5346ee88336a4;hp=a76d907a1af33bcb994e365dafbc8a6e8e411b14;hpb=2fe7cbcb761487bc7409b93b372da6f8ab3c581e;p=r2c2.git diff --git a/source/engineer/trainpanel.h b/source/engineer/trainpanel.h index a76d907..2f1453f 100644 --- a/source/engineer/trainpanel.h +++ b/source/engineer/trainpanel.h @@ -1,13 +1,14 @@ /* $Id$ This file is part of the MSP Märklin suite -Copyright © 2006-2009 Mikkosoft Productions, Mikko Rasa +Copyright © 2006-2010 Mikkosoft Productions, Mikko Rasa Distributed under the GPL */ #ifndef TRAINPANEL_H_ #define TRAINPANEL_H_ +#include #include #include #include @@ -17,7 +18,7 @@ Distributed under the GPL class Engineer; -class TrainPanel: public Msp::GLtk::Panel +class TrainPanel: public Msp::GLtk::Panel, public sigc::trackable { private: Engineer &engineer; @@ -30,21 +31,25 @@ private: Msp::GLtk::Label *lbl_status; Msp::GLtk::Toggle *tgl_forward; std::map tgl_funcs; + sigc::connection pick_conn; public: TrainPanel(Engineer &, const Msp::GLtk::Resources &, Marklin::Train &); private: void speed_slider_changed(double); - void train_speed_changed(unsigned); - void train_reverse_changed(bool); - void loco_function_changed(unsigned, bool); + void train_control_changed(const std::string &, float); + void train_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 goto_clicked(); + void timetable_clicked(); void forward_toggled(bool); void func_toggled(bool, unsigned); + void place(Marklin::Track *, unsigned); + void go_to(Marklin::Track *, unsigned); }; #endif