From 322a83c48618b2f58e1014daff6f3956af8070ea Mon Sep 17 00:00:00 2001 From: deva Date: Mon, 2 Jun 2008 13:03:33 +0000 Subject: A large number of small changes in widgets, primarily validation oriented. --- client/widgets/widget.h | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) (limited to 'client/widgets/widget.h') diff --git a/client/widgets/widget.h b/client/widgets/widget.h index 1f92ea9..89610bb 100644 --- a/client/widgets/widget.h +++ b/client/widgets/widget.h @@ -29,18 +29,29 @@ #include #include +#include -class Widget { +#include "lua.h" +class Widget { public: - //Widget(QString parent_name, QDomNode node); - Widget(QDomNode node); + Widget(QDomNode &node); virtual ~Widget(){} - virtual QString getValue() = 0; + virtual QString getValue(); virtual bool isValid(); QString getName(); protected: QString widget_name; + + bool luaValidator(); + bool regexpValidator(); + +private: + QRegExp rx; + LUA *lua; + bool hasregexpvalidator; + bool hasluavalidator; }; + #endif/*__PRACRO_WIDGET_H__*/ -- cgit v1.2.3