summaryrefslogtreecommitdiff
path: root/client/widgets/widget.h
diff options
context:
space:
mode:
authordeva <deva>2010-08-03 12:30:27 +0000
committerdeva <deva>2010-08-03 12:30:27 +0000
commitdbab8458dcce186e7eb7a114a83f759d7db5445a (patch)
tree5abbd9e97b17a0e8321adea983594d818157e8e2 /client/widgets/widget.h
parentd285c1bdb79752ef23a7252c9c2d9f408f0c9f49 (diff)
New scripting interface part1.
Diffstat (limited to 'client/widgets/widget.h')
-rw-r--r--client/widgets/widget.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/client/widgets/widget.h b/client/widgets/widget.h
index bd84705..732dce9 100644
--- a/client/widgets/widget.h
+++ b/client/widgets/widget.h
@@ -43,14 +43,17 @@ public:
virtual void setValue(QString value, QString source = "");
virtual bool isValid();
+ virtual void setValid(bool valid) { valid = valid; }
virtual void disable() {}
virtual void enable() {}
virtual bool isDisabled() { return false; }
virtual void setVisibility(bool) {}
-
- QString getName();
+ virtual bool getVisibility() { return true; }
+
+ QString name();
+ QString type();
/**
* Connect some signal from this object to some slot in some other object.
@@ -70,6 +73,7 @@ public:
protected:
QString widget_name;
+ QString widget_type;
bool luaValidator();
bool regexpValidator();