X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fengineer%2Ftrainpanel.h;h=ba65fb886f351afeed2b03790e4e8527318a224c;hb=a72309e64614bb1e230f9842d94dc261be1301e6;hp=9a38ca49d4ed91200b6ede85e980511c793352fa;hpb=62ce775d9af8f3321dbdebd6243b551fbbb0b976;p=r2c2.git diff --git a/source/engineer/trainpanel.h b/source/engineer/trainpanel.h index 9a38ca4..ba65fb8 100644 --- a/source/engineer/trainpanel.h +++ b/source/engineer/trainpanel.h @@ -1,7 +1,7 @@ /* $Id$ -This file is part of the MSP Märklin suite -Copyright © 2006-2010 Mikkosoft Productions, Mikko Rasa +This file is part of R²C² +Copyright © 2006-2011 Mikkosoft Productions, Mikko Rasa Distributed under the GPL */ @@ -14,8 +14,9 @@ Distributed under the GPL #include #include #include -#include "libmarklin/route.h" -#include "libmarklin/train.h" +#include "libr2c2/route.h" +#include "libr2c2/train.h" +#include "libr2c2/trainstatus.h" class Engineer; @@ -23,7 +24,8 @@ class TrainPanel: public Msp::GLtk::Panel, public sigc::trackable { private: Engineer &engineer; - Marklin::Train &train; + R2C2::Train &train; + R2C2::TrainStatus status; Msp::GLtk::Panel *pnl_basic; Msp::GLtk::Panel *pnl_extra; Msp::GLtk::Button *btn_expand; @@ -39,13 +41,13 @@ private: bool expanded; public: - TrainPanel(Engineer &, Marklin::Train &); + TrainPanel(Engineer &, R2C2::Train &); void expand(bool = true); private: - void train_control_changed(const std::string &, float); + void ai_event(const R2C2::TrainAI::Message &); void train_function_changed(unsigned, bool); - void train_route_changed(const Marklin::Route *); + void train_route_changed(const R2C2::Route *); void train_status_changed(const std::string &); void place_clicked(); void take_clicked(); @@ -58,8 +60,8 @@ private: void speed_slider_changed(double); void forward_toggled(bool); void func_toggled(bool, unsigned); - void place(Marklin::Track *, unsigned); - void go_to(Marklin::Track *, unsigned); + void place(R2C2::Track *, unsigned); + void go_to(R2C2::Track *, unsigned); }; #endif