summaryrefslogtreecommitdiff
path: root/client/widgets/multilist.h
diff options
context:
space:
mode:
authordeva <deva>2010-08-12 10:57:04 +0000
committerdeva <deva>2010-08-12 10:57:04 +0000
commitd9338083192084613e5530b02710b796252d342b (patch)
treee0ec2b36e0de62328e5fd5d3b597f6ee71d1b18f /client/widgets/multilist.h
parentdbab8458dcce186e7eb7a114a83f759d7db5445a (diff)
New scripting system part2.
Diffstat (limited to 'client/widgets/multilist.h')
-rw-r--r--client/widgets/multilist.h27
1 files changed, 9 insertions, 18 deletions
diff --git a/client/widgets/multilist.h b/client/widgets/multilist.h
index 3b0f51e..8e806fa 100644
--- a/client/widgets/multilist.h
+++ b/client/widgets/multilist.h
@@ -28,44 +28,33 @@
#define __PRACRO_MULTILIST_H__
#include "widget.h"
-#include <QFrame>
+
#include <QDomNode>
#include <QListWidget>
#include <QVector>
-class MultiList : public QFrame, public Widget
+class QFrame;
+class MultiList : public Widget
{
Q_OBJECT
public:
MultiList(QDomNode &node, MacroWindow *macrowindow);
+ ~MultiList();
- QString getValue();
+ QString value();
void setValue(QString value, QString source = "");
- void connectFrom(const char *signal,
- const QObject *receiver, const char *method);
-
- void connectTo(const QObject *sender, const char *signal,
- const char *method);
+ bool preValid();
+ void setWdgValid(bool valid);
bool setKeyboardFocus();
- void setVisibility(bool visible);
-
- void disable();
- void enable();
- bool isDisabled();
-
- bool isValid();
public slots:
void changed();
void remove();
void add();
-signals:
- void wasChanged();
-
protected:
bool eventFilter(QObject *obj, QEvent *event);
@@ -74,6 +63,8 @@ private:
Widget *innerwidget;
QString format;
bool innerwidget_has_changes;
+
+ QFrame *frame;
};
#endif/*__PRACRO_MULTILIST_H__*/