summaryrefslogtreecommitdiff
path: root/client/widgets/metawidget.h
diff options
context:
space:
mode:
Diffstat (limited to 'client/widgets/metawidget.h')
-rw-r--r--client/widgets/metawidget.h24
1 files changed, 21 insertions, 3 deletions
diff --git a/client/widgets/metawidget.h b/client/widgets/metawidget.h
index 5d0bbc9..e920236 100644
--- a/client/widgets/metawidget.h
+++ b/client/widgets/metawidget.h
@@ -40,18 +40,36 @@ Q_OBJECT
public:
MetaWidget(QDomNode &node, MacroWindow *macrowindow);
-public slots:
- void changed();
QString getValue();
- void setValue(QString value);
+ void setValue(QString value, QString source = "");
void enable();
void disable();
+ bool isValid();
+
+ void connectFrom(const char *signal,
+ const QObject *receiver, const char *method);
+
+ void connectTo(const QObject *sender, const char *signal,
+ const char *method);
+
+ bool setKeyboardFocus();
+ void setVisibility(bool visible);
+
+ void reset();
+
+public slots:
+ void changed();
+
+signals:
+ void wasChanged();
+
private:
QListWidget *list;
QVector< Widget* > widgets;
QString format;
+ bool storechildren;
};
#endif/*__PRACRO_METAWIDGET_H__*/