1 #ifndef NEWTRAINDIALOG_H_
2 #define NEWTRAINDIALOG_H_
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 #include "libr2c2/driver.h"
13 class NewTrainDialog: public Msp::GLtk::Dialog
17 Msp::GLtk::BasicListData<std::string> protocols;
18 Msp::GLtk::Dropdown *drp_protocol;
19 Msp::GLtk::Entry *ent_address;
20 Msp::GLtk::Entry *ent_name;
21 Msp::GLtk::FunctionListData<const R2C2::VehicleType *> loco_types;
22 Msp::GLtk::Dropdown *drp_loco_type;
25 NewTrainDialog(Engineer &);
27 void prefill(const R2C2::Driver::DetectedLocomotive &);
30 virtual void on_response(int);