summaryrefslogtreecommitdiff
path: root/client/lua.h
diff options
context:
space:
mode:
authordeva <deva>2009-02-12 14:42:12 +0000
committerdeva <deva>2009-02-12 14:42:12 +0000
commit9be2869c6ebad21621e10b3bd9e82dc811b75d2d (patch)
tree499aa5af9dfd80aae4c07437f2f55f21241e5891 /client/lua.h
parent22e0b0ddd78f13b2648befe892d9ec6c5b1b1229 (diff)
Added formatlanguage attribute to metawidget, and implemented lua parser for it.
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__*/