summaryrefslogtreecommitdiff
path: root/openscad.h
diff options
context:
space:
mode:
authorclifford <clifford@b57f626f-c46c-0410-a088-ec61d464b74c>2009-07-28 15:15:29 (GMT)
committerclifford <clifford@b57f626f-c46c-0410-a088-ec61d464b74c>2009-07-28 15:15:29 (GMT)
commit8e9b8512367f83e766b1a3676fb326ef216b7e6d (patch)
treeac89ae82af71f663c7b56fd54ab5594d862c4545 /openscad.h
parent7b4cc84cdab040d92b4b98a2ce1fcfaea829bb5a (diff)
Clifford Wolf:
Really simple animation backend git-svn-id: http://svn.clifford.at/openscad/trunk@84 b57f626f-c46c-0410-a088-ec61d464b74c
Diffstat (limited to 'openscad.h')
-rw-r--r--openscad.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/openscad.h b/openscad.h
index 14eb80e..ef3a4c2 100644
--- a/openscad.h
+++ b/openscad.h
@@ -32,8 +32,10 @@
#include <QMainWindow>
#include <QSplitter>
#include <QTextEdit>
+#include <QLineEdit>
#include <QGLWidget>
#include <QPointer>
+#include <QTimer>
#include <stdio.h>
#include <errno.h>
@@ -672,6 +674,11 @@ public:
GLView *screen;
QTextEdit *console;
+ QWidget *animate_panel;
+ QTimer *animate_timer;
+ double tval, fps, fstep;
+ QLineEdit *e_tval, *e_fps, *e_fstep;
+
Context root_ctx;
AbstractModule *root_module;
AbstractNode *absolute_root_node;
@@ -692,6 +699,10 @@ public:
MainWindow(const char *filename = 0);
~MainWindow();
+private slots:
+ void updatedFps();
+ void updateTVal();
+
private:
void load();
void maybe_change_dir();
@@ -733,6 +744,7 @@ public:
#endif
QAction *actViewModeThrownTogether;
QAction *actViewModeShowEdges;
+ QAction *actViewModeAnimate;
void viewModeActionsUncheck();
private slots:
@@ -745,6 +757,7 @@ private slots:
#endif
void viewModeThrownTogether();
void viewModeShowEdges();
+ void viewModeAnimate();
};
extern AbstractModule *parse(const char *text, int debug);
contact: Jan Huwald // Impressum