summaryrefslogtreecommitdiff
path: root/client/lua.h
diff options
context:
space:
mode:
Diffstat (limited to 'client/lua.h')
-rw-r--r--client/lua.h12
1 files changed, 9 insertions, 3 deletions
diff --git a/client/lua.h b/client/lua.h
index 4777dd4..ba074dd 100644
--- a/client/lua.h
+++ b/client/lua.h
@@ -32,14 +32,17 @@
#include <QString>
+#include "widgets/widget.h"
+
class MacroWindow;
class LUA {
public:
- LUA(MacroWindow *macrowindow);
+ LUA(QVector< Widget *> *widgets, QVector< Widget *> *auxwidgets = NULL);
~LUA();
- bool run(QString program, QString name, QString value);
+ bool runValidator(QString program, QString name, QString value);
+ QString runParser(QString program);
QString getValue(QString name);
void setValue(QString name, QString value);
@@ -49,9 +52,12 @@ public:
void error(QString message);
+ Widget *getWidget(QString name);
+
private:
lua_State *L;
- MacroWindow *macrowindow;
+ QVector< Widget *> *widgets;
+ QVector< Widget *> *auxwidgets;
};
#endif/*__PRACRO_LUA_H__*/