X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fengineer%2Ftrainpanel.h;h=87e17c9a14570b193c293f6902103407cbe09d68;hb=bc955b09faf8365a72d07bb5ee1253c9b958c897;hp=5abec3b443e24941160ee525aa91a1f0b0bc0271;hpb=06c100aacb559fbbe7380e15981c4772092c269b;p=r2c2.git diff --git a/source/engineer/trainpanel.h b/source/engineer/trainpanel.h index 5abec3b..87e17c9 100644 --- a/source/engineer/trainpanel.h +++ b/source/engineer/trainpanel.h @@ -10,18 +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