]> git.tdb.fi Git - r2c2.git/blobdiff - source/engineer/trainview.h
Rename the project to R²C²
[r2c2.git] / source / engineer / trainview.h
index 16a1ef978ac46480099894b5521fdd139c1e7e20..c7ba7b90c30da5b05e546aa384369f901b5eacd3 100644 (file)
@@ -1,6 +1,6 @@
 /* $Id$
 
-This file is part of the MSP Märklin suite
+This file is part of R²C²
 Copyright © 2010  Mikkosoft Productions, Mikko Rasa
 Distributed under the GPL
 */
@@ -12,7 +12,8 @@ Distributed under the GPL
 #include <msp/gl/framebuffer.h>
 #include <msp/gl/texture2d.h>
 #include <msp/gltk/panel.h>
-#include "libmarklin/train.h"
+#include <msp/gltk/toggle.h>
+#include "libr2c2/train.h"
 
 class Engineer;
 
@@ -28,8 +29,10 @@ public:
 
 private:
        Engineer &engineer;
-       const Marklin::Train &train;
+       const R2C2::Train &train;
+       Msp::GLtk::Toggle *tgl_forward;
        Mode mode;
+       bool forward;
        Msp::GL::Framebuffer fbo;
        Msp::GL::Texture2D tex;
        Msp::GL::Renderbuffer depth;
@@ -38,10 +41,11 @@ private:
        bool stale;
 
 public:
-       TrainView(Engineer &, const Marklin::Train &);
+       TrainView(Engineer &, const R2C2::Train &);
        ~TrainView();
 
        void set_mode(Mode);
+       void set_forward(bool);
        void prepare();
 private:
        virtual void button_release(int, int, unsigned);