summaryrefslogtreecommitdiff
path: root/examples/exampleboardimpl.h
authorzecke <zecke>2004-02-05 21:44:45 (UTC)
committer zecke <zecke>2004-02-05 21:44:45 (UTC)
commitc66c82f5d42f17668794747006d5c8cf6cb62476 (patch) (unidiff)
tree9c5346a4a0d54cb05c0cd5a0ed90daf412b94657 /examples/exampleboardimpl.h
parent7c8214c06f13b9295df8ac3efaf021e66600d440 (diff)
downloadopie-c66c82f5d42f17668794747006d5c8cf6cb62476.zip
opie-c66c82f5d42f17668794747006d5c8cf6cb62476.tar.gz
opie-c66c82f5d42f17668794747006d5c8cf6cb62476.tar.bz2
Initial revision
Diffstat (limited to 'examples/exampleboardimpl.h') (more/less context) (ignore whitespace changes)
-rw-r--r--examples/exampleboardimpl.h50
1 files changed, 50 insertions, 0 deletions
diff --git a/examples/exampleboardimpl.h b/examples/exampleboardimpl.h
new file mode 100644
index 0000000..37e2a5f
--- a/dev/null
+++ b/examples/exampleboardimpl.h
@@ -0,0 +1,50 @@
1#ifndef EXAMPLEBOARDIMPL_H
2#define EXAMPLEBOARDIMPL_H
3
4#include <qhbox.h>
5
6#include <qpe/inputmethodinterface.h>
7
8class QPixmap;
9class QCheckBox;
10class ExampleBoard : public QHBox {
11 Q_OBJECT
12public:
13 ExampleBoard( QWidget *par, WFlags f );
14 ~ExampleBoard();
15 void resetState();
16private slots:
17 void slotKey(int);
18 void slotShift(bool);
19 void slotAlt(bool);
20 void slotCtrl(bool);
21signals:
22 void key(ushort,ushort,ushort,bool,bool);
23private:
24 int m_state;
25 QCheckBox *m_alt,*m_shi,*m_ctrl;
26};
27
28class ExampleboardImpl : public InputMethodInterface
29{
30public:
31 ExampleboardImpl();
32 virtual ~ExampleboardImpl();
33
34#ifndef QT_NO_COMPONENT
35 QRESULT queryInterface( const QUuid&, QUnknownInterface** );
36 Q_REFCOUNT
37#endif
38
39 virtual QWidget *inputMethod( QWidget *parent, Qt::WFlags f );
40 virtual void resetState();
41 virtual QPixmap *icon();
42 virtual QString name();
43 virtual void onKeyPress( QObject *receiver, const char *slot );
44
45private:
46 ExampleBoard *m_pickboard;
47 QPixmap *m_icn;
48};
49
50#endif