summaryrefslogtreecommitdiff
path: root/tikzit/src/gui/mainwindow.h
diff options
context:
space:
mode:
authorAleks Kissinger <aleks0@gmail.com>2017-02-28 14:46:39 +0100
committerAleks Kissinger <aleks0@gmail.com>2017-02-28 14:46:39 +0100
commitcb322a3acee9debf40c48ad1e3fb4458b0f51b7f (patch)
tree2cd3dc1060885152f0c706e0cf52bff0d8181d1e /tikzit/src/gui/mainwindow.h
parente1756ba69dd626073e22fd0a4f4c5fda42c88829 (diff)
generic nodes
Diffstat (limited to 'tikzit/src/gui/mainwindow.h')
-rw-r--r--tikzit/src/gui/mainwindow.h11
1 files changed, 8 insertions, 3 deletions
diff --git a/tikzit/src/gui/mainwindow.h b/tikzit/src/gui/mainwindow.h
index f48fd64..2e52cd5 100644
--- a/tikzit/src/gui/mainwindow.h
+++ b/tikzit/src/gui/mainwindow.h
@@ -2,6 +2,7 @@
#define MAINWINDOW_H
#include "tikzscene.h"
+#include "tikzview.h"
#include "graph.h"
#include <QMainWindow>
@@ -20,18 +21,22 @@ public:
~MainWindow();
void open(QString fileName);
+ bool pristine() const;
+ int windowId() const;
+ TikzView *tikzView() const;
+ TikzScene *tikzScene() const;
protected:
void closeEvent(QCloseEvent *event);
+ void changeEvent(QEvent *event);
private:
- TikzScene *tikzScene;
+ TikzScene *_tikzScene;
Ui::MainWindow *ui;
Graph *_graph;
QString _fileName;
bool _pristine;
+ int _windowId;
static int _numWindows;
-public slots:
- void on_actionOpen_triggered();
};
#endif // MAINWINDOW_H