-/* $Id$
-
-This file is part of the MSP Märklin suite
-Copyright © 2009 Mikkosoft Productions, Mikko Rasa
-Distributed under the GPL
-*/
-
#ifndef TRAINPANEL_H_
#define TRAINPANEL_H_
#include "network/client.h"
#include "network/train.h"
+class Remote;
+
class TrainPanel: public Gtk::Expander
{
private:
RouteRecord();
};
- Marklin::Client &client;
- Marklin::NetTrain &train;
+ Remote &remote;
+ R2C2::Client &client;
+ R2C2::NetTrain &train;
Gtk::Scale *scl_speed;
Gtk::Label *lbl_status;
Gtk::CheckButton *chk_reverse;
std::map<unsigned, Gtk::CheckButton *> chk_funcs;
public:
- TrainPanel(Marklin::Client &, Marklin::NetTrain &);
+ TrainPanel(Remote &, R2C2::Client &, R2C2::NetTrain &);
private:
void name_changed(const std::string &);
void status_changed(const std::string &);
- void speed_changed(unsigned);
- void reverse_changed(bool);
+ void control_changed(const std::string &, float);
void function_changed(unsigned, bool);
void route_changed(const std::string &);
void ui_speed_changed();