1 #ifndef TRAINPROPERTIES_H_
2 #define TRAINPROPERTIES_H_
4 #include <msp/gltk/dropdown.h>
5 #include <msp/gltk/entry.h>
6 #include <libr2c2/train.h>
11 class TrainProperties: public Dialog
16 Msp::GLtk::Entry *ent_addr;
17 Msp::GLtk::Dropdown *drp_protocol;
18 Msp::GLtk::Dropdown *drp_type;
19 Msp::GLtk::Entry *ent_name;
20 Msp::GLtk::Dropdown *drp_priority;
21 Msp::GLtk::List *lst_vehicles;
22 Msp::GLtk::Dropdown *drp_new_vehicle;
23 std::vector<const R2C2::VehicleType *> add_vehicles;
24 std::set<unsigned> rem_vehicles;
27 TrainProperties(Engineer &, R2C2::Train *);
29 virtual void on_ok_clicked();
30 void new_vehicle_selected(unsigned, const std::string &);
31 void remove_vehicle_clicked();
32 const R2C2::VehicleType &get_vehicle_type(unsigned, bool);