summaryrefslogtreecommitdiffstats
path: root/ksirc/puke/pbutton.h
diff options
context:
space:
mode:
Diffstat (limited to 'ksirc/puke/pbutton.h')
-rw-r--r--ksirc/puke/pbutton.h40
1 files changed, 40 insertions, 0 deletions
diff --git a/ksirc/puke/pbutton.h b/ksirc/puke/pbutton.h
new file mode 100644
index 00000000..e43bd681
--- /dev/null
+++ b/ksirc/puke/pbutton.h
@@ -0,0 +1,40 @@
+#ifndef PBUTTON_H
+#define PBUTTON_H
+
+class PButton;
+
+#include <qbutton.h>
+#include "pmessage.h"
+#include "pwidget.h"
+#include "pobject.h"
+#include "controller.h"
+
+
+class PButton : public PWidget
+{
+ Q_OBJECT
+public:
+ static PObject *createWidget(CreateArgs &ca);
+
+ PButton ( PObject * parent );
+ virtual ~PButton ();
+
+ virtual void messageHandler(int fd, PukeMessage *pm);
+
+ virtual void setWidget(QObject *_qb = 0x0);
+ virtual QButton *widget();
+
+public slots:
+ void buttonPressed();
+ void buttonReleased();
+ void buttonClicked();
+ void buttonToggled(bool);
+
+private:
+ QButton *button;
+
+ void buttonMessage(int iCommand);
+ bool checkWidget();
+};
+
+#endif