1 #include "lqt_bind_QApplication.hpp"
3 int LuaBinder
< QApplication
>::__LuaWrapCall__setWheelScrollLines (lua_State
*L
) {
4 int arg1
= lua_tointeger(L
, 1);
5 QApplication::setWheelScrollLines(arg1
);
8 int LuaBinder
< QApplication
>::__LuaWrapCall__styleSheet (lua_State
*L
) {
9 QApplication
*& __lua__obj
= *static_cast<QApplication
**>(lqtL_checkudata(L
, 1, "QApplication*"));
11 lua_pushstring(L
, "trying to reference deleted pointer");
15 QString ret
= __lua__obj
->QApplication::styleSheet();
16 lua_pushlstring(L
, ret
.toAscii().data(), ret
.toAscii().size());
19 int LuaBinder
< QApplication
>::__LuaWrapCall__colorSpec (lua_State
*L
) {
20 int ret
= QApplication::colorSpec();
21 lua_pushinteger(L
, ret
);
24 int LuaBinder
< QApplication
>::__LuaWrapCall__doubleClickInterval (lua_State
*L
) {
25 int ret
= QApplication::doubleClickInterval();
26 lua_pushinteger(L
, ret
);
29 int LuaBinder
< QApplication
>::__LuaWrapCall__activePopupWidget (lua_State
*L
) {
30 QWidget
* ret
= QApplication::activePopupWidget();
31 lqtL_pushudata(L
, ret
, "QWidget*");
34 int LuaBinder
< QApplication
>::__LuaWrapCall__setStyle__OverloadedVersion__1 (lua_State
*L
) {
35 QStyle
* arg1
= *static_cast<QStyle
**>(lqtL_checkudata(L
, 1, "QStyle*"));
36 QApplication::setStyle(arg1
);
39 int LuaBinder
< QApplication
>::__LuaWrapCall__setStyle__OverloadedVersion__2 (lua_State
*L
) {
40 const QString
& arg1
= QString::fromAscii(lua_tostring(L
, 1), lua_objlen(L
, 1));
41 QStyle
* ret
= QApplication::setStyle(arg1
);
42 lqtL_pushudata(L
, ret
, "QStyle*");
45 int LuaBinder
< QApplication
>::__LuaWrapCall__setStyle (lua_State
*L
) {
47 const int premium
= 11+lua_gettop(L
);
49 if (lqtL_testudata(L
, 1, "QStyle*")) {
52 score
[1] += premium
-1; // table: 0x1c7ddb0;
54 score
[1] -= premium
*premium
;
57 if ((lua_type(L
, 1)==LUA_TSTRING
)) {
60 score
[2] += premium
-1; // table: 0x1c7e790;
62 score
[2] -= premium
*premium
;
65 for (int i
=1;i
<=2;i
++) {
66 if (score
[best
] < score
[i
]) { best
= i
; }
69 case 1: return __LuaWrapCall__setStyle__OverloadedVersion__1(L
); break;
70 case 2: return __LuaWrapCall__setStyle__OverloadedVersion__2(L
); break;
72 lua_pushstring(L
, "no overload of function __LuaWrapCall__setStyle matching arguments");
76 int LuaBinder
< QApplication
>::__LuaWrapCall__keyboardInputDirection (lua_State
*L
) {
77 Qt::LayoutDirection ret
= QApplication::keyboardInputDirection();
78 lqtL_pushenum(L
, ret
, "Qt::LayoutDirection");
81 int LuaBinder
< QApplication
>::__LuaWrapCall__tr__OverloadedVersion__1 (lua_State
*L
) {
82 const char * arg1
= lua_tostring(L
, 1);
83 const char * arg2
= (lua_type(L
, 2)==LUA_TSTRING
)?lua_tostring(L
, 2):static_cast< const char * >(0);
84 QString ret
= QApplication::tr(arg1
, arg2
);
85 lua_pushlstring(L
, ret
.toAscii().data(), ret
.toAscii().size());
88 int LuaBinder
< QApplication
>::__LuaWrapCall__tr__OverloadedVersion__2 (lua_State
*L
) {
89 const char * arg1
= lua_tostring(L
, 1);
90 const char * arg2
= lua_tostring(L
, 2);
91 int arg3
= lua_tointeger(L
, 3);
92 QString ret
= QApplication::tr(arg1
, arg2
, arg3
);
93 lua_pushlstring(L
, ret
.toAscii().data(), ret
.toAscii().size());
96 int LuaBinder
< QApplication
>::__LuaWrapCall__tr (lua_State
*L
) {
98 const int premium
= 11+lua_gettop(L
);
100 if ((lua_type(L
, 1)==LUA_TSTRING
)) {
103 score
[1] += premium
-1; // table: 0x1c70850;
105 score
[1] -= premium
*premium
;
107 if ((lua_type(L
, 2)==LUA_TSTRING
)) {
110 score
[1] += premium
-1; // table: 0x1c705b0;
112 score
[1] -= premium
*premium
;
115 if ((lua_type(L
, 1)==LUA_TSTRING
)) {
118 score
[2] += premium
-1; // table: 0x1c72290;
120 score
[2] -= premium
*premium
;
122 if ((lua_type(L
, 2)==LUA_TSTRING
)) {
125 score
[2] += premium
-1; // table: 0x1c72780;
127 score
[2] -= premium
*premium
;
129 if (lua_isnumber(L
, 3)) {
132 score
[2] += premium
-1; // table: 0x1c72b30;
134 score
[2] -= premium
*premium
;
137 for (int i
=1;i
<=2;i
++) {
138 if (score
[best
] < score
[i
]) { best
= i
; }
141 case 1: return __LuaWrapCall__tr__OverloadedVersion__1(L
); break;
142 case 2: return __LuaWrapCall__tr__OverloadedVersion__2(L
); break;
144 lua_pushstring(L
, "no overload of function __LuaWrapCall__tr matching arguments");
148 int LuaBinder
< QApplication
>::__LuaWrapCall__sessionId (lua_State
*L
) {
149 QApplication
*& __lua__obj
= *static_cast<QApplication
**>(lqtL_checkudata(L
, 1, "QApplication*"));
151 lua_pushstring(L
, "trying to reference deleted pointer");
155 QString ret
= __lua__obj
->QApplication::sessionId();
156 lua_pushlstring(L
, ret
.toAscii().data(), ret
.toAscii().size());
159 int LuaBinder
< QApplication
>::__LuaWrapCall__palette__OverloadedVersion__1 (lua_State
*L
) {
160 QPalette ret
= QApplication::palette();
161 lqtL_passudata(L
, new QPalette(ret
), "QPalette*");
164 int LuaBinder
< QApplication
>::__LuaWrapCall__palette__OverloadedVersion__2 (lua_State
*L
) {
165 const QWidget
* arg1
= *static_cast<QWidget
**>(lqtL_checkudata(L
, 1, "QWidget*"));
166 QPalette ret
= QApplication::palette(arg1
);
167 lqtL_passudata(L
, new QPalette(ret
), "QPalette*");
170 int LuaBinder
< QApplication
>::__LuaWrapCall__palette__OverloadedVersion__3 (lua_State
*L
) {
171 const char * arg1
= lua_tostring(L
, 1);
172 QPalette ret
= QApplication::palette(arg1
);
173 lqtL_passudata(L
, new QPalette(ret
), "QPalette*");
176 int LuaBinder
< QApplication
>::__LuaWrapCall__palette (lua_State
*L
) {
178 const int premium
= 11+lua_gettop(L
);
181 if (lqtL_testudata(L
, 1, "QWidget*")) {
184 score
[2] += premium
-1; // table: 0x1c82e40;
186 score
[2] -= premium
*premium
;
189 if ((lua_type(L
, 1)==LUA_TSTRING
)) {
192 score
[3] += premium
-1; // table: 0x1c837f0;
194 score
[3] -= premium
*premium
;
197 for (int i
=1;i
<=3;i
++) {
198 if (score
[best
] < score
[i
]) { best
= i
; }
201 case 1: return __LuaWrapCall__palette__OverloadedVersion__1(L
); break;
202 case 2: return __LuaWrapCall__palette__OverloadedVersion__2(L
); break;
203 case 3: return __LuaWrapCall__palette__OverloadedVersion__3(L
); break;
205 lua_pushstring(L
, "no overload of function __LuaWrapCall__palette matching arguments");
209 int LuaBinder
< QApplication
>::__LuaWrapCall__setStartDragDistance (lua_State
*L
) {
210 int arg1
= lua_tointeger(L
, 1);
211 QApplication::setStartDragDistance(arg1
);
214 int LuaBinder
< QApplication
>::__LuaWrapCall__style (lua_State
*L
) {
215 QStyle
* ret
= QApplication::style();
216 lqtL_pushudata(L
, ret
, "QStyle*");
219 int LuaBinder
< QApplication
>::__LuaWrapCall__setGlobalStrut (lua_State
*L
) {
220 const QSize
& arg1
= **static_cast<QSize
**>(lqtL_checkudata(L
, 1, "QSize*"));
221 QApplication::setGlobalStrut(arg1
);
224 int LuaBinder
< QApplication
>::__LuaWrapCall__fontMetrics (lua_State
*L
) {
225 QFontMetrics ret
= QApplication::fontMetrics();
226 lqtL_passudata(L
, new QFontMetrics(ret
), "QFontMetrics*");
229 int LuaBinder
< QApplication
>::__LuaWrapCall__setQuitOnLastWindowClosed (lua_State
*L
) {
230 bool arg1
= (bool)lua_toboolean(L
, 1);
231 QApplication::setQuitOnLastWindowClosed(arg1
);
234 int LuaBinder
< QApplication
>::__LuaWrapCall__keyboardInputInterval (lua_State
*L
) {
235 int ret
= QApplication::keyboardInputInterval();
236 lua_pushinteger(L
, ret
);
239 int LuaBinder
< QApplication
>::__LuaWrapCall__beep (lua_State
*L
) {
240 QApplication::beep();
243 int LuaBinder
< QApplication
>::__LuaWrapCall__aboutQt (lua_State
*L
) {
244 QApplication::aboutQt();
247 int LuaBinder
< QApplication
>::__LuaWrapCall__startDragTime (lua_State
*L
) {
248 int ret
= QApplication::startDragTime();
249 lua_pushinteger(L
, ret
);
252 int LuaBinder
< QApplication
>::__LuaWrapCall__metaObject (lua_State
*L
) {
253 QApplication
*& __lua__obj
= *static_cast<QApplication
**>(lqtL_checkudata(L
, 1, "QApplication*"));
255 lua_pushstring(L
, "trying to reference deleted pointer");
259 const QMetaObject
* ret
= __lua__obj
->QApplication::metaObject();
260 lqtL_pushudata(L
, ret
, "QMetaObject*");
263 int LuaBinder
< QApplication
>::__LuaWrapCall__delete (lua_State
*L
) {
265 QApplication
*& __lua__obj
= *static_cast<QApplication
**>(lqtL_checkudata(L
, 1, "QApplication*"));
267 lua_pushstring(L
, "trying to reference deleted pointer");
275 int LuaBinder
< QApplication
>::__LuaWrapCall__mouseButtons (lua_State
*L
) {
276 QFlags
<Qt::MouseButton
> ret
= QApplication::mouseButtons();
277 lqtL_passudata(L
, new QFlags
<Qt::MouseButton
>(ret
), "QFlags<Qt::MouseButton>*");
280 int LuaBinder
< QApplication
>::__LuaWrapCall__keyboardModifiers (lua_State
*L
) {
281 QFlags
<Qt::KeyboardModifier
> ret
= QApplication::keyboardModifiers();
282 lqtL_passudata(L
, new QFlags
<Qt::KeyboardModifier
>(ret
), "QFlags<Qt::KeyboardModifier>*");
285 int LuaBinder
< QApplication
>::__LuaWrapCall__setOverrideCursor (lua_State
*L
) {
286 const QCursor
& arg1
= **static_cast<QCursor
**>(lqtL_checkudata(L
, 1, "QCursor*"));
287 QApplication::setOverrideCursor(arg1
);
290 int LuaBinder
< QApplication
>::__LuaWrapCall__focusWidget (lua_State
*L
) {
291 QWidget
* ret
= QApplication::focusWidget();
292 lqtL_pushudata(L
, ret
, "QWidget*");
295 int LuaBinder
< QApplication
>::__LuaWrapCall__overrideCursor (lua_State
*L
) {
296 QCursor
* ret
= QApplication::overrideCursor();
297 lqtL_pushudata(L
, ret
, "QCursor*");
300 int LuaBinder
< QApplication
>::__LuaWrapCall__exec (lua_State
*L
) {
301 int ret
= QApplication::exec();
302 lua_pushinteger(L
, ret
);
305 int LuaBinder
< QApplication
>::__LuaWrapCall__setEffectEnabled (lua_State
*L
) {
306 Qt::UIEffect arg1
= static_cast<Qt::UIEffect
>(lqtL_toenum(L
, 1, "Qt::UIEffect"));
307 bool arg2
= lua_isboolean(L
, 2)?(bool)lua_toboolean(L
, 2):true;
308 QApplication::setEffectEnabled(arg1
, arg2
);
311 int LuaBinder
< QApplication
>::__LuaWrapCall__saveState (lua_State
*L
) {
312 QApplication
*& __lua__obj
= *static_cast<QApplication
**>(lqtL_checkudata(L
, 1, "QApplication*"));
314 lua_pushstring(L
, "trying to reference deleted pointer");
318 QSessionManager
& arg1
= **static_cast<QSessionManager
**>(lqtL_checkudata(L
, 2, "QSessionManager*"));
319 __lua__obj
->QApplication::saveState(arg1
);
322 int LuaBinder
< QApplication
>::__LuaWrapCall__setDesktopSettingsAware (lua_State
*L
) {
323 bool arg1
= (bool)lua_toboolean(L
, 1);
324 QApplication::setDesktopSettingsAware(arg1
);
327 int LuaBinder
< QApplication
>::__LuaWrapCall__sessionKey (lua_State
*L
) {
328 QApplication
*& __lua__obj
= *static_cast<QApplication
**>(lqtL_checkudata(L
, 1, "QApplication*"));
330 lua_pushstring(L
, "trying to reference deleted pointer");
334 QString ret
= __lua__obj
->QApplication::sessionKey();
335 lua_pushlstring(L
, ret
.toAscii().data(), ret
.toAscii().size());
338 int LuaBinder
< QApplication
>::__LuaWrapCall__trUtf8__OverloadedVersion__1 (lua_State
*L
) {
339 const char * arg1
= lua_tostring(L
, 1);
340 const char * arg2
= (lua_type(L
, 2)==LUA_TSTRING
)?lua_tostring(L
, 2):static_cast< const char * >(0);
341 QString ret
= QApplication::trUtf8(arg1
, arg2
);
342 lua_pushlstring(L
, ret
.toAscii().data(), ret
.toAscii().size());
345 int LuaBinder
< QApplication
>::__LuaWrapCall__trUtf8__OverloadedVersion__2 (lua_State
*L
) {
346 const char * arg1
= lua_tostring(L
, 1);
347 const char * arg2
= lua_tostring(L
, 2);
348 int arg3
= lua_tointeger(L
, 3);
349 QString ret
= QApplication::trUtf8(arg1
, arg2
, arg3
);
350 lua_pushlstring(L
, ret
.toAscii().data(), ret
.toAscii().size());
353 int LuaBinder
< QApplication
>::__LuaWrapCall__trUtf8 (lua_State
*L
) {
355 const int premium
= 11+lua_gettop(L
);
357 if ((lua_type(L
, 1)==LUA_TSTRING
)) {
360 score
[1] += premium
-1; // table: 0x1c715b0;
362 score
[1] -= premium
*premium
;
364 if ((lua_type(L
, 2)==LUA_TSTRING
)) {
367 score
[1] += premium
-1; // table: 0x1c71110;
369 score
[1] -= premium
*premium
;
372 if ((lua_type(L
, 1)==LUA_TSTRING
)) {
375 score
[2] += premium
-1; // table: 0x1c733b0;
377 score
[2] -= premium
*premium
;
379 if ((lua_type(L
, 2)==LUA_TSTRING
)) {
382 score
[2] += premium
-1; // table: 0x1c72ad0;
384 score
[2] -= premium
*premium
;
386 if (lua_isnumber(L
, 3)) {
389 score
[2] += premium
-1; // table: 0x1c73830;
391 score
[2] -= premium
*premium
;
394 for (int i
=1;i
<=2;i
++) {
395 if (score
[best
] < score
[i
]) { best
= i
; }
398 case 1: return __LuaWrapCall__trUtf8__OverloadedVersion__1(L
); break;
399 case 2: return __LuaWrapCall__trUtf8__OverloadedVersion__2(L
); break;
401 lua_pushstring(L
, "no overload of function __LuaWrapCall__trUtf8 matching arguments");
405 int LuaBinder
< QApplication
>::__LuaWrapCall__topLevelWidgets (lua_State
*L
) {
406 QList
<QWidget
*> ret
= QApplication::topLevelWidgets();
407 lqtL_passudata(L
, new QList
<QWidget
*>(ret
), "QList<QWidget*>*");
410 int LuaBinder
< QApplication
>::__LuaWrapCall__desktop (lua_State
*L
) {
411 QDesktopWidget
* ret
= QApplication::desktop();
412 lqtL_pushudata(L
, ret
, "QDesktopWidget*");
415 int LuaBinder
< QApplication
>::__LuaWrapCall__quitOnLastWindowClosed (lua_State
*L
) {
416 bool ret
= QApplication::quitOnLastWindowClosed();
417 lua_pushboolean(L
, ret
);
420 int LuaBinder
< QApplication
>::__LuaWrapCall__setPalette (lua_State
*L
) {
421 const QPalette
& arg1
= **static_cast<QPalette
**>(lqtL_checkudata(L
, 1, "QPalette*"));
422 const char * arg2
= (lua_type(L
, 2)==LUA_TSTRING
)?lua_tostring(L
, 2):static_cast< const char * >(0);
423 QApplication::setPalette(arg1
, arg2
);
426 int LuaBinder
< QApplication
>::__LuaWrapCall__isLeftToRight (lua_State
*L
) {
427 bool ret
= QApplication::isLeftToRight();
428 lua_pushboolean(L
, ret
);
431 int LuaBinder
< QApplication
>::__LuaWrapCall__layoutDirection (lua_State
*L
) {
432 Qt::LayoutDirection ret
= QApplication::layoutDirection();
433 lqtL_pushenum(L
, ret
, "Qt::LayoutDirection");
436 int LuaBinder
< QApplication
>::__LuaWrapCall__keyboardInputLocale (lua_State
*L
) {
437 QLocale ret
= QApplication::keyboardInputLocale();
438 lqtL_passudata(L
, new QLocale(ret
), "QLocale*");
441 int LuaBinder
< QApplication
>::__LuaWrapCall__new__OverloadedVersion__1 (lua_State
*L
) {
442 int& arg1
= lqtL_tointref(L
, 1);
443 char * * arg2
= lqtL_toarguments(L
, 2);
444 int arg3
= lua_isnumber(L
, 3)?lua_tointeger(L
, 3):static_cast< int >(262913);
445 QApplication
* ret
= new LuaBinder
< QApplication
>(L
, arg1
, arg2
, arg3
);
446 lqtL_passudata(L
, ret
, "QApplication*");
449 int LuaBinder
< QApplication
>::__LuaWrapCall__new__OverloadedVersion__2 (lua_State
*L
) {
450 int& arg1
= lqtL_tointref(L
, 1);
451 char * * arg2
= lqtL_toarguments(L
, 2);
452 bool arg3
= (bool)lua_toboolean(L
, 3);
453 int arg4
= lua_isnumber(L
, 4)?lua_tointeger(L
, 4):static_cast< int >(262913);
454 QApplication
* ret
= new LuaBinder
< QApplication
>(L
, arg1
, arg2
, arg3
, arg4
);
455 lqtL_passudata(L
, ret
, "QApplication*");
458 int LuaBinder
< QApplication
>::__LuaWrapCall__new__OverloadedVersion__3 (lua_State
*L
) {
459 int& arg1
= lqtL_tointref(L
, 1);
460 char * * arg2
= lqtL_toarguments(L
, 2);
461 QApplication::Type arg3
= static_cast<QApplication::Type
>(lqtL_toenum(L
, 3, "QApplication::Type"));
462 int arg4
= lua_isnumber(L
, 4)?lua_tointeger(L
, 4):static_cast< int >(262913);
463 QApplication
* ret
= new LuaBinder
< QApplication
>(L
, arg1
, arg2
, arg3
, arg4
);
464 lqtL_passudata(L
, ret
, "QApplication*");
467 int LuaBinder
< QApplication
>::__LuaWrapCall__new__OverloadedVersion__4 (lua_State
*L
) {
468 _XDisplay
* arg1
= *static_cast<_XDisplay
**>(lqtL_checkudata(L
, 1, "_XDisplay*"));
469 long unsigned int arg2
= lua_isnumber(L
, 2)?lua_tointeger(L
, 2):static_cast< long unsigned int >(0);
470 long unsigned int arg3
= lua_isnumber(L
, 3)?lua_tointeger(L
, 3):static_cast< long unsigned int >(0);
471 int arg4
= lua_isnumber(L
, 4)?lua_tointeger(L
, 4):static_cast< int >(262913);
472 QApplication
* ret
= new LuaBinder
< QApplication
>(L
, arg1
, arg2
, arg3
, arg4
);
473 lqtL_passudata(L
, ret
, "QApplication*");
476 int LuaBinder
< QApplication
>::__LuaWrapCall__new__OverloadedVersion__5 (lua_State
*L
) {
477 _XDisplay
* arg1
= *static_cast<_XDisplay
**>(lqtL_checkudata(L
, 1, "_XDisplay*"));
478 int& arg2
= lqtL_tointref(L
, 2);
479 char * * arg3
= lqtL_toarguments(L
, 3);
480 long unsigned int arg4
= lua_isnumber(L
, 4)?lua_tointeger(L
, 4):static_cast< long unsigned int >(0);
481 long unsigned int arg5
= lua_isnumber(L
, 5)?lua_tointeger(L
, 5):static_cast< long unsigned int >(0);
482 int arg6
= lua_isnumber(L
, 6)?lua_tointeger(L
, 6):static_cast< int >(262913);
483 QApplication
* ret
= new LuaBinder
< QApplication
>(L
, arg1
, arg2
, arg3
, arg4
, arg5
, arg6
);
484 lqtL_passudata(L
, ret
, "QApplication*");
487 int LuaBinder
< QApplication
>::__LuaWrapCall__new (lua_State
*L
) {
489 const int premium
= 11+lua_gettop(L
);
491 if (lua_isnumber(L
, 1)) {
494 score
[1] += premium
-1; // table: 0x1c754e0;
496 score
[1] -= premium
*premium
;
498 if (lqtL_testarguments(L
, 2)) {
501 score
[1] += premium
-1; // table: 0x1c751a0;
503 score
[1] -= premium
*premium
;
505 if (lua_isnumber(L
, 3)) {
508 score
[1] += premium
-1; // table: 0x1c75990;
510 score
[1] -= premium
*premium
;
513 if (lua_isnumber(L
, 1)) {
516 score
[2] += premium
-1; // table: 0x1c76790;
518 score
[2] -= premium
*premium
;
520 if (lqtL_testarguments(L
, 2)) {
523 score
[2] += premium
-1; // table: 0x1c76480;
525 score
[2] -= premium
*premium
;
527 if (lua_isboolean(L
, 3)) {
530 score
[2] += premium
-1; // table: 0x1c76c40;
532 score
[2] -= premium
*premium
;
534 if (lua_isnumber(L
, 4)) {
537 score
[2] += premium
-1; // table: 0x1c77510;
539 score
[2] -= premium
*premium
;
542 if (lua_isnumber(L
, 1)) {
545 score
[3] += premium
-1; // table: 0x1c77de0;
547 score
[3] -= premium
*premium
;
549 if (lqtL_testarguments(L
, 2)) {
552 score
[3] += premium
-1; // table: 0x1c77b00;
554 score
[3] -= premium
*premium
;
556 if (lqtL_isenum(L
, 3, "QApplication::Type")) {
559 score
[3] += premium
-1; // table: 0x1c786b0;
561 score
[3] -= premium
*premium
;
563 if (lua_isnumber(L
, 4)) {
566 score
[3] += premium
-1; // table: 0x1c78650;
568 score
[3] -= premium
*premium
;
571 if (lqtL_testudata(L
, 1, "_XDisplay*")) {
574 score
[4] += premium
-1; // table: 0x1c79350;
576 score
[4] -= premium
*premium
;
578 if (lua_isnumber(L
, 2)) {
581 score
[4] += premium
-1; // table: 0x1c79060;
583 score
[4] -= premium
*premium
;
585 if (lua_isnumber(L
, 3)) {
588 score
[4] += premium
-1; // table: 0x1c79890;
590 score
[4] -= premium
*premium
;
592 if (lua_isnumber(L
, 4)) {
595 score
[4] += premium
-1; // table: 0x1c7a260;
597 score
[4] -= premium
*premium
;
600 if (lqtL_testudata(L
, 1, "_XDisplay*")) {
603 score
[5] += premium
-1; // table: 0x1c7ab50;
605 score
[5] -= premium
*premium
;
607 if (lua_isnumber(L
, 2)) {
610 score
[5] += premium
-1; // table: 0x1c7a850;
612 score
[5] -= premium
*premium
;
614 if (lqtL_testarguments(L
, 3)) {
617 score
[5] += premium
-1; // table: 0x1c7b000;
619 score
[5] -= premium
*premium
;
621 if (lua_isnumber(L
, 4)) {
624 score
[5] += premium
-1; // table: 0x1c7b860;
626 score
[5] -= premium
*premium
;
628 if (lua_isnumber(L
, 5)) {
631 score
[5] += premium
-1; // table: 0x1c7bc20;
633 score
[5] -= premium
*premium
;
635 if (lua_isnumber(L
, 6)) {
638 score
[5] += premium
-1; // table: 0x1c7b7b0;
640 score
[5] -= premium
*premium
;
643 for (int i
=1;i
<=5;i
++) {
644 if (score
[best
] < score
[i
]) { best
= i
; }
647 case 1: return __LuaWrapCall__new__OverloadedVersion__1(L
); break;
648 case 2: return __LuaWrapCall__new__OverloadedVersion__2(L
); break;
649 case 3: return __LuaWrapCall__new__OverloadedVersion__3(L
); break;
650 case 4: return __LuaWrapCall__new__OverloadedVersion__4(L
); break;
651 case 5: return __LuaWrapCall__new__OverloadedVersion__5(L
); break;
653 lua_pushstring(L
, "no overload of function __LuaWrapCall__new matching arguments");
657 int LuaBinder
< QApplication
>::__LuaWrapCall__wheelScrollLines (lua_State
*L
) {
658 int ret
= QApplication::wheelScrollLines();
659 lua_pushinteger(L
, ret
);
662 int LuaBinder
< QApplication
>::__LuaWrapCall__type (lua_State
*L
) {
663 QApplication::Type ret
= QApplication::type();
664 lqtL_pushenum(L
, ret
, "QApplication::Type");
667 int LuaBinder
< QApplication
>::__LuaWrapCall__syncX (lua_State
*L
) {
668 QApplication::syncX();
671 int LuaBinder
< QApplication
>::__LuaWrapCall__setDoubleClickInterval (lua_State
*L
) {
672 int arg1
= lua_tointeger(L
, 1);
673 QApplication::setDoubleClickInterval(arg1
);
676 int LuaBinder
< QApplication
>::__LuaWrapCall__setColorSpec (lua_State
*L
) {
677 int arg1
= lua_tointeger(L
, 1);
678 QApplication::setColorSpec(arg1
);
681 int LuaBinder
< QApplication
>::__LuaWrapCall__windowIcon (lua_State
*L
) {
682 QIcon ret
= QApplication::windowIcon();
683 lqtL_passudata(L
, new QIcon(ret
), "QIcon*");
686 int LuaBinder
< QApplication
>::__LuaWrapCall__restoreOverrideCursor (lua_State
*L
) {
687 QApplication::restoreOverrideCursor();
690 int LuaBinder
< QApplication
>::__LuaWrapCall__setKeyboardInputInterval (lua_State
*L
) {
691 int arg1
= lua_tointeger(L
, 1);
692 QApplication::setKeyboardInputInterval(arg1
);
695 int LuaBinder
< QApplication
>::__LuaWrapCall__setActiveWindow (lua_State
*L
) {
696 QWidget
* arg1
= *static_cast<QWidget
**>(lqtL_checkudata(L
, 1, "QWidget*"));
697 QApplication::setActiveWindow(arg1
);
700 int LuaBinder
< QApplication
>::__LuaWrapCall__cursorFlashTime (lua_State
*L
) {
701 int ret
= QApplication::cursorFlashTime();
702 lua_pushinteger(L
, ret
);
705 int LuaBinder
< QApplication
>::__LuaWrapCall__globalStrut (lua_State
*L
) {
706 QSize ret
= QApplication::globalStrut();
707 lqtL_passudata(L
, new QSize(ret
), "QSize*");
710 int LuaBinder
< QApplication
>::__LuaWrapCall__font__OverloadedVersion__1 (lua_State
*L
) {
711 QFont ret
= QApplication::font();
712 lqtL_passudata(L
, new QFont(ret
), "QFont*");
715 int LuaBinder
< QApplication
>::__LuaWrapCall__font__OverloadedVersion__2 (lua_State
*L
) {
716 const QWidget
* arg1
= *static_cast<QWidget
**>(lqtL_checkudata(L
, 1, "QWidget*"));
717 QFont ret
= QApplication::font(arg1
);
718 lqtL_passudata(L
, new QFont(ret
), "QFont*");
721 int LuaBinder
< QApplication
>::__LuaWrapCall__font__OverloadedVersion__3 (lua_State
*L
) {
722 const char * arg1
= lua_tostring(L
, 1);
723 QFont ret
= QApplication::font(arg1
);
724 lqtL_passudata(L
, new QFont(ret
), "QFont*");
727 int LuaBinder
< QApplication
>::__LuaWrapCall__font (lua_State
*L
) {
729 const int premium
= 11+lua_gettop(L
);
732 if (lqtL_testudata(L
, 1, "QWidget*")) {
735 score
[2] += premium
-1; // table: 0x1c857e0;
737 score
[2] -= premium
*premium
;
740 if ((lua_type(L
, 1)==LUA_TSTRING
)) {
743 score
[3] += premium
-1; // table: 0x1c86180;
745 score
[3] -= premium
*premium
;
748 for (int i
=1;i
<=3;i
++) {
749 if (score
[best
] < score
[i
]) { best
= i
; }
752 case 1: return __LuaWrapCall__font__OverloadedVersion__1(L
); break;
753 case 2: return __LuaWrapCall__font__OverloadedVersion__2(L
); break;
754 case 3: return __LuaWrapCall__font__OverloadedVersion__3(L
); break;
756 lua_pushstring(L
, "no overload of function __LuaWrapCall__font matching arguments");
760 int LuaBinder
< QApplication
>::__LuaWrapCall__desktopSettingsAware (lua_State
*L
) {
761 bool ret
= QApplication::desktopSettingsAware();
762 lua_pushboolean(L
, ret
);
765 int LuaBinder
< QApplication
>::__LuaWrapCall__topLevelAt__OverloadedVersion__1 (lua_State
*L
) {
766 const QPoint
& arg1
= **static_cast<QPoint
**>(lqtL_checkudata(L
, 1, "QPoint*"));
767 QWidget
* ret
= QApplication::topLevelAt(arg1
);
768 lqtL_pushudata(L
, ret
, "QWidget*");
771 int LuaBinder
< QApplication
>::__LuaWrapCall__topLevelAt__OverloadedVersion__2 (lua_State
*L
) {
772 int arg1
= lua_tointeger(L
, 1);
773 int arg2
= lua_tointeger(L
, 2);
774 QWidget
* ret
= QApplication::topLevelAt(arg1
, arg2
);
775 lqtL_pushudata(L
, ret
, "QWidget*");
778 int LuaBinder
< QApplication
>::__LuaWrapCall__topLevelAt (lua_State
*L
) {
780 const int premium
= 11+lua_gettop(L
);
782 if (lqtL_testudata(L
, 1, "QPoint*")) {
785 score
[1] += premium
-1; // table: 0x1c8f390;
787 score
[1] -= premium
*premium
;
790 if (lua_isnumber(L
, 1)) {
793 score
[2] += premium
-1; // table: 0x1c8fde0;
795 score
[2] -= premium
*premium
;
797 if (lua_isnumber(L
, 2)) {
800 score
[2] += premium
-1; // table: 0x1c90310;
802 score
[2] -= premium
*premium
;
805 for (int i
=1;i
<=2;i
++) {
806 if (score
[best
] < score
[i
]) { best
= i
; }
809 case 1: return __LuaWrapCall__topLevelAt__OverloadedVersion__1(L
); break;
810 case 2: return __LuaWrapCall__topLevelAt__OverloadedVersion__2(L
); break;
812 lua_pushstring(L
, "no overload of function __LuaWrapCall__topLevelAt matching arguments");
816 int LuaBinder
< QApplication
>::__LuaWrapCall__setCursorFlashTime (lua_State
*L
) {
817 int arg1
= lua_tointeger(L
, 1);
818 QApplication::setCursorFlashTime(arg1
);
821 int LuaBinder
< QApplication
>::__LuaWrapCall__setInputContext (lua_State
*L
) {
822 QApplication
*& __lua__obj
= *static_cast<QApplication
**>(lqtL_checkudata(L
, 1, "QApplication*"));
824 lua_pushstring(L
, "trying to reference deleted pointer");
828 QInputContext
* arg1
= *static_cast<QInputContext
**>(lqtL_checkudata(L
, 2, "QInputContext*"));
829 __lua__obj
->QApplication::setInputContext(arg1
);
832 int LuaBinder
< QApplication
>::__LuaWrapCall__startDragDistance (lua_State
*L
) {
833 int ret
= QApplication::startDragDistance();
834 lua_pushinteger(L
, ret
);
837 int LuaBinder
< QApplication
>::__LuaWrapCall__clipboard (lua_State
*L
) {
838 QClipboard
* ret
= QApplication::clipboard();
839 lqtL_pushudata(L
, ret
, "QClipboard*");
842 int LuaBinder
< QApplication
>::__LuaWrapCall__activeWindow (lua_State
*L
) {
843 QWidget
* ret
= QApplication::activeWindow();
844 lqtL_pushudata(L
, ret
, "QWidget*");
847 int LuaBinder
< QApplication
>::__LuaWrapCall__changeOverrideCursor (lua_State
*L
) {
848 const QCursor
& arg1
= **static_cast<QCursor
**>(lqtL_checkudata(L
, 1, "QCursor*"));
849 QApplication::changeOverrideCursor(arg1
);
852 int LuaBinder
< QApplication
>::__LuaWrapCall__isSessionRestored (lua_State
*L
) {
853 QApplication
*& __lua__obj
= *static_cast<QApplication
**>(lqtL_checkudata(L
, 1, "QApplication*"));
855 lua_pushstring(L
, "trying to reference deleted pointer");
859 bool ret
= __lua__obj
->QApplication::isSessionRestored();
860 lua_pushboolean(L
, ret
);
863 int LuaBinder
< QApplication
>::__LuaWrapCall__activeModalWidget (lua_State
*L
) {
864 QWidget
* ret
= QApplication::activeModalWidget();
865 lqtL_pushudata(L
, ret
, "QWidget*");
868 int LuaBinder
< QApplication
>::__LuaWrapCall__isEffectEnabled (lua_State
*L
) {
869 Qt::UIEffect arg1
= static_cast<Qt::UIEffect
>(lqtL_toenum(L
, 1, "Qt::UIEffect"));
870 bool ret
= QApplication::isEffectEnabled(arg1
);
871 lua_pushboolean(L
, ret
);
874 int LuaBinder
< QApplication
>::__LuaWrapCall__inputContext (lua_State
*L
) {
875 QApplication
*& __lua__obj
= *static_cast<QApplication
**>(lqtL_checkudata(L
, 1, "QApplication*"));
877 lua_pushstring(L
, "trying to reference deleted pointer");
881 QInputContext
* ret
= __lua__obj
->QApplication::inputContext();
882 lqtL_pushudata(L
, ret
, "QInputContext*");
885 int LuaBinder
< QApplication
>::__LuaWrapCall__widgetAt__OverloadedVersion__1 (lua_State
*L
) {
886 const QPoint
& arg1
= **static_cast<QPoint
**>(lqtL_checkudata(L
, 1, "QPoint*"));
887 QWidget
* ret
= QApplication::widgetAt(arg1
);
888 lqtL_pushudata(L
, ret
, "QWidget*");
891 int LuaBinder
< QApplication
>::__LuaWrapCall__widgetAt__OverloadedVersion__2 (lua_State
*L
) {
892 int arg1
= lua_tointeger(L
, 1);
893 int arg2
= lua_tointeger(L
, 2);
894 QWidget
* ret
= QApplication::widgetAt(arg1
, arg2
);
895 lqtL_pushudata(L
, ret
, "QWidget*");
898 int LuaBinder
< QApplication
>::__LuaWrapCall__widgetAt (lua_State
*L
) {
900 const int premium
= 11+lua_gettop(L
);
902 if (lqtL_testudata(L
, 1, "QPoint*")) {
905 score
[1] += premium
-1; // table: 0x1c8daa0;
907 score
[1] -= premium
*premium
;
910 if (lua_isnumber(L
, 1)) {
913 score
[2] += premium
-1; // table: 0x1c8e4e0;
915 score
[2] -= premium
*premium
;
917 if (lua_isnumber(L
, 2)) {
920 score
[2] += premium
-1; // table: 0x1c8e9f0;
922 score
[2] -= premium
*premium
;
925 for (int i
=1;i
<=2;i
++) {
926 if (score
[best
] < score
[i
]) { best
= i
; }
929 case 1: return __LuaWrapCall__widgetAt__OverloadedVersion__1(L
); break;
930 case 2: return __LuaWrapCall__widgetAt__OverloadedVersion__2(L
); break;
932 lua_pushstring(L
, "no overload of function __LuaWrapCall__widgetAt matching arguments");
936 int LuaBinder
< QApplication
>::__LuaWrapCall__setFont (lua_State
*L
) {
937 const QFont
& arg1
= **static_cast<QFont
**>(lqtL_checkudata(L
, 1, "QFont*"));
938 const char * arg2
= (lua_type(L
, 2)==LUA_TSTRING
)?lua_tostring(L
, 2):static_cast< const char * >(0);
939 QApplication::setFont(arg1
, arg2
);
942 int LuaBinder
< QApplication
>::__LuaWrapCall__setStartDragTime (lua_State
*L
) {
943 int arg1
= lua_tointeger(L
, 1);
944 QApplication::setStartDragTime(arg1
);
947 int LuaBinder
< QApplication
>::__LuaWrapCall__allWidgets (lua_State
*L
) {
948 QList
<QWidget
*> ret
= QApplication::allWidgets();
949 lqtL_passudata(L
, new QList
<QWidget
*>(ret
), "QList<QWidget*>*");
952 int LuaBinder
< QApplication
>::__LuaWrapCall__setWindowIcon (lua_State
*L
) {
953 const QIcon
& arg1
= **static_cast<QIcon
**>(lqtL_checkudata(L
, 1, "QIcon*"));
954 QApplication::setWindowIcon(arg1
);
957 int LuaBinder
< QApplication
>::__LuaWrapCall__commitData (lua_State
*L
) {
958 QApplication
*& __lua__obj
= *static_cast<QApplication
**>(lqtL_checkudata(L
, 1, "QApplication*"));
960 lua_pushstring(L
, "trying to reference deleted pointer");
964 QSessionManager
& arg1
= **static_cast<QSessionManager
**>(lqtL_checkudata(L
, 2, "QSessionManager*"));
965 __lua__obj
->QApplication::commitData(arg1
);
968 int LuaBinder
< QApplication
>::__LuaWrapCall__isRightToLeft (lua_State
*L
) {
969 bool ret
= QApplication::isRightToLeft();
970 lua_pushboolean(L
, ret
);
973 int LuaBinder
< QApplication
>::__LuaWrapCall__notify (lua_State
*L
) {
974 QApplication
*& __lua__obj
= *static_cast<QApplication
**>(lqtL_checkudata(L
, 1, "QApplication*"));
976 lua_pushstring(L
, "trying to reference deleted pointer");
980 QObject
* arg1
= *static_cast<QObject
**>(lqtL_checkudata(L
, 2, "QObject*"));
981 QEvent
* arg2
= *static_cast<QEvent
**>(lqtL_checkudata(L
, 3, "QEvent*"));
982 bool ret
= __lua__obj
->QApplication::notify(arg1
, arg2
);
983 lua_pushboolean(L
, ret
);
986 int LuaBinder
< QApplication
>::__LuaWrapCall__setLayoutDirection (lua_State
*L
) {
987 Qt::LayoutDirection arg1
= static_cast<Qt::LayoutDirection
>(lqtL_toenum(L
, 1, "Qt::LayoutDirection"));
988 QApplication::setLayoutDirection(arg1
);
991 int LuaBinder
< QApplication
>::__LuaWrapCall__closeAllWindows (lua_State
*L
) {
992 QApplication::closeAllWindows();
995 int LuaBinder
< QApplication
>::__LuaWrapCall__alert (lua_State
*L
) {
996 QWidget
* arg1
= *static_cast<QWidget
**>(lqtL_checkudata(L
, 1, "QWidget*"));
997 int arg2
= lua_isnumber(L
, 2)?lua_tointeger(L
, 2):static_cast< int >(0);
998 QApplication::alert(arg1
, arg2
);
1001 int LuaBinder
< QApplication
>::__LuaWrapCall__setStyleSheet (lua_State
*L
) {
1002 QApplication
*& __lua__obj
= *static_cast<QApplication
**>(lqtL_checkudata(L
, 1, "QApplication*"));
1003 if (__lua__obj
==0) {
1004 lua_pushstring(L
, "trying to reference deleted pointer");
1008 const QString
& arg1
= QString::fromAscii(lua_tostring(L
, 2), lua_objlen(L
, 2));
1009 __lua__obj
->QApplication::setStyleSheet(arg1
);
1012 void LuaBinder
< QApplication
>::commitData (QSessionManager
& arg1
) {
1013 bool absorbed
= false;
1014 int oldtop
= lua_gettop(L
);
1015 lqtL_pushudata(L
, this, "QApplication*");
1016 if (lua_getmetatable(L
, -1)) {
1017 lua_getfield(L
, -1, "commitData");
1023 lqtL_pushudata(L
, &(arg1
), "QSessionManager*");
1024 if (lua_isfunction(L
, -1-2)) {
1025 lua_pcall(L
, 1+1, 2, 0);
1026 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1030 lua_settop(L
, oldtop
);
1031 this->QApplication::commitData(arg1
);
1033 lua_settop(L
, oldtop
);
1035 bool LuaBinder
< QApplication
>::notify (QObject
* arg1
, QEvent
* arg2
) {
1036 bool absorbed
= false;
1037 int oldtop
= lua_gettop(L
);
1038 lqtL_pushudata(L
, this, "QApplication*");
1039 if (lua_getmetatable(L
, -1)) {
1040 lua_getfield(L
, -1, "notify");
1046 lqtL_pushudata(L
, arg1
, "QObject*");
1047 lqtL_pushudata(L
, arg2
, "QEvent*");
1048 if (lua_isfunction(L
, -2-2)) {
1049 lua_pcall(L
, 2+1, 2, 0);
1050 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1054 lua_settop(L
, oldtop
);
1055 return this->QApplication::notify(arg1
, arg2
);
1057 bool ret
= (bool)lua_toboolean(L
, -1);
1058 lua_settop(L
, oldtop
);
1061 bool LuaBinder
< QApplication
>::eventFilter (QObject
* arg1
, QEvent
* arg2
) {
1062 bool absorbed
= false;
1063 int oldtop
= lua_gettop(L
);
1064 lqtL_pushudata(L
, this, "QApplication*");
1065 if (lua_getmetatable(L
, -1)) {
1066 lua_getfield(L
, -1, "eventFilter");
1072 lqtL_pushudata(L
, arg1
, "QObject*");
1073 lqtL_pushudata(L
, arg2
, "QEvent*");
1074 if (lua_isfunction(L
, -2-2)) {
1075 lua_pcall(L
, 2+1, 2, 0);
1076 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1080 lua_settop(L
, oldtop
);
1081 return this->QObject::eventFilter(arg1
, arg2
);
1083 bool ret
= (bool)lua_toboolean(L
, -1);
1084 lua_settop(L
, oldtop
);
1087 const QMetaObject
* LuaBinder
< QApplication
>::metaObject () const {
1088 bool absorbed
= false;
1089 int oldtop
= lua_gettop(L
);
1090 lqtL_pushudata(L
, this, "QApplication*");
1091 if (lua_getmetatable(L
, -1)) {
1092 lua_getfield(L
, -1, "metaObject");
1098 if (lua_isfunction(L
, -0-2)) {
1099 lua_pcall(L
, 0+1, 2, 0);
1100 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1104 lua_settop(L
, oldtop
);
1105 return this->QApplication::metaObject();
1107 const QMetaObject
* ret
= *static_cast<QMetaObject
**>(lqtL_checkudata(L
, -1, "QMetaObject*"));
1108 lua_settop(L
, oldtop
);
1111 bool LuaBinder
< QApplication
>::event (QEvent
* arg1
) {
1112 bool absorbed
= false;
1113 int oldtop
= lua_gettop(L
);
1114 lqtL_pushudata(L
, this, "QApplication*");
1115 if (lua_getmetatable(L
, -1)) {
1116 lua_getfield(L
, -1, "event");
1122 lqtL_pushudata(L
, arg1
, "QEvent*");
1123 if (lua_isfunction(L
, -1-2)) {
1124 lua_pcall(L
, 1+1, 2, 0);
1125 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1129 lua_settop(L
, oldtop
);
1130 return this->QApplication::event(arg1
);
1132 bool ret
= (bool)lua_toboolean(L
, -1);
1133 lua_settop(L
, oldtop
);
1136 void LuaBinder
< QApplication
>::connectNotify (const char * arg1
) {
1137 bool absorbed
= false;
1138 int oldtop
= lua_gettop(L
);
1139 lqtL_pushudata(L
, this, "QApplication*");
1140 if (lua_getmetatable(L
, -1)) {
1141 lua_getfield(L
, -1, "connectNotify");
1147 lua_pushstring(L
, arg1
);
1148 if (lua_isfunction(L
, -1-2)) {
1149 lua_pcall(L
, 1+1, 2, 0);
1150 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1154 lua_settop(L
, oldtop
);
1155 this->QObject::connectNotify(arg1
);
1157 lua_settop(L
, oldtop
);
1159 void LuaBinder
< QApplication
>::saveState (QSessionManager
& arg1
) {
1160 bool absorbed
= false;
1161 int oldtop
= lua_gettop(L
);
1162 lqtL_pushudata(L
, this, "QApplication*");
1163 if (lua_getmetatable(L
, -1)) {
1164 lua_getfield(L
, -1, "saveState");
1170 lqtL_pushudata(L
, &(arg1
), "QSessionManager*");
1171 if (lua_isfunction(L
, -1-2)) {
1172 lua_pcall(L
, 1+1, 2, 0);
1173 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1177 lua_settop(L
, oldtop
);
1178 this->QApplication::saveState(arg1
);
1180 lua_settop(L
, oldtop
);
1182 void LuaBinder
< QApplication
>::timerEvent (QTimerEvent
* arg1
) {
1183 bool absorbed
= false;
1184 int oldtop
= lua_gettop(L
);
1185 lqtL_pushudata(L
, this, "QApplication*");
1186 if (lua_getmetatable(L
, -1)) {
1187 lua_getfield(L
, -1, "timerEvent");
1193 lqtL_pushudata(L
, arg1
, "QTimerEvent*");
1194 if (lua_isfunction(L
, -1-2)) {
1195 lua_pcall(L
, 1+1, 2, 0);
1196 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1200 lua_settop(L
, oldtop
);
1201 this->QObject::timerEvent(arg1
);
1203 lua_settop(L
, oldtop
);
1205 bool LuaBinder
< QApplication
>::compressEvent (QEvent
* arg1
, QObject
* arg2
, QPostEventList
* arg3
) {
1206 bool absorbed
= false;
1207 int oldtop
= lua_gettop(L
);
1208 lqtL_pushudata(L
, this, "QApplication*");
1209 if (lua_getmetatable(L
, -1)) {
1210 lua_getfield(L
, -1, "compressEvent");
1216 lqtL_pushudata(L
, arg1
, "QEvent*");
1217 lqtL_pushudata(L
, arg2
, "QObject*");
1218 lqtL_pushudata(L
, arg3
, "QPostEventList*");
1219 if (lua_isfunction(L
, -3-2)) {
1220 lua_pcall(L
, 3+1, 2, 0);
1221 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1225 lua_settop(L
, oldtop
);
1226 return this->QApplication::compressEvent(arg1
, arg2
, arg3
);
1228 bool ret
= (bool)lua_toboolean(L
, -1);
1229 lua_settop(L
, oldtop
);
1232 void LuaBinder
< QApplication
>::disconnectNotify (const char * arg1
) {
1233 bool absorbed
= false;
1234 int oldtop
= lua_gettop(L
);
1235 lqtL_pushudata(L
, this, "QApplication*");
1236 if (lua_getmetatable(L
, -1)) {
1237 lua_getfield(L
, -1, "disconnectNotify");
1243 lua_pushstring(L
, arg1
);
1244 if (lua_isfunction(L
, -1-2)) {
1245 lua_pcall(L
, 1+1, 2, 0);
1246 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1250 lua_settop(L
, oldtop
);
1251 this->QObject::disconnectNotify(arg1
);
1253 lua_settop(L
, oldtop
);
1255 void LuaBinder
< QApplication
>::childEvent (QChildEvent
* arg1
) {
1256 bool absorbed
= false;
1257 int oldtop
= lua_gettop(L
);
1258 lqtL_pushudata(L
, this, "QApplication*");
1259 if (lua_getmetatable(L
, -1)) {
1260 lua_getfield(L
, -1, "childEvent");
1266 lqtL_pushudata(L
, arg1
, "QChildEvent*");
1267 if (lua_isfunction(L
, -1-2)) {
1268 lua_pcall(L
, 1+1, 2, 0);
1269 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1273 lua_settop(L
, oldtop
);
1274 this->QObject::childEvent(arg1
);
1276 lua_settop(L
, oldtop
);
1278 void LuaBinder
< QApplication
>::customEvent (QEvent
* arg1
) {
1279 bool absorbed
= false;
1280 int oldtop
= lua_gettop(L
);
1281 lqtL_pushudata(L
, this, "QApplication*");
1282 if (lua_getmetatable(L
, -1)) {
1283 lua_getfield(L
, -1, "customEvent");
1289 lqtL_pushudata(L
, arg1
, "QEvent*");
1290 if (lua_isfunction(L
, -1-2)) {
1291 lua_pcall(L
, 1+1, 2, 0);
1292 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1296 lua_settop(L
, oldtop
);
1297 this->QObject::customEvent(arg1
);
1299 lua_settop(L
, oldtop
);
1301 LuaBinder
< QApplication
>:: ~LuaBinder
< QApplication
> () {
1302 int oldtop
= lua_gettop(L
);
1303 lqtL_pushudata(L
, this, "QApplication*");
1304 lua_getfield(L
, -1, "~QApplication");
1306 if (lua_isfunction(L
, -1)) {
1308 lua_pcall(L
, 1, 1, 0);
1311 lua_settop(L
, oldtop
);
1313 int LuaBinder
< QApplication
>::lqt_pushenum_Type (lua_State
*L
) {
1315 lua_getfield(L
, LUA_REGISTRYINDEX
, LQT_ENUMS
);
1316 if (!lua_istable(L
, -1)) {
1319 lua_pushvalue(L
, -1);
1320 lua_setfield(L
, LUA_REGISTRYINDEX
, LQT_ENUMS
);
1323 enum_table
= lua_gettop(L
);
1324 lua_pushstring(L
, "Tty");
1325 lua_rawseti(L
, enum_table
, 0);
1326 lua_pushinteger(L
, 0);
1327 lua_setfield(L
, enum_table
, "Tty");
1328 lua_pushstring(L
, "GuiClient");
1329 lua_rawseti(L
, enum_table
, 1);
1330 lua_pushinteger(L
, 1);
1331 lua_setfield(L
, enum_table
, "GuiClient");
1332 lua_pushstring(L
, "GuiServer");
1333 lua_rawseti(L
, enum_table
, 2);
1334 lua_pushinteger(L
, 2);
1335 lua_setfield(L
, enum_table
, "GuiServer");
1336 lua_pushcfunction(L
, LuaBinder
< QApplication
>::lqt_pushenum_Type_QFLAGS_CREATOR
);
1337 lua_setfield(L
, enum_table
, "QFlags");
1338 lua_pushvalue(L
, -1);
1339 lua_setfield(L
, -3, "QApplication::Type");
1343 int LuaBinder
< QApplication
>::lqt_pushenum_Type_QFLAGS_CREATOR (lua_State
*L
) {
1344 int argn
= lua_gettop(L
);
1346 void *p
= lua_newuserdata(L
, sizeof(QFlags
<QApplication::Type
>*) + sizeof(QFlags
<QApplication::Type
>));
1347 QFlags
<QApplication::Type
> *fl
= static_cast<QFlags
<QApplication::Type
>*>( static_cast<void*>(&static_cast<QFlags
<QApplication::Type
>**>(p
)[1]) );
1349 for (i
=1;i
<=argn
;i
++) {
1350 *fl
|= static_cast<QApplication::Type
>(lqtL_toenum(L
, i
, "QApplication::Type"));
1352 if (luaL_newmetatable(L
, "QFlags<QApplication::Type>*")) {
1353 lua_pushstring(L
, "QFlags<QApplication::Type>*");
1354 lua_setfield(L
, -2, "__qtype");
1356 lua_setmetatable(L
, -2);
1359 int LuaBinder
< QApplication
>::lqt_pushenum_ColorSpec (lua_State
*L
) {
1361 lua_getfield(L
, LUA_REGISTRYINDEX
, LQT_ENUMS
);
1362 if (!lua_istable(L
, -1)) {
1365 lua_pushvalue(L
, -1);
1366 lua_setfield(L
, LUA_REGISTRYINDEX
, LQT_ENUMS
);
1369 enum_table
= lua_gettop(L
);
1370 lua_pushstring(L
, "NormalColor");
1371 lua_rawseti(L
, enum_table
, 0);
1372 lua_pushinteger(L
, 0);
1373 lua_setfield(L
, enum_table
, "NormalColor");
1374 lua_pushstring(L
, "CustomColor");
1375 lua_rawseti(L
, enum_table
, 1);
1376 lua_pushinteger(L
, 1);
1377 lua_setfield(L
, enum_table
, "CustomColor");
1378 lua_pushstring(L
, "ManyColor");
1379 lua_rawseti(L
, enum_table
, 2);
1380 lua_pushinteger(L
, 2);
1381 lua_setfield(L
, enum_table
, "ManyColor");
1382 lua_pushcfunction(L
, LuaBinder
< QApplication
>::lqt_pushenum_ColorSpec_QFLAGS_CREATOR
);
1383 lua_setfield(L
, enum_table
, "QFlags");
1384 lua_pushvalue(L
, -1);
1385 lua_setfield(L
, -3, "QApplication::ColorSpec");
1389 int LuaBinder
< QApplication
>::lqt_pushenum_ColorSpec_QFLAGS_CREATOR (lua_State
*L
) {
1390 int argn
= lua_gettop(L
);
1392 void *p
= lua_newuserdata(L
, sizeof(QFlags
<QApplication::ColorSpec
>*) + sizeof(QFlags
<QApplication::ColorSpec
>));
1393 QFlags
<QApplication::ColorSpec
> *fl
= static_cast<QFlags
<QApplication::ColorSpec
>*>( static_cast<void*>(&static_cast<QFlags
<QApplication::ColorSpec
>**>(p
)[1]) );
1395 for (i
=1;i
<=argn
;i
++) {
1396 *fl
|= static_cast<QApplication::ColorSpec
>(lqtL_toenum(L
, i
, "QApplication::ColorSpec"));
1398 if (luaL_newmetatable(L
, "QFlags<QApplication::ColorSpec>*")) {
1399 lua_pushstring(L
, "QFlags<QApplication::ColorSpec>*");
1400 lua_setfield(L
, -2, "__qtype");
1402 lua_setmetatable(L
, -2);
1405 int luaopen_QApplication (lua_State
*L
) {
1406 if (luaL_newmetatable(L
, "QApplication*")) {
1407 lua_pushcfunction(L
, LuaBinder
< QApplication
>::__LuaWrapCall__setWheelScrollLines
);
1408 lua_setfield(L
, -2, "setWheelScrollLines");
1409 lua_pushcfunction(L
, LuaBinder
< QApplication
>::__LuaWrapCall__styleSheet
);
1410 lua_setfield(L
, -2, "styleSheet");
1411 lua_pushcfunction(L
, LuaBinder
< QApplication
>::__LuaWrapCall__colorSpec
);
1412 lua_setfield(L
, -2, "colorSpec");
1413 lua_pushcfunction(L
, LuaBinder
< QApplication
>::__LuaWrapCall__doubleClickInterval
);
1414 lua_setfield(L
, -2, "doubleClickInterval");
1415 lua_pushcfunction(L
, LuaBinder
< QApplication
>::__LuaWrapCall__activePopupWidget
);
1416 lua_setfield(L
, -2, "activePopupWidget");
1417 lua_pushcfunction(L
, LuaBinder
< QApplication
>::__LuaWrapCall__setStyle
);
1418 lua_setfield(L
, -2, "setStyle");
1419 lua_pushcfunction(L
, LuaBinder
< QApplication
>::__LuaWrapCall__keyboardInputDirection
);
1420 lua_setfield(L
, -2, "keyboardInputDirection");
1421 lua_pushcfunction(L
, LuaBinder
< QApplication
>::__LuaWrapCall__tr
);
1422 lua_setfield(L
, -2, "tr");
1423 lua_pushcfunction(L
, LuaBinder
< QApplication
>::__LuaWrapCall__sessionId
);
1424 lua_setfield(L
, -2, "sessionId");
1425 lua_pushcfunction(L
, LuaBinder
< QApplication
>::__LuaWrapCall__palette
);
1426 lua_setfield(L
, -2, "palette");
1427 lua_pushcfunction(L
, LuaBinder
< QApplication
>::__LuaWrapCall__setStartDragDistance
);
1428 lua_setfield(L
, -2, "setStartDragDistance");
1429 lua_pushcfunction(L
, LuaBinder
< QApplication
>::__LuaWrapCall__style
);
1430 lua_setfield(L
, -2, "style");
1431 lua_pushcfunction(L
, LuaBinder
< QApplication
>::__LuaWrapCall__setGlobalStrut
);
1432 lua_setfield(L
, -2, "setGlobalStrut");
1433 lua_pushcfunction(L
, LuaBinder
< QApplication
>::__LuaWrapCall__fontMetrics
);
1434 lua_setfield(L
, -2, "fontMetrics");
1435 lua_pushcfunction(L
, LuaBinder
< QApplication
>::__LuaWrapCall__setQuitOnLastWindowClosed
);
1436 lua_setfield(L
, -2, "setQuitOnLastWindowClosed");
1437 lua_pushcfunction(L
, LuaBinder
< QApplication
>::__LuaWrapCall__keyboardInputInterval
);
1438 lua_setfield(L
, -2, "keyboardInputInterval");
1439 lua_pushcfunction(L
, LuaBinder
< QApplication
>::__LuaWrapCall__beep
);
1440 lua_setfield(L
, -2, "beep");
1441 lua_pushcfunction(L
, LuaBinder
< QApplication
>::__LuaWrapCall__aboutQt
);
1442 lua_setfield(L
, -2, "aboutQt");
1443 lua_pushcfunction(L
, LuaBinder
< QApplication
>::__LuaWrapCall__startDragTime
);
1444 lua_setfield(L
, -2, "startDragTime");
1445 lua_pushcfunction(L
, LuaBinder
< QApplication
>::__LuaWrapCall__metaObject
);
1446 lua_setfield(L
, -2, "metaObject");
1447 lua_pushcfunction(L
, LuaBinder
< QApplication
>::__LuaWrapCall__delete
);
1448 lua_setfield(L
, -2, "delete");
1449 lua_pushcfunction(L
, LuaBinder
< QApplication
>::__LuaWrapCall__mouseButtons
);
1450 lua_setfield(L
, -2, "mouseButtons");
1451 lua_pushcfunction(L
, LuaBinder
< QApplication
>::__LuaWrapCall__keyboardModifiers
);
1452 lua_setfield(L
, -2, "keyboardModifiers");
1453 lua_pushcfunction(L
, LuaBinder
< QApplication
>::__LuaWrapCall__setOverrideCursor
);
1454 lua_setfield(L
, -2, "setOverrideCursor");
1455 lua_pushcfunction(L
, LuaBinder
< QApplication
>::__LuaWrapCall__focusWidget
);
1456 lua_setfield(L
, -2, "focusWidget");
1457 lua_pushcfunction(L
, LuaBinder
< QApplication
>::__LuaWrapCall__overrideCursor
);
1458 lua_setfield(L
, -2, "overrideCursor");
1459 lua_pushcfunction(L
, LuaBinder
< QApplication
>::__LuaWrapCall__exec
);
1460 lua_setfield(L
, -2, "exec");
1461 lua_pushcfunction(L
, LuaBinder
< QApplication
>::__LuaWrapCall__setEffectEnabled
);
1462 lua_setfield(L
, -2, "setEffectEnabled");
1463 lua_pushcfunction(L
, LuaBinder
< QApplication
>::__LuaWrapCall__saveState
);
1464 lua_setfield(L
, -2, "saveState");
1465 lua_pushcfunction(L
, LuaBinder
< QApplication
>::__LuaWrapCall__setDesktopSettingsAware
);
1466 lua_setfield(L
, -2, "setDesktopSettingsAware");
1467 lua_pushcfunction(L
, LuaBinder
< QApplication
>::__LuaWrapCall__sessionKey
);
1468 lua_setfield(L
, -2, "sessionKey");
1469 lua_pushcfunction(L
, LuaBinder
< QApplication
>::__LuaWrapCall__trUtf8
);
1470 lua_setfield(L
, -2, "trUtf8");
1471 lua_pushcfunction(L
, LuaBinder
< QApplication
>::__LuaWrapCall__topLevelWidgets
);
1472 lua_setfield(L
, -2, "topLevelWidgets");
1473 lua_pushcfunction(L
, LuaBinder
< QApplication
>::__LuaWrapCall__desktop
);
1474 lua_setfield(L
, -2, "desktop");
1475 lua_pushcfunction(L
, LuaBinder
< QApplication
>::__LuaWrapCall__quitOnLastWindowClosed
);
1476 lua_setfield(L
, -2, "quitOnLastWindowClosed");
1477 lua_pushcfunction(L
, LuaBinder
< QApplication
>::__LuaWrapCall__setPalette
);
1478 lua_setfield(L
, -2, "setPalette");
1479 lua_pushcfunction(L
, LuaBinder
< QApplication
>::__LuaWrapCall__isLeftToRight
);
1480 lua_setfield(L
, -2, "isLeftToRight");
1481 lua_pushcfunction(L
, LuaBinder
< QApplication
>::__LuaWrapCall__layoutDirection
);
1482 lua_setfield(L
, -2, "layoutDirection");
1483 lua_pushcfunction(L
, LuaBinder
< QApplication
>::__LuaWrapCall__keyboardInputLocale
);
1484 lua_setfield(L
, -2, "keyboardInputLocale");
1485 lua_pushcfunction(L
, LuaBinder
< QApplication
>::__LuaWrapCall__new
);
1486 lua_setfield(L
, -2, "new");
1487 lua_pushcfunction(L
, LuaBinder
< QApplication
>::__LuaWrapCall__wheelScrollLines
);
1488 lua_setfield(L
, -2, "wheelScrollLines");
1489 lua_pushcfunction(L
, LuaBinder
< QApplication
>::__LuaWrapCall__type
);
1490 lua_setfield(L
, -2, "type");
1491 lua_pushcfunction(L
, LuaBinder
< QApplication
>::__LuaWrapCall__syncX
);
1492 lua_setfield(L
, -2, "syncX");
1493 lua_pushcfunction(L
, LuaBinder
< QApplication
>::__LuaWrapCall__setDoubleClickInterval
);
1494 lua_setfield(L
, -2, "setDoubleClickInterval");
1495 lua_pushcfunction(L
, LuaBinder
< QApplication
>::__LuaWrapCall__setColorSpec
);
1496 lua_setfield(L
, -2, "setColorSpec");
1497 lua_pushcfunction(L
, LuaBinder
< QApplication
>::__LuaWrapCall__windowIcon
);
1498 lua_setfield(L
, -2, "windowIcon");
1499 lua_pushcfunction(L
, LuaBinder
< QApplication
>::__LuaWrapCall__restoreOverrideCursor
);
1500 lua_setfield(L
, -2, "restoreOverrideCursor");
1501 lua_pushcfunction(L
, LuaBinder
< QApplication
>::__LuaWrapCall__setKeyboardInputInterval
);
1502 lua_setfield(L
, -2, "setKeyboardInputInterval");
1503 lua_pushcfunction(L
, LuaBinder
< QApplication
>::__LuaWrapCall__setActiveWindow
);
1504 lua_setfield(L
, -2, "setActiveWindow");
1505 lua_pushcfunction(L
, LuaBinder
< QApplication
>::__LuaWrapCall__cursorFlashTime
);
1506 lua_setfield(L
, -2, "cursorFlashTime");
1507 lua_pushcfunction(L
, LuaBinder
< QApplication
>::__LuaWrapCall__globalStrut
);
1508 lua_setfield(L
, -2, "globalStrut");
1509 lua_pushcfunction(L
, LuaBinder
< QApplication
>::__LuaWrapCall__font
);
1510 lua_setfield(L
, -2, "font");
1511 lua_pushcfunction(L
, LuaBinder
< QApplication
>::__LuaWrapCall__desktopSettingsAware
);
1512 lua_setfield(L
, -2, "desktopSettingsAware");
1513 lua_pushcfunction(L
, LuaBinder
< QApplication
>::__LuaWrapCall__topLevelAt
);
1514 lua_setfield(L
, -2, "topLevelAt");
1515 lua_pushcfunction(L
, LuaBinder
< QApplication
>::__LuaWrapCall__setCursorFlashTime
);
1516 lua_setfield(L
, -2, "setCursorFlashTime");
1517 lua_pushcfunction(L
, LuaBinder
< QApplication
>::__LuaWrapCall__setInputContext
);
1518 lua_setfield(L
, -2, "setInputContext");
1519 lua_pushcfunction(L
, LuaBinder
< QApplication
>::__LuaWrapCall__startDragDistance
);
1520 lua_setfield(L
, -2, "startDragDistance");
1521 lua_pushcfunction(L
, LuaBinder
< QApplication
>::__LuaWrapCall__clipboard
);
1522 lua_setfield(L
, -2, "clipboard");
1523 lua_pushcfunction(L
, LuaBinder
< QApplication
>::__LuaWrapCall__activeWindow
);
1524 lua_setfield(L
, -2, "activeWindow");
1525 lua_pushcfunction(L
, LuaBinder
< QApplication
>::__LuaWrapCall__changeOverrideCursor
);
1526 lua_setfield(L
, -2, "changeOverrideCursor");
1527 lua_pushcfunction(L
, LuaBinder
< QApplication
>::__LuaWrapCall__isSessionRestored
);
1528 lua_setfield(L
, -2, "isSessionRestored");
1529 lua_pushcfunction(L
, LuaBinder
< QApplication
>::__LuaWrapCall__activeModalWidget
);
1530 lua_setfield(L
, -2, "activeModalWidget");
1531 lua_pushcfunction(L
, LuaBinder
< QApplication
>::__LuaWrapCall__isEffectEnabled
);
1532 lua_setfield(L
, -2, "isEffectEnabled");
1533 lua_pushcfunction(L
, LuaBinder
< QApplication
>::__LuaWrapCall__inputContext
);
1534 lua_setfield(L
, -2, "inputContext");
1535 lua_pushcfunction(L
, LuaBinder
< QApplication
>::__LuaWrapCall__widgetAt
);
1536 lua_setfield(L
, -2, "widgetAt");
1537 lua_pushcfunction(L
, LuaBinder
< QApplication
>::__LuaWrapCall__setFont
);
1538 lua_setfield(L
, -2, "setFont");
1539 lua_pushcfunction(L
, LuaBinder
< QApplication
>::__LuaWrapCall__setStartDragTime
);
1540 lua_setfield(L
, -2, "setStartDragTime");
1541 lua_pushcfunction(L
, LuaBinder
< QApplication
>::__LuaWrapCall__allWidgets
);
1542 lua_setfield(L
, -2, "allWidgets");
1543 lua_pushcfunction(L
, LuaBinder
< QApplication
>::__LuaWrapCall__setWindowIcon
);
1544 lua_setfield(L
, -2, "setWindowIcon");
1545 lua_pushcfunction(L
, LuaBinder
< QApplication
>::__LuaWrapCall__commitData
);
1546 lua_setfield(L
, -2, "commitData");
1547 lua_pushcfunction(L
, LuaBinder
< QApplication
>::__LuaWrapCall__isRightToLeft
);
1548 lua_setfield(L
, -2, "isRightToLeft");
1549 lua_pushcfunction(L
, LuaBinder
< QApplication
>::__LuaWrapCall__notify
);
1550 lua_setfield(L
, -2, "notify");
1551 lua_pushcfunction(L
, LuaBinder
< QApplication
>::__LuaWrapCall__setLayoutDirection
);
1552 lua_setfield(L
, -2, "setLayoutDirection");
1553 lua_pushcfunction(L
, LuaBinder
< QApplication
>::__LuaWrapCall__closeAllWindows
);
1554 lua_setfield(L
, -2, "closeAllWindows");
1555 lua_pushcfunction(L
, LuaBinder
< QApplication
>::__LuaWrapCall__alert
);
1556 lua_setfield(L
, -2, "alert");
1557 lua_pushcfunction(L
, LuaBinder
< QApplication
>::__LuaWrapCall__setStyleSheet
);
1558 lua_setfield(L
, -2, "setStyleSheet");
1559 LuaBinder
< QApplication
>::lqt_pushenum_Type(L
);
1560 lua_setfield(L
, -2, "Type");
1561 LuaBinder
< QApplication
>::lqt_pushenum_ColorSpec(L
);
1562 lua_setfield(L
, -2, "ColorSpec");
1564 lua_pushboolean(L
, 1);
1565 lua_setfield(L
, -2, "QCoreApplication*");
1566 lua_pushboolean(L
, 0);
1567 lua_setfield(L
, -2, "QObject*");
1568 lua_setfield(L
, -2, "__base");
1569 lua_pushcfunction(L
, lqtL_newindex
);
1570 lua_setfield(L
, -2, "__newindex");
1571 lua_pushcfunction(L
, lqtL_index
);
1572 lua_setfield(L
, -2, "__index");
1573 lua_pushcfunction(L
, lqtL_gc
);
1574 lua_setfield(L
, -2, "__gc");
1575 lua_pushstring(L
, "QApplication");
1576 lua_setfield(L
, -2, "__qtype");
1577 lua_setglobal(L
, "QApplication");