summaryrefslogtreecommitdiff
path: root/client/widgets/dbwidget.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/dbwidget.h
parentdbab8458dcce186e7eb7a114a83f759d7db5445a (diff)
New scripting system part2.
Diffstat (limited to 'client/widgets/dbwidget.h')
-rw-r--r--client/widgets/dbwidget.h30
1 files changed, 9 insertions, 21 deletions
diff --git a/client/widgets/dbwidget.h b/client/widgets/dbwidget.h
index ce2b596..3eb8f94 100644
--- a/client/widgets/dbwidget.h
+++ b/client/widgets/dbwidget.h
@@ -28,46 +28,32 @@
#define __PRACRO_DBWIDGET_H__
#include "widget.h"
+
#include <QDomNode>
-#include <QComboBox>
+
#include <QRegExp>
#include <QSqlDatabase>
#include <QEvent>
-class DBWidget : public QComboBox, public Widget
+class QComboBox;
+class DBWidget : public Widget
{
Q_OBJECT
public:
DBWidget(QDomNode &node, MacroWindow *macrowindow);
~DBWidget();
- bool isValid();
-
- QString getValue();
+ QString value();
void setValue(QString value, QString source = "");
- void disable();
- void enable();
- bool isDisabled();
-
- void connectFrom(const char *signal,
- const QObject *receiver, const char *method);
-
- void connectTo(const QObject *sender, const char *signal,
- const char *method);
-
- void setVisibility(bool visible);
-
- bool setKeyboardFocus();
+ void setWdgValid(bool valid);
+ bool preValid();
public slots:
void changed();
void update_list(QString prefix);
-signals:
- void wasChanged();
-
protected:
// void focusInEvent(QFocusEvent *);
@@ -80,6 +66,8 @@ private:
QString format;
bool changedByUser;
+
+ QComboBox *combobox;
};
#endif/*__PRACRO_DBWIDGET_H__*/