]> git.tdb.fi Git - r2c2.git/blob - source/engineer/newtraindialog.h
Complete rewrite of the engineer UI
[r2c2.git] / source / engineer / newtraindialog.h
1 #ifndef NEWTRAINDIALOG_H_
2 #define NEWTRAINDIALOG_H_
3
4 #include <msp/gltk/dialog.h>
5 #include <msp/gltk/dropdown.h>
6 #include <msp/gltk/entry.h>
7 #include <msp/gltk/listdata.h>
8 #include "libr2c2/catalogue.h"
9
10 class Engineer;
11
12 class NewTrainDialog: public Msp::GLtk::Dialog
13 {
14 private:
15         Engineer &engineer;
16         Msp::GLtk::BasicListData<std::string> protocols;
17         Msp::GLtk::Dropdown *drp_protocol;
18         Msp::GLtk::Entry *ent_address;
19         Msp::GLtk::Entry *ent_name;
20         Msp::GLtk::FunctionListData<const R2C2::VehicleType *> loco_types;
21         Msp::GLtk::Dropdown *drp_loco_type;
22
23 public:
24         NewTrainDialog(Engineer &);
25
26 private:
27         virtual void on_response(int);
28 };
29
30 #endif