]> git.tdb.fi Git - r2c2.git/blob - source/engineer/trainproperties.h
Add Id tags and copyright notices to files
[r2c2.git] / source / engineer / trainproperties.h
1 /* $Id$
2
3 This file is part of the MSP Märklin suite
4 Copyright © 2006-2008 Mikkosoft Productions, Mikko Rasa
5 Distributed under the GPL
6 */
7
8 #ifndef TRAINPROPERTIES_H_
9 #define TRAINPROPERTIES_H_
10
11 #include <msp/gltk/dropdown.h>
12 #include <msp/gltk/entry.h>
13 #include <msp/gltk/panel.h>
14 #include <libmarklin/train.h>
15
16 class Engineer;
17
18 class TrainProperties: public Msp::GLtk::Panel
19 {
20 private:
21         Engineer &engineer;
22         Marklin::Train *train;
23         Msp::GLtk::Entry *ent_addr;
24         Msp::GLtk::Dropdown *drp_type;
25         Msp::GLtk::Entry *ent_name;
26
27 public:
28         sigc::signal<void> signal_ok;
29
30         TrainProperties(Engineer &, Msp::GLtk::Resources &, Marklin::Train *);
31 private:
32         void ok_clicked();
33         void cancel_clicked();
34 };
35
36 #endif