summaryrefslogtreecommitdiff
path: root/libs/svgviewer/mainwindow.h
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2013-03-27 18:14:16 +0100
committerClifford Wolf <clifford@clifford.at>2013-03-27 18:14:16 +0100
commit35a02ee81e360a0f8c7643a38b72305c33da08c6 (patch)
tree74cd0fcba0ab3a06290f986bac1482707b789b76 /libs/svgviewer/mainwindow.h
parent9c401b58a241827c187c9e586aa22b600bd2ef0a (diff)
Now using SVG and yosys-svgviewer per default in show command
Diffstat (limited to 'libs/svgviewer/mainwindow.h')
-rw-r--r--libs/svgviewer/mainwindow.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/libs/svgviewer/mainwindow.h b/libs/svgviewer/mainwindow.h
index 8bfb8853..bfbfd803 100644
--- a/libs/svgviewer/mainwindow.h
+++ b/libs/svgviewer/mainwindow.h
@@ -43,6 +43,7 @@
#include <QMainWindow>
#include <QString>
+#include <stdio.h>
class SvgView;
@@ -51,6 +52,7 @@ class QAction;
class QGraphicsView;
class QGraphicsScene;
class QGraphicsRectItem;
+class QFileSystemWatcher;
QT_END_NAMESPACE
class MainWindow : public QMainWindow
@@ -63,6 +65,7 @@ public:
public slots:
void openFile(const QString &path = QString());
void setRenderer(QAction *action);
+ void reloadFile();
private:
QAction *m_nativeAction;
@@ -75,6 +78,8 @@ private:
SvgView *m_view;
QString m_currentPath;
+ QFileSystemWatcher *m_watcher;
+ FILE *m_filehandle;
};
#endif