diff options
author | Aleks Kissinger <aleks0@gmail.com> | 2017-02-03 16:11:29 +0100 |
---|---|---|
committer | Aleks Kissinger <aleks0@gmail.com> | 2017-02-03 16:11:29 +0100 |
commit | e1756ba69dd626073e22fd0a4f4c5fda42c88829 (patch) | |
tree | d79f72a648f89ca9201681b4c5443fceeb8faad9 /tikzit/src/gui/mainwindow.h | |
parent | b392859bb192a2e02aec09f2eacf5ecdf44fdfe4 (diff) |
drawing grid
Diffstat (limited to 'tikzit/src/gui/mainwindow.h')
-rw-r--r-- | tikzit/src/gui/mainwindow.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tikzit/src/gui/mainwindow.h b/tikzit/src/gui/mainwindow.h index d33a89d..f48fd64 100644 --- a/tikzit/src/gui/mainwindow.h +++ b/tikzit/src/gui/mainwindow.h @@ -2,6 +2,7 @@ #define MAINWINDOW_H #include "tikzscene.h" +#include "graph.h" #include <QMainWindow> #include <QGraphicsView> @@ -17,9 +18,20 @@ class MainWindow : public QMainWindow public: explicit MainWindow(QWidget *parent = 0); ~MainWindow(); + + void open(QString fileName); + +protected: + void closeEvent(QCloseEvent *event); private: TikzScene *tikzScene; Ui::MainWindow *ui; + Graph *_graph; + QString _fileName; + bool _pristine; + static int _numWindows; +public slots: + void on_actionOpen_triggered(); }; #endif // MAINWINDOW_H |