diff options
Diffstat (limited to 'src/luascript.h')
-rw-r--r-- | src/luascript.h | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/src/luascript.h b/src/luascript.h index 6516611..93478df 100644 --- a/src/luascript.h +++ b/src/luascript.h @@ -36,6 +36,7 @@ #include <vector> #include "outputwindow.h" +#include "soundplayer.h" #include <QThread> @@ -59,13 +60,20 @@ public: OutputWindow *out; - void stopScript(); + void lineChange(int lineno); + + void playSound(QString file); volatile bool lua_stop; volatile bool lua_stopped; + QString file; + +public slots: + void stopScript(); signals: void reset(); + void lineChanged(int lineno); protected: lua_State *L; @@ -76,9 +84,9 @@ private: int top; - QString file; - bool running; + + SoundPlayer player; }; |