X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fremote%2Ftrainpanel.h;h=816d2a091f44bed6307fd1f69e70b6c5aa4eae28;hb=90f9efba8d88f41c7a180734b7bcbdd1501d995e;hp=b969af406d2becef314f48b114823882801d4f3d;hpb=2fe7cbcb761487bc7409b93b372da6f8ab3c581e;p=r2c2.git diff --git a/source/remote/trainpanel.h b/source/remote/trainpanel.h index b969af4..816d2a0 100644 --- a/source/remote/trainpanel.h +++ b/source/remote/trainpanel.h @@ -1,7 +1,7 @@ /* $Id$ -This file is part of the MSP Märklin suite -Copyright © 2009 Mikkosoft Productions, Mikko Rasa +This file is part of R²C² +Copyright © 2009-2010 Mikkosoft Productions, Mikko Rasa Distributed under the GPL */ @@ -16,6 +16,8 @@ Distributed under the GPL #include "network/client.h" #include "network/train.h" +class Remote; + class TrainPanel: public Gtk::Expander { private: @@ -26,8 +28,9 @@ private: RouteRecord(); }; - Marklin::Client &client; - Marklin::NetTrain &train; + Remote &remote; + R2C2::Client &client; + R2C2::NetTrain &train; Gtk::Scale *scl_speed; Gtk::Label *lbl_status; Gtk::CheckButton *chk_reverse; @@ -36,12 +39,11 @@ private: std::map chk_funcs; public: - TrainPanel(Marklin::Client &, Marklin::NetTrain &); + TrainPanel(Remote &, R2C2::Client &, R2C2::NetTrain &); private: void name_changed(const std::string &); void status_changed(const std::string &); - void speed_changed(unsigned); - void reverse_changed(bool); + void control_changed(const std::string &, float); void function_changed(unsigned, bool); void route_changed(const std::string &); void ui_speed_changed();