Initial commit
[Leditor.git] / src / lqt_bind_QApplication.cpp
blobd68a414b52d97f660c0daf1d8574cf5946ba6836
1 #include "lqt_bind_QApplication.hpp"
2 #include <QFont>
3 #include <QFontMetrics>
4 #include <QPalette>
7 int LuaBinder< QApplication >::__LuaWrapCall__setWheelScrollLines (lua_State *L) {
8 int arg1 = lua_tointeger(L, 1);
9 QApplication::setWheelScrollLines(arg1);
10 return 0;
12 int LuaBinder< QApplication >::__LuaWrapCall__styleSheet (lua_State *L) {
13 QApplication *& __lua__obj = *static_cast<QApplication**>(lqtL_checkudata(L, 1, "QApplication*"));
14 if (__lua__obj==0) {
15 lua_pushstring(L, "trying to reference deleted pointer");
16 lua_error(L);
17 return 0;
19 QString ret = __lua__obj->QApplication::styleSheet();
20 lua_pushlstring(L, ret.toAscii().data(), ret.toAscii().size());
21 return 1;
23 int LuaBinder< QApplication >::__LuaWrapCall__colorSpec (lua_State *L) {
24 int ret = QApplication::colorSpec();
25 lua_pushinteger(L, ret);
26 return 1;
28 int LuaBinder< QApplication >::__LuaWrapCall__doubleClickInterval (lua_State *L) {
29 int ret = QApplication::doubleClickInterval();
30 lua_pushinteger(L, ret);
31 return 1;
33 int LuaBinder< QApplication >::__LuaWrapCall__activePopupWidget (lua_State *L) {
34 QWidget * ret = QApplication::activePopupWidget();
35 lqtL_pushudata(L, ret, "QWidget*");
36 return 1;
38 int LuaBinder< QApplication >::__LuaWrapCall__setStyle__OverloadedVersion__1 (lua_State *L) {
39 QStyle * arg1 = *static_cast<QStyle**>(lqtL_checkudata(L, 1, "QStyle*"));
40 QApplication::setStyle(arg1);
41 return 0;
43 int LuaBinder< QApplication >::__LuaWrapCall__setStyle__OverloadedVersion__2 (lua_State *L) {
44 const QString& arg1 = QString::fromAscii(lua_tostring(L, 1), lua_objlen(L, 1));
45 QStyle * ret = QApplication::setStyle(arg1);
46 lqtL_pushudata(L, ret, "QStyle*");
47 return 1;
49 int LuaBinder< QApplication >::__LuaWrapCall__setStyle (lua_State *L) {
50 int score[3];
51 const int premium = 11+lua_gettop(L);
52 score[1] = 0;
53 if (lqtL_testudata(L, 1, "QStyle*")) {
54 score[1] += premium;
55 } else if (false) {
56 score[1] += premium-1; // table: 0xb5d6b0;
57 } else {
58 score[1] -= premium*premium;
60 score[2] = 0;
61 if ((lua_type(L, 1)==LUA_TSTRING)) {
62 score[2] += premium;
63 } else if (false) {
64 score[2] += premium-1; // table: 0xb5e080;
65 } else {
66 score[2] -= premium*premium;
68 int best = 1;
69 for (int i=1;i<=2;i++) {
70 if (score[best] < score[i]) { best = i; }
72 switch (best) {
73 case 1: return __LuaWrapCall__setStyle__OverloadedVersion__1(L); break;
74 case 2: return __LuaWrapCall__setStyle__OverloadedVersion__2(L); break;
76 lua_pushstring(L, "no overload of function __LuaWrapCall__setStyle matching arguments");
77 lua_error(L);
78 return 0;
80 int LuaBinder< QApplication >::__LuaWrapCall__keyboardInputDirection (lua_State *L) {
81 Qt::LayoutDirection ret = QApplication::keyboardInputDirection();
82 lqtL_pushenum(L, ret, "Qt::LayoutDirection");
83 return 1;
85 int LuaBinder< QApplication >::__LuaWrapCall__tr__OverloadedVersion__1 (lua_State *L) {
86 const char * arg1 = lua_tostring(L, 1);
87 const char * arg2 = (lua_type(L, 2)==LUA_TSTRING)?lua_tostring(L, 2):static_cast< const char * >(0);
88 QString ret = QApplication::tr(arg1, arg2);
89 lua_pushlstring(L, ret.toAscii().data(), ret.toAscii().size());
90 return 1;
92 int LuaBinder< QApplication >::__LuaWrapCall__tr__OverloadedVersion__2 (lua_State *L) {
93 const char * arg1 = lua_tostring(L, 1);
94 const char * arg2 = lua_tostring(L, 2);
95 int arg3 = lua_tointeger(L, 3);
96 QString ret = QApplication::tr(arg1, arg2, arg3);
97 lua_pushlstring(L, ret.toAscii().data(), ret.toAscii().size());
98 return 1;
100 int LuaBinder< QApplication >::__LuaWrapCall__tr (lua_State *L) {
101 int score[3];
102 const int premium = 11+lua_gettop(L);
103 score[1] = 0;
104 if ((lua_type(L, 1)==LUA_TSTRING)) {
105 score[1] += premium;
106 } else if (false) {
107 score[1] += premium-1; // table: 0xb50130;
108 } else {
109 score[1] -= premium*premium;
111 if ((lua_type(L, 2)==LUA_TSTRING)) {
112 score[1] += premium;
113 } else if (true) {
114 score[1] += premium-1; // table: 0xb4fe90;
115 } else {
116 score[1] -= premium*premium;
118 score[2] = 0;
119 if ((lua_type(L, 1)==LUA_TSTRING)) {
120 score[2] += premium;
121 } else if (false) {
122 score[2] += premium-1; // table: 0xb51ba0;
123 } else {
124 score[2] -= premium*premium;
126 if ((lua_type(L, 2)==LUA_TSTRING)) {
127 score[2] += premium;
128 } else if (false) {
129 score[2] += premium-1; // table: 0xb52090;
130 } else {
131 score[2] -= premium*premium;
133 if (lua_isnumber(L, 3)) {
134 score[2] += premium;
135 } else if (false) {
136 score[2] += premium-1; // table: 0xb52440;
137 } else {
138 score[2] -= premium*premium;
140 int best = 1;
141 for (int i=1;i<=2;i++) {
142 if (score[best] < score[i]) { best = i; }
144 switch (best) {
145 case 1: return __LuaWrapCall__tr__OverloadedVersion__1(L); break;
146 case 2: return __LuaWrapCall__tr__OverloadedVersion__2(L); break;
148 lua_pushstring(L, "no overload of function __LuaWrapCall__tr matching arguments");
149 lua_error(L);
150 return 0;
152 int LuaBinder< QApplication >::__LuaWrapCall__sessionId (lua_State *L) {
153 QApplication *& __lua__obj = *static_cast<QApplication**>(lqtL_checkudata(L, 1, "QApplication*"));
154 if (__lua__obj==0) {
155 lua_pushstring(L, "trying to reference deleted pointer");
156 lua_error(L);
157 return 0;
159 QString ret = __lua__obj->QApplication::sessionId();
160 lua_pushlstring(L, ret.toAscii().data(), ret.toAscii().size());
161 return 1;
163 int LuaBinder< QApplication >::__LuaWrapCall__palette__OverloadedVersion__1 (lua_State *L) {
164 QPalette ret = QApplication::palette();
165 lqtL_passudata(L, new QPalette(ret), "QPalette*");
166 return 1;
168 int LuaBinder< QApplication >::__LuaWrapCall__palette__OverloadedVersion__2 (lua_State *L) {
169 const QWidget * arg1 = *static_cast<QWidget**>(lqtL_checkudata(L, 1, "QWidget*"));
170 QPalette ret = QApplication::palette(arg1);
171 lqtL_passudata(L, new QPalette(ret), "QPalette*");
172 return 1;
174 int LuaBinder< QApplication >::__LuaWrapCall__palette__OverloadedVersion__3 (lua_State *L) {
175 const char * arg1 = lua_tostring(L, 1);
176 QPalette ret = QApplication::palette(arg1);
177 lqtL_passudata(L, new QPalette(ret), "QPalette*");
178 return 1;
180 int LuaBinder< QApplication >::__LuaWrapCall__palette (lua_State *L) {
181 int score[4];
182 const int premium = 11+lua_gettop(L);
183 score[1] = 0;
184 score[2] = 0;
185 if (lqtL_testudata(L, 1, "QWidget*")) {
186 score[2] += premium;
187 } else if (false) {
188 score[2] += premium-1; // table: 0xb626f0;
189 } else {
190 score[2] -= premium*premium;
192 score[3] = 0;
193 if ((lua_type(L, 1)==LUA_TSTRING)) {
194 score[3] += premium;
195 } else if (false) {
196 score[3] += premium-1; // table: 0xb630f0;
197 } else {
198 score[3] -= premium*premium;
200 int best = 1;
201 for (int i=1;i<=3;i++) {
202 if (score[best] < score[i]) { best = i; }
204 switch (best) {
205 case 1: return __LuaWrapCall__palette__OverloadedVersion__1(L); break;
206 case 2: return __LuaWrapCall__palette__OverloadedVersion__2(L); break;
207 case 3: return __LuaWrapCall__palette__OverloadedVersion__3(L); break;
209 lua_pushstring(L, "no overload of function __LuaWrapCall__palette matching arguments");
210 lua_error(L);
211 return 0;
213 int LuaBinder< QApplication >::__LuaWrapCall__setStartDragDistance (lua_State *L) {
214 int arg1 = lua_tointeger(L, 1);
215 QApplication::setStartDragDistance(arg1);
216 return 0;
218 int LuaBinder< QApplication >::__LuaWrapCall__style (lua_State *L) {
219 QStyle * ret = QApplication::style();
220 lqtL_pushudata(L, ret, "QStyle*");
221 return 1;
223 int LuaBinder< QApplication >::__LuaWrapCall__setGlobalStrut (lua_State *L) {
224 const QSize& arg1 = **static_cast<QSize**>(lqtL_checkudata(L, 1, "QSize*"));
225 QApplication::setGlobalStrut(arg1);
226 return 0;
228 int LuaBinder< QApplication >::__LuaWrapCall__fontMetrics (lua_State *L) {
229 QFontMetrics ret = QApplication::fontMetrics();
230 lqtL_passudata(L, new QFontMetrics(ret), "QFontMetrics*");
231 return 1;
233 int LuaBinder< QApplication >::__LuaWrapCall__setQuitOnLastWindowClosed (lua_State *L) {
234 bool arg1 = (bool)lua_toboolean(L, 1);
235 QApplication::setQuitOnLastWindowClosed(arg1);
236 return 0;
238 int LuaBinder< QApplication >::__LuaWrapCall__keyboardInputInterval (lua_State *L) {
239 int ret = QApplication::keyboardInputInterval();
240 lua_pushinteger(L, ret);
241 return 1;
243 int LuaBinder< QApplication >::__LuaWrapCall__beep (lua_State *L) {
244 QApplication::beep();
245 return 0;
247 int LuaBinder< QApplication >::__LuaWrapCall__aboutQt (lua_State *L) {
248 QApplication::aboutQt();
249 return 0;
251 int LuaBinder< QApplication >::__LuaWrapCall__startDragTime (lua_State *L) {
252 int ret = QApplication::startDragTime();
253 lua_pushinteger(L, ret);
254 return 1;
256 int LuaBinder< QApplication >::__LuaWrapCall__metaObject (lua_State *L) {
257 QApplication *& __lua__obj = *static_cast<QApplication**>(lqtL_checkudata(L, 1, "QApplication*"));
258 if (__lua__obj==0) {
259 lua_pushstring(L, "trying to reference deleted pointer");
260 lua_error(L);
261 return 0;
263 const QMetaObject * ret = __lua__obj->QApplication::metaObject();
264 lqtL_pushudata(L, ret, "QMetaObject*");
265 return 1;
267 int LuaBinder< QApplication >::__LuaWrapCall__delete (lua_State *L) {
268 QApplication *& __lua__obj = *static_cast<QApplication**>(lqtL_checkudata(L, 1, "QApplication*"));
269 if (__lua__obj==0) {
270 lua_pushstring(L, "trying to reference deleted pointer");
271 lua_error(L);
272 return 0;
274 delete __lua__obj;
275 __lua__obj = 0;
276 return 0;
278 int LuaBinder< QApplication >::__LuaWrapCall__mouseButtons (lua_State *L) {
279 QFlags<Qt::MouseButton> ret = QApplication::mouseButtons();
280 lqtL_passudata(L, new QFlags<Qt::MouseButton>(ret), "QFlags<Qt::MouseButton>*");
281 return 1;
283 int LuaBinder< QApplication >::__LuaWrapCall__keyboardModifiers (lua_State *L) {
284 QFlags<Qt::KeyboardModifier> ret = QApplication::keyboardModifiers();
285 lqtL_passudata(L, new QFlags<Qt::KeyboardModifier>(ret), "QFlags<Qt::KeyboardModifier>*");
286 return 1;
288 int LuaBinder< QApplication >::__LuaWrapCall__setOverrideCursor (lua_State *L) {
289 const QCursor& arg1 = **static_cast<QCursor**>(lqtL_checkudata(L, 1, "QCursor*"));
290 QApplication::setOverrideCursor(arg1);
291 return 0;
293 int LuaBinder< QApplication >::__LuaWrapCall__focusWidget (lua_State *L) {
294 QWidget * ret = QApplication::focusWidget();
295 lqtL_pushudata(L, ret, "QWidget*");
296 return 1;
298 int LuaBinder< QApplication >::__LuaWrapCall__overrideCursor (lua_State *L) {
299 QCursor * ret = QApplication::overrideCursor();
300 lqtL_pushudata(L, ret, "QCursor*");
301 return 1;
303 int LuaBinder< QApplication >::__LuaWrapCall__exec (lua_State *L) {
304 int ret = QApplication::exec();
305 lua_pushinteger(L, ret);
306 return 1;
308 int LuaBinder< QApplication >::__LuaWrapCall__setEffectEnabled (lua_State *L) {
309 Qt::UIEffect arg1 = static_cast<Qt::UIEffect>(lqtL_toenum(L, 1, "Qt::UIEffect"));
310 bool arg2 = lua_isboolean(L, 2)?(bool)lua_toboolean(L, 2):true;
311 QApplication::setEffectEnabled(arg1, arg2);
312 return 0;
314 int LuaBinder< QApplication >::__LuaWrapCall__saveState (lua_State *L) {
315 QApplication *& __lua__obj = *static_cast<QApplication**>(lqtL_checkudata(L, 1, "QApplication*"));
316 if (__lua__obj==0) {
317 lua_pushstring(L, "trying to reference deleted pointer");
318 lua_error(L);
319 return 0;
321 QSessionManager& arg1 = **static_cast<QSessionManager**>(lqtL_checkudata(L, 2, "QSessionManager*"));
322 __lua__obj->QApplication::saveState(arg1);
323 return 0;
325 int LuaBinder< QApplication >::__LuaWrapCall__setDesktopSettingsAware (lua_State *L) {
326 bool arg1 = (bool)lua_toboolean(L, 1);
327 QApplication::setDesktopSettingsAware(arg1);
328 return 0;
330 int LuaBinder< QApplication >::__LuaWrapCall__sessionKey (lua_State *L) {
331 QApplication *& __lua__obj = *static_cast<QApplication**>(lqtL_checkudata(L, 1, "QApplication*"));
332 if (__lua__obj==0) {
333 lua_pushstring(L, "trying to reference deleted pointer");
334 lua_error(L);
335 return 0;
337 QString ret = __lua__obj->QApplication::sessionKey();
338 lua_pushlstring(L, ret.toAscii().data(), ret.toAscii().size());
339 return 1;
341 int LuaBinder< QApplication >::__LuaWrapCall__trUtf8__OverloadedVersion__1 (lua_State *L) {
342 const char * arg1 = lua_tostring(L, 1);
343 const char * arg2 = (lua_type(L, 2)==LUA_TSTRING)?lua_tostring(L, 2):static_cast< const char * >(0);
344 QString ret = QApplication::trUtf8(arg1, arg2);
345 lua_pushlstring(L, ret.toAscii().data(), ret.toAscii().size());
346 return 1;
348 int LuaBinder< QApplication >::__LuaWrapCall__trUtf8__OverloadedVersion__2 (lua_State *L) {
349 const char * arg1 = lua_tostring(L, 1);
350 const char * arg2 = lua_tostring(L, 2);
351 int arg3 = lua_tointeger(L, 3);
352 QString ret = QApplication::trUtf8(arg1, arg2, arg3);
353 lua_pushlstring(L, ret.toAscii().data(), ret.toAscii().size());
354 return 1;
356 int LuaBinder< QApplication >::__LuaWrapCall__trUtf8 (lua_State *L) {
357 int score[3];
358 const int premium = 11+lua_gettop(L);
359 score[1] = 0;
360 if ((lua_type(L, 1)==LUA_TSTRING)) {
361 score[1] += premium;
362 } else if (false) {
363 score[1] += premium-1; // table: 0xb50ec0;
364 } else {
365 score[1] -= premium*premium;
367 if ((lua_type(L, 2)==LUA_TSTRING)) {
368 score[1] += premium;
369 } else if (true) {
370 score[1] += premium-1; // table: 0xb50a20;
371 } else {
372 score[1] -= premium*premium;
374 score[2] = 0;
375 if ((lua_type(L, 1)==LUA_TSTRING)) {
376 score[2] += premium;
377 } else if (false) {
378 score[2] += premium-1; // table: 0xb52cc0;
379 } else {
380 score[2] -= premium*premium;
382 if ((lua_type(L, 2)==LUA_TSTRING)) {
383 score[2] += premium;
384 } else if (false) {
385 score[2] += premium-1; // table: 0xb523e0;
386 } else {
387 score[2] -= premium*premium;
389 if (lua_isnumber(L, 3)) {
390 score[2] += premium;
391 } else if (false) {
392 score[2] += premium-1; // table: 0xb53140;
393 } else {
394 score[2] -= premium*premium;
396 int best = 1;
397 for (int i=1;i<=2;i++) {
398 if (score[best] < score[i]) { best = i; }
400 switch (best) {
401 case 1: return __LuaWrapCall__trUtf8__OverloadedVersion__1(L); break;
402 case 2: return __LuaWrapCall__trUtf8__OverloadedVersion__2(L); break;
404 lua_pushstring(L, "no overload of function __LuaWrapCall__trUtf8 matching arguments");
405 lua_error(L);
406 return 0;
408 int LuaBinder< QApplication >::__LuaWrapCall__topLevelWidgets (lua_State *L) {
409 QList<QWidget*> ret = QApplication::topLevelWidgets();
410 lqtL_passudata(L, new QList<QWidget*>(ret), "QList<QWidget*>*");
411 return 1;
413 int LuaBinder< QApplication >::__LuaWrapCall__desktop (lua_State *L) {
414 QDesktopWidget * ret = QApplication::desktop();
415 lqtL_pushudata(L, ret, "QDesktopWidget*");
416 return 1;
418 int LuaBinder< QApplication >::__LuaWrapCall__quitOnLastWindowClosed (lua_State *L) {
419 bool ret = QApplication::quitOnLastWindowClosed();
420 lua_pushboolean(L, ret);
421 return 1;
423 int LuaBinder< QApplication >::__LuaWrapCall__setPalette (lua_State *L) {
424 const QPalette& arg1 = **static_cast<QPalette**>(lqtL_checkudata(L, 1, "QPalette*"));
425 const char * arg2 = (lua_type(L, 2)==LUA_TSTRING)?lua_tostring(L, 2):static_cast< const char * >(0);
426 QApplication::setPalette(arg1, arg2);
427 return 0;
429 int LuaBinder< QApplication >::__LuaWrapCall__isLeftToRight (lua_State *L) {
430 bool ret = QApplication::isLeftToRight();
431 lua_pushboolean(L, ret);
432 return 1;
434 int LuaBinder< QApplication >::__LuaWrapCall__layoutDirection (lua_State *L) {
435 Qt::LayoutDirection ret = QApplication::layoutDirection();
436 lqtL_pushenum(L, ret, "Qt::LayoutDirection");
437 return 1;
439 int LuaBinder< QApplication >::__LuaWrapCall__keyboardInputLocale (lua_State *L) {
440 QLocale ret = QApplication::keyboardInputLocale();
441 lqtL_passudata(L, new QLocale(ret), "QLocale*");
442 return 1;
444 int LuaBinder< QApplication >::__LuaWrapCall__new__OverloadedVersion__1 (lua_State *L) {
445 int& arg1 = lqtL_tointref(L, 1);
446 char * * arg2 = lqtL_toarguments(L, 2);
447 int arg3 = lua_isnumber(L, 3)?lua_tointeger(L, 3):static_cast< int >(262913);
448 QApplication * ret = new LuaBinder< QApplication >(L, arg1, arg2, arg3);
449 lqtL_passudata(L, ret, "QApplication*");
450 return 1;
452 int LuaBinder< QApplication >::__LuaWrapCall__new__OverloadedVersion__2 (lua_State *L) {
453 int& arg1 = lqtL_tointref(L, 1);
454 char * * arg2 = lqtL_toarguments(L, 2);
455 bool arg3 = (bool)lua_toboolean(L, 3);
456 int arg4 = lua_isnumber(L, 4)?lua_tointeger(L, 4):static_cast< int >(262913);
457 QApplication * ret = new LuaBinder< QApplication >(L, arg1, arg2, arg3, arg4);
458 lqtL_passudata(L, ret, "QApplication*");
459 return 1;
461 int LuaBinder< QApplication >::__LuaWrapCall__new__OverloadedVersion__3 (lua_State *L) {
462 int& arg1 = lqtL_tointref(L, 1);
463 char * * arg2 = lqtL_toarguments(L, 2);
464 QApplication::Type arg3 = static_cast<QApplication::Type>(lqtL_toenum(L, 3, "QApplication::Type"));
465 int arg4 = lua_isnumber(L, 4)?lua_tointeger(L, 4):static_cast< int >(262913);
466 QApplication * ret = new LuaBinder< QApplication >(L, arg1, arg2, arg3, arg4);
467 lqtL_passudata(L, ret, "QApplication*");
468 return 1;
470 int LuaBinder< QApplication >::__LuaWrapCall__new__OverloadedVersion__4 (lua_State *L) {
471 _XDisplay * arg1 = *static_cast<_XDisplay**>(lqtL_checkudata(L, 1, "_XDisplay*"));
472 long unsigned int arg2 = lua_isnumber(L, 2)?lua_tointeger(L, 2):static_cast< long unsigned int >(0);
473 long unsigned int arg3 = lua_isnumber(L, 3)?lua_tointeger(L, 3):static_cast< long unsigned int >(0);
474 int arg4 = lua_isnumber(L, 4)?lua_tointeger(L, 4):static_cast< int >(262913);
475 QApplication * ret = new LuaBinder< QApplication >(L, arg1, arg2, arg3, arg4);
476 lqtL_passudata(L, ret, "QApplication*");
477 return 1;
479 int LuaBinder< QApplication >::__LuaWrapCall__new__OverloadedVersion__5 (lua_State *L) {
480 _XDisplay * arg1 = *static_cast<_XDisplay**>(lqtL_checkudata(L, 1, "_XDisplay*"));
481 int& arg2 = lqtL_tointref(L, 2);
482 char * * arg3 = lqtL_toarguments(L, 3);
483 long unsigned int arg4 = lua_isnumber(L, 4)?lua_tointeger(L, 4):static_cast< long unsigned int >(0);
484 long unsigned int arg5 = lua_isnumber(L, 5)?lua_tointeger(L, 5):static_cast< long unsigned int >(0);
485 int arg6 = lua_isnumber(L, 6)?lua_tointeger(L, 6):static_cast< int >(262913);
486 QApplication * ret = new LuaBinder< QApplication >(L, arg1, arg2, arg3, arg4, arg5, arg6);
487 lqtL_passudata(L, ret, "QApplication*");
488 return 1;
490 int LuaBinder< QApplication >::__LuaWrapCall__new (lua_State *L) {
491 int score[6];
492 const int premium = 11+lua_gettop(L);
493 score[1] = 0;
494 if (lua_isnumber(L, 1)) {
495 score[1] += premium;
496 } else if (false) {
497 score[1] += premium-1; // table: 0xb54de0;
498 } else {
499 score[1] -= premium*premium;
501 if (lqtL_testarguments(L, 2)) {
502 score[1] += premium;
503 } else if (false) {
504 score[1] += premium-1; // table: 0xb54aa0;
505 } else {
506 score[1] -= premium*premium;
508 if (lua_isnumber(L, 3)) {
509 score[1] += premium;
510 } else if (true) {
511 score[1] += premium-1; // table: 0xb55290;
512 } else {
513 score[1] -= premium*premium;
515 score[2] = 0;
516 if (lua_isnumber(L, 1)) {
517 score[2] += premium;
518 } else if (false) {
519 score[2] += premium-1; // table: 0xb56080;
520 } else {
521 score[2] -= premium*premium;
523 if (lqtL_testarguments(L, 2)) {
524 score[2] += premium;
525 } else if (false) {
526 score[2] += premium-1; // table: 0xb55d70;
527 } else {
528 score[2] -= premium*premium;
530 if (lua_isboolean(L, 3)) {
531 score[2] += premium;
532 } else if (false) {
533 score[2] += premium-1; // table: 0xb56530;
534 } else {
535 score[2] -= premium*premium;
537 if (lua_isnumber(L, 4)) {
538 score[2] += premium;
539 } else if (true) {
540 score[2] += premium-1; // table: 0xb56e00;
541 } else {
542 score[2] -= premium*premium;
544 score[3] = 0;
545 if (lua_isnumber(L, 1)) {
546 score[3] += premium;
547 } else if (false) {
548 score[3] += premium-1; // table: 0xb576d0;
549 } else {
550 score[3] -= premium*premium;
552 if (lqtL_testarguments(L, 2)) {
553 score[3] += premium;
554 } else if (false) {
555 score[3] += premium-1; // table: 0xb573f0;
556 } else {
557 score[3] -= premium*premium;
559 if (lqtL_isenum(L, 3, "QApplication::Type")) {
560 score[3] += premium;
561 } else if (false) {
562 score[3] += premium-1; // table: 0xb57fa0;
563 } else {
564 score[3] -= premium*premium;
566 if (lua_isnumber(L, 4)) {
567 score[3] += premium;
568 } else if (true) {
569 score[3] += premium-1; // table: 0xb57f40;
570 } else {
571 score[3] -= premium*premium;
573 score[4] = 0;
574 if (lqtL_testudata(L, 1, "_XDisplay*")) {
575 score[4] += premium;
576 } else if (false) {
577 score[4] += premium-1; // table: 0xb58c30;
578 } else {
579 score[4] -= premium*premium;
581 if (lua_isnumber(L, 2)) {
582 score[4] += premium;
583 } else if (true) {
584 score[4] += premium-1; // table: 0xb58950;
585 } else {
586 score[4] -= premium*premium;
588 if (lua_isnumber(L, 3)) {
589 score[4] += premium;
590 } else if (true) {
591 score[4] += premium-1; // table: 0xb59180;
592 } else {
593 score[4] -= premium*premium;
595 if (lua_isnumber(L, 4)) {
596 score[4] += premium;
597 } else if (true) {
598 score[4] += premium-1; // table: 0xb59ad0;
599 } else {
600 score[4] -= premium*premium;
602 score[5] = 0;
603 if (lqtL_testudata(L, 1, "_XDisplay*")) {
604 score[5] += premium;
605 } else if (false) {
606 score[5] += premium-1; // table: 0xb5a3b0;
607 } else {
608 score[5] -= premium*premium;
610 if (lua_isnumber(L, 2)) {
611 score[5] += premium;
612 } else if (false) {
613 score[5] += premium-1; // table: 0xb5a0c0;
614 } else {
615 score[5] -= premium*premium;
617 if (lqtL_testarguments(L, 3)) {
618 score[5] += premium;
619 } else if (false) {
620 score[5] += premium-1; // table: 0xb5a870;
621 } else {
622 score[5] -= premium*premium;
624 if (lua_isnumber(L, 4)) {
625 score[5] += premium;
626 } else if (true) {
627 score[5] += premium-1; // table: 0xb5b0d0;
628 } else {
629 score[5] -= premium*premium;
631 if (lua_isnumber(L, 5)) {
632 score[5] += premium;
633 } else if (true) {
634 score[5] += premium-1; // table: 0xb5b480;
635 } else {
636 score[5] -= premium*premium;
638 if (lua_isnumber(L, 6)) {
639 score[5] += premium;
640 } else if (true) {
641 score[5] += premium-1; // table: 0xb5b020;
642 } else {
643 score[5] -= premium*premium;
645 int best = 1;
646 for (int i=1;i<=5;i++) {
647 if (score[best] < score[i]) { best = i; }
649 switch (best) {
650 case 1: return __LuaWrapCall__new__OverloadedVersion__1(L); break;
651 case 2: return __LuaWrapCall__new__OverloadedVersion__2(L); break;
652 case 3: return __LuaWrapCall__new__OverloadedVersion__3(L); break;
653 case 4: return __LuaWrapCall__new__OverloadedVersion__4(L); break;
654 case 5: return __LuaWrapCall__new__OverloadedVersion__5(L); break;
656 lua_pushstring(L, "no overload of function __LuaWrapCall__new matching arguments");
657 lua_error(L);
658 return 0;
660 int LuaBinder< QApplication >::__LuaWrapCall__wheelScrollLines (lua_State *L) {
661 int ret = QApplication::wheelScrollLines();
662 lua_pushinteger(L, ret);
663 return 1;
665 int LuaBinder< QApplication >::__LuaWrapCall__type (lua_State *L) {
666 QApplication::Type ret = QApplication::type();
667 lqtL_pushenum(L, ret, "QApplication::Type");
668 return 1;
670 int LuaBinder< QApplication >::__LuaWrapCall__syncX (lua_State *L) {
671 QApplication::syncX();
672 return 0;
674 int LuaBinder< QApplication >::__LuaWrapCall__setDoubleClickInterval (lua_State *L) {
675 int arg1 = lua_tointeger(L, 1);
676 QApplication::setDoubleClickInterval(arg1);
677 return 0;
679 int LuaBinder< QApplication >::__LuaWrapCall__setColorSpec (lua_State *L) {
680 int arg1 = lua_tointeger(L, 1);
681 QApplication::setColorSpec(arg1);
682 return 0;
684 int LuaBinder< QApplication >::__LuaWrapCall__windowIcon (lua_State *L) {
685 QIcon ret = QApplication::windowIcon();
686 lqtL_passudata(L, new QIcon(ret), "QIcon*");
687 return 1;
689 int LuaBinder< QApplication >::__LuaWrapCall__restoreOverrideCursor (lua_State *L) {
690 QApplication::restoreOverrideCursor();
691 return 0;
693 int LuaBinder< QApplication >::__LuaWrapCall__setKeyboardInputInterval (lua_State *L) {
694 int arg1 = lua_tointeger(L, 1);
695 QApplication::setKeyboardInputInterval(arg1);
696 return 0;
698 int LuaBinder< QApplication >::__LuaWrapCall__setActiveWindow (lua_State *L) {
699 QWidget * arg1 = *static_cast<QWidget**>(lqtL_checkudata(L, 1, "QWidget*"));
700 QApplication::setActiveWindow(arg1);
701 return 0;
703 int LuaBinder< QApplication >::__LuaWrapCall__cursorFlashTime (lua_State *L) {
704 int ret = QApplication::cursorFlashTime();
705 lua_pushinteger(L, ret);
706 return 1;
708 int LuaBinder< QApplication >::__LuaWrapCall__globalStrut (lua_State *L) {
709 QSize ret = QApplication::globalStrut();
710 lqtL_passudata(L, new QSize(ret), "QSize*");
711 return 1;
713 int LuaBinder< QApplication >::__LuaWrapCall__font__OverloadedVersion__1 (lua_State *L) {
714 QFont ret = QApplication::font();
715 lqtL_passudata(L, new QFont(ret), "QFont*");
716 return 1;
718 int LuaBinder< QApplication >::__LuaWrapCall__font__OverloadedVersion__2 (lua_State *L) {
719 const QWidget * arg1 = *static_cast<QWidget**>(lqtL_checkudata(L, 1, "QWidget*"));
720 QFont ret = QApplication::font(arg1);
721 lqtL_passudata(L, new QFont(ret), "QFont*");
722 return 1;
724 int LuaBinder< QApplication >::__LuaWrapCall__font__OverloadedVersion__3 (lua_State *L) {
725 const char * arg1 = lua_tostring(L, 1);
726 QFont ret = QApplication::font(arg1);
727 lqtL_passudata(L, new QFont(ret), "QFont*");
728 return 1;
730 int LuaBinder< QApplication >::__LuaWrapCall__font (lua_State *L) {
731 int score[4];
732 const int premium = 11+lua_gettop(L);
733 score[1] = 0;
734 score[2] = 0;
735 if (lqtL_testudata(L, 1, "QWidget*")) {
736 score[2] += premium;
737 } else if (false) {
738 score[2] += premium-1; // table: 0xb651c0;
739 } else {
740 score[2] -= premium*premium;
742 score[3] = 0;
743 if ((lua_type(L, 1)==LUA_TSTRING)) {
744 score[3] += premium;
745 } else if (false) {
746 score[3] += premium-1; // table: 0xb65b50;
747 } else {
748 score[3] -= premium*premium;
750 int best = 1;
751 for (int i=1;i<=3;i++) {
752 if (score[best] < score[i]) { best = i; }
754 switch (best) {
755 case 1: return __LuaWrapCall__font__OverloadedVersion__1(L); break;
756 case 2: return __LuaWrapCall__font__OverloadedVersion__2(L); break;
757 case 3: return __LuaWrapCall__font__OverloadedVersion__3(L); break;
759 lua_pushstring(L, "no overload of function __LuaWrapCall__font matching arguments");
760 lua_error(L);
761 return 0;
763 int LuaBinder< QApplication >::__LuaWrapCall__desktopSettingsAware (lua_State *L) {
764 bool ret = QApplication::desktopSettingsAware();
765 lua_pushboolean(L, ret);
766 return 1;
768 int LuaBinder< QApplication >::__LuaWrapCall__topLevelAt__OverloadedVersion__1 (lua_State *L) {
769 const QPoint& arg1 = **static_cast<QPoint**>(lqtL_checkudata(L, 1, "QPoint*"));
770 QWidget * ret = QApplication::topLevelAt(arg1);
771 lqtL_pushudata(L, ret, "QWidget*");
772 return 1;
774 int LuaBinder< QApplication >::__LuaWrapCall__topLevelAt__OverloadedVersion__2 (lua_State *L) {
775 int arg1 = lua_tointeger(L, 1);
776 int arg2 = lua_tointeger(L, 2);
777 QWidget * ret = QApplication::topLevelAt(arg1, arg2);
778 lqtL_pushudata(L, ret, "QWidget*");
779 return 1;
781 int LuaBinder< QApplication >::__LuaWrapCall__topLevelAt (lua_State *L) {
782 int score[3];
783 const int premium = 11+lua_gettop(L);
784 score[1] = 0;
785 if (lqtL_testudata(L, 1, "QPoint*")) {
786 score[1] += premium;
787 } else if (false) {
788 score[1] += premium-1; // table: 0xb6efe0;
789 } else {
790 score[1] -= premium*premium;
792 score[2] = 0;
793 if (lua_isnumber(L, 1)) {
794 score[2] += premium;
795 } else if (false) {
796 score[2] += premium-1; // table: 0xb6fa60;
797 } else {
798 score[2] -= premium*premium;
800 if (lua_isnumber(L, 2)) {
801 score[2] += premium;
802 } else if (false) {
803 score[2] += premium-1; // table: 0xb6ff80;
804 } else {
805 score[2] -= premium*premium;
807 int best = 1;
808 for (int i=1;i<=2;i++) {
809 if (score[best] < score[i]) { best = i; }
811 switch (best) {
812 case 1: return __LuaWrapCall__topLevelAt__OverloadedVersion__1(L); break;
813 case 2: return __LuaWrapCall__topLevelAt__OverloadedVersion__2(L); break;
815 lua_pushstring(L, "no overload of function __LuaWrapCall__topLevelAt matching arguments");
816 lua_error(L);
817 return 0;
819 int LuaBinder< QApplication >::__LuaWrapCall__setCursorFlashTime (lua_State *L) {
820 int arg1 = lua_tointeger(L, 1);
821 QApplication::setCursorFlashTime(arg1);
822 return 0;
824 int LuaBinder< QApplication >::__LuaWrapCall__setInputContext (lua_State *L) {
825 QApplication *& __lua__obj = *static_cast<QApplication**>(lqtL_checkudata(L, 1, "QApplication*"));
826 if (__lua__obj==0) {
827 lua_pushstring(L, "trying to reference deleted pointer");
828 lua_error(L);
829 return 0;
831 QInputContext * arg1 = *static_cast<QInputContext**>(lqtL_checkudata(L, 2, "QInputContext*"));
832 __lua__obj->QApplication::setInputContext(arg1);
833 return 0;
835 int LuaBinder< QApplication >::__LuaWrapCall__startDragDistance (lua_State *L) {
836 int ret = QApplication::startDragDistance();
837 lua_pushinteger(L, ret);
838 return 1;
840 int LuaBinder< QApplication >::__LuaWrapCall__clipboard (lua_State *L) {
841 QClipboard * ret = QApplication::clipboard();
842 lqtL_pushudata(L, ret, "QClipboard*");
843 return 1;
845 int LuaBinder< QApplication >::__LuaWrapCall__activeWindow (lua_State *L) {
846 QWidget * ret = QApplication::activeWindow();
847 lqtL_pushudata(L, ret, "QWidget*");
848 return 1;
850 int LuaBinder< QApplication >::__LuaWrapCall__changeOverrideCursor (lua_State *L) {
851 const QCursor& arg1 = **static_cast<QCursor**>(lqtL_checkudata(L, 1, "QCursor*"));
852 QApplication::changeOverrideCursor(arg1);
853 return 0;
855 int LuaBinder< QApplication >::__LuaWrapCall__isSessionRestored (lua_State *L) {
856 QApplication *& __lua__obj = *static_cast<QApplication**>(lqtL_checkudata(L, 1, "QApplication*"));
857 if (__lua__obj==0) {
858 lua_pushstring(L, "trying to reference deleted pointer");
859 lua_error(L);
860 return 0;
862 bool ret = __lua__obj->QApplication::isSessionRestored();
863 lua_pushboolean(L, ret);
864 return 1;
866 int LuaBinder< QApplication >::__LuaWrapCall__activeModalWidget (lua_State *L) {
867 QWidget * ret = QApplication::activeModalWidget();
868 lqtL_pushudata(L, ret, "QWidget*");
869 return 1;
871 int LuaBinder< QApplication >::__LuaWrapCall__isEffectEnabled (lua_State *L) {
872 Qt::UIEffect arg1 = static_cast<Qt::UIEffect>(lqtL_toenum(L, 1, "Qt::UIEffect"));
873 bool ret = QApplication::isEffectEnabled(arg1);
874 lua_pushboolean(L, ret);
875 return 1;
877 int LuaBinder< QApplication >::__LuaWrapCall__inputContext (lua_State *L) {
878 QApplication *& __lua__obj = *static_cast<QApplication**>(lqtL_checkudata(L, 1, "QApplication*"));
879 if (__lua__obj==0) {
880 lua_pushstring(L, "trying to reference deleted pointer");
881 lua_error(L);
882 return 0;
884 QInputContext * ret = __lua__obj->QApplication::inputContext();
885 lqtL_pushudata(L, ret, "QInputContext*");
886 return 1;
888 int LuaBinder< QApplication >::__LuaWrapCall__widgetAt__OverloadedVersion__1 (lua_State *L) {
889 const QPoint& arg1 = **static_cast<QPoint**>(lqtL_checkudata(L, 1, "QPoint*"));
890 QWidget * ret = QApplication::widgetAt(arg1);
891 lqtL_pushudata(L, ret, "QWidget*");
892 return 1;
894 int LuaBinder< QApplication >::__LuaWrapCall__widgetAt__OverloadedVersion__2 (lua_State *L) {
895 int arg1 = lua_tointeger(L, 1);
896 int arg2 = lua_tointeger(L, 2);
897 QWidget * ret = QApplication::widgetAt(arg1, arg2);
898 lqtL_pushudata(L, ret, "QWidget*");
899 return 1;
901 int LuaBinder< QApplication >::__LuaWrapCall__widgetAt (lua_State *L) {
902 int score[3];
903 const int premium = 11+lua_gettop(L);
904 score[1] = 0;
905 if (lqtL_testudata(L, 1, "QPoint*")) {
906 score[1] += premium;
907 } else if (false) {
908 score[1] += premium-1; // table: 0xb6d6d0;
909 } else {
910 score[1] -= premium*premium;
912 score[2] = 0;
913 if (lua_isnumber(L, 1)) {
914 score[2] += premium;
915 } else if (false) {
916 score[2] += premium-1; // table: 0xb6e130;
917 } else {
918 score[2] -= premium*premium;
920 if (lua_isnumber(L, 2)) {
921 score[2] += premium;
922 } else if (false) {
923 score[2] += premium-1; // table: 0xb6e640;
924 } else {
925 score[2] -= premium*premium;
927 int best = 1;
928 for (int i=1;i<=2;i++) {
929 if (score[best] < score[i]) { best = i; }
931 switch (best) {
932 case 1: return __LuaWrapCall__widgetAt__OverloadedVersion__1(L); break;
933 case 2: return __LuaWrapCall__widgetAt__OverloadedVersion__2(L); break;
935 lua_pushstring(L, "no overload of function __LuaWrapCall__widgetAt matching arguments");
936 lua_error(L);
937 return 0;
939 int LuaBinder< QApplication >::__LuaWrapCall__setFont (lua_State *L) {
940 const QFont& arg1 = **static_cast<QFont**>(lqtL_checkudata(L, 1, "QFont*"));
941 const char * arg2 = (lua_type(L, 2)==LUA_TSTRING)?lua_tostring(L, 2):static_cast< const char * >(0);
942 QApplication::setFont(arg1, arg2);
943 return 0;
945 int LuaBinder< QApplication >::__LuaWrapCall__setStartDragTime (lua_State *L) {
946 int arg1 = lua_tointeger(L, 1);
947 QApplication::setStartDragTime(arg1);
948 return 0;
950 int LuaBinder< QApplication >::__LuaWrapCall__allWidgets (lua_State *L) {
951 QList<QWidget*> ret = QApplication::allWidgets();
952 lqtL_passudata(L, new QList<QWidget*>(ret), "QList<QWidget*>*");
953 return 1;
955 int LuaBinder< QApplication >::__LuaWrapCall__setWindowIcon (lua_State *L) {
956 const QIcon& arg1 = **static_cast<QIcon**>(lqtL_checkudata(L, 1, "QIcon*"));
957 QApplication::setWindowIcon(arg1);
958 return 0;
960 int LuaBinder< QApplication >::__LuaWrapCall__commitData (lua_State *L) {
961 QApplication *& __lua__obj = *static_cast<QApplication**>(lqtL_checkudata(L, 1, "QApplication*"));
962 if (__lua__obj==0) {
963 lua_pushstring(L, "trying to reference deleted pointer");
964 lua_error(L);
965 return 0;
967 QSessionManager& arg1 = **static_cast<QSessionManager**>(lqtL_checkudata(L, 2, "QSessionManager*"));
968 __lua__obj->QApplication::commitData(arg1);
969 return 0;
971 int LuaBinder< QApplication >::__LuaWrapCall__isRightToLeft (lua_State *L) {
972 bool ret = QApplication::isRightToLeft();
973 lua_pushboolean(L, ret);
974 return 1;
976 int LuaBinder< QApplication >::__LuaWrapCall__notify (lua_State *L) {
977 QApplication *& __lua__obj = *static_cast<QApplication**>(lqtL_checkudata(L, 1, "QApplication*"));
978 if (__lua__obj==0) {
979 lua_pushstring(L, "trying to reference deleted pointer");
980 lua_error(L);
981 return 0;
983 QObject * arg1 = *static_cast<QObject**>(lqtL_checkudata(L, 2, "QObject*"));
984 QEvent * arg2 = *static_cast<QEvent**>(lqtL_checkudata(L, 3, "QEvent*"));
985 bool ret = __lua__obj->QApplication::notify(arg1, arg2);
986 lua_pushboolean(L, ret);
987 return 1;
989 int LuaBinder< QApplication >::__LuaWrapCall__setLayoutDirection (lua_State *L) {
990 Qt::LayoutDirection arg1 = static_cast<Qt::LayoutDirection>(lqtL_toenum(L, 1, "Qt::LayoutDirection"));
991 QApplication::setLayoutDirection(arg1);
992 return 0;
994 int LuaBinder< QApplication >::__LuaWrapCall__closeAllWindows (lua_State *L) {
995 QApplication::closeAllWindows();
996 return 0;
998 int LuaBinder< QApplication >::__LuaWrapCall__alert (lua_State *L) {
999 QWidget * arg1 = *static_cast<QWidget**>(lqtL_checkudata(L, 1, "QWidget*"));
1000 int arg2 = lua_isnumber(L, 2)?lua_tointeger(L, 2):static_cast< int >(0);
1001 QApplication::alert(arg1, arg2);
1002 return 0;
1004 int LuaBinder< QApplication >::__LuaWrapCall__setStyleSheet (lua_State *L) {
1005 QApplication *& __lua__obj = *static_cast<QApplication**>(lqtL_checkudata(L, 1, "QApplication*"));
1006 if (__lua__obj==0) {
1007 lua_pushstring(L, "trying to reference deleted pointer");
1008 lua_error(L);
1009 return 0;
1011 const QString& arg1 = QString::fromAscii(lua_tostring(L, 2), lua_objlen(L, 2));
1012 __lua__obj->QApplication::setStyleSheet(arg1);
1013 return 0;
1015 void LuaBinder< QApplication >::commitData (QSessionManager& arg1) {
1016 bool absorbed = false;
1017 int oldtop = lua_gettop(L);
1018 lqtL_pushudata(L, this, "QApplication*");
1019 if (lua_getmetatable(L, -1)) {
1020 lua_getfield(L, -1, "commitData");
1021 lua_remove(L, -2);
1022 } else {
1023 lua_pushnil(L);
1025 lua_insert(L, -2);
1026 lqtL_pushudata(L, &(arg1), "QSessionManager*");
1027 if (lua_isfunction(L, -1-2)) {
1028 lua_pcall(L, 1+1, 2, 0);
1029 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
1030 lua_pop(L, 1);
1032 if (!absorbed) {
1033 lua_settop(L, oldtop);
1034 this->QApplication::commitData(arg1);
1036 lua_settop(L, oldtop);
1038 bool LuaBinder< QApplication >::notify (QObject * arg1, QEvent * arg2) {
1039 bool absorbed = false;
1040 int oldtop = lua_gettop(L);
1041 lqtL_pushudata(L, this, "QApplication*");
1042 if (lua_getmetatable(L, -1)) {
1043 lua_getfield(L, -1, "notify");
1044 lua_remove(L, -2);
1045 } else {
1046 lua_pushnil(L);
1048 lua_insert(L, -2);
1049 lqtL_pushudata(L, arg1, "QObject*");
1050 lqtL_pushudata(L, arg2, "QEvent*");
1051 if (lua_isfunction(L, -2-2)) {
1052 lua_pcall(L, 2+1, 2, 0);
1053 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
1054 lua_pop(L, 1);
1056 if (!absorbed) {
1057 lua_settop(L, oldtop);
1058 return this->QApplication::notify(arg1, arg2);
1060 bool ret = (bool)lua_toboolean(L, -1);
1061 lua_settop(L, oldtop);
1062 return ret;
1064 bool LuaBinder< QApplication >::eventFilter (QObject * arg1, QEvent * arg2) {
1065 bool absorbed = false;
1066 int oldtop = lua_gettop(L);
1067 lqtL_pushudata(L, this, "QApplication*");
1068 if (lua_getmetatable(L, -1)) {
1069 lua_getfield(L, -1, "eventFilter");
1070 lua_remove(L, -2);
1071 } else {
1072 lua_pushnil(L);
1074 lua_insert(L, -2);
1075 lqtL_pushudata(L, arg1, "QObject*");
1076 lqtL_pushudata(L, arg2, "QEvent*");
1077 if (lua_isfunction(L, -2-2)) {
1078 lua_pcall(L, 2+1, 2, 0);
1079 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
1080 lua_pop(L, 1);
1082 if (!absorbed) {
1083 lua_settop(L, oldtop);
1084 return this->QObject::eventFilter(arg1, arg2);
1086 bool ret = (bool)lua_toboolean(L, -1);
1087 lua_settop(L, oldtop);
1088 return ret;
1090 const QMetaObject * LuaBinder< QApplication >::metaObject () const {
1091 bool absorbed = false;
1092 int oldtop = lua_gettop(L);
1093 lqtL_pushudata(L, this, "QApplication*");
1094 if (lua_getmetatable(L, -1)) {
1095 lua_getfield(L, -1, "metaObject");
1096 lua_remove(L, -2);
1097 } else {
1098 lua_pushnil(L);
1100 lua_insert(L, -2);
1101 if (lua_isfunction(L, -0-2)) {
1102 lua_pcall(L, 0+1, 2, 0);
1103 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
1104 lua_pop(L, 1);
1106 if (!absorbed) {
1107 lua_settop(L, oldtop);
1108 return this->QApplication::metaObject();
1110 const QMetaObject * ret = *static_cast<QMetaObject**>(lqtL_checkudata(L, -1, "QMetaObject*"));
1111 lua_settop(L, oldtop);
1112 return ret;
1114 bool LuaBinder< QApplication >::event (QEvent * arg1) {
1115 bool absorbed = false;
1116 int oldtop = lua_gettop(L);
1117 lqtL_pushudata(L, this, "QApplication*");
1118 if (lua_getmetatable(L, -1)) {
1119 lua_getfield(L, -1, "event");
1120 lua_remove(L, -2);
1121 } else {
1122 lua_pushnil(L);
1124 lua_insert(L, -2);
1125 lqtL_pushudata(L, arg1, "QEvent*");
1126 if (lua_isfunction(L, -1-2)) {
1127 lua_pcall(L, 1+1, 2, 0);
1128 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
1129 lua_pop(L, 1);
1131 if (!absorbed) {
1132 lua_settop(L, oldtop);
1133 return this->QApplication::event(arg1);
1135 bool ret = (bool)lua_toboolean(L, -1);
1136 lua_settop(L, oldtop);
1137 return ret;
1139 void LuaBinder< QApplication >::customEvent (QEvent * arg1) {
1140 bool absorbed = false;
1141 int oldtop = lua_gettop(L);
1142 lqtL_pushudata(L, this, "QApplication*");
1143 if (lua_getmetatable(L, -1)) {
1144 lua_getfield(L, -1, "customEvent");
1145 lua_remove(L, -2);
1146 } else {
1147 lua_pushnil(L);
1149 lua_insert(L, -2);
1150 lqtL_pushudata(L, arg1, "QEvent*");
1151 if (lua_isfunction(L, -1-2)) {
1152 lua_pcall(L, 1+1, 2, 0);
1153 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
1154 lua_pop(L, 1);
1156 if (!absorbed) {
1157 lua_settop(L, oldtop);
1158 this->QObject::customEvent(arg1);
1160 lua_settop(L, oldtop);
1162 void LuaBinder< QApplication >::saveState (QSessionManager& arg1) {
1163 bool absorbed = false;
1164 int oldtop = lua_gettop(L);
1165 lqtL_pushudata(L, this, "QApplication*");
1166 if (lua_getmetatable(L, -1)) {
1167 lua_getfield(L, -1, "saveState");
1168 lua_remove(L, -2);
1169 } else {
1170 lua_pushnil(L);
1172 lua_insert(L, -2);
1173 lqtL_pushudata(L, &(arg1), "QSessionManager*");
1174 if (lua_isfunction(L, -1-2)) {
1175 lua_pcall(L, 1+1, 2, 0);
1176 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
1177 lua_pop(L, 1);
1179 if (!absorbed) {
1180 lua_settop(L, oldtop);
1181 this->QApplication::saveState(arg1);
1183 lua_settop(L, oldtop);
1185 void LuaBinder< QApplication >::disconnectNotify (const char * arg1) {
1186 bool absorbed = false;
1187 int oldtop = lua_gettop(L);
1188 lqtL_pushudata(L, this, "QApplication*");
1189 if (lua_getmetatable(L, -1)) {
1190 lua_getfield(L, -1, "disconnectNotify");
1191 lua_remove(L, -2);
1192 } else {
1193 lua_pushnil(L);
1195 lua_insert(L, -2);
1196 lua_pushstring(L, arg1);
1197 if (lua_isfunction(L, -1-2)) {
1198 lua_pcall(L, 1+1, 2, 0);
1199 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
1200 lua_pop(L, 1);
1202 if (!absorbed) {
1203 lua_settop(L, oldtop);
1204 this->QObject::disconnectNotify(arg1);
1206 lua_settop(L, oldtop);
1208 bool LuaBinder< QApplication >::compressEvent (QEvent * arg1, QObject * arg2, QPostEventList * arg3) {
1209 bool absorbed = false;
1210 int oldtop = lua_gettop(L);
1211 lqtL_pushudata(L, this, "QApplication*");
1212 if (lua_getmetatable(L, -1)) {
1213 lua_getfield(L, -1, "compressEvent");
1214 lua_remove(L, -2);
1215 } else {
1216 lua_pushnil(L);
1218 lua_insert(L, -2);
1219 lqtL_pushudata(L, arg1, "QEvent*");
1220 lqtL_pushudata(L, arg2, "QObject*");
1221 lqtL_pushudata(L, arg3, "QPostEventList*");
1222 if (lua_isfunction(L, -3-2)) {
1223 lua_pcall(L, 3+1, 2, 0);
1224 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
1225 lua_pop(L, 1);
1227 if (!absorbed) {
1228 lua_settop(L, oldtop);
1229 return this->QApplication::compressEvent(arg1, arg2, arg3);
1231 bool ret = (bool)lua_toboolean(L, -1);
1232 lua_settop(L, oldtop);
1233 return ret;
1235 void LuaBinder< QApplication >::timerEvent (QTimerEvent * arg1) {
1236 bool absorbed = false;
1237 int oldtop = lua_gettop(L);
1238 lqtL_pushudata(L, this, "QApplication*");
1239 if (lua_getmetatable(L, -1)) {
1240 lua_getfield(L, -1, "timerEvent");
1241 lua_remove(L, -2);
1242 } else {
1243 lua_pushnil(L);
1245 lua_insert(L, -2);
1246 lqtL_pushudata(L, arg1, "QTimerEvent*");
1247 if (lua_isfunction(L, -1-2)) {
1248 lua_pcall(L, 1+1, 2, 0);
1249 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
1250 lua_pop(L, 1);
1252 if (!absorbed) {
1253 lua_settop(L, oldtop);
1254 this->QObject::timerEvent(arg1);
1256 lua_settop(L, oldtop);
1258 void LuaBinder< QApplication >::childEvent (QChildEvent * arg1) {
1259 bool absorbed = false;
1260 int oldtop = lua_gettop(L);
1261 lqtL_pushudata(L, this, "QApplication*");
1262 if (lua_getmetatable(L, -1)) {
1263 lua_getfield(L, -1, "childEvent");
1264 lua_remove(L, -2);
1265 } else {
1266 lua_pushnil(L);
1268 lua_insert(L, -2);
1269 lqtL_pushudata(L, arg1, "QChildEvent*");
1270 if (lua_isfunction(L, -1-2)) {
1271 lua_pcall(L, 1+1, 2, 0);
1272 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
1273 lua_pop(L, 1);
1275 if (!absorbed) {
1276 lua_settop(L, oldtop);
1277 this->QObject::childEvent(arg1);
1279 lua_settop(L, oldtop);
1281 void LuaBinder< QApplication >::connectNotify (const char * arg1) {
1282 bool absorbed = false;
1283 int oldtop = lua_gettop(L);
1284 lqtL_pushudata(L, this, "QApplication*");
1285 if (lua_getmetatable(L, -1)) {
1286 lua_getfield(L, -1, "connectNotify");
1287 lua_remove(L, -2);
1288 } else {
1289 lua_pushnil(L);
1291 lua_insert(L, -2);
1292 lua_pushstring(L, arg1);
1293 if (lua_isfunction(L, -1-2)) {
1294 lua_pcall(L, 1+1, 2, 0);
1295 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
1296 lua_pop(L, 1);
1298 if (!absorbed) {
1299 lua_settop(L, oldtop);
1300 this->QObject::connectNotify(arg1);
1302 lua_settop(L, oldtop);
1304 LuaBinder< QApplication >:: ~LuaBinder< QApplication > () {
1305 int oldtop = lua_gettop(L);
1306 lqtL_pushudata(L, this, "QApplication*");
1307 lua_getfield(L, -1, "~QApplication");
1309 if (lua_isfunction(L, -1)) {
1310 lua_insert(L, -2);
1311 lua_pcall(L, 1, 1, 0);
1312 } else {
1314 lua_settop(L, oldtop);
1316 int LuaBinder< QApplication >::lqt_pushenum_Type (lua_State *L) {
1317 int enum_table = 0;
1318 lua_getfield(L, LUA_REGISTRYINDEX, LQT_ENUMS);
1319 if (!lua_istable(L, -1)) {
1320 lua_pop(L, 1);
1321 lua_newtable(L);
1322 lua_pushvalue(L, -1);
1323 lua_setfield(L, LUA_REGISTRYINDEX, LQT_ENUMS);
1325 lua_newtable(L);
1326 enum_table = lua_gettop(L);
1327 lua_pushstring(L, "Tty");
1328 lua_rawseti(L, enum_table, 0);
1329 lua_pushinteger(L, 0);
1330 lua_setfield(L, enum_table, "Tty");
1331 lua_pushstring(L, "GuiClient");
1332 lua_rawseti(L, enum_table, 1);
1333 lua_pushinteger(L, 1);
1334 lua_setfield(L, enum_table, "GuiClient");
1335 lua_pushstring(L, "GuiServer");
1336 lua_rawseti(L, enum_table, 2);
1337 lua_pushinteger(L, 2);
1338 lua_setfield(L, enum_table, "GuiServer");
1339 lua_pushcfunction(L, LuaBinder< QApplication >::lqt_pushenum_Type_QFLAGS_CREATOR);
1340 lua_setfield(L, enum_table, "QFlags");
1341 lua_pushvalue(L, -1);
1342 lua_setfield(L, -3, "QApplication::Type");
1343 lua_remove(L, -2);
1344 return 1;
1346 int LuaBinder< QApplication >::lqt_pushenum_Type_QFLAGS_CREATOR (lua_State *L) {
1347 int argn = lua_gettop(L);
1348 int i = 0;
1349 void *p = lua_newuserdata(L, sizeof(QFlags<QApplication::Type>*) + sizeof(QFlags<QApplication::Type>));
1350 QFlags<QApplication::Type> *fl = static_cast<QFlags<QApplication::Type>*>( static_cast<void*>(&static_cast<QFlags<QApplication::Type>**>(p)[1]) );
1351 *(void**)p = fl;
1352 for (i=1;i<=argn;i++) {
1353 *fl |= static_cast<QApplication::Type>(lqtL_toenum(L, i, "QApplication::Type"));
1355 if (luaL_newmetatable(L, "QFlags<QApplication::Type>*")) {
1356 lua_pushstring(L, "QFlags<QApplication::Type>*");
1357 lua_setfield(L, -2, "__qtype");
1359 lua_setmetatable(L, -2);
1360 return 1;
1362 int LuaBinder< QApplication >::lqt_pushenum_ColorSpec (lua_State *L) {
1363 int enum_table = 0;
1364 lua_getfield(L, LUA_REGISTRYINDEX, LQT_ENUMS);
1365 if (!lua_istable(L, -1)) {
1366 lua_pop(L, 1);
1367 lua_newtable(L);
1368 lua_pushvalue(L, -1);
1369 lua_setfield(L, LUA_REGISTRYINDEX, LQT_ENUMS);
1371 lua_newtable(L);
1372 enum_table = lua_gettop(L);
1373 lua_pushstring(L, "NormalColor");
1374 lua_rawseti(L, enum_table, 0);
1375 lua_pushinteger(L, 0);
1376 lua_setfield(L, enum_table, "NormalColor");
1377 lua_pushstring(L, "CustomColor");
1378 lua_rawseti(L, enum_table, 1);
1379 lua_pushinteger(L, 1);
1380 lua_setfield(L, enum_table, "CustomColor");
1381 lua_pushstring(L, "ManyColor");
1382 lua_rawseti(L, enum_table, 2);
1383 lua_pushinteger(L, 2);
1384 lua_setfield(L, enum_table, "ManyColor");
1385 lua_pushcfunction(L, LuaBinder< QApplication >::lqt_pushenum_ColorSpec_QFLAGS_CREATOR);
1386 lua_setfield(L, enum_table, "QFlags");
1387 lua_pushvalue(L, -1);
1388 lua_setfield(L, -3, "QApplication::ColorSpec");
1389 lua_remove(L, -2);
1390 return 1;
1392 int LuaBinder< QApplication >::lqt_pushenum_ColorSpec_QFLAGS_CREATOR (lua_State *L) {
1393 int argn = lua_gettop(L);
1394 int i = 0;
1395 void *p = lua_newuserdata(L, sizeof(QFlags<QApplication::ColorSpec>*) + sizeof(QFlags<QApplication::ColorSpec>));
1396 QFlags<QApplication::ColorSpec> *fl = static_cast<QFlags<QApplication::ColorSpec>*>( static_cast<void*>(&static_cast<QFlags<QApplication::ColorSpec>**>(p)[1]) );
1397 *(void**)p = fl;
1398 for (i=1;i<=argn;i++) {
1399 *fl |= static_cast<QApplication::ColorSpec>(lqtL_toenum(L, i, "QApplication::ColorSpec"));
1401 if (luaL_newmetatable(L, "QFlags<QApplication::ColorSpec>*")) {
1402 lua_pushstring(L, "QFlags<QApplication::ColorSpec>*");
1403 lua_setfield(L, -2, "__qtype");
1405 lua_setmetatable(L, -2);
1406 return 1;
1408 int luaopen_QApplication (lua_State *L) {
1409 if (luaL_newmetatable(L, "QApplication*")) {
1410 lua_pushcfunction(L, LuaBinder< QApplication >::__LuaWrapCall__setWheelScrollLines);
1411 lua_setfield(L, -2, "setWheelScrollLines");
1412 lua_pushcfunction(L, LuaBinder< QApplication >::__LuaWrapCall__styleSheet);
1413 lua_setfield(L, -2, "styleSheet");
1414 lua_pushcfunction(L, LuaBinder< QApplication >::__LuaWrapCall__colorSpec);
1415 lua_setfield(L, -2, "colorSpec");
1416 lua_pushcfunction(L, LuaBinder< QApplication >::__LuaWrapCall__doubleClickInterval);
1417 lua_setfield(L, -2, "doubleClickInterval");
1418 lua_pushcfunction(L, LuaBinder< QApplication >::__LuaWrapCall__activePopupWidget);
1419 lua_setfield(L, -2, "activePopupWidget");
1420 lua_pushcfunction(L, LuaBinder< QApplication >::__LuaWrapCall__setStyle);
1421 lua_setfield(L, -2, "setStyle");
1422 lua_pushcfunction(L, LuaBinder< QApplication >::__LuaWrapCall__keyboardInputDirection);
1423 lua_setfield(L, -2, "keyboardInputDirection");
1424 lua_pushcfunction(L, LuaBinder< QApplication >::__LuaWrapCall__tr);
1425 lua_setfield(L, -2, "tr");
1426 lua_pushcfunction(L, LuaBinder< QApplication >::__LuaWrapCall__sessionId);
1427 lua_setfield(L, -2, "sessionId");
1428 lua_pushcfunction(L, LuaBinder< QApplication >::__LuaWrapCall__palette);
1429 lua_setfield(L, -2, "palette");
1430 lua_pushcfunction(L, LuaBinder< QApplication >::__LuaWrapCall__setStartDragDistance);
1431 lua_setfield(L, -2, "setStartDragDistance");
1432 lua_pushcfunction(L, LuaBinder< QApplication >::__LuaWrapCall__style);
1433 lua_setfield(L, -2, "style");
1434 lua_pushcfunction(L, LuaBinder< QApplication >::__LuaWrapCall__setGlobalStrut);
1435 lua_setfield(L, -2, "setGlobalStrut");
1436 lua_pushcfunction(L, LuaBinder< QApplication >::__LuaWrapCall__fontMetrics);
1437 lua_setfield(L, -2, "fontMetrics");
1438 lua_pushcfunction(L, LuaBinder< QApplication >::__LuaWrapCall__setQuitOnLastWindowClosed);
1439 lua_setfield(L, -2, "setQuitOnLastWindowClosed");
1440 lua_pushcfunction(L, LuaBinder< QApplication >::__LuaWrapCall__keyboardInputInterval);
1441 lua_setfield(L, -2, "keyboardInputInterval");
1442 lua_pushcfunction(L, LuaBinder< QApplication >::__LuaWrapCall__beep);
1443 lua_setfield(L, -2, "beep");
1444 lua_pushcfunction(L, LuaBinder< QApplication >::__LuaWrapCall__aboutQt);
1445 lua_setfield(L, -2, "aboutQt");
1446 lua_pushcfunction(L, LuaBinder< QApplication >::__LuaWrapCall__startDragTime);
1447 lua_setfield(L, -2, "startDragTime");
1448 lua_pushcfunction(L, LuaBinder< QApplication >::__LuaWrapCall__metaObject);
1449 lua_setfield(L, -2, "metaObject");
1450 lua_pushcfunction(L, LuaBinder< QApplication >::__LuaWrapCall__delete);
1451 lua_setfield(L, -2, "delete");
1452 lua_pushcfunction(L, LuaBinder< QApplication >::__LuaWrapCall__mouseButtons);
1453 lua_setfield(L, -2, "mouseButtons");
1454 lua_pushcfunction(L, LuaBinder< QApplication >::__LuaWrapCall__keyboardModifiers);
1455 lua_setfield(L, -2, "keyboardModifiers");
1456 lua_pushcfunction(L, LuaBinder< QApplication >::__LuaWrapCall__setOverrideCursor);
1457 lua_setfield(L, -2, "setOverrideCursor");
1458 lua_pushcfunction(L, LuaBinder< QApplication >::__LuaWrapCall__focusWidget);
1459 lua_setfield(L, -2, "focusWidget");
1460 lua_pushcfunction(L, LuaBinder< QApplication >::__LuaWrapCall__overrideCursor);
1461 lua_setfield(L, -2, "overrideCursor");
1462 lua_pushcfunction(L, LuaBinder< QApplication >::__LuaWrapCall__exec);
1463 lua_setfield(L, -2, "exec");
1464 lua_pushcfunction(L, LuaBinder< QApplication >::__LuaWrapCall__setEffectEnabled);
1465 lua_setfield(L, -2, "setEffectEnabled");
1466 lua_pushcfunction(L, LuaBinder< QApplication >::__LuaWrapCall__saveState);
1467 lua_setfield(L, -2, "saveState");
1468 lua_pushcfunction(L, LuaBinder< QApplication >::__LuaWrapCall__setDesktopSettingsAware);
1469 lua_setfield(L, -2, "setDesktopSettingsAware");
1470 lua_pushcfunction(L, LuaBinder< QApplication >::__LuaWrapCall__sessionKey);
1471 lua_setfield(L, -2, "sessionKey");
1472 lua_pushcfunction(L, LuaBinder< QApplication >::__LuaWrapCall__trUtf8);
1473 lua_setfield(L, -2, "trUtf8");
1474 lua_pushcfunction(L, LuaBinder< QApplication >::__LuaWrapCall__topLevelWidgets);
1475 lua_setfield(L, -2, "topLevelWidgets");
1476 lua_pushcfunction(L, LuaBinder< QApplication >::__LuaWrapCall__desktop);
1477 lua_setfield(L, -2, "desktop");
1478 lua_pushcfunction(L, LuaBinder< QApplication >::__LuaWrapCall__quitOnLastWindowClosed);
1479 lua_setfield(L, -2, "quitOnLastWindowClosed");
1480 lua_pushcfunction(L, LuaBinder< QApplication >::__LuaWrapCall__setPalette);
1481 lua_setfield(L, -2, "setPalette");
1482 lua_pushcfunction(L, LuaBinder< QApplication >::__LuaWrapCall__isLeftToRight);
1483 lua_setfield(L, -2, "isLeftToRight");
1484 lua_pushcfunction(L, LuaBinder< QApplication >::__LuaWrapCall__layoutDirection);
1485 lua_setfield(L, -2, "layoutDirection");
1486 lua_pushcfunction(L, LuaBinder< QApplication >::__LuaWrapCall__keyboardInputLocale);
1487 lua_setfield(L, -2, "keyboardInputLocale");
1488 lua_pushcfunction(L, LuaBinder< QApplication >::__LuaWrapCall__new);
1489 lua_setfield(L, -2, "new");
1490 lua_pushcfunction(L, LuaBinder< QApplication >::__LuaWrapCall__wheelScrollLines);
1491 lua_setfield(L, -2, "wheelScrollLines");
1492 lua_pushcfunction(L, LuaBinder< QApplication >::__LuaWrapCall__type);
1493 lua_setfield(L, -2, "type");
1494 lua_pushcfunction(L, LuaBinder< QApplication >::__LuaWrapCall__syncX);
1495 lua_setfield(L, -2, "syncX");
1496 lua_pushcfunction(L, LuaBinder< QApplication >::__LuaWrapCall__setDoubleClickInterval);
1497 lua_setfield(L, -2, "setDoubleClickInterval");
1498 lua_pushcfunction(L, LuaBinder< QApplication >::__LuaWrapCall__setColorSpec);
1499 lua_setfield(L, -2, "setColorSpec");
1500 lua_pushcfunction(L, LuaBinder< QApplication >::__LuaWrapCall__windowIcon);
1501 lua_setfield(L, -2, "windowIcon");
1502 lua_pushcfunction(L, LuaBinder< QApplication >::__LuaWrapCall__restoreOverrideCursor);
1503 lua_setfield(L, -2, "restoreOverrideCursor");
1504 lua_pushcfunction(L, LuaBinder< QApplication >::__LuaWrapCall__setKeyboardInputInterval);
1505 lua_setfield(L, -2, "setKeyboardInputInterval");
1506 lua_pushcfunction(L, LuaBinder< QApplication >::__LuaWrapCall__setActiveWindow);
1507 lua_setfield(L, -2, "setActiveWindow");
1508 lua_pushcfunction(L, LuaBinder< QApplication >::__LuaWrapCall__cursorFlashTime);
1509 lua_setfield(L, -2, "cursorFlashTime");
1510 lua_pushcfunction(L, LuaBinder< QApplication >::__LuaWrapCall__globalStrut);
1511 lua_setfield(L, -2, "globalStrut");
1512 lua_pushcfunction(L, LuaBinder< QApplication >::__LuaWrapCall__font);
1513 lua_setfield(L, -2, "font");
1514 lua_pushcfunction(L, LuaBinder< QApplication >::__LuaWrapCall__desktopSettingsAware);
1515 lua_setfield(L, -2, "desktopSettingsAware");
1516 lua_pushcfunction(L, LuaBinder< QApplication >::__LuaWrapCall__topLevelAt);
1517 lua_setfield(L, -2, "topLevelAt");
1518 lua_pushcfunction(L, LuaBinder< QApplication >::__LuaWrapCall__setCursorFlashTime);
1519 lua_setfield(L, -2, "setCursorFlashTime");
1520 lua_pushcfunction(L, LuaBinder< QApplication >::__LuaWrapCall__setInputContext);
1521 lua_setfield(L, -2, "setInputContext");
1522 lua_pushcfunction(L, LuaBinder< QApplication >::__LuaWrapCall__startDragDistance);
1523 lua_setfield(L, -2, "startDragDistance");
1524 lua_pushcfunction(L, LuaBinder< QApplication >::__LuaWrapCall__clipboard);
1525 lua_setfield(L, -2, "clipboard");
1526 lua_pushcfunction(L, LuaBinder< QApplication >::__LuaWrapCall__activeWindow);
1527 lua_setfield(L, -2, "activeWindow");
1528 lua_pushcfunction(L, LuaBinder< QApplication >::__LuaWrapCall__changeOverrideCursor);
1529 lua_setfield(L, -2, "changeOverrideCursor");
1530 lua_pushcfunction(L, LuaBinder< QApplication >::__LuaWrapCall__isSessionRestored);
1531 lua_setfield(L, -2, "isSessionRestored");
1532 lua_pushcfunction(L, LuaBinder< QApplication >::__LuaWrapCall__activeModalWidget);
1533 lua_setfield(L, -2, "activeModalWidget");
1534 lua_pushcfunction(L, LuaBinder< QApplication >::__LuaWrapCall__isEffectEnabled);
1535 lua_setfield(L, -2, "isEffectEnabled");
1536 lua_pushcfunction(L, LuaBinder< QApplication >::__LuaWrapCall__inputContext);
1537 lua_setfield(L, -2, "inputContext");
1538 lua_pushcfunction(L, LuaBinder< QApplication >::__LuaWrapCall__widgetAt);
1539 lua_setfield(L, -2, "widgetAt");
1540 lua_pushcfunction(L, LuaBinder< QApplication >::__LuaWrapCall__setFont);
1541 lua_setfield(L, -2, "setFont");
1542 lua_pushcfunction(L, LuaBinder< QApplication >::__LuaWrapCall__setStartDragTime);
1543 lua_setfield(L, -2, "setStartDragTime");
1544 lua_pushcfunction(L, LuaBinder< QApplication >::__LuaWrapCall__allWidgets);
1545 lua_setfield(L, -2, "allWidgets");
1546 lua_pushcfunction(L, LuaBinder< QApplication >::__LuaWrapCall__setWindowIcon);
1547 lua_setfield(L, -2, "setWindowIcon");
1548 lua_pushcfunction(L, LuaBinder< QApplication >::__LuaWrapCall__commitData);
1549 lua_setfield(L, -2, "commitData");
1550 lua_pushcfunction(L, LuaBinder< QApplication >::__LuaWrapCall__isRightToLeft);
1551 lua_setfield(L, -2, "isRightToLeft");
1552 lua_pushcfunction(L, LuaBinder< QApplication >::__LuaWrapCall__notify);
1553 lua_setfield(L, -2, "notify");
1554 lua_pushcfunction(L, LuaBinder< QApplication >::__LuaWrapCall__setLayoutDirection);
1555 lua_setfield(L, -2, "setLayoutDirection");
1556 lua_pushcfunction(L, LuaBinder< QApplication >::__LuaWrapCall__closeAllWindows);
1557 lua_setfield(L, -2, "closeAllWindows");
1558 lua_pushcfunction(L, LuaBinder< QApplication >::__LuaWrapCall__alert);
1559 lua_setfield(L, -2, "alert");
1560 lua_pushcfunction(L, LuaBinder< QApplication >::__LuaWrapCall__setStyleSheet);
1561 lua_setfield(L, -2, "setStyleSheet");
1562 LuaBinder< QApplication >::lqt_pushenum_Type(L);
1563 lua_setfield(L, -2, "Type");
1564 LuaBinder< QApplication >::lqt_pushenum_ColorSpec(L);
1565 lua_setfield(L, -2, "ColorSpec");
1566 lua_newtable(L);
1567 lua_pushboolean(L, 1);
1568 lua_setfield(L, -2, "QCoreApplication*");
1569 lua_pushboolean(L, 0);
1570 lua_setfield(L, -2, "QObject*");
1571 lua_setfield(L, -2, "__base");
1572 lua_pushcfunction(L, lqtL_newindex);
1573 lua_setfield(L, -2, "__newindex");
1574 lua_pushcfunction(L, lqtL_index);
1575 lua_setfield(L, -2, "__index");
1576 lua_pushcfunction(L, lqtL_gc);
1577 lua_setfield(L, -2, "__gc");
1578 lua_pushstring(L, "QApplication");
1579 lua_setfield(L, -2, "__qtype");
1580 lua_setglobal(L, "QApplication");
1581 } else {
1582 lua_pop(L, 1);
1584 return 0;