]> git.tdb.fi Git - r2c2.git/blob - source/engineer/trainproperties.h
20ab3349fa4f85815ea7648bf2b86a3a3030495f
[r2c2.git] / source / engineer / trainproperties.h
1 #ifndef TRAINPROPERTIES_H_
2 #define TRAINPROPERTIES_H_
3
4 #include <msp/gltk/dropdown.h>
5 #include <msp/gltk/entry.h>
6 #include <msp/gltk/panel.h>
7 #include <libmarklin/train.h>
8
9 class Engineer;
10
11 class TrainProperties: public Msp::GLtk::Panel
12 {
13 private:
14         Engineer &engineer;
15         Marklin::Train *train;
16         Msp::GLtk::Entry *ent_addr;
17         Msp::GLtk::Dropdown *drp_type;
18         Msp::GLtk::Entry *ent_name;
19
20 public:
21         sigc::signal<void> signal_ok;
22
23         TrainProperties(Engineer &, Msp::GLtk::Resources &, Marklin::Train *);
24 private:
25         void ok_clicked();
26         void cancel_clicked();
27 };
28
29 #endif