X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fengineer%2Ftrainview.h;h=598b43fab9209bb520228bd886d9961e9f8e5b34;hb=399b48a7a80dafde49e7530ff8dfd2820232a73f;hp=c7ba7b90c30da5b05e546aa384369f901b5eacd3;hpb=1ff06c5bc46a677fa389ef86c6b26664368f1653;p=r2c2.git diff --git a/source/engineer/trainview.h b/source/engineer/trainview.h index c7ba7b9..598b43f 100644 --- a/source/engineer/trainview.h +++ b/source/engineer/trainview.h @@ -1,23 +1,16 @@ -/* $Id$ - -This file is part of R²C² -Copyright © 2010 Mikkosoft Productions, Mikko Rasa -Distributed under the GPL -*/ - #ifndef TRAINVIEW_H_ #define TRAINVIEW_H_ #include #include #include -#include +#include #include #include "libr2c2/train.h" class Engineer; -class TrainView: public Msp::GLtk::Panel +class TrainView: public Msp::GLtk::Dialog { public: enum Mode @@ -36,20 +29,18 @@ private: Msp::GL::Framebuffer fbo; Msp::GL::Texture2D tex; Msp::GL::Renderbuffer depth; - Msp::GL::Camera camera; - Msp::GL::Pipeline pipeline; - bool stale; + R2C2::View3D view; public: TrainView(Engineer &, const R2C2::Train &); ~TrainView(); void set_mode(Mode); +private: + void ui_mode_toggled(bool, Mode); +public: void set_forward(bool); void prepare(); -private: - virtual void button_release(int, int, unsigned); - void close_clicked(); }; #endif