Diffstat (limited to 'noncore/applets/zkbapplet/applet/zkbwidget.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/applets/zkbapplet/applet/zkbwidget.h | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/noncore/applets/zkbapplet/applet/zkbwidget.h b/noncore/applets/zkbapplet/applet/zkbwidget.h new file mode 100644 index 0000000..9bce85a --- a/dev/null +++ b/noncore/applets/zkbapplet/applet/zkbwidget.h | |||
@@ -0,0 +1,39 @@ | |||
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 | |||
12 | class ZkbWidget : public QLabel { | ||
13 | Q_OBJECT | ||
14 | |||
15 | public: | ||
16 | ZkbWidget(QWidget* parent); | ||
17 | ~ZkbWidget(); | ||
18 | static int position(); | ||
19 | |||
20 | QSize sizeHint() const; | ||
21 | |||
22 | protected: | ||
23 | QLabel* label; | ||
24 | Keymap* keymap; | ||
25 | QPopupMenu* labels; | ||
26 | QCopChannel* channel; | ||
27 | int w, h; | ||
28 | QPixmap disabled; | ||
29 | |||
30 | bool loadKeymap(); | ||
31 | void mouseReleaseEvent(QMouseEvent*); | ||
32 | |||
33 | protected slots: | ||
34 | void stateChanged(const QString&); | ||
35 | void labelChanged(int id); | ||
36 | void signalReceived(const QCString& msg, const QByteArray& data); | ||
37 | void reload(); | ||
38 | }; | ||
39 | #endif | ||