author | mark <mark> | 2002-02-04 22:53:18 (UTC) |
---|---|---|
committer | mark <mark> | 2002-02-04 22:53:18 (UTC) |
commit | af8212fa21bf4c747707ee314ba838b46bd8211d (patch) (unidiff) | |
tree | a907a3f80615c8ee931c158bae580f5e52042e61 /inputmethods/jumpx/moc_keyboard.cpp | |
parent | 61b7a750723422ad33332cbdbcb5294cc35a6326 (diff) | |
download | opie-af8212fa21bf4c747707ee314ba838b46bd8211d.zip opie-af8212fa21bf4c747707ee314ba838b46bd8211d.tar.gz opie-af8212fa21bf4c747707ee314ba838b46bd8211d.tar.bz2 |
Importing qjumpx
Diffstat (limited to 'inputmethods/jumpx/moc_keyboard.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | inputmethods/jumpx/moc_keyboard.cpp | 177 |
1 files changed, 177 insertions, 0 deletions
diff --git a/inputmethods/jumpx/moc_keyboard.cpp b/inputmethods/jumpx/moc_keyboard.cpp new file mode 100644 index 0000000..59d9bb3 --- a/dev/null +++ b/inputmethods/jumpx/moc_keyboard.cpp | |||
@@ -0,0 +1,177 @@ | |||
1 | /**************************************************************************** | ||
2 | ** Keyboard meta object code from reading C++ file 'keyboard.h' | ||
3 | ** | ||
4 | ** Created: Mon Feb 4 21:38:24 2002 | ||
5 | ** by: The Qt MOC ($Id$) | ||
6 | ** | ||
7 | ** WARNING! All changes made in this file will be lost! | ||
8 | *****************************************************************************/ | ||
9 | |||
10 | #if !defined(Q_MOC_OUTPUT_REVISION) | ||
11 | #define Q_MOC_OUTPUT_REVISION 9 | ||
12 | #elif Q_MOC_OUTPUT_REVISION != 9 | ||
13 | #error "Moc format conflict - please regenerate all moc files" | ||
14 | #endif | ||
15 | |||
16 | #include "keyboard.h" | ||
17 | #include <qmetaobject.h> | ||
18 | #include <qapplication.h> | ||
19 | |||
20 | |||
21 | |||
22 | const char *Keyboard::className() const | ||
23 | { | ||
24 | return "Keyboard"; | ||
25 | } | ||
26 | |||
27 | QMetaObject *Keyboard::metaObj = 0; | ||
28 | |||
29 | void Keyboard::initMetaObject() | ||
30 | { | ||
31 | if ( metaObj ) | ||
32 | return; | ||
33 | if ( qstrcmp(QFrame::className(), "QFrame") != 0 ) | ||
34 | badSuperclassWarning("Keyboard","QFrame"); | ||
35 | (void) staticMetaObject(); | ||
36 | } | ||
37 | |||
38 | #ifndef QT_NO_TRANSLATION | ||
39 | |||
40 | QString Keyboard::tr(const char* s) | ||
41 | { | ||
42 | return qApp->translate( "Keyboard", s, 0 ); | ||
43 | } | ||
44 | |||
45 | QString Keyboard::tr(const char* s, const char * c) | ||
46 | { | ||
47 | return qApp->translate( "Keyboard", s, c ); | ||
48 | } | ||
49 | |||
50 | #endif // QT_NO_TRANSLATION | ||
51 | |||
52 | QMetaObject* Keyboard::staticMetaObject() | ||
53 | { | ||
54 | if ( metaObj ) | ||
55 | return metaObj; | ||
56 | (void) QFrame::staticMetaObject(); | ||
57 | #ifndef QT_NO_PROPERTIES | ||
58 | #endif // QT_NO_PROPERTIES | ||
59 | typedef void (Keyboard::*m1_t0)(); | ||
60 | typedef void (QObject::*om1_t0)(); | ||
61 | typedef void (Keyboard::*m1_t1)(); | ||
62 | typedef void (QObject::*om1_t1)(); | ||
63 | m1_t0 v1_0 = &Keyboard::delayTimerDone; | ||
64 | om1_t0 ov1_0 = (om1_t0)v1_0; | ||
65 | m1_t1 v1_1 = &Keyboard::rateTimerDone; | ||
66 | om1_t1 ov1_1 = (om1_t1)v1_1; | ||
67 | QMetaData *slot_tbl = QMetaObject::new_metadata(2); | ||
68 | QMetaData::Access *slot_tbl_access = QMetaObject::new_metaaccess(2); | ||
69 | slot_tbl[0].name = "delayTimerDone()"; | ||
70 | slot_tbl[0].ptr = (QMember)ov1_0; | ||
71 | slot_tbl_access[0] = QMetaData::Private; | ||
72 | slot_tbl[1].name = "rateTimerDone()"; | ||
73 | slot_tbl[1].ptr = (QMember)ov1_1; | ||
74 | slot_tbl_access[1] = QMetaData::Private; | ||
75 | typedef void (Keyboard::*m2_t0)(ushort,ushort,ushort,bool,bool); | ||
76 | typedef void (QObject::*om2_t0)(ushort,ushort,ushort,bool,bool); | ||
77 | m2_t0 v2_0 = &Keyboard::key; | ||
78 | om2_t0 ov2_0 = (om2_t0)v2_0; | ||
79 | QMetaData *signal_tbl = QMetaObject::new_metadata(1); | ||
80 | signal_tbl[0].name = "key(ushort,ushort,ushort,bool,bool)"; | ||
81 | signal_tbl[0].ptr = (QMember)ov2_0; | ||
82 | metaObj = QMetaObject::new_metaobject( | ||
83 | "Keyboard", "QFrame", | ||
84 | slot_tbl, 2, | ||
85 | signal_tbl, 1, | ||
86 | #ifndef QT_NO_PROPERTIES | ||
87 | 0, 0, | ||
88 | 0, 0, | ||
89 | #endif // QT_NO_PROPERTIES | ||
90 | 0, 0 ); | ||
91 | metaObj->set_slot_access( slot_tbl_access ); | ||
92 | #ifndef QT_NO_PROPERTIES | ||
93 | #endif // QT_NO_PROPERTIES | ||
94 | return metaObj; | ||
95 | } | ||
96 | |||
97 | #include <qobjectdefs.h> | ||
98 | #include <qsignalslotimp.h> | ||
99 | |||
100 | // SIGNAL key | ||
101 | void Keyboard::key( ushort t0, ushort t1, ushort t2, bool t3, bool t4 ) | ||
102 | { | ||
103 | // No builtin function for signal parameter type ushort,ushort,ushort,bool,bool | ||
104 | QConnectionList *clist = receivers("key(ushort,ushort,ushort,bool,bool)"); | ||
105 | if ( !clist || signalsBlocked() ) | ||
106 | return; | ||
107 | typedef void (QObject::*RT0)(); | ||
108 | typedef void (QObject::*RT1)(ushort); | ||
109 | typedef void (QObject::*RT2)(ushort,ushort); | ||
110 | typedef void (QObject::*RT3)(ushort,ushort,ushort); | ||
111 | typedef void (QObject::*RT4)(ushort,ushort,ushort,bool); | ||
112 | typedef void (QObject::*RT5)(ushort,ushort,ushort,bool,bool); | ||
113 | RT0 r0; | ||
114 | RT1 r1; | ||
115 | RT2 r2; | ||
116 | RT3 r3; | ||
117 | RT4 r4; | ||
118 | RT5 r5; | ||
119 | QConnectionListIt it(*clist); | ||
120 | QConnection *c; | ||
121 | QSenderObject *object; | ||
122 | while ( (c=it.current()) ) { | ||
123 | ++it; | ||
124 | object = (QSenderObject*)c->object(); | ||
125 | object->setSender( this ); | ||
126 | switch ( c->numArgs() ) { | ||
127 | case 0: | ||
128 | #ifdef Q_FP_CCAST_BROKEN | ||
129 | r0 = reinterpret_cast<RT0>(*(c->member())); | ||
130 | #else | ||
131 | r0 = (RT0)*(c->member()); | ||
132 | #endif | ||
133 | (object->*r0)(); | ||
134 | break; | ||
135 | case 1: | ||
136 | #ifdef Q_FP_CCAST_BROKEN | ||
137 | r1 = reinterpret_cast<RT1>(*(c->member())); | ||
138 | #else | ||
139 | r1 = (RT1)*(c->member()); | ||
140 | #endif | ||
141 | (object->*r1)(t0); | ||
142 | break; | ||
143 | case 2: | ||
144 | #ifdef Q_FP_CCAST_BROKEN | ||
145 | r2 = reinterpret_cast<RT2>(*(c->member())); | ||
146 | #else | ||
147 | r2 = (RT2)*(c->member()); | ||
148 | #endif | ||
149 | (object->*r2)(t0, t1); | ||
150 | break; | ||
151 | case 3: | ||
152 | #ifdef Q_FP_CCAST_BROKEN | ||
153 | r3 = reinterpret_cast<RT3>(*(c->member())); | ||
154 | #else | ||
155 | r3 = (RT3)*(c->member()); | ||
156 | #endif | ||
157 | (object->*r3)(t0, t1, t2); | ||
158 | break; | ||
159 | case 4: | ||
160 | #ifdef Q_FP_CCAST_BROKEN | ||
161 | r4 = reinterpret_cast<RT4>(*(c->member())); | ||
162 | #else | ||
163 | r4 = (RT4)*(c->member()); | ||
164 | #endif | ||
165 | (object->*r4)(t0, t1, t2, t3); | ||
166 | break; | ||
167 | case 5: | ||
168 | #ifdef Q_FP_CCAST_BROKEN | ||
169 | r5 = reinterpret_cast<RT5>(*(c->member())); | ||
170 | #else | ||
171 | r5 = (RT5)*(c->member()); | ||
172 | #endif | ||
173 | (object->*r5)(t0, t1, t2, t3, t4); | ||
174 | break; | ||
175 | } | ||
176 | } | ||
177 | } | ||