summaryrefslogtreecommitdiff
path: root/client/widgets/widget.h
diff options
context:
space:
mode:
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();