]> git.tdb.fi Git - r2c2.git/blobdiff - source/engineer/trainproperties.h
Show each train's blocks in a unique color
[r2c2.git] / source / engineer / trainproperties.h
index 0171cf59f64e3bf420f0f6a5cea45a5378b26c40..8048ee20aef71ecc964d6e357a381c57b0c19d26 100644 (file)
@@ -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,16 +10,13 @@ Distributed under the GPL
 
 #include <msp/gltk/dropdown.h>
 #include <msp/gltk/entry.h>
-#include <msp/gltk/panel.h>
 #include <libmarklin/train.h>
+#include "dialog.h"
 
 class Engineer;
 
-class TrainProperties: public Msp::GLtk::Panel
+class TrainProperties: public Dialog
 {
-public:
-       sigc::signal<void> signal_ok;
-
 private:
        Engineer &engineer;
        Marklin::Train *train;
@@ -28,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