1 #ifndef CONTROLPANEL_H_
2 #define CONTROLPANEL_H_
5 #include <msp/gltk/panel.h>
6 #include <msp/gltk/toggle.h>
7 #include "libr2c2/blockiter.h"
8 #include "libr2c2/train.h"
13 class ControlPanel: public Msp::GLtk::Panel
19 std::map<unsigned, Msp::GLtk::Toggle *> tgl_funcs;
22 std::vector<PlacementGhost *> ghosts;
23 R2C2::BlockIter place_location;
26 ControlPanel(Engineer &, R2C2::Train &);
29 void ui_function_toggled(bool, unsigned);
30 void train_function_changed(unsigned, bool);
32 void place_pick_done(R2C2::Track *, unsigned);
36 virtual void button_press(int, int, unsigned);
37 virtual void pointer_motion(int, int);