]> git.tdb.fi Git - r2c2.git/blobdiff - source/engineer/trainpanel.h
Major architecture rework
[r2c2.git] / source / engineer / trainpanel.h
index a76d907a1af33bcb994e365dafbc8a6e8e411b14..c8825af0120a5d8a98865c41fff7292ea1ba7259 100644 (file)
@@ -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 <sigc++/trackable.h>
 #include <msp/gltk/hslider.h>
 #include <msp/gltk/label.h>
 #include <msp/gltk/panel.h>
@@ -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;
@@ -37,7 +38,7 @@ private:
        void speed_slider_changed(double);
        void train_speed_changed(unsigned);
        void train_reverse_changed(bool);
-       void loco_function_changed(unsigned, bool);
+       void train_function_changed(unsigned, bool);
        void train_route_changed(const Marklin::Route *);
        void train_status_changed(const std::string &);
        void place_clicked();