summaryrefslogtreecommitdiff
path: root/noncore/applets/zkbapplet/zkbwidget.h
Unidiff
Diffstat (limited to 'noncore/applets/zkbapplet/zkbwidget.h') (more/less context) (show whitespace changes)
-rw-r--r--noncore/applets/zkbapplet/zkbwidget.h38
1 files changed, 38 insertions, 0 deletions
diff --git a/noncore/applets/zkbapplet/zkbwidget.h b/noncore/applets/zkbapplet/zkbwidget.h
new file mode 100644
index 0000000..a943563
--- a/dev/null
+++ b/noncore/applets/zkbapplet/zkbwidget.h
@@ -0,0 +1,38 @@
1#ifndef ZKBWIDGET_H
2#define ZKBWIDGET_H
3
4#include <qwidget.h>
5#include <qlabel.h>
6#include <qpopupmenu.h>
7#include <qpixmap.h>
8#include <qcopchannel_qws.h>
9
10#include "zkb.h"
11
12class ZkbWidget : public QLabel {
13Q_OBJECT
14
15public:
16 ZkbWidget(QWidget* parent);
17 ~ZkbWidget();
18
19 QSize sizeHint() const;
20
21protected:
22 QLabel* label;
23 Keymap* keymap;
24 QPopupMenu* labels;
25 QCopChannel* channel;
26 int w, h;
27 QPixmap disabled;
28
29 bool loadKeymap();
30 void mouseReleaseEvent(QMouseEvent*);
31
32protected slots:
33 void stateChanged(const QString&);
34 void labelChanged(int id);
35 void signalReceived(const QCString& msg, const QByteArray& data);
36 void reload();
37};
38#endif