author | zecke <zecke> | 2004-02-05 21:44:45 (UTC) |
---|---|---|
committer | zecke <zecke> | 2004-02-05 21:44:45 (UTC) |
commit | c66c82f5d42f17668794747006d5c8cf6cb62476 (patch) (unidiff) | |
tree | 9c5346a4a0d54cb05c0cd5a0ed90daf412b94657 /examples/exampleboardimpl.h | |
parent | 7c8214c06f13b9295df8ac3efaf021e66600d440 (diff) | |
download | opie-c66c82f5d42f17668794747006d5c8cf6cb62476.zip opie-c66c82f5d42f17668794747006d5c8cf6cb62476.tar.gz opie-c66c82f5d42f17668794747006d5c8cf6cb62476.tar.bz2 |
Initial revision
-rw-r--r-- | examples/exampleboardimpl.h | 50 |
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 | |||
8 | class QPixmap; | ||
9 | class QCheckBox; | ||
10 | class ExampleBoard : public QHBox { | ||
11 | Q_OBJECT | ||
12 | public: | ||
13 | ExampleBoard( QWidget *par, WFlags f ); | ||
14 | ~ExampleBoard(); | ||
15 | void resetState(); | ||
16 | private slots: | ||
17 | void slotKey(int); | ||
18 | void slotShift(bool); | ||
19 | void slotAlt(bool); | ||
20 | void slotCtrl(bool); | ||
21 | signals: | ||
22 | void key(ushort,ushort,ushort,bool,bool); | ||
23 | private: | ||
24 | int m_state; | ||
25 | QCheckBox *m_alt,*m_shi,*m_ctrl; | ||
26 | }; | ||
27 | |||
28 | class ExampleboardImpl : public InputMethodInterface | ||
29 | { | ||
30 | public: | ||
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 | |||
45 | private: | ||
46 | ExampleBoard *m_pickboard; | ||
47 | QPixmap *m_icn; | ||
48 | }; | ||
49 | |||
50 | #endif | ||