]> git.tdb.fi Git - r2c2.git/blobdiff - source/engineer/routerpanel.h
Clear the critical flag one track earlier
[r2c2.git] / source / engineer / routerpanel.h
index 826e9a74bf45247875370a3987eb793759c816d4..93fabab6d25079ee374f951968b0a351daae5625 100644 (file)
@@ -5,6 +5,7 @@
 #include <msp/gltk/label.h>
 #include <msp/gltk/panel.h>
 #include "libr2c2/train.h"
+#include "3d/trackchain.h"
 
 class Engineer;
 
@@ -19,6 +20,10 @@ private:
        sigc::connection pick_conn;
        bool updating;
 
+       bool goto_pick;
+       R2C2::Block *goto_target;
+       R2C2::TrackChain3D *goto_highlight;
+
 public:
        RouterPanel(Engineer &, R2C2::Train &);
 
@@ -27,7 +32,9 @@ private:
        void update_route(const R2C2::Route *);
        void route_selected(unsigned);
        void goto_clicked();
-       void goto_pick_done(R2C2::Track *, unsigned);
+
+       virtual void button_press(int, int, unsigned);
+       virtual void pointer_motion(int, int);
 };
 
 #endif