]> git.tdb.fi Git - r2c2.git/blob - source/engineer/newvehicledialog.h
Complete rewrite of the engineer UI
[r2c2.git] / source / engineer / newvehicledialog.h
1 #ifndef NEWVEHICLEDIALOG_H_
2 #define NEWVEHICLEDIALOG_H_
3
4 #include <msp/gltk/dialog.h>
5 #include <msp/gltk/list.h>
6 #include <msp/gltk/listdata.h>
7 #include "libr2c2/train.h"
8 #include "libr2c2/vehicletype.h"
9
10 class NewVehicleDialog: public Msp::GLtk::Dialog
11 {
12 private:
13         R2C2::Train &train;
14         Msp::GLtk::FunctionListData<const R2C2::VehicleType *> loco_types;
15         Msp::GLtk::FunctionListData<const R2C2::VehicleType *> wagon_types;
16         Msp::GLtk::List *active_list;
17
18 public:
19         NewVehicleDialog(R2C2::Train &);
20
21 private:
22         void toggle_list(bool, Msp::GLtk::List *);
23         void add_clicked();
24 };
25
26 #endif