qvolray

view 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
line source
1 #ifndef UI_H_
2 #define UI_H_
4 #include <QMainWindow>
5 #include <QDockWidget>
6 #include <QGLWidget>
7 #include "volray.h"
9 class GLView;
10 class SideWindow;
12 class MainWindow : public QMainWindow {
13 Q_OBJECT
14 private:
15 SideWindow *sidewin;
17 private slots:
18 void open_volume();
20 public:
21 MainWindow();
22 };
24 class SideWindow : public QDockWidget {
25 Q_OBJECT
26 public:
27 SideWindow();
28 };
30 class GLView : public QGLWidget {
31 Q_OBJECT
33 protected:
34 void initializeGL();
35 void resizeGL(int xsz, int ysz);
36 void paintGL();
38 void mousePressEvent(QMouseEvent *ev);
39 void mouseReleaseEvent(QMouseEvent *ev);
40 void mouseMoveEvent(QMouseEvent *ev);
42 public:
43 GLView(QWidget *parent = 0);
45 QSize minimumSizeHint() const;
46 QSize sizeHint() const;
47 };
49 void post_redisplay();
52 #endif // UI_H_