/* $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>
class Engineer;
-class TrainPanel: public Msp::GLtk::Panel
+class TrainPanel: public Msp::GLtk::Panel, public sigc::trackable
{
private:
Engineer &engineer;
private:
void speed_slider_changed(double);
void train_speed_changed(unsigned);
- void loco_function_changed(unsigned, bool);
+ void train_reverse_changed(bool);
+ void train_function_changed(unsigned, bool);
void train_route_changed(const Marklin::Route *);
void train_status_changed(const std::string &);
void place_clicked();