]> git.tdb.fi Git - r2c2.git/blobdiff - source/engineer/engineer.h
Implement an UI for importing locomotives from the driver
[r2c2.git] / source / engineer / engineer.h
index 418c0cdf730d9f4cfcee5e1bbd48320f69d581b1..d821e0581127ad28c315b4d6e61f8c47b02c653d 100644 (file)
@@ -10,6 +10,7 @@
 #include <msp/gltk/resources.h>
 #include <msp/gltk/root.h>
 #include "libr2c2/catalogue.h"
+#include "libr2c2/driver.h"
 #include "libr2c2/train.h"
 #include "3d/layout.h"
 #include "3d/overlay.h"
@@ -32,6 +33,7 @@ private:
        Msp::GLtk::Resources ui_res;
        Msp::GLtk::Root *root;
        Msp::GLtk::Arrangement *root_arrangement;
+       bool import_active;
 
        R2C2::Catalogue catalogue;
        R2C2::Layout layout;
@@ -72,6 +74,8 @@ private:
        void sensor_event(unsigned, bool);
        void block_reserved(const R2C2::Block &, const R2C2::Train *);
        R2C2::Object *pick_object(const R2C2::Vector &);
+       void locomotive_detected(const R2C2::Driver::DetectedLocomotive &);
+       void import_finished(int);
        void train_added(R2C2::Train &);
        void process_new_train(R2C2::Train &);
        virtual void sighandler(int);