1 #include "lqt_bind_QApplication.hpp"
3 #include <QFontMetrics>
7 int LuaBinder
< QApplication
>::__LuaWrapCall__setWheelScrollLines (lua_State
*L
) {
8 int arg1
= lua_tointeger(L
, 1);
9 QApplication::setWheelScrollLines(arg1
);
12 int LuaBinder
< QApplication
>::__LuaWrapCall__styleSheet (lua_State
*L
) {
13 QApplication
*& __lua__obj
= *static_cast<QApplication
**>(lqtL_checkudata(L
, 1, "QApplication*"));
15 lua_pushstring(L
, "trying to reference deleted pointer");
19 QString ret
= __lua__obj
->QApplication::styleSheet();
20 lua_pushlstring(L
, ret
.toAscii().data(), ret
.toAscii().size());
23 int LuaBinder
< QApplication
>::__LuaWrapCall__colorSpec (lua_State
*L
) {
24 int ret
= QApplication::colorSpec();
25 lua_pushinteger(L
, ret
);
28 int LuaBinder
< QApplication
>::__LuaWrapCall__doubleClickInterval (lua_State
*L
) {
29 int ret
= QApplication::doubleClickInterval();
30 lua_pushinteger(L
, ret
);
33 int LuaBinder
< QApplication
>::__LuaWrapCall__activePopupWidget (lua_State
*L
) {
34 QWidget
* ret
= QApplication::activePopupWidget();
35 lqtL_pushudata(L
, ret
, "QWidget*");
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
);
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*");
49 int LuaBinder
< QApplication
>::__LuaWrapCall__setStyle (lua_State
*L
) {
51 const int premium
= 11+lua_gettop(L
);
53 if (lqtL_testudata(L
, 1, "QStyle*")) {
56 score
[1] += premium
-1; // table: 0xb5d6b0;
58 score
[1] -= premium
*premium
;
61 if ((lua_type(L
, 1)==LUA_TSTRING
)) {
64 score
[2] += premium
-1; // table: 0xb5e080;
66 score
[2] -= premium
*premium
;
69 for (int i
=1;i
<=2;i
++) {
70 if (score
[best
] < score
[i
]) { best
= i
; }
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");
80 int LuaBinder
< QApplication
>::__LuaWrapCall__keyboardInputDirection (lua_State
*L
) {
81 Qt::LayoutDirection ret
= QApplication::keyboardInputDirection();
82 lqtL_pushenum(L
, ret
, "Qt::LayoutDirection");
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());
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());
100 int LuaBinder
< QApplication
>::__LuaWrapCall__tr (lua_State
*L
) {
102 const int premium
= 11+lua_gettop(L
);
104 if ((lua_type(L
, 1)==LUA_TSTRING
)) {
107 score
[1] += premium
-1; // table: 0xb50130;
109 score
[1] -= premium
*premium
;
111 if ((lua_type(L
, 2)==LUA_TSTRING
)) {
114 score
[1] += premium
-1; // table: 0xb4fe90;
116 score
[1] -= premium
*premium
;
119 if ((lua_type(L
, 1)==LUA_TSTRING
)) {
122 score
[2] += premium
-1; // table: 0xb51ba0;
124 score
[2] -= premium
*premium
;
126 if ((lua_type(L
, 2)==LUA_TSTRING
)) {
129 score
[2] += premium
-1; // table: 0xb52090;
131 score
[2] -= premium
*premium
;
133 if (lua_isnumber(L
, 3)) {
136 score
[2] += premium
-1; // table: 0xb52440;
138 score
[2] -= premium
*premium
;
141 for (int i
=1;i
<=2;i
++) {
142 if (score
[best
] < score
[i
]) { best
= i
; }
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");
152 int LuaBinder
< QApplication
>::__LuaWrapCall__sessionId (lua_State
*L
) {
153 QApplication
*& __lua__obj
= *static_cast<QApplication
**>(lqtL_checkudata(L
, 1, "QApplication*"));
155 lua_pushstring(L
, "trying to reference deleted pointer");
159 QString ret
= __lua__obj
->QApplication::sessionId();
160 lua_pushlstring(L
, ret
.toAscii().data(), ret
.toAscii().size());
163 int LuaBinder
< QApplication
>::__LuaWrapCall__palette__OverloadedVersion__1 (lua_State
*L
) {
164 QPalette ret
= QApplication::palette();
165 lqtL_passudata(L
, new QPalette(ret
), "QPalette*");
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*");
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*");
180 int LuaBinder
< QApplication
>::__LuaWrapCall__palette (lua_State
*L
) {
182 const int premium
= 11+lua_gettop(L
);
185 if (lqtL_testudata(L
, 1, "QWidget*")) {
188 score
[2] += premium
-1; // table: 0xb626f0;
190 score
[2] -= premium
*premium
;
193 if ((lua_type(L
, 1)==LUA_TSTRING
)) {
196 score
[3] += premium
-1; // table: 0xb630f0;
198 score
[3] -= premium
*premium
;
201 for (int i
=1;i
<=3;i
++) {
202 if (score
[best
] < score
[i
]) { best
= i
; }
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");
213 int LuaBinder
< QApplication
>::__LuaWrapCall__setStartDragDistance (lua_State
*L
) {
214 int arg1
= lua_tointeger(L
, 1);
215 QApplication::setStartDragDistance(arg1
);
218 int LuaBinder
< QApplication
>::__LuaWrapCall__style (lua_State
*L
) {
219 QStyle
* ret
= QApplication::style();
220 lqtL_pushudata(L
, ret
, "QStyle*");
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
);
228 int LuaBinder
< QApplication
>::__LuaWrapCall__fontMetrics (lua_State
*L
) {
229 QFontMetrics ret
= QApplication::fontMetrics();
230 lqtL_passudata(L
, new QFontMetrics(ret
), "QFontMetrics*");
233 int LuaBinder
< QApplication
>::__LuaWrapCall__setQuitOnLastWindowClosed (lua_State
*L
) {
234 bool arg1
= (bool)lua_toboolean(L
, 1);
235 QApplication::setQuitOnLastWindowClosed(arg1
);
238 int LuaBinder
< QApplication
>::__LuaWrapCall__keyboardInputInterval (lua_State
*L
) {
239 int ret
= QApplication::keyboardInputInterval();
240 lua_pushinteger(L
, ret
);
243 int LuaBinder
< QApplication
>::__LuaWrapCall__beep (lua_State
*L
) {
244 QApplication::beep();
247 int LuaBinder
< QApplication
>::__LuaWrapCall__aboutQt (lua_State
*L
) {
248 QApplication::aboutQt();
251 int LuaBinder
< QApplication
>::__LuaWrapCall__startDragTime (lua_State
*L
) {
252 int ret
= QApplication::startDragTime();
253 lua_pushinteger(L
, ret
);
256 int LuaBinder
< QApplication
>::__LuaWrapCall__metaObject (lua_State
*L
) {
257 QApplication
*& __lua__obj
= *static_cast<QApplication
**>(lqtL_checkudata(L
, 1, "QApplication*"));
259 lua_pushstring(L
, "trying to reference deleted pointer");
263 const QMetaObject
* ret
= __lua__obj
->QApplication::metaObject();
264 lqtL_pushudata(L
, ret
, "QMetaObject*");
267 int LuaBinder
< QApplication
>::__LuaWrapCall__delete (lua_State
*L
) {
268 QApplication
*& __lua__obj
= *static_cast<QApplication
**>(lqtL_checkudata(L
, 1, "QApplication*"));
270 lua_pushstring(L
, "trying to reference deleted pointer");
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>*");
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>*");
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
);
293 int LuaBinder
< QApplication
>::__LuaWrapCall__focusWidget (lua_State
*L
) {
294 QWidget
* ret
= QApplication::focusWidget();
295 lqtL_pushudata(L
, ret
, "QWidget*");
298 int LuaBinder
< QApplication
>::__LuaWrapCall__overrideCursor (lua_State
*L
) {
299 QCursor
* ret
= QApplication::overrideCursor();
300 lqtL_pushudata(L
, ret
, "QCursor*");
303 int LuaBinder
< QApplication
>::__LuaWrapCall__exec (lua_State
*L
) {
304 int ret
= QApplication::exec();
305 lua_pushinteger(L
, ret
);
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
);
314 int LuaBinder
< QApplication
>::__LuaWrapCall__saveState (lua_State
*L
) {
315 QApplication
*& __lua__obj
= *static_cast<QApplication
**>(lqtL_checkudata(L
, 1, "QApplication*"));
317 lua_pushstring(L
, "trying to reference deleted pointer");
321 QSessionManager
& arg1
= **static_cast<QSessionManager
**>(lqtL_checkudata(L
, 2, "QSessionManager*"));
322 __lua__obj
->QApplication::saveState(arg1
);
325 int LuaBinder
< QApplication
>::__LuaWrapCall__setDesktopSettingsAware (lua_State
*L
) {
326 bool arg1
= (bool)lua_toboolean(L
, 1);
327 QApplication::setDesktopSettingsAware(arg1
);
330 int LuaBinder
< QApplication
>::__LuaWrapCall__sessionKey (lua_State
*L
) {
331 QApplication
*& __lua__obj
= *static_cast<QApplication
**>(lqtL_checkudata(L
, 1, "QApplication*"));
333 lua_pushstring(L
, "trying to reference deleted pointer");
337 QString ret
= __lua__obj
->QApplication::sessionKey();
338 lua_pushlstring(L
, ret
.toAscii().data(), ret
.toAscii().size());
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());
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());
356 int LuaBinder
< QApplication
>::__LuaWrapCall__trUtf8 (lua_State
*L
) {
358 const int premium
= 11+lua_gettop(L
);
360 if ((lua_type(L
, 1)==LUA_TSTRING
)) {
363 score
[1] += premium
-1; // table: 0xb50ec0;
365 score
[1] -= premium
*premium
;
367 if ((lua_type(L
, 2)==LUA_TSTRING
)) {
370 score
[1] += premium
-1; // table: 0xb50a20;
372 score
[1] -= premium
*premium
;
375 if ((lua_type(L
, 1)==LUA_TSTRING
)) {
378 score
[2] += premium
-1; // table: 0xb52cc0;
380 score
[2] -= premium
*premium
;
382 if ((lua_type(L
, 2)==LUA_TSTRING
)) {
385 score
[2] += premium
-1; // table: 0xb523e0;
387 score
[2] -= premium
*premium
;
389 if (lua_isnumber(L
, 3)) {
392 score
[2] += premium
-1; // table: 0xb53140;
394 score
[2] -= premium
*premium
;
397 for (int i
=1;i
<=2;i
++) {
398 if (score
[best
] < score
[i
]) { best
= i
; }
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");
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*>*");
413 int LuaBinder
< QApplication
>::__LuaWrapCall__desktop (lua_State
*L
) {
414 QDesktopWidget
* ret
= QApplication::desktop();
415 lqtL_pushudata(L
, ret
, "QDesktopWidget*");
418 int LuaBinder
< QApplication
>::__LuaWrapCall__quitOnLastWindowClosed (lua_State
*L
) {
419 bool ret
= QApplication::quitOnLastWindowClosed();
420 lua_pushboolean(L
, ret
);
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
);
429 int LuaBinder
< QApplication
>::__LuaWrapCall__isLeftToRight (lua_State
*L
) {
430 bool ret
= QApplication::isLeftToRight();
431 lua_pushboolean(L
, ret
);
434 int LuaBinder
< QApplication
>::__LuaWrapCall__layoutDirection (lua_State
*L
) {
435 Qt::LayoutDirection ret
= QApplication::layoutDirection();
436 lqtL_pushenum(L
, ret
, "Qt::LayoutDirection");
439 int LuaBinder
< QApplication
>::__LuaWrapCall__keyboardInputLocale (lua_State
*L
) {
440 QLocale ret
= QApplication::keyboardInputLocale();
441 lqtL_passudata(L
, new QLocale(ret
), "QLocale*");
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*");
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*");
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*");
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*");
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*");
490 int LuaBinder
< QApplication
>::__LuaWrapCall__new (lua_State
*L
) {
492 const int premium
= 11+lua_gettop(L
);
494 if (lua_isnumber(L
, 1)) {
497 score
[1] += premium
-1; // table: 0xb54de0;
499 score
[1] -= premium
*premium
;
501 if (lqtL_testarguments(L
, 2)) {
504 score
[1] += premium
-1; // table: 0xb54aa0;
506 score
[1] -= premium
*premium
;
508 if (lua_isnumber(L
, 3)) {
511 score
[1] += premium
-1; // table: 0xb55290;
513 score
[1] -= premium
*premium
;
516 if (lua_isnumber(L
, 1)) {
519 score
[2] += premium
-1; // table: 0xb56080;
521 score
[2] -= premium
*premium
;
523 if (lqtL_testarguments(L
, 2)) {
526 score
[2] += premium
-1; // table: 0xb55d70;
528 score
[2] -= premium
*premium
;
530 if (lua_isboolean(L
, 3)) {
533 score
[2] += premium
-1; // table: 0xb56530;
535 score
[2] -= premium
*premium
;
537 if (lua_isnumber(L
, 4)) {
540 score
[2] += premium
-1; // table: 0xb56e00;
542 score
[2] -= premium
*premium
;
545 if (lua_isnumber(L
, 1)) {
548 score
[3] += premium
-1; // table: 0xb576d0;
550 score
[3] -= premium
*premium
;
552 if (lqtL_testarguments(L
, 2)) {
555 score
[3] += premium
-1; // table: 0xb573f0;
557 score
[3] -= premium
*premium
;
559 if (lqtL_isenum(L
, 3, "QApplication::Type")) {
562 score
[3] += premium
-1; // table: 0xb57fa0;
564 score
[3] -= premium
*premium
;
566 if (lua_isnumber(L
, 4)) {
569 score
[3] += premium
-1; // table: 0xb57f40;
571 score
[3] -= premium
*premium
;
574 if (lqtL_testudata(L
, 1, "_XDisplay*")) {
577 score
[4] += premium
-1; // table: 0xb58c30;
579 score
[4] -= premium
*premium
;
581 if (lua_isnumber(L
, 2)) {
584 score
[4] += premium
-1; // table: 0xb58950;
586 score
[4] -= premium
*premium
;
588 if (lua_isnumber(L
, 3)) {
591 score
[4] += premium
-1; // table: 0xb59180;
593 score
[4] -= premium
*premium
;
595 if (lua_isnumber(L
, 4)) {
598 score
[4] += premium
-1; // table: 0xb59ad0;
600 score
[4] -= premium
*premium
;
603 if (lqtL_testudata(L
, 1, "_XDisplay*")) {
606 score
[5] += premium
-1; // table: 0xb5a3b0;
608 score
[5] -= premium
*premium
;
610 if (lua_isnumber(L
, 2)) {
613 score
[5] += premium
-1; // table: 0xb5a0c0;
615 score
[5] -= premium
*premium
;
617 if (lqtL_testarguments(L
, 3)) {
620 score
[5] += premium
-1; // table: 0xb5a870;
622 score
[5] -= premium
*premium
;
624 if (lua_isnumber(L
, 4)) {
627 score
[5] += premium
-1; // table: 0xb5b0d0;
629 score
[5] -= premium
*premium
;
631 if (lua_isnumber(L
, 5)) {
634 score
[5] += premium
-1; // table: 0xb5b480;
636 score
[5] -= premium
*premium
;
638 if (lua_isnumber(L
, 6)) {
641 score
[5] += premium
-1; // table: 0xb5b020;
643 score
[5] -= premium
*premium
;
646 for (int i
=1;i
<=5;i
++) {
647 if (score
[best
] < score
[i
]) { best
= i
; }
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");
660 int LuaBinder
< QApplication
>::__LuaWrapCall__wheelScrollLines (lua_State
*L
) {
661 int ret
= QApplication::wheelScrollLines();
662 lua_pushinteger(L
, ret
);
665 int LuaBinder
< QApplication
>::__LuaWrapCall__type (lua_State
*L
) {
666 QApplication::Type ret
= QApplication::type();
667 lqtL_pushenum(L
, ret
, "QApplication::Type");
670 int LuaBinder
< QApplication
>::__LuaWrapCall__syncX (lua_State
*L
) {
671 QApplication::syncX();
674 int LuaBinder
< QApplication
>::__LuaWrapCall__setDoubleClickInterval (lua_State
*L
) {
675 int arg1
= lua_tointeger(L
, 1);
676 QApplication::setDoubleClickInterval(arg1
);
679 int LuaBinder
< QApplication
>::__LuaWrapCall__setColorSpec (lua_State
*L
) {
680 int arg1
= lua_tointeger(L
, 1);
681 QApplication::setColorSpec(arg1
);
684 int LuaBinder
< QApplication
>::__LuaWrapCall__windowIcon (lua_State
*L
) {
685 QIcon ret
= QApplication::windowIcon();
686 lqtL_passudata(L
, new QIcon(ret
), "QIcon*");
689 int LuaBinder
< QApplication
>::__LuaWrapCall__restoreOverrideCursor (lua_State
*L
) {
690 QApplication::restoreOverrideCursor();
693 int LuaBinder
< QApplication
>::__LuaWrapCall__setKeyboardInputInterval (lua_State
*L
) {
694 int arg1
= lua_tointeger(L
, 1);
695 QApplication::setKeyboardInputInterval(arg1
);
698 int LuaBinder
< QApplication
>::__LuaWrapCall__setActiveWindow (lua_State
*L
) {
699 QWidget
* arg1
= *static_cast<QWidget
**>(lqtL_checkudata(L
, 1, "QWidget*"));
700 QApplication::setActiveWindow(arg1
);
703 int LuaBinder
< QApplication
>::__LuaWrapCall__cursorFlashTime (lua_State
*L
) {
704 int ret
= QApplication::cursorFlashTime();
705 lua_pushinteger(L
, ret
);
708 int LuaBinder
< QApplication
>::__LuaWrapCall__globalStrut (lua_State
*L
) {
709 QSize ret
= QApplication::globalStrut();
710 lqtL_passudata(L
, new QSize(ret
), "QSize*");
713 int LuaBinder
< QApplication
>::__LuaWrapCall__font__OverloadedVersion__1 (lua_State
*L
) {
714 QFont ret
= QApplication::font();
715 lqtL_passudata(L
, new QFont(ret
), "QFont*");
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*");
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*");
730 int LuaBinder
< QApplication
>::__LuaWrapCall__font (lua_State
*L
) {
732 const int premium
= 11+lua_gettop(L
);
735 if (lqtL_testudata(L
, 1, "QWidget*")) {
738 score
[2] += premium
-1; // table: 0xb651c0;
740 score
[2] -= premium
*premium
;
743 if ((lua_type(L
, 1)==LUA_TSTRING
)) {
746 score
[3] += premium
-1; // table: 0xb65b50;
748 score
[3] -= premium
*premium
;
751 for (int i
=1;i
<=3;i
++) {
752 if (score
[best
] < score
[i
]) { best
= i
; }
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");
763 int LuaBinder
< QApplication
>::__LuaWrapCall__desktopSettingsAware (lua_State
*L
) {
764 bool ret
= QApplication::desktopSettingsAware();
765 lua_pushboolean(L
, ret
);
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*");
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*");
781 int LuaBinder
< QApplication
>::__LuaWrapCall__topLevelAt (lua_State
*L
) {
783 const int premium
= 11+lua_gettop(L
);
785 if (lqtL_testudata(L
, 1, "QPoint*")) {
788 score
[1] += premium
-1; // table: 0xb6efe0;
790 score
[1] -= premium
*premium
;
793 if (lua_isnumber(L
, 1)) {
796 score
[2] += premium
-1; // table: 0xb6fa60;
798 score
[2] -= premium
*premium
;
800 if (lua_isnumber(L
, 2)) {
803 score
[2] += premium
-1; // table: 0xb6ff80;
805 score
[2] -= premium
*premium
;
808 for (int i
=1;i
<=2;i
++) {
809 if (score
[best
] < score
[i
]) { best
= i
; }
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");
819 int LuaBinder
< QApplication
>::__LuaWrapCall__setCursorFlashTime (lua_State
*L
) {
820 int arg1
= lua_tointeger(L
, 1);
821 QApplication::setCursorFlashTime(arg1
);
824 int LuaBinder
< QApplication
>::__LuaWrapCall__setInputContext (lua_State
*L
) {
825 QApplication
*& __lua__obj
= *static_cast<QApplication
**>(lqtL_checkudata(L
, 1, "QApplication*"));
827 lua_pushstring(L
, "trying to reference deleted pointer");
831 QInputContext
* arg1
= *static_cast<QInputContext
**>(lqtL_checkudata(L
, 2, "QInputContext*"));
832 __lua__obj
->QApplication::setInputContext(arg1
);
835 int LuaBinder
< QApplication
>::__LuaWrapCall__startDragDistance (lua_State
*L
) {
836 int ret
= QApplication::startDragDistance();
837 lua_pushinteger(L
, ret
);
840 int LuaBinder
< QApplication
>::__LuaWrapCall__clipboard (lua_State
*L
) {
841 QClipboard
* ret
= QApplication::clipboard();
842 lqtL_pushudata(L
, ret
, "QClipboard*");
845 int LuaBinder
< QApplication
>::__LuaWrapCall__activeWindow (lua_State
*L
) {
846 QWidget
* ret
= QApplication::activeWindow();
847 lqtL_pushudata(L
, ret
, "QWidget*");
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
);
855 int LuaBinder
< QApplication
>::__LuaWrapCall__isSessionRestored (lua_State
*L
) {
856 QApplication
*& __lua__obj
= *static_cast<QApplication
**>(lqtL_checkudata(L
, 1, "QApplication*"));
858 lua_pushstring(L
, "trying to reference deleted pointer");
862 bool ret
= __lua__obj
->QApplication::isSessionRestored();
863 lua_pushboolean(L
, ret
);
866 int LuaBinder
< QApplication
>::__LuaWrapCall__activeModalWidget (lua_State
*L
) {
867 QWidget
* ret
= QApplication::activeModalWidget();
868 lqtL_pushudata(L
, ret
, "QWidget*");
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
);
877 int LuaBinder
< QApplication
>::__LuaWrapCall__inputContext (lua_State
*L
) {
878 QApplication
*& __lua__obj
= *static_cast<QApplication
**>(lqtL_checkudata(L
, 1, "QApplication*"));
880 lua_pushstring(L
, "trying to reference deleted pointer");
884 QInputContext
* ret
= __lua__obj
->QApplication::inputContext();
885 lqtL_pushudata(L
, ret
, "QInputContext*");
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*");
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*");
901 int LuaBinder
< QApplication
>::__LuaWrapCall__widgetAt (lua_State
*L
) {
903 const int premium
= 11+lua_gettop(L
);
905 if (lqtL_testudata(L
, 1, "QPoint*")) {
908 score
[1] += premium
-1; // table: 0xb6d6d0;
910 score
[1] -= premium
*premium
;
913 if (lua_isnumber(L
, 1)) {
916 score
[2] += premium
-1; // table: 0xb6e130;
918 score
[2] -= premium
*premium
;
920 if (lua_isnumber(L
, 2)) {
923 score
[2] += premium
-1; // table: 0xb6e640;
925 score
[2] -= premium
*premium
;
928 for (int i
=1;i
<=2;i
++) {
929 if (score
[best
] < score
[i
]) { best
= i
; }
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");
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
);
945 int LuaBinder
< QApplication
>::__LuaWrapCall__setStartDragTime (lua_State
*L
) {
946 int arg1
= lua_tointeger(L
, 1);
947 QApplication::setStartDragTime(arg1
);
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*>*");
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
);
960 int LuaBinder
< QApplication
>::__LuaWrapCall__commitData (lua_State
*L
) {
961 QApplication
*& __lua__obj
= *static_cast<QApplication
**>(lqtL_checkudata(L
, 1, "QApplication*"));
963 lua_pushstring(L
, "trying to reference deleted pointer");
967 QSessionManager
& arg1
= **static_cast<QSessionManager
**>(lqtL_checkudata(L
, 2, "QSessionManager*"));
968 __lua__obj
->QApplication::commitData(arg1
);
971 int LuaBinder
< QApplication
>::__LuaWrapCall__isRightToLeft (lua_State
*L
) {
972 bool ret
= QApplication::isRightToLeft();
973 lua_pushboolean(L
, ret
);
976 int LuaBinder
< QApplication
>::__LuaWrapCall__notify (lua_State
*L
) {
977 QApplication
*& __lua__obj
= *static_cast<QApplication
**>(lqtL_checkudata(L
, 1, "QApplication*"));
979 lua_pushstring(L
, "trying to reference deleted pointer");
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
);
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
);
994 int LuaBinder
< QApplication
>::__LuaWrapCall__closeAllWindows (lua_State
*L
) {
995 QApplication::closeAllWindows();
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
);
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");
1011 const QString
& arg1
= QString::fromAscii(lua_tostring(L
, 2), lua_objlen(L
, 2));
1012 __lua__obj
->QApplication::setStyleSheet(arg1
);
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");
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);
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");
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);
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
);
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");
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);
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
);
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");
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);
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
);
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");
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);
1132 lua_settop(L
, oldtop
);
1133 return this->QApplication::event(arg1
);
1135 bool ret
= (bool)lua_toboolean(L
, -1);
1136 lua_settop(L
, oldtop
);
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");
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);
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");
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);
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");
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);
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");
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);
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
);
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");
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);
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");
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);
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");
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);
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)) {
1311 lua_pcall(L
, 1, 1, 0);
1314 lua_settop(L
, oldtop
);
1316 int LuaBinder
< QApplication
>::lqt_pushenum_Type (lua_State
*L
) {
1318 lua_getfield(L
, LUA_REGISTRYINDEX
, LQT_ENUMS
);
1319 if (!lua_istable(L
, -1)) {
1322 lua_pushvalue(L
, -1);
1323 lua_setfield(L
, LUA_REGISTRYINDEX
, LQT_ENUMS
);
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");
1346 int LuaBinder
< QApplication
>::lqt_pushenum_Type_QFLAGS_CREATOR (lua_State
*L
) {
1347 int argn
= lua_gettop(L
);
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]) );
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);
1362 int LuaBinder
< QApplication
>::lqt_pushenum_ColorSpec (lua_State
*L
) {
1364 lua_getfield(L
, LUA_REGISTRYINDEX
, LQT_ENUMS
);
1365 if (!lua_istable(L
, -1)) {
1368 lua_pushvalue(L
, -1);
1369 lua_setfield(L
, LUA_REGISTRYINDEX
, LQT_ENUMS
);
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");
1392 int LuaBinder
< QApplication
>::lqt_pushenum_ColorSpec_QFLAGS_CREATOR (lua_State
*L
) {
1393 int argn
= lua_gettop(L
);
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]) );
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);
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");
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");