summaryrefslogtreecommitdiff
path: root/noncore/applets/zkbapplet/applet/zkbwidget.h
authoralwin <alwin>2004-08-01 21:26:02 (UTC)
committer alwin <alwin>2004-08-01 21:26:02 (UTC)
commitcd26bd549ac20b73039bab11662d627895f37c1a (patch) (unidiff)
treea1840bf1e13ca4ff1b43572db8194eacdcbe091d /noncore/applets/zkbapplet/applet/zkbwidget.h
parent9084969d2d4fa39d4d2c185695f0c88739a0f95c (diff)
downloadopie-cd26bd549ac20b73039bab11662d627895f37c1a.zip
opie-cd26bd549ac20b73039bab11662d627895f37c1a.tar.gz
opie-cd26bd549ac20b73039bab11662d627895f37c1a.tar.bz2
reorganized zkbapplet for easier packaging within OE
Diffstat (limited to 'noncore/applets/zkbapplet/applet/zkbwidget.h') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/applets/zkbapplet/applet/zkbwidget.h39
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
12class ZkbWidget : public QLabel {
13Q_OBJECT
14
15public:
16 ZkbWidget(QWidget* parent);
17 ~ZkbWidget();
18 static int position();
19
20 QSize sizeHint() const;
21
22protected:
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
33protected 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