]> git.tdb.fi Git - r2c2.git/blob - source/engineer/vehiclespanel.h
Complete rewrite of the engineer UI
[r2c2.git] / source / engineer / vehiclespanel.h
1 #ifndef VEHICLESPANEL_H_
2 #define VEHICLESPANEL_H_
3
4 #include <msp/gltk/list.h>
5 #include <msp/gltk/listdata.h>
6 #include <msp/gltk/panel.h>
7 #include "libr2c2/train.h"
8
9 class VehiclesPanel: public Msp::GLtk::Panel
10 {
11 private:
12         R2C2::Train &train;
13         Msp::GLtk::FunctionListData<R2C2::Vehicle *> vehicles;
14         Msp::GLtk::List *lst_vehicles;
15
16 public:
17         VehiclesPanel(R2C2::Train &);
18
19 private:
20         void add_clicked();
21         void remove_clicked();
22         void vehicle_added(unsigned, R2C2::Vehicle &);
23         void vehicle_removed(unsigned, R2C2::Vehicle &);
24 };
25
26 #endif