]> git.tdb.fi Git - r2c2.git/blobdiff - source/engineer/newtraindialog.h
Complete rewrite of the engineer UI
[r2c2.git] / source / engineer / newtraindialog.h
diff --git a/source/engineer/newtraindialog.h b/source/engineer/newtraindialog.h
new file mode 100644 (file)
index 0000000..9cec84e
--- /dev/null
@@ -0,0 +1,30 @@
+#ifndef NEWTRAINDIALOG_H_
+#define NEWTRAINDIALOG_H_
+
+#include <msp/gltk/dialog.h>
+#include <msp/gltk/dropdown.h>
+#include <msp/gltk/entry.h>
+#include <msp/gltk/listdata.h>
+#include "libr2c2/catalogue.h"
+
+class Engineer;
+
+class NewTrainDialog: public Msp::GLtk::Dialog
+{
+private:
+       Engineer &engineer;
+       Msp::GLtk::BasicListData<std::string> protocols;
+       Msp::GLtk::Dropdown *drp_protocol;
+       Msp::GLtk::Entry *ent_address;
+       Msp::GLtk::Entry *ent_name;
+       Msp::GLtk::FunctionListData<const R2C2::VehicleType *> loco_types;
+       Msp::GLtk::Dropdown *drp_loco_type;
+
+public:
+       NewTrainDialog(Engineer &);
+
+private:
+       virtual void on_response(int);
+};
+
+#endif