goat3d

view goatview/src/goatview.h @ 75:76dea247f75c

in progress
author John Tsiombikas <nuclear@member.fsf.org>
date Thu, 08 May 2014 00:50:16 +0300
parents ab66cdabf6f2
children 9785847d52d4
line source
1 #ifndef GOATVIEW_H_
2 #define GOATVIEW_H_
4 #include <QtCore/QtCore>
5 #include <QtWidgets/QtWidgets>
6 #include <QtOpenGL/QGLWidget>
7 #include "goat3d.h"
9 extern goat3d *scene;
10 extern QSettings *settings;
12 class GoatView : public QMainWindow {
13 Q_OBJECT
14 private:
15 void closeEvent(QCloseEvent *ev);
16 bool make_menu();
17 bool make_dock();
18 bool make_center();
20 private slots:
21 void open_scene();
22 void open_anim();
24 public:
25 GoatView();
26 ~GoatView();
27 };
29 class GoatViewport : public QGLWidget {
30 Q_OBJECT
31 public:
32 GoatViewport();
33 ~GoatViewport();
35 QSize sizeHint() const;
37 void initializeGL();
38 void resizeGL(int xsz, int ysz);
39 void paintGL();
40 };
42 #endif // GOATVIEW_H_