added "install" instruction
[Leditor.git] / src / lqt_bind_QEvent.cpp
blob911393635aa4a42c9c33d2e28c9f2d12b896e086
1 #include "lqt_bind_QEvent.hpp"
3 int LuaBinder< QEvent >::__LuaWrapCall__delete (lua_State *L) {
4 QEvent *& __lua__obj = *static_cast<QEvent**>(lqtL_checkudata(L, 1, "QEvent*"));
5 if (__lua__obj==0) {
6 lua_pushstring(L, "trying to reference deleted pointer");
7 lua_error(L);
8 return 0;
10 delete __lua__obj;
11 __lua__obj = 0;
12 return 0;
14 int LuaBinder< QEvent >::__LuaWrapCall__type (lua_State *L) {
15 QEvent *& __lua__obj = *static_cast<QEvent**>(lqtL_checkudata(L, 1, "QEvent*"));
16 if (__lua__obj==0) {
17 lua_pushstring(L, "trying to reference deleted pointer");
18 lua_error(L);
19 return 0;
21 QEvent::Type ret = __lua__obj->QEvent::type();
22 lqtL_pushenum(L, ret, "QEvent::Type");
23 return 1;
25 int LuaBinder< QEvent >::__LuaWrapCall__setAccepted (lua_State *L) {
26 QEvent *& __lua__obj = *static_cast<QEvent**>(lqtL_checkudata(L, 1, "QEvent*"));
27 if (__lua__obj==0) {
28 lua_pushstring(L, "trying to reference deleted pointer");
29 lua_error(L);
30 return 0;
32 bool arg1 = (bool)lua_toboolean(L, 2);
33 __lua__obj->QEvent::setAccepted(arg1);
34 return 0;
36 int LuaBinder< QEvent >::__LuaWrapCall__accept (lua_State *L) {
37 QEvent *& __lua__obj = *static_cast<QEvent**>(lqtL_checkudata(L, 1, "QEvent*"));
38 if (__lua__obj==0) {
39 lua_pushstring(L, "trying to reference deleted pointer");
40 lua_error(L);
41 return 0;
43 __lua__obj->QEvent::accept();
44 return 0;
46 int LuaBinder< QEvent >::__LuaWrapCall__isAccepted (lua_State *L) {
47 QEvent *& __lua__obj = *static_cast<QEvent**>(lqtL_checkudata(L, 1, "QEvent*"));
48 if (__lua__obj==0) {
49 lua_pushstring(L, "trying to reference deleted pointer");
50 lua_error(L);
51 return 0;
53 bool ret = __lua__obj->QEvent::isAccepted();
54 lua_pushboolean(L, ret);
55 return 1;
57 int LuaBinder< QEvent >::__LuaWrapCall__spontaneous (lua_State *L) {
58 QEvent *& __lua__obj = *static_cast<QEvent**>(lqtL_checkudata(L, 1, "QEvent*"));
59 if (__lua__obj==0) {
60 lua_pushstring(L, "trying to reference deleted pointer");
61 lua_error(L);
62 return 0;
64 bool ret = __lua__obj->QEvent::spontaneous();
65 lua_pushboolean(L, ret);
66 return 1;
68 int LuaBinder< QEvent >::__LuaWrapCall__ignore (lua_State *L) {
69 QEvent *& __lua__obj = *static_cast<QEvent**>(lqtL_checkudata(L, 1, "QEvent*"));
70 if (__lua__obj==0) {
71 lua_pushstring(L, "trying to reference deleted pointer");
72 lua_error(L);
73 return 0;
75 __lua__obj->QEvent::ignore();
76 return 0;
78 LuaBinder< QEvent >:: ~LuaBinder< QEvent > () {
79 int oldtop = lua_gettop(L);
80 lqtL_pushudata(L, this, "QEvent*");
81 lua_getfield(L, -1, "~QEvent");
83 if (lua_isfunction(L, -1)) {
84 lua_insert(L, -2);
85 lua_pcall(L, 1, 1, 0);
86 } else {
88 lua_settop(L, oldtop);
90 int LuaBinder< QEvent >::lqt_pushenum_Type (lua_State *L) {
91 int enum_table = 0;
92 lua_getfield(L, LUA_REGISTRYINDEX, LQT_ENUMS);
93 if (!lua_istable(L, -1)) {
94 lua_pop(L, 1);
95 lua_newtable(L);
96 lua_pushvalue(L, -1);
97 lua_setfield(L, LUA_REGISTRYINDEX, LQT_ENUMS);
99 lua_newtable(L);
100 enum_table = lua_gettop(L);
101 lua_pushstring(L, "None");
102 lua_rawseti(L, enum_table, 0);
103 lua_pushinteger(L, 0);
104 lua_setfield(L, enum_table, "None");
105 lua_pushstring(L, "Timer");
106 lua_rawseti(L, enum_table, 1);
107 lua_pushinteger(L, 1);
108 lua_setfield(L, enum_table, "Timer");
109 lua_pushstring(L, "MouseButtonPress");
110 lua_rawseti(L, enum_table, 2);
111 lua_pushinteger(L, 2);
112 lua_setfield(L, enum_table, "MouseButtonPress");
113 lua_pushstring(L, "MouseButtonRelease");
114 lua_rawseti(L, enum_table, 3);
115 lua_pushinteger(L, 3);
116 lua_setfield(L, enum_table, "MouseButtonRelease");
117 lua_pushstring(L, "MouseButtonDblClick");
118 lua_rawseti(L, enum_table, 4);
119 lua_pushinteger(L, 4);
120 lua_setfield(L, enum_table, "MouseButtonDblClick");
121 lua_pushstring(L, "MouseMove");
122 lua_rawseti(L, enum_table, 5);
123 lua_pushinteger(L, 5);
124 lua_setfield(L, enum_table, "MouseMove");
125 lua_pushstring(L, "KeyPress");
126 lua_rawseti(L, enum_table, 6);
127 lua_pushinteger(L, 6);
128 lua_setfield(L, enum_table, "KeyPress");
129 lua_pushstring(L, "KeyRelease");
130 lua_rawseti(L, enum_table, 7);
131 lua_pushinteger(L, 7);
132 lua_setfield(L, enum_table, "KeyRelease");
133 lua_pushstring(L, "FocusIn");
134 lua_rawseti(L, enum_table, 8);
135 lua_pushinteger(L, 8);
136 lua_setfield(L, enum_table, "FocusIn");
137 lua_pushstring(L, "FocusOut");
138 lua_rawseti(L, enum_table, 9);
139 lua_pushinteger(L, 9);
140 lua_setfield(L, enum_table, "FocusOut");
141 lua_pushstring(L, "Enter");
142 lua_rawseti(L, enum_table, 10);
143 lua_pushinteger(L, 10);
144 lua_setfield(L, enum_table, "Enter");
145 lua_pushstring(L, "Leave");
146 lua_rawseti(L, enum_table, 11);
147 lua_pushinteger(L, 11);
148 lua_setfield(L, enum_table, "Leave");
149 lua_pushstring(L, "Paint");
150 lua_rawseti(L, enum_table, 12);
151 lua_pushinteger(L, 12);
152 lua_setfield(L, enum_table, "Paint");
153 lua_pushstring(L, "Move");
154 lua_rawseti(L, enum_table, 13);
155 lua_pushinteger(L, 13);
156 lua_setfield(L, enum_table, "Move");
157 lua_pushstring(L, "Resize");
158 lua_rawseti(L, enum_table, 14);
159 lua_pushinteger(L, 14);
160 lua_setfield(L, enum_table, "Resize");
161 lua_pushstring(L, "Create");
162 lua_rawseti(L, enum_table, 15);
163 lua_pushinteger(L, 15);
164 lua_setfield(L, enum_table, "Create");
165 lua_pushstring(L, "Destroy");
166 lua_rawseti(L, enum_table, 16);
167 lua_pushinteger(L, 16);
168 lua_setfield(L, enum_table, "Destroy");
169 lua_pushstring(L, "Show");
170 lua_rawseti(L, enum_table, 17);
171 lua_pushinteger(L, 17);
172 lua_setfield(L, enum_table, "Show");
173 lua_pushstring(L, "Hide");
174 lua_rawseti(L, enum_table, 18);
175 lua_pushinteger(L, 18);
176 lua_setfield(L, enum_table, "Hide");
177 lua_pushstring(L, "Close");
178 lua_rawseti(L, enum_table, 19);
179 lua_pushinteger(L, 19);
180 lua_setfield(L, enum_table, "Close");
181 lua_pushstring(L, "Quit");
182 lua_rawseti(L, enum_table, 20);
183 lua_pushinteger(L, 20);
184 lua_setfield(L, enum_table, "Quit");
185 lua_pushstring(L, "ParentChange");
186 lua_rawseti(L, enum_table, 21);
187 lua_pushinteger(L, 21);
188 lua_setfield(L, enum_table, "ParentChange");
189 lua_pushstring(L, "ParentAboutToChange");
190 lua_rawseti(L, enum_table, 131);
191 lua_pushinteger(L, 131);
192 lua_setfield(L, enum_table, "ParentAboutToChange");
193 lua_pushstring(L, "ThreadChange");
194 lua_rawseti(L, enum_table, 22);
195 lua_pushinteger(L, 22);
196 lua_setfield(L, enum_table, "ThreadChange");
197 lua_pushstring(L, "WindowActivate");
198 lua_rawseti(L, enum_table, 24);
199 lua_pushinteger(L, 24);
200 lua_setfield(L, enum_table, "WindowActivate");
201 lua_pushstring(L, "WindowDeactivate");
202 lua_rawseti(L, enum_table, 25);
203 lua_pushinteger(L, 25);
204 lua_setfield(L, enum_table, "WindowDeactivate");
205 lua_pushstring(L, "ShowToParent");
206 lua_rawseti(L, enum_table, 26);
207 lua_pushinteger(L, 26);
208 lua_setfield(L, enum_table, "ShowToParent");
209 lua_pushstring(L, "HideToParent");
210 lua_rawseti(L, enum_table, 27);
211 lua_pushinteger(L, 27);
212 lua_setfield(L, enum_table, "HideToParent");
213 lua_pushstring(L, "Wheel");
214 lua_rawseti(L, enum_table, 31);
215 lua_pushinteger(L, 31);
216 lua_setfield(L, enum_table, "Wheel");
217 lua_pushstring(L, "WindowTitleChange");
218 lua_rawseti(L, enum_table, 33);
219 lua_pushinteger(L, 33);
220 lua_setfield(L, enum_table, "WindowTitleChange");
221 lua_pushstring(L, "WindowIconChange");
222 lua_rawseti(L, enum_table, 34);
223 lua_pushinteger(L, 34);
224 lua_setfield(L, enum_table, "WindowIconChange");
225 lua_pushstring(L, "ApplicationWindowIconChange");
226 lua_rawseti(L, enum_table, 35);
227 lua_pushinteger(L, 35);
228 lua_setfield(L, enum_table, "ApplicationWindowIconChange");
229 lua_pushstring(L, "ApplicationFontChange");
230 lua_rawseti(L, enum_table, 36);
231 lua_pushinteger(L, 36);
232 lua_setfield(L, enum_table, "ApplicationFontChange");
233 lua_pushstring(L, "ApplicationLayoutDirectionChange");
234 lua_rawseti(L, enum_table, 37);
235 lua_pushinteger(L, 37);
236 lua_setfield(L, enum_table, "ApplicationLayoutDirectionChange");
237 lua_pushstring(L, "ApplicationPaletteChange");
238 lua_rawseti(L, enum_table, 38);
239 lua_pushinteger(L, 38);
240 lua_setfield(L, enum_table, "ApplicationPaletteChange");
241 lua_pushstring(L, "PaletteChange");
242 lua_rawseti(L, enum_table, 39);
243 lua_pushinteger(L, 39);
244 lua_setfield(L, enum_table, "PaletteChange");
245 lua_pushstring(L, "Clipboard");
246 lua_rawseti(L, enum_table, 40);
247 lua_pushinteger(L, 40);
248 lua_setfield(L, enum_table, "Clipboard");
249 lua_pushstring(L, "Speech");
250 lua_rawseti(L, enum_table, 42);
251 lua_pushinteger(L, 42);
252 lua_setfield(L, enum_table, "Speech");
253 lua_pushstring(L, "MetaCall");
254 lua_rawseti(L, enum_table, 43);
255 lua_pushinteger(L, 43);
256 lua_setfield(L, enum_table, "MetaCall");
257 lua_pushstring(L, "SockAct");
258 lua_rawseti(L, enum_table, 50);
259 lua_pushinteger(L, 50);
260 lua_setfield(L, enum_table, "SockAct");
261 lua_pushstring(L, "WinEventAct");
262 lua_rawseti(L, enum_table, 132);
263 lua_pushinteger(L, 132);
264 lua_setfield(L, enum_table, "WinEventAct");
265 lua_pushstring(L, "DeferredDelete");
266 lua_rawseti(L, enum_table, 52);
267 lua_pushinteger(L, 52);
268 lua_setfield(L, enum_table, "DeferredDelete");
269 lua_pushstring(L, "DragEnter");
270 lua_rawseti(L, enum_table, 60);
271 lua_pushinteger(L, 60);
272 lua_setfield(L, enum_table, "DragEnter");
273 lua_pushstring(L, "DragMove");
274 lua_rawseti(L, enum_table, 61);
275 lua_pushinteger(L, 61);
276 lua_setfield(L, enum_table, "DragMove");
277 lua_pushstring(L, "DragLeave");
278 lua_rawseti(L, enum_table, 62);
279 lua_pushinteger(L, 62);
280 lua_setfield(L, enum_table, "DragLeave");
281 lua_pushstring(L, "Drop");
282 lua_rawseti(L, enum_table, 63);
283 lua_pushinteger(L, 63);
284 lua_setfield(L, enum_table, "Drop");
285 lua_pushstring(L, "DragResponse");
286 lua_rawseti(L, enum_table, 64);
287 lua_pushinteger(L, 64);
288 lua_setfield(L, enum_table, "DragResponse");
289 lua_pushstring(L, "ChildAdded");
290 lua_rawseti(L, enum_table, 68);
291 lua_pushinteger(L, 68);
292 lua_setfield(L, enum_table, "ChildAdded");
293 lua_pushstring(L, "ChildPolished");
294 lua_rawseti(L, enum_table, 69);
295 lua_pushinteger(L, 69);
296 lua_setfield(L, enum_table, "ChildPolished");
297 lua_pushstring(L, "ChildRemoved");
298 lua_rawseti(L, enum_table, 71);
299 lua_pushinteger(L, 71);
300 lua_setfield(L, enum_table, "ChildRemoved");
301 lua_pushstring(L, "ShowWindowRequest");
302 lua_rawseti(L, enum_table, 73);
303 lua_pushinteger(L, 73);
304 lua_setfield(L, enum_table, "ShowWindowRequest");
305 lua_pushstring(L, "PolishRequest");
306 lua_rawseti(L, enum_table, 74);
307 lua_pushinteger(L, 74);
308 lua_setfield(L, enum_table, "PolishRequest");
309 lua_pushstring(L, "Polish");
310 lua_rawseti(L, enum_table, 75);
311 lua_pushinteger(L, 75);
312 lua_setfield(L, enum_table, "Polish");
313 lua_pushstring(L, "LayoutRequest");
314 lua_rawseti(L, enum_table, 76);
315 lua_pushinteger(L, 76);
316 lua_setfield(L, enum_table, "LayoutRequest");
317 lua_pushstring(L, "UpdateRequest");
318 lua_rawseti(L, enum_table, 77);
319 lua_pushinteger(L, 77);
320 lua_setfield(L, enum_table, "UpdateRequest");
321 lua_pushstring(L, "UpdateLater");
322 lua_rawseti(L, enum_table, 78);
323 lua_pushinteger(L, 78);
324 lua_setfield(L, enum_table, "UpdateLater");
325 lua_pushstring(L, "EmbeddingControl");
326 lua_rawseti(L, enum_table, 79);
327 lua_pushinteger(L, 79);
328 lua_setfield(L, enum_table, "EmbeddingControl");
329 lua_pushstring(L, "ActivateControl");
330 lua_rawseti(L, enum_table, 80);
331 lua_pushinteger(L, 80);
332 lua_setfield(L, enum_table, "ActivateControl");
333 lua_pushstring(L, "DeactivateControl");
334 lua_rawseti(L, enum_table, 81);
335 lua_pushinteger(L, 81);
336 lua_setfield(L, enum_table, "DeactivateControl");
337 lua_pushstring(L, "ContextMenu");
338 lua_rawseti(L, enum_table, 82);
339 lua_pushinteger(L, 82);
340 lua_setfield(L, enum_table, "ContextMenu");
341 lua_pushstring(L, "InputMethod");
342 lua_rawseti(L, enum_table, 83);
343 lua_pushinteger(L, 83);
344 lua_setfield(L, enum_table, "InputMethod");
345 lua_pushstring(L, "AccessibilityPrepare");
346 lua_rawseti(L, enum_table, 86);
347 lua_pushinteger(L, 86);
348 lua_setfield(L, enum_table, "AccessibilityPrepare");
349 lua_pushstring(L, "TabletMove");
350 lua_rawseti(L, enum_table, 87);
351 lua_pushinteger(L, 87);
352 lua_setfield(L, enum_table, "TabletMove");
353 lua_pushstring(L, "LocaleChange");
354 lua_rawseti(L, enum_table, 88);
355 lua_pushinteger(L, 88);
356 lua_setfield(L, enum_table, "LocaleChange");
357 lua_pushstring(L, "LanguageChange");
358 lua_rawseti(L, enum_table, 89);
359 lua_pushinteger(L, 89);
360 lua_setfield(L, enum_table, "LanguageChange");
361 lua_pushstring(L, "LayoutDirectionChange");
362 lua_rawseti(L, enum_table, 90);
363 lua_pushinteger(L, 90);
364 lua_setfield(L, enum_table, "LayoutDirectionChange");
365 lua_pushstring(L, "Style");
366 lua_rawseti(L, enum_table, 91);
367 lua_pushinteger(L, 91);
368 lua_setfield(L, enum_table, "Style");
369 lua_pushstring(L, "TabletPress");
370 lua_rawseti(L, enum_table, 92);
371 lua_pushinteger(L, 92);
372 lua_setfield(L, enum_table, "TabletPress");
373 lua_pushstring(L, "TabletRelease");
374 lua_rawseti(L, enum_table, 93);
375 lua_pushinteger(L, 93);
376 lua_setfield(L, enum_table, "TabletRelease");
377 lua_pushstring(L, "OkRequest");
378 lua_rawseti(L, enum_table, 94);
379 lua_pushinteger(L, 94);
380 lua_setfield(L, enum_table, "OkRequest");
381 lua_pushstring(L, "HelpRequest");
382 lua_rawseti(L, enum_table, 95);
383 lua_pushinteger(L, 95);
384 lua_setfield(L, enum_table, "HelpRequest");
385 lua_pushstring(L, "IconDrag");
386 lua_rawseti(L, enum_table, 96);
387 lua_pushinteger(L, 96);
388 lua_setfield(L, enum_table, "IconDrag");
389 lua_pushstring(L, "FontChange");
390 lua_rawseti(L, enum_table, 97);
391 lua_pushinteger(L, 97);
392 lua_setfield(L, enum_table, "FontChange");
393 lua_pushstring(L, "EnabledChange");
394 lua_rawseti(L, enum_table, 98);
395 lua_pushinteger(L, 98);
396 lua_setfield(L, enum_table, "EnabledChange");
397 lua_pushstring(L, "ActivationChange");
398 lua_rawseti(L, enum_table, 99);
399 lua_pushinteger(L, 99);
400 lua_setfield(L, enum_table, "ActivationChange");
401 lua_pushstring(L, "StyleChange");
402 lua_rawseti(L, enum_table, 100);
403 lua_pushinteger(L, 100);
404 lua_setfield(L, enum_table, "StyleChange");
405 lua_pushstring(L, "IconTextChange");
406 lua_rawseti(L, enum_table, 101);
407 lua_pushinteger(L, 101);
408 lua_setfield(L, enum_table, "IconTextChange");
409 lua_pushstring(L, "ModifiedChange");
410 lua_rawseti(L, enum_table, 102);
411 lua_pushinteger(L, 102);
412 lua_setfield(L, enum_table, "ModifiedChange");
413 lua_pushstring(L, "MouseTrackingChange");
414 lua_rawseti(L, enum_table, 109);
415 lua_pushinteger(L, 109);
416 lua_setfield(L, enum_table, "MouseTrackingChange");
417 lua_pushstring(L, "WindowBlocked");
418 lua_rawseti(L, enum_table, 103);
419 lua_pushinteger(L, 103);
420 lua_setfield(L, enum_table, "WindowBlocked");
421 lua_pushstring(L, "WindowUnblocked");
422 lua_rawseti(L, enum_table, 104);
423 lua_pushinteger(L, 104);
424 lua_setfield(L, enum_table, "WindowUnblocked");
425 lua_pushstring(L, "WindowStateChange");
426 lua_rawseti(L, enum_table, 105);
427 lua_pushinteger(L, 105);
428 lua_setfield(L, enum_table, "WindowStateChange");
429 lua_pushstring(L, "ToolTip");
430 lua_rawseti(L, enum_table, 110);
431 lua_pushinteger(L, 110);
432 lua_setfield(L, enum_table, "ToolTip");
433 lua_pushstring(L, "WhatsThis");
434 lua_rawseti(L, enum_table, 111);
435 lua_pushinteger(L, 111);
436 lua_setfield(L, enum_table, "WhatsThis");
437 lua_pushstring(L, "StatusTip");
438 lua_rawseti(L, enum_table, 112);
439 lua_pushinteger(L, 112);
440 lua_setfield(L, enum_table, "StatusTip");
441 lua_pushstring(L, "ActionChanged");
442 lua_rawseti(L, enum_table, 113);
443 lua_pushinteger(L, 113);
444 lua_setfield(L, enum_table, "ActionChanged");
445 lua_pushstring(L, "ActionAdded");
446 lua_rawseti(L, enum_table, 114);
447 lua_pushinteger(L, 114);
448 lua_setfield(L, enum_table, "ActionAdded");
449 lua_pushstring(L, "ActionRemoved");
450 lua_rawseti(L, enum_table, 115);
451 lua_pushinteger(L, 115);
452 lua_setfield(L, enum_table, "ActionRemoved");
453 lua_pushstring(L, "FileOpen");
454 lua_rawseti(L, enum_table, 116);
455 lua_pushinteger(L, 116);
456 lua_setfield(L, enum_table, "FileOpen");
457 lua_pushstring(L, "Shortcut");
458 lua_rawseti(L, enum_table, 117);
459 lua_pushinteger(L, 117);
460 lua_setfield(L, enum_table, "Shortcut");
461 lua_pushstring(L, "ShortcutOverride");
462 lua_rawseti(L, enum_table, 51);
463 lua_pushinteger(L, 51);
464 lua_setfield(L, enum_table, "ShortcutOverride");
465 lua_pushstring(L, "WhatsThisClicked");
466 lua_rawseti(L, enum_table, 118);
467 lua_pushinteger(L, 118);
468 lua_setfield(L, enum_table, "WhatsThisClicked");
469 lua_pushstring(L, "ToolBarChange");
470 lua_rawseti(L, enum_table, 120);
471 lua_pushinteger(L, 120);
472 lua_setfield(L, enum_table, "ToolBarChange");
473 lua_pushstring(L, "ApplicationActivate");
474 lua_rawseti(L, enum_table, 121);
475 lua_pushinteger(L, 121);
476 lua_setfield(L, enum_table, "ApplicationActivate");
477 lua_pushstring(L, "ApplicationActivated");
478 lua_rawseti(L, enum_table, 121);
479 lua_pushinteger(L, 121);
480 lua_setfield(L, enum_table, "ApplicationActivated");
481 lua_pushstring(L, "ApplicationDeactivate");
482 lua_rawseti(L, enum_table, 122);
483 lua_pushinteger(L, 122);
484 lua_setfield(L, enum_table, "ApplicationDeactivate");
485 lua_pushstring(L, "ApplicationDeactivated");
486 lua_rawseti(L, enum_table, 122);
487 lua_pushinteger(L, 122);
488 lua_setfield(L, enum_table, "ApplicationDeactivated");
489 lua_pushstring(L, "QueryWhatsThis");
490 lua_rawseti(L, enum_table, 123);
491 lua_pushinteger(L, 123);
492 lua_setfield(L, enum_table, "QueryWhatsThis");
493 lua_pushstring(L, "EnterWhatsThisMode");
494 lua_rawseti(L, enum_table, 124);
495 lua_pushinteger(L, 124);
496 lua_setfield(L, enum_table, "EnterWhatsThisMode");
497 lua_pushstring(L, "LeaveWhatsThisMode");
498 lua_rawseti(L, enum_table, 125);
499 lua_pushinteger(L, 125);
500 lua_setfield(L, enum_table, "LeaveWhatsThisMode");
501 lua_pushstring(L, "ZOrderChange");
502 lua_rawseti(L, enum_table, 126);
503 lua_pushinteger(L, 126);
504 lua_setfield(L, enum_table, "ZOrderChange");
505 lua_pushstring(L, "HoverEnter");
506 lua_rawseti(L, enum_table, 127);
507 lua_pushinteger(L, 127);
508 lua_setfield(L, enum_table, "HoverEnter");
509 lua_pushstring(L, "HoverLeave");
510 lua_rawseti(L, enum_table, 128);
511 lua_pushinteger(L, 128);
512 lua_setfield(L, enum_table, "HoverLeave");
513 lua_pushstring(L, "HoverMove");
514 lua_rawseti(L, enum_table, 129);
515 lua_pushinteger(L, 129);
516 lua_setfield(L, enum_table, "HoverMove");
517 lua_pushstring(L, "AccessibilityHelp");
518 lua_rawseti(L, enum_table, 119);
519 lua_pushinteger(L, 119);
520 lua_setfield(L, enum_table, "AccessibilityHelp");
521 lua_pushstring(L, "AccessibilityDescription");
522 lua_rawseti(L, enum_table, 130);
523 lua_pushinteger(L, 130);
524 lua_setfield(L, enum_table, "AccessibilityDescription");
525 lua_pushstring(L, "AcceptDropsChange");
526 lua_rawseti(L, enum_table, 152);
527 lua_pushinteger(L, 152);
528 lua_setfield(L, enum_table, "AcceptDropsChange");
529 lua_pushstring(L, "MenubarUpdated");
530 lua_rawseti(L, enum_table, 153);
531 lua_pushinteger(L, 153);
532 lua_setfield(L, enum_table, "MenubarUpdated");
533 lua_pushstring(L, "ZeroTimerEvent");
534 lua_rawseti(L, enum_table, 154);
535 lua_pushinteger(L, 154);
536 lua_setfield(L, enum_table, "ZeroTimerEvent");
537 lua_pushstring(L, "GraphicsSceneMouseMove");
538 lua_rawseti(L, enum_table, 155);
539 lua_pushinteger(L, 155);
540 lua_setfield(L, enum_table, "GraphicsSceneMouseMove");
541 lua_pushstring(L, "GraphicsSceneMousePress");
542 lua_rawseti(L, enum_table, 156);
543 lua_pushinteger(L, 156);
544 lua_setfield(L, enum_table, "GraphicsSceneMousePress");
545 lua_pushstring(L, "GraphicsSceneMouseRelease");
546 lua_rawseti(L, enum_table, 157);
547 lua_pushinteger(L, 157);
548 lua_setfield(L, enum_table, "GraphicsSceneMouseRelease");
549 lua_pushstring(L, "GraphicsSceneMouseDoubleClick");
550 lua_rawseti(L, enum_table, 158);
551 lua_pushinteger(L, 158);
552 lua_setfield(L, enum_table, "GraphicsSceneMouseDoubleClick");
553 lua_pushstring(L, "GraphicsSceneContextMenu");
554 lua_rawseti(L, enum_table, 159);
555 lua_pushinteger(L, 159);
556 lua_setfield(L, enum_table, "GraphicsSceneContextMenu");
557 lua_pushstring(L, "GraphicsSceneHoverEnter");
558 lua_rawseti(L, enum_table, 160);
559 lua_pushinteger(L, 160);
560 lua_setfield(L, enum_table, "GraphicsSceneHoverEnter");
561 lua_pushstring(L, "GraphicsSceneHoverMove");
562 lua_rawseti(L, enum_table, 161);
563 lua_pushinteger(L, 161);
564 lua_setfield(L, enum_table, "GraphicsSceneHoverMove");
565 lua_pushstring(L, "GraphicsSceneHoverLeave");
566 lua_rawseti(L, enum_table, 162);
567 lua_pushinteger(L, 162);
568 lua_setfield(L, enum_table, "GraphicsSceneHoverLeave");
569 lua_pushstring(L, "GraphicsSceneHelp");
570 lua_rawseti(L, enum_table, 163);
571 lua_pushinteger(L, 163);
572 lua_setfield(L, enum_table, "GraphicsSceneHelp");
573 lua_pushstring(L, "GraphicsSceneDragEnter");
574 lua_rawseti(L, enum_table, 164);
575 lua_pushinteger(L, 164);
576 lua_setfield(L, enum_table, "GraphicsSceneDragEnter");
577 lua_pushstring(L, "GraphicsSceneDragMove");
578 lua_rawseti(L, enum_table, 165);
579 lua_pushinteger(L, 165);
580 lua_setfield(L, enum_table, "GraphicsSceneDragMove");
581 lua_pushstring(L, "GraphicsSceneDragLeave");
582 lua_rawseti(L, enum_table, 166);
583 lua_pushinteger(L, 166);
584 lua_setfield(L, enum_table, "GraphicsSceneDragLeave");
585 lua_pushstring(L, "GraphicsSceneDrop");
586 lua_rawseti(L, enum_table, 167);
587 lua_pushinteger(L, 167);
588 lua_setfield(L, enum_table, "GraphicsSceneDrop");
589 lua_pushstring(L, "GraphicsSceneWheel");
590 lua_rawseti(L, enum_table, 168);
591 lua_pushinteger(L, 168);
592 lua_setfield(L, enum_table, "GraphicsSceneWheel");
593 lua_pushstring(L, "KeyboardLayoutChange");
594 lua_rawseti(L, enum_table, 169);
595 lua_pushinteger(L, 169);
596 lua_setfield(L, enum_table, "KeyboardLayoutChange");
597 lua_pushstring(L, "DynamicPropertyChange");
598 lua_rawseti(L, enum_table, 170);
599 lua_pushinteger(L, 170);
600 lua_setfield(L, enum_table, "DynamicPropertyChange");
601 lua_pushstring(L, "TabletEnterProximity");
602 lua_rawseti(L, enum_table, 171);
603 lua_pushinteger(L, 171);
604 lua_setfield(L, enum_table, "TabletEnterProximity");
605 lua_pushstring(L, "TabletLeaveProximity");
606 lua_rawseti(L, enum_table, 172);
607 lua_pushinteger(L, 172);
608 lua_setfield(L, enum_table, "TabletLeaveProximity");
609 lua_pushstring(L, "NonClientAreaMouseMove");
610 lua_rawseti(L, enum_table, 173);
611 lua_pushinteger(L, 173);
612 lua_setfield(L, enum_table, "NonClientAreaMouseMove");
613 lua_pushstring(L, "NonClientAreaMouseButtonPress");
614 lua_rawseti(L, enum_table, 174);
615 lua_pushinteger(L, 174);
616 lua_setfield(L, enum_table, "NonClientAreaMouseButtonPress");
617 lua_pushstring(L, "NonClientAreaMouseButtonRelease");
618 lua_rawseti(L, enum_table, 175);
619 lua_pushinteger(L, 175);
620 lua_setfield(L, enum_table, "NonClientAreaMouseButtonRelease");
621 lua_pushstring(L, "NonClientAreaMouseButtonDblClick");
622 lua_rawseti(L, enum_table, 176);
623 lua_pushinteger(L, 176);
624 lua_setfield(L, enum_table, "NonClientAreaMouseButtonDblClick");
625 lua_pushstring(L, "MacSizeChange");
626 lua_rawseti(L, enum_table, 177);
627 lua_pushinteger(L, 177);
628 lua_setfield(L, enum_table, "MacSizeChange");
629 lua_pushstring(L, "ContentsRectChange");
630 lua_rawseti(L, enum_table, 178);
631 lua_pushinteger(L, 178);
632 lua_setfield(L, enum_table, "ContentsRectChange");
633 lua_pushstring(L, "User");
634 lua_rawseti(L, enum_table, 1000);
635 lua_pushinteger(L, 1000);
636 lua_setfield(L, enum_table, "User");
637 lua_pushstring(L, "MaxUser");
638 lua_rawseti(L, enum_table, 65535);
639 lua_pushinteger(L, 65535);
640 lua_setfield(L, enum_table, "MaxUser");
641 lua_pushcfunction(L, LuaBinder< QEvent >::lqt_pushenum_Type_QFLAGS_CREATOR);
642 lua_setfield(L, enum_table, "QFlags");
643 lua_pushvalue(L, -1);
644 lua_setfield(L, -3, "QEvent::Type");
645 lua_remove(L, -2);
646 return 1;
648 int LuaBinder< QEvent >::lqt_pushenum_Type_QFLAGS_CREATOR (lua_State *L) {
649 int argn = lua_gettop(L);
650 int i = 0;
651 void *p = lua_newuserdata(L, sizeof(QFlags<QEvent::Type>*) + sizeof(QFlags<QEvent::Type>));
652 QFlags<QEvent::Type> *fl = static_cast<QFlags<QEvent::Type>*>( static_cast<void*>(&static_cast<QFlags<QEvent::Type>**>(p)[1]) );
653 *(void**)p = fl;
654 for (i=1;i<=argn;i++) {
655 *fl |= static_cast<QEvent::Type>(lqtL_toenum(L, i, "QEvent::Type"));
657 if (luaL_newmetatable(L, "QFlags<QEvent::Type>*")) {
658 lua_pushstring(L, "QFlags<QEvent::Type>*");
659 lua_setfield(L, -2, "__qtype");
661 lua_setmetatable(L, -2);
662 return 1;
664 int luaopen_QEvent (lua_State *L) {
665 if (luaL_newmetatable(L, "QEvent*")) {
666 lua_pushcfunction(L, LuaBinder< QEvent >::__LuaWrapCall__delete);
667 lua_setfield(L, -2, "delete");
668 lua_pushcfunction(L, LuaBinder< QEvent >::__LuaWrapCall__type);
669 lua_setfield(L, -2, "type");
670 lua_pushcfunction(L, LuaBinder< QEvent >::__LuaWrapCall__setAccepted);
671 lua_setfield(L, -2, "setAccepted");
672 lua_pushcfunction(L, LuaBinder< QEvent >::__LuaWrapCall__accept);
673 lua_setfield(L, -2, "accept");
674 lua_pushcfunction(L, LuaBinder< QEvent >::__LuaWrapCall__isAccepted);
675 lua_setfield(L, -2, "isAccepted");
676 lua_pushcfunction(L, LuaBinder< QEvent >::__LuaWrapCall__spontaneous);
677 lua_setfield(L, -2, "spontaneous");
678 lua_pushcfunction(L, LuaBinder< QEvent >::__LuaWrapCall__ignore);
679 lua_setfield(L, -2, "ignore");
680 LuaBinder< QEvent >::lqt_pushenum_Type(L);
681 lua_setfield(L, -2, "Type");
682 lua_newtable(L);
683 lua_setfield(L, -2, "__base");
684 lua_pushcfunction(L, lqtL_newindex);
685 lua_setfield(L, -2, "__newindex");
686 lua_pushcfunction(L, lqtL_index);
687 lua_setfield(L, -2, "__index");
688 lua_pushcfunction(L, lqtL_gc);
689 lua_setfield(L, -2, "__gc");
690 lua_pushstring(L, "QEvent");
691 lua_setfield(L, -2, "__qtype");
692 lua_setglobal(L, "QEvent");
693 } else {
694 lua_pop(L, 1);
696 return 0;