summaryrefslogtreecommitdiff
path: root/client/widgets/button.h
diff options
context:
space:
mode:
Diffstat (limited to 'client/widgets/button.h')
-rw-r--r--client/widgets/button.h34
1 files changed, 8 insertions, 26 deletions
diff --git a/client/widgets/button.h b/client/widgets/button.h
index 64d51f9..80594db 100644
--- a/client/widgets/button.h
+++ b/client/widgets/button.h
@@ -28,49 +28,31 @@
#define __PRACRO_BUTTON_H__
#include "widget.h"
-#include <QPushButton>
-#include <QWidget>
+
#include <QDomNode>
-class Button : public QPushButton, public Widget
+class QPushButton;
+class Button : public Widget
{
Q_OBJECT
public:
Button(QDomNode &node, MacroWindow *macrowindow);
- QString field;
-
- 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 reset();
+ ~Button();
- void disable();
- void enable();
- bool isDisabled();
+ QString value() { return ""; }
+ void setValue(QString, QString) {}
+ void setWdgValid(bool) {}
public slots:
void commit();
- void _reset();
void cancel();
- void cont();
- void cont_nocommit();
void do_enable();
signals:
void act_commit();
- void act_reset();
void act_cancel();
- void act_continue(QString);
- void act_continue_nocommit(QString);
private:
- bool resetToDisabled;
+ QPushButton *button;
};
#endif/*__PRACRO_BUTTON_H__*/