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