4 #include <msp/gltk/dropdown.h>
5 #include <msp/gltk/label.h>
6 #include <msp/gltk/panel.h>
7 #include "libr2c2/train.h"
8 #include "3d/trackchain.h"
12 class RouterPanel: public Msp::GLtk::Panel, public sigc::trackable
17 Msp::GLtk::Label *lbl_route;
18 Msp::GLtk::FunctionListData<const R2C2::Route *> routes;
19 Msp::GLtk::Dropdown *drp_routes;
20 sigc::connection pick_conn;
24 R2C2::Block *goto_target;
25 R2C2::TrackChain3D *goto_highlight;
28 RouterPanel(Engineer &, R2C2::Train &);
31 void ai_event(R2C2::TrainAI &, const R2C2::TrainAI::Message &);
32 void update_route(const R2C2::Route *);
33 void route_selected(unsigned);
36 virtual void button_press(int, int, unsigned);
37 virtual void pointer_motion(int, int);