From 0febf6ea9cbd1a6e04e41339fc46d2e6b07da5e7 Mon Sep 17 00:00:00 2001 From: deva Date: Tue, 3 Jun 2008 14:45:48 +0000 Subject: LUA rocks --- client/widgets/widget.h | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'client/widgets/widget.h') diff --git a/client/widgets/widget.h b/client/widgets/widget.h index 391f2e9..cba6be9 100644 --- a/client/widgets/widget.h +++ b/client/widgets/widget.h @@ -31,13 +31,15 @@ #include #include +#include "macrowindow.h" #include "lua.h" class Widget { public: - Widget(QDomNode &node); + Widget(QDomNode &node, MacroWindow *macrowindow); virtual ~Widget(){} virtual QString getValue(); + virtual void setValue(QString value); virtual bool isValid(); QString getName(); @@ -51,9 +53,11 @@ private: QRegExp rx; bool hasregexpvalidator; - bool hasluavalidator; + bool hasluaprogram; - QString lua_validator; + QString luaprogram; + LUA *lua; + MacroWindow *macrowindow; }; #endif/*__PRACRO_WIDGET_H__*/ -- cgit v1.2.3