qvolray
annotate src/ui.h @ 15:a2080cc27ebc
made -std=c++0x addition to CFLAGS conditional
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Wed, 11 Apr 2012 01:00:21 +0300 |
parents | 17d9dc2edc91 |
children | 4c62be57fc1a |
rev | line source |
---|---|
nuclear@13 | 1 #ifndef UI_H_ |
nuclear@13 | 2 #define UI_H_ |
nuclear@13 | 3 |
nuclear@13 | 4 #include <QMainWindow> |
nuclear@14 | 5 #include <QDockWidget> |
nuclear@13 | 6 #include <QGLWidget> |
nuclear@13 | 7 #include "volray.h" |
nuclear@13 | 8 |
nuclear@13 | 9 class GLView; |
nuclear@14 | 10 class SideWindow; |
nuclear@13 | 11 |
nuclear@13 | 12 class MainWindow : public QMainWindow { |
nuclear@13 | 13 Q_OBJECT |
nuclear@14 | 14 private: |
nuclear@14 | 15 SideWindow *sidewin; |
nuclear@14 | 16 |
nuclear@13 | 17 private slots: |
nuclear@13 | 18 void open_volume(); |
nuclear@13 | 19 |
nuclear@13 | 20 public: |
nuclear@13 | 21 MainWindow(); |
nuclear@13 | 22 }; |
nuclear@13 | 23 |
nuclear@14 | 24 class SideWindow : public QDockWidget { |
nuclear@14 | 25 Q_OBJECT |
nuclear@14 | 26 public: |
nuclear@14 | 27 SideWindow(); |
nuclear@14 | 28 }; |
nuclear@14 | 29 |
nuclear@13 | 30 class GLView : public QGLWidget { |
nuclear@13 | 31 Q_OBJECT |
nuclear@13 | 32 |
nuclear@13 | 33 protected: |
nuclear@13 | 34 void initializeGL(); |
nuclear@13 | 35 void resizeGL(int xsz, int ysz); |
nuclear@13 | 36 void paintGL(); |
nuclear@13 | 37 |
nuclear@13 | 38 void mousePressEvent(QMouseEvent *ev); |
nuclear@13 | 39 void mouseReleaseEvent(QMouseEvent *ev); |
nuclear@13 | 40 void mouseMoveEvent(QMouseEvent *ev); |
nuclear@13 | 41 |
nuclear@13 | 42 public: |
nuclear@13 | 43 GLView(QWidget *parent = 0); |
nuclear@13 | 44 |
nuclear@13 | 45 QSize minimumSizeHint() const; |
nuclear@13 | 46 QSize sizeHint() const; |
nuclear@13 | 47 }; |
nuclear@13 | 48 |
nuclear@13 | 49 void post_redisplay(); |
nuclear@13 | 50 |
nuclear@13 | 51 |
nuclear@13 | 52 #endif // UI_H_ |