diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2012-08-23 20:23:19 +0200 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2012-08-23 20:23:19 +0200 |
commit | dcecacbf52121d6f8adf076d2cebaeec1e141339 (patch) | |
tree | 04f36b2a55f221985108c1a3d701b184ac5dc52d /src/mainwindow.h | |
parent | 1fc6eb2c1a8500602f2c45662dabbf164210a5b3 (diff) |
Implement automatic reset/reload when script file changes on disc.
Diffstat (limited to 'src/mainwindow.h')
-rw-r--r-- | src/mainwindow.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/mainwindow.h b/src/mainwindow.h index eeaaa1a..1376a84 100644 --- a/src/mainwindow.h +++ b/src/mainwindow.h @@ -29,14 +29,23 @@ #define __KAIMAN_MAINWINDOW_H__ #include <QWidget> + +#include <QFileSystemWatcher> + #include "outputwindow.h" #include "luascript.h" class MainWindow : public QWidget { +Q_OBJECT public: MainWindow(QString program); +private slots: + void reset(); + private: + QFileSystemWatcher watcher; + QString program; OutputWindow *out; LUAScript *l; }; |