]> git.tdb.fi Git - r2c2.git/blobdiff - source/engineer/trainpanel.h
Add Id tags and copyright notices to files
[r2c2.git] / source / engineer / trainpanel.h
index 3e44241bf3e7700e041f28f0b97413c231ba5138..7cfaf8fec5056136b6e849511e96cb10fd750dd5 100644 (file)
@@ -1,7 +1,15 @@
+/* $Id$
+
+This file is part of the MSP Märklin suite
+Copyright © 2006-2008 Mikkosoft Productions, Mikko Rasa
+Distributed under the GPL
+*/
+
 #ifndef TRAINPANEL_H_
 #define TRAINPANEL_H_
 
 #include <msp/gltk/hslider.h>
+#include <msp/gltk/indicator.h>
 #include <msp/gltk/label.h>
 #include <msp/gltk/panel.h>
 #include "libmarklin/train.h"
@@ -16,14 +24,19 @@ private:
        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;
+       std::map<unsigned, Msp::GLtk::Indicator *> ind_funcs;
 
 public:
        TrainPanel(Engineer &, const Msp::GLtk::Resources &, Marklin::Train &);
 private:
        void speed_slider_changed(double);
        void loco_speed_changed(unsigned);
+       void loco_function_changed(unsigned, bool);
+       void train_status_changed(const std::string &);
+       void place_clicked();
+       void func_clicked(unsigned);
 };
 
 #endif