X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fengineer%2Ftrainproperties.h;h=8048ee20aef71ecc964d6e357a381c57b0c19d26;hb=d27edb207810f0b4e44be8c3632d421faa5fed80;hp=b63bc3d00848770c6a32db86644e1bbac74d7aed;hpb=52cbe8d99669f843f8f75c51128e2748584dd03a;p=r2c2.git diff --git a/source/engineer/trainproperties.h b/source/engineer/trainproperties.h index b63bc3d..8048ee2 100644 --- a/source/engineer/trainproperties.h +++ b/source/engineer/trainproperties.h @@ -1,25 +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 Engineer; -class TrainProperties: public Msp::GLtk::Panel +class TrainProperties: public Dialog { -public: - sigc::signal signal_ok; - - TrainProperties(Engineer &, Msp::GLtk::Resources &, Marklin::Train *); private: Engineer &engineer; Marklin::Train *train; Msp::GLtk::Entry *ent_addr; + Msp::GLtk::Dropdown *drp_type; Msp::GLtk::Entry *ent_name; - void ok_clicked(); +public: + TrainProperties(Engineer &, const Msp::GLtk::Resources &, Marklin::Train *); +private: + virtual void on_ok_clicked(); }; #endif