summaryrefslogtreecommitdiff
path: root/client/widgets/radiobuttons.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/radiobuttons.h
parentdbab8458dcce186e7eb7a114a83f759d7db5445a (diff)
New scripting system part2.
Diffstat (limited to 'client/widgets/radiobuttons.h')
-rw-r--r--client/widgets/radiobuttons.h34
1 files changed, 12 insertions, 22 deletions
diff --git a/client/widgets/radiobuttons.h b/client/widgets/radiobuttons.h
index 9b165c9..b83f7a9 100644
--- a/client/widgets/radiobuttons.h
+++ b/client/widgets/radiobuttons.h
@@ -27,49 +27,39 @@
#ifndef __PRACRO_RADIOBUTTONS_H__
#define __PRACRO_RADIOBUTTONS_H__
-#include "widget.h"
-#include "widgets/radiobutton.h"
-#include <QFrame>
#include <QDomNode>
#include <QVector>
-#include <QRadioButton>
-class RadioButtons : public QFrame, public Widget
+#include "widget.h"
+
+class QFrame;
+class QEvent;
+class RadioButton;
+class RadioButtons : public Widget
{
Q_OBJECT
public:
RadioButtons(QDomNode &node, MacroWindow *macrowindow);
+ ~RadioButtons();
- bool isValid();
- QString getValue();
- void setValue(QString value, QString source = "");
+ 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();
public slots:
void childChanged();
-signals:
- void wasChanged();
-
protected:
void changeEvent(QEvent *event);
private:
QVector < RadioButton* > radiobutton_list;
- bool setBGColor(bool valid);
+ QFrame *frame;
};
#endif/*__PRACRO_RADIOBUTTONS_H__*/