summaryrefslogtreecommitdiff
path: root/MainWindow.h
diff options
context:
space:
mode:
authorkintel <kintel@b57f626f-c46c-0410-a088-ec61d464b74c>2010-01-30 04:17:05 (GMT)
committerkintel <kintel@b57f626f-c46c-0410-a088-ec61d464b74c>2010-01-30 04:17:05 (GMT)
commit6940d171812565209efe679a5d923417c3f47d4a (patch)
tree2a05d2f8865ff1127f854db41bf31143f64ccf2d /MainWindow.h
parent2b19f33ee1ddce246c2bfe0a05fe379d0117a741 (diff)
reorganized file structure layout. more to follow...
git-svn-id: http://svn.clifford.at/openscad/trunk@364 b57f626f-c46c-0410-a088-ec61d464b74c
Diffstat (limited to 'MainWindow.h')
-rw-r--r--MainWindow.h142
1 files changed, 0 insertions, 142 deletions
diff --git a/MainWindow.h b/MainWindow.h
deleted file mode 100644
index bb1bdc4..0000000
--- a/MainWindow.h
+++ /dev/null
@@ -1,142 +0,0 @@
-#ifndef MAINWINDOW_H_
-#define MAINWINDOW_H_
-
-#include <QMainWindow>
-#include "ui_MainWindow.h"
-#include "openscad.h"
-
-class MainWindow : public QMainWindow, public Ui::MainWindow
-{
- Q_OBJECT
-
-public:
- static QPointer<MainWindow> current_win;
- static void requestOpenFile(const QString &filename);
-
- QString fileName;
- class Highlighter *highlighter;
-
- class Preferences *prefs;
-
- QTimer *animate_timer;
- double tval, fps, fsteps;
-
- Context root_ctx;
- AbstractModule *root_module; // Result of parsing
- ModuleInstantiation root_inst; // Top level instance
- AbstractNode *absolute_root_node; // Result of tree evaluation
- AbstractNode *root_node; // Root if the root modifier (!) is used
-
- CSGTerm *root_raw_term; // Result of CSG term rendering
- CSGTerm *root_norm_term; // Normalized CSG products
- CSGChain *root_chain;
-#ifdef ENABLE_CGAL
- CGAL_Nef_polyhedron *root_N;
- bool recreate_cgal_ogl_p;
- void *cgal_ogl_p;
- PolySet *cgal_ogl_ps;
-#endif
-
- QVector<CSGTerm*> highlight_terms;
- CSGChain *highlights_chain;
- QVector<CSGTerm*> background_terms;
- CSGChain *background_chain;
- QString last_compiled_doc;
- bool enableOpenCSG;
-
- static const int maxRecentFiles = 10;
- QAction *actionRecentFile[maxRecentFiles];
- QString examplesdir;
-
- MainWindow(const char *filename = 0);
- ~MainWindow();
-
-protected:
- void closeEvent(QCloseEvent *event);
-
-private slots:
- void updatedFps();
- void updateTVal();
- void setFileName(const QString &filename);
- void setFont(const QString &family, uint size);
-
-private:
- void openFile(const QString &filename);
- void load();
- AbstractNode *find_root_tag(AbstractNode *n);
- void compile(bool procevents);
- bool maybeSave();
-
-private slots:
- void actionNew();
- void actionOpen();
- void actionOpenRecent();
- void actionOpenExample();
- void clearRecentFiles();
- void updateRecentFileActions();
- void actionSave();
- void actionSaveAs();
- void actionReload();
-
-private slots:
- void editIndent();
- void editUnindent();
- void editComment();
- void editUncomment();
- void pasteViewportTranslation();
- void pasteViewportRotation();
- void hideEditor();
- void preferences();
-
-private slots:
- void actionReloadCompile();
- void actionCompile();
-#ifdef ENABLE_CGAL
- void actionRenderCGAL();
-#endif
- void actionDisplayAST();
- void actionDisplayCSGTree();
- void actionDisplayCSGProducts();
- void actionExportSTLorOFF(bool stl_mode);
- void actionExportSTL();
- void actionExportOFF();
- void actionExportDXF();
- void actionFlushCaches();
-
-public:
- void viewModeActionsUncheck();
-
-public slots:
-#ifdef ENABLE_OPENCSG
- void viewModeOpenCSG();
-#endif
-#ifdef ENABLE_CGAL
- void viewModeCGALSurface();
- void viewModeCGALGrid();
-#endif
- void viewModeThrownTogether();
- void viewModeShowEdges();
- void viewModeShowAxes();
- void viewModeShowCrosshairs();
- void viewModeAnimate();
- void viewAngleTop();
- void viewAngleBottom();
- void viewAngleLeft();
- void viewAngleRight();
- void viewAngleFront();
- void viewAngleBack();
- void viewAngleDiagonal();
- void viewCenter();
- void viewPerspective();
- void viewOrthogonal();
- void hideConsole();
- void animateUpdateDocChanged();
- void animateUpdate();
- void dragEnterEvent(QDragEnterEvent *event);
- void dropEvent(QDropEvent *event);
- void helpAbout();
- void helpManual();
- void quit();
-};
-
-#endif
contact: Jan Huwald // Impressum