3 This file is part of the MSP Märklin suite
4 Copyright © 2009 Mikkosoft Productions, Mikko Rasa
5 Distributed under the GPL
11 #include <gtkmm/checkbutton.h>
12 #include <gtkmm/frame.h>
13 #include <gtkmm/label.h>
14 #include <gtkmm/scale.h>
15 #include "network/train.h"
17 class TrainPanel: public Gtk::Frame
20 Marklin::NetTrain &train;
21 Gtk::Scale *scl_speed;
22 Gtk::Label *lbl_status;
23 std::map<unsigned, Gtk::CheckButton *> chk_funcs;
26 TrainPanel(Marklin::NetTrain &);
28 void name_changed(const std::string &);
29 void status_changed(const std::string &);
30 void speed_changed(unsigned);
31 void function_changed(unsigned, bool);
32 void ui_speed_changed();
33 void ui_function_changed(unsigned);