]> git.tdb.fi Git - r2c2.git/blobdiff - source/engineer/trainpanel.h
Export routes over network
[r2c2.git] / source / engineer / trainpanel.h
index d8b1ab0bae0b4f63ccdb62a4b6083deb714c2870..a76d907a1af33bcb994e365dafbc8a6e8e411b14 100644 (file)
@@ -1,7 +1,7 @@
 /* $Id$
 
 This file is part of the MSP Märklin suite
-Copyright © 2006-2008 Mikkosoft Productions, Mikko Rasa
+Copyright © 2006-2009 Mikkosoft Productions, Mikko Rasa
 Distributed under the GPL
 */
 
@@ -12,6 +12,7 @@ Distributed under the GPL
 #include <msp/gltk/label.h>
 #include <msp/gltk/panel.h>
 #include <msp/gltk/toggle.h>
+#include "libmarklin/route.h"
 #include "libmarklin/train.h"
 
 class Engineer;
@@ -25,6 +26,7 @@ private:
        Msp::GLtk::Label *lbl_name;
        Msp::GLtk::HSlider *sld_speed;
        Msp::GLtk::Label *lbl_speed;
+       Msp::GLtk::Label *lbl_route;
        Msp::GLtk::Label *lbl_status;
        Msp::GLtk::Toggle *tgl_forward;
        std::map<unsigned, Msp::GLtk::Toggle *> tgl_funcs;
@@ -34,9 +36,13 @@ public:
 private:
        void speed_slider_changed(double);
        void train_speed_changed(unsigned);
+       void train_reverse_changed(bool);
        void loco_function_changed(unsigned, bool);
+       void train_route_changed(const Marklin::Route *);
        void train_status_changed(const std::string &);
        void place_clicked();
+       void edit_clicked();
+       void route_clicked();
        void forward_toggled(bool);
        void func_toggled(bool, unsigned);
 };