diff options
Diffstat (limited to 'qt_tstfrm/widgets.hpp')
-rw-r--r-- | qt_tstfrm/widgets.hpp | 50 |
1 files changed, 0 insertions, 50 deletions
diff --git a/qt_tstfrm/widgets.hpp b/qt_tstfrm/widgets.hpp deleted file mode 100644 index eb67d83af1..0000000000 --- a/qt_tstfrm/widgets.hpp +++ /dev/null @@ -1,50 +0,0 @@ -#pragma once - -#include <QtOpenGL/qgl.h> - -#include "../map/drawer.hpp" - -#include "../std/shared_ptr.hpp" - -namespace qt -{ - template <class TScreen, class TBase> class BaseDrawWidget : public TBase - { - typedef TBase base_type; - - public: - typedef TScreen screen_t; - - BaseDrawWidget(QWidget * pParent) : base_type(pParent) - { - } - - protected: - /// Override this function to make drawing and additional resize processing. - //@{ - virtual void DoDraw(shared_ptr<screen_t> p) = 0; - virtual void DoResize(int w, int h) = 0; - //@} - }; - - /// Widget uses our graphics library for drawing. - template <class T> class GLDrawWidgetT : public BaseDrawWidget<T, QGLWidget> - { - typedef BaseDrawWidget<T, QGLWidget> base_type; - - protected: - shared_ptr<T> m_p; - - public: - GLDrawWidgetT(QWidget * pParent) : base_type(pParent){} - virtual ~GLDrawWidgetT(); - - protected: - /// Overriden from QGLWidget. - //@{ - virtual void initializeGL() = 0; - virtual void paintGL(); - virtual void resizeGL(int w, int h); - //@} - }; -} |