X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fengineer%2Ftrainproperties.h;h=8048ee20aef71ecc964d6e357a381c57b0c19d26;hb=c87c4200e105a21c1d1f9faec20c4c08ddbb53ee;hp=de0d8a8ff592ebf227f1c3f6f002c5e096d88edd;hpb=9462461b00b65c0018114802cfba8f290d6b2d42;p=r2c2.git diff --git a/source/engineer/trainproperties.h b/source/engineer/trainproperties.h index de0d8a8..8048ee2 100644 --- a/source/engineer/trainproperties.h +++ b/source/engineer/trainproperties.h @@ -1,16 +1,33 @@ +/* $Id$ + +This file is part of the MSP Märklin suite +Copyright © 2006-2009 Mikkosoft Productions, Mikko Rasa +Distributed under the GPL +*/ + #ifndef TRAINPROPERTIES_H_ #define TRAINPROPERTIES_H_ -#include +#include +#include +#include +#include "dialog.h" -class TrainProperties: public Msp::GLtk::Panel +class Engineer; + +class TrainProperties: public Dialog { -public: - TrainProperties(Msp::GLtk::Resources &, Train &); private: - 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: + TrainProperties(Engineer &, const Msp::GLtk::Resources &, Marklin::Train *); +private: + virtual void on_ok_clicked(); }; #endif