author | alwin <alwin> | 2004-02-26 15:33:31 (UTC) |
---|---|---|
committer | alwin <alwin> | 2004-02-26 15:33:31 (UTC) |
commit | 42eb413737eb6e911867e1b9c0f5b6cf81c677fd (patch) (unidiff) | |
tree | b32284f8cec0f584151f0826fd121c153fc07601 /noncore/applets/zkbapplet/zkbwidget.h | |
parent | d26a7814b7b454583a136a78aeb7016467ec9ff8 (diff) | |
download | opie-42eb413737eb6e911867e1b9c0f5b6cf81c677fd.zip opie-42eb413737eb6e911867e1b9c0f5b6cf81c677fd.tar.gz opie-42eb413737eb6e911867e1b9c0f5b6cf81c677fd.tar.bz2 |
Yeah - zkb fixed and working within OPIE.
Diffstat (limited to 'noncore/applets/zkbapplet/zkbwidget.h') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/applets/zkbapplet/zkbwidget.h | 38 |
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 | |||
12 | class ZkbWidget : public QLabel { | ||
13 | Q_OBJECT | ||
14 | |||
15 | public: | ||
16 | ZkbWidget(QWidget* parent); | ||
17 | ~ZkbWidget(); | ||
18 | |||
19 | QSize sizeHint() const; | ||
20 | |||
21 | protected: | ||
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 | |||
32 | protected 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 | ||