summaryrefslogtreecommitdiff
path: root/src/luascript.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/luascript.h')
-rw-r--r--src/luascript.h23
1 files changed, 11 insertions, 12 deletions
diff --git a/src/luascript.h b/src/luascript.h
index 448fe5e..6516611 100644
--- a/src/luascript.h
+++ b/src/luascript.h
@@ -34,7 +34,6 @@
#include <string>
#include <map>
#include <vector>
-#include <QFileSystemWatcher>
#include "outputwindow.h"
@@ -49,25 +48,24 @@ public:
std::string msg;
};
- LUAScript(OutputWindow *out);
+ LUAScript(OutputWindow *out, QString file);
~LUAScript();
- virtual const char *name() { return ""; }
-
void init() throw(Exception);
-
- void addFile(std::string file);
- void addCode(std::string code, std::string codename = "");
+ void cleanup();
void run();
void runScript() throw(Exception);
- std::string resultString() throw(Exception);
-
OutputWindow *out;
-public slots:
- void reload();
+ void stopScript();
+
+ volatile bool lua_stop;
+ volatile bool lua_stopped;
+
+signals:
+ void reset();
protected:
lua_State *L;
@@ -78,8 +76,9 @@ private:
int top;
- QFileSystemWatcher watcher;
QString file;
+
+ bool running;
};