X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fengineer%2Ftrainproperties.h;h=62dc85adaccc5b7a5b49f321c14586e074b176cb;hb=ae0600f7c3df5b6ef46992b1423888dd0e9a5026;hp=89b6e94eb7311d427ec22fb60300435eba845828;hpb=36beacc579d3132642ed4d98ce5a6d99842b5812;p=r2c2.git diff --git a/source/engineer/trainproperties.h b/source/engineer/trainproperties.h index 89b6e94..62dc85a 100644 --- a/source/engineer/trainproperties.h +++ b/source/engineer/trainproperties.h @@ -1,18 +1,36 @@ +/* $Id$ + +This file is part of the MSP Märklin suite +Copyright © 2006-2008 Mikkosoft Productions, Mikko Rasa +Distributed under the GPL +*/ + #ifndef TRAINPROPERTIES_H_ #define TRAINPROPERTIES_H_ +#include #include #include #include +class Engineer; + class TrainProperties: public Msp::GLtk::Panel { -public: - TrainProperties(Msp::GLtk::Resources &, Marklin::Train &); private: - Marklin::Train &train; - Msp::GLtk::Entry *ent_id; + Engineer &engineer; + Marklin::Train *train; + Msp::GLtk::Entry *ent_addr; + Msp::GLtk::Dropdown *drp_type; Msp::GLtk::Entry *ent_name; + +public: + sigc::signal signal_ok; + + TrainProperties(Engineer &, Msp::GLtk::Resources &, Marklin::Train *); +private: + void ok_clicked(); + void cancel_clicked(); }; #endif