X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fengineer%2Ftrainpanel.h;h=87e17c9a14570b193c293f6902103407cbe09d68;hb=bc955b09faf8365a72d07bb5ee1253c9b958c897;hp=79b9d490456b6ede1d71290bd5de517c6d166eec;hpb=6c61179fe09af2f5366d50f10aadbf5f83438087;p=r2c2.git diff --git a/source/engineer/trainpanel.h b/source/engineer/trainpanel.h index 79b9d49..87e17c9 100644 --- a/source/engineer/trainpanel.h +++ b/source/engineer/trainpanel.h @@ -10,16 +10,23 @@ class Engineer; class TrainPanel: public Msp::GLtk::Panel { -public: - TrainPanel(Engineer &, const Msp::GLtk::Resources &, Marklin::Train &); private: Engineer &engineer; Marklin::Train &train; + Msp::GLtk::Label *lbl_addr; Msp::GLtk::Label *lbl_name; Msp::GLtk::HSlider *sld_speed; Marklin::Locomotive *loco; + Msp::GLtk::Label *lbl_speed; + Msp::GLtk::Label *lbl_status; +public: + TrainPanel(Engineer &, const Msp::GLtk::Resources &, Marklin::Train &); +private: void speed_slider_changed(double); + void loco_speed_changed(unsigned); + void train_status_changed(const std::string &); + void place_clicked(); }; #endif