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) (side-by-side diff)
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 @@
+#ifndef ZKBWIDGET_H
+#define ZKBWIDGET_H
+
+#include <qwidget.h>
+#include <qlabel.h>
+#include <qpopupmenu.h>
+#include <qpixmap.h>
+#include <qcopchannel_qws.h>
+
+#include "zkb.h"
+
+class ZkbWidget : public QLabel {
+Q_OBJECT
+
+public:
+ ZkbWidget(QWidget* parent);
+ ~ZkbWidget();
+ static int position();
+
+ QSize sizeHint() const;
+
+protected:
+ QLabel* label;
+ Keymap* keymap;
+ QPopupMenu* labels;
+ QCopChannel* channel;
+ int w, h;
+ QPixmap disabled;
+
+ bool loadKeymap();
+ void mouseReleaseEvent(QMouseEvent*);
+
+protected slots:
+ void stateChanged(const QString&);
+ void labelChanged(int id);
+ void signalReceived(const QCString& msg, const QByteArray& data);
+ void reload();
+};
+#endif