X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fengineer%2Ftrainproperties.h;h=8048ee20aef71ecc964d6e357a381c57b0c19d26;hb=d27edb207810f0b4e44be8c3632d421faa5fed80;hp=bcd0b1df921ff6f85dfe02491b9be5792f29874b;hpb=f9254f57b736927a57a2fd793ee18f6c9766dd43;p=r2c2.git diff --git a/source/engineer/trainproperties.h b/source/engineer/trainproperties.h index bcd0b1d..8048ee2 100644 --- a/source/engineer/trainproperties.h +++ b/source/engineer/trainproperties.h @@ -1,7 +1,7 @@ /* $Id$ This file is part of the MSP Märklin suite -Copyright © 2006-2008 Mikkosoft Productions, Mikko Rasa +Copyright © 2006-2009 Mikkosoft Productions, Mikko Rasa Distributed under the GPL */ @@ -10,17 +10,13 @@ Distributed under the GPL #include #include -#include #include +#include "dialog.h" class Engineer; -class TrainProperties: public Msp::GLtk::Panel +class TrainProperties: public Dialog { -public: - sigc::signal signal_ok; - sigc::signal signal_cancel; - private: Engineer &engineer; Marklin::Train *train; @@ -29,10 +25,9 @@ private: Msp::GLtk::Entry *ent_name; public: - TrainProperties(Engineer &, Msp::GLtk::Resources &, Marklin::Train *); + TrainProperties(Engineer &, const Msp::GLtk::Resources &, Marklin::Train *); private: - void ok_clicked(); - void cancel_clicked(); + virtual void on_ok_clicked(); }; #endif