1 #include "lqt_bind_QMainWindow.hpp"
3 int LuaBinder
< QMainWindow
>::__LuaWrapCall__splitDockWidget (lua_State
*L
) {
4 QMainWindow
*& __lua__obj
= *static_cast<QMainWindow
**>(lqtL_checkudata(L
, 1, "QMainWindow*"));
6 lua_pushstring(L
, "trying to reference deleted pointer");
10 QDockWidget
* arg1
= *static_cast<QDockWidget
**>(lqtL_checkudata(L
, 2, "QDockWidget*"));
11 QDockWidget
* arg2
= *static_cast<QDockWidget
**>(lqtL_checkudata(L
, 3, "QDockWidget*"));
12 Qt::Orientation arg3
= static_cast<Qt::Orientation
>(lqtL_toenum(L
, 4, "Qt::Orientation"));
13 __lua__obj
->QMainWindow::splitDockWidget(arg1
, arg2
, arg3
);
16 int LuaBinder
< QMainWindow
>::__LuaWrapCall__toolBarBreak (lua_State
*L
) {
17 QMainWindow
*& __lua__obj
= *static_cast<QMainWindow
**>(lqtL_checkudata(L
, 1, "QMainWindow*"));
19 lua_pushstring(L
, "trying to reference deleted pointer");
23 QToolBar
* arg1
= *static_cast<QToolBar
**>(lqtL_checkudata(L
, 2, "QToolBar*"));
24 bool ret
= __lua__obj
->QMainWindow::toolBarBreak(arg1
);
25 lua_pushboolean(L
, ret
);
28 int LuaBinder
< QMainWindow
>::__LuaWrapCall__saveState (lua_State
*L
) {
29 QMainWindow
*& __lua__obj
= *static_cast<QMainWindow
**>(lqtL_checkudata(L
, 1, "QMainWindow*"));
31 lua_pushstring(L
, "trying to reference deleted pointer");
35 int arg1
= lua_isnumber(L
, 2)?lua_tointeger(L
, 2):static_cast< int >(0);
36 QByteArray ret
= __lua__obj
->QMainWindow::saveState(arg1
);
37 lua_pushlstring(L
, ret
.data(), ret
.size());
40 int LuaBinder
< QMainWindow
>::__LuaWrapCall__addToolBarBreak (lua_State
*L
) {
41 QMainWindow
*& __lua__obj
= *static_cast<QMainWindow
**>(lqtL_checkudata(L
, 1, "QMainWindow*"));
43 lua_pushstring(L
, "trying to reference deleted pointer");
47 Qt::ToolBarArea arg1
= lqtL_isenum(L
, 2, "Qt::ToolBarArea")?static_cast<Qt::ToolBarArea
>(lqtL_toenum(L
, 2, "Qt::ToolBarArea")):Qt::TopToolBarArea
;
48 __lua__obj
->QMainWindow::addToolBarBreak(arg1
);
51 int LuaBinder
< QMainWindow
>::__LuaWrapCall__createPopupMenu (lua_State
*L
) {
52 QMainWindow
*& __lua__obj
= *static_cast<QMainWindow
**>(lqtL_checkudata(L
, 1, "QMainWindow*"));
54 lua_pushstring(L
, "trying to reference deleted pointer");
58 QMenu
* ret
= __lua__obj
->QMainWindow::createPopupMenu();
59 lqtL_pushudata(L
, ret
, "QMenu*");
62 int LuaBinder
< QMainWindow
>::__LuaWrapCall__insertToolBar (lua_State
*L
) {
63 QMainWindow
*& __lua__obj
= *static_cast<QMainWindow
**>(lqtL_checkudata(L
, 1, "QMainWindow*"));
65 lua_pushstring(L
, "trying to reference deleted pointer");
69 QToolBar
* arg1
= *static_cast<QToolBar
**>(lqtL_checkudata(L
, 2, "QToolBar*"));
70 QToolBar
* arg2
= *static_cast<QToolBar
**>(lqtL_checkudata(L
, 3, "QToolBar*"));
71 __lua__obj
->QMainWindow::insertToolBar(arg1
, arg2
);
74 int LuaBinder
< QMainWindow
>::__LuaWrapCall__removeToolBarBreak (lua_State
*L
) {
75 QMainWindow
*& __lua__obj
= *static_cast<QMainWindow
**>(lqtL_checkudata(L
, 1, "QMainWindow*"));
77 lua_pushstring(L
, "trying to reference deleted pointer");
81 QToolBar
* arg1
= *static_cast<QToolBar
**>(lqtL_checkudata(L
, 2, "QToolBar*"));
82 __lua__obj
->QMainWindow::removeToolBarBreak(arg1
);
85 int LuaBinder
< QMainWindow
>::__LuaWrapCall__setAnimated (lua_State
*L
) {
86 QMainWindow
*& __lua__obj
= *static_cast<QMainWindow
**>(lqtL_checkudata(L
, 1, "QMainWindow*"));
88 lua_pushstring(L
, "trying to reference deleted pointer");
92 bool arg1
= (bool)lua_toboolean(L
, 2);
93 __lua__obj
->QMainWindow::setAnimated(arg1
);
96 int LuaBinder
< QMainWindow
>::__LuaWrapCall__trUtf8__OverloadedVersion__1 (lua_State
*L
) {
97 const char * arg1
= lua_tostring(L
, 1);
98 const char * arg2
= (lua_type(L
, 2)==LUA_TSTRING
)?lua_tostring(L
, 2):static_cast< const char * >(0);
99 QString ret
= QMainWindow::trUtf8(arg1
, arg2
);
100 lua_pushlstring(L
, ret
.toAscii().data(), ret
.toAscii().size());
103 int LuaBinder
< QMainWindow
>::__LuaWrapCall__trUtf8__OverloadedVersion__2 (lua_State
*L
) {
104 const char * arg1
= lua_tostring(L
, 1);
105 const char * arg2
= lua_tostring(L
, 2);
106 int arg3
= lua_tointeger(L
, 3);
107 QString ret
= QMainWindow::trUtf8(arg1
, arg2
, arg3
);
108 lua_pushlstring(L
, ret
.toAscii().data(), ret
.toAscii().size());
111 int LuaBinder
< QMainWindow
>::__LuaWrapCall__trUtf8 (lua_State
*L
) {
113 const int premium
= 11+lua_gettop(L
);
115 if ((lua_type(L
, 1)==LUA_TSTRING
)) {
118 score
[1] += premium
-1; // table: 0x12f67a0;
120 score
[1] -= premium
*premium
;
122 if ((lua_type(L
, 2)==LUA_TSTRING
)) {
125 score
[1] += premium
-1; // table: 0x12f6300;
127 score
[1] -= premium
*premium
;
130 if ((lua_type(L
, 1)==LUA_TSTRING
)) {
133 score
[2] += premium
-1; // table: 0x12f8590;
135 score
[2] -= premium
*premium
;
137 if ((lua_type(L
, 2)==LUA_TSTRING
)) {
140 score
[2] += premium
-1; // table: 0x12f7cc0;
142 score
[2] -= premium
*premium
;
144 if (lua_isnumber(L
, 3)) {
147 score
[2] += premium
-1; // table: 0x12f8a20;
149 score
[2] -= premium
*premium
;
152 for (int i
=1;i
<=2;i
++) {
153 if (score
[best
] < score
[i
]) { best
= i
; }
156 case 1: return __LuaWrapCall__trUtf8__OverloadedVersion__1(L
); break;
157 case 2: return __LuaWrapCall__trUtf8__OverloadedVersion__2(L
); break;
159 lua_pushstring(L
, "no overload of function __LuaWrapCall__trUtf8 matching arguments");
163 int LuaBinder
< QMainWindow
>::__LuaWrapCall__setUnifiedTitleAndToolBarOnMac (lua_State
*L
) {
164 QMainWindow
*& __lua__obj
= *static_cast<QMainWindow
**>(lqtL_checkudata(L
, 1, "QMainWindow*"));
166 lua_pushstring(L
, "trying to reference deleted pointer");
170 bool arg1
= (bool)lua_toboolean(L
, 2);
171 __lua__obj
->QMainWindow::setUnifiedTitleAndToolBarOnMac(arg1
);
174 int LuaBinder
< QMainWindow
>::__LuaWrapCall__tr__OverloadedVersion__1 (lua_State
*L
) {
175 const char * arg1
= lua_tostring(L
, 1);
176 const char * arg2
= (lua_type(L
, 2)==LUA_TSTRING
)?lua_tostring(L
, 2):static_cast< const char * >(0);
177 QString ret
= QMainWindow::tr(arg1
, arg2
);
178 lua_pushlstring(L
, ret
.toAscii().data(), ret
.toAscii().size());
181 int LuaBinder
< QMainWindow
>::__LuaWrapCall__tr__OverloadedVersion__2 (lua_State
*L
) {
182 const char * arg1
= lua_tostring(L
, 1);
183 const char * arg2
= lua_tostring(L
, 2);
184 int arg3
= lua_tointeger(L
, 3);
185 QString ret
= QMainWindow::tr(arg1
, arg2
, arg3
);
186 lua_pushlstring(L
, ret
.toAscii().data(), ret
.toAscii().size());
189 int LuaBinder
< QMainWindow
>::__LuaWrapCall__tr (lua_State
*L
) {
191 const int premium
= 11+lua_gettop(L
);
193 if ((lua_type(L
, 1)==LUA_TSTRING
)) {
196 score
[1] += premium
-1; // table: 0x12f5a40;
198 score
[1] -= premium
*premium
;
200 if ((lua_type(L
, 2)==LUA_TSTRING
)) {
203 score
[1] += premium
-1; // table: 0x12f57a0;
205 score
[1] -= premium
*premium
;
208 if ((lua_type(L
, 1)==LUA_TSTRING
)) {
211 score
[2] += premium
-1; // table: 0x12f7480;
213 score
[2] -= premium
*premium
;
215 if ((lua_type(L
, 2)==LUA_TSTRING
)) {
218 score
[2] += premium
-1; // table: 0x12f7970;
220 score
[2] -= premium
*premium
;
222 if (lua_isnumber(L
, 3)) {
225 score
[2] += premium
-1; // table: 0x12f7d20;
227 score
[2] -= premium
*premium
;
230 for (int i
=1;i
<=2;i
++) {
231 if (score
[best
] < score
[i
]) { best
= i
; }
234 case 1: return __LuaWrapCall__tr__OverloadedVersion__1(L
); break;
235 case 2: return __LuaWrapCall__tr__OverloadedVersion__2(L
); break;
237 lua_pushstring(L
, "no overload of function __LuaWrapCall__tr matching arguments");
241 int LuaBinder
< QMainWindow
>::__LuaWrapCall__menuWidget (lua_State
*L
) {
242 QMainWindow
*& __lua__obj
= *static_cast<QMainWindow
**>(lqtL_checkudata(L
, 1, "QMainWindow*"));
244 lua_pushstring(L
, "trying to reference deleted pointer");
248 QWidget
* ret
= __lua__obj
->QMainWindow::menuWidget();
249 lqtL_pushudata(L
, ret
, "QWidget*");
252 int LuaBinder
< QMainWindow
>::__LuaWrapCall__removeDockWidget (lua_State
*L
) {
253 QMainWindow
*& __lua__obj
= *static_cast<QMainWindow
**>(lqtL_checkudata(L
, 1, "QMainWindow*"));
255 lua_pushstring(L
, "trying to reference deleted pointer");
259 QDockWidget
* arg1
= *static_cast<QDockWidget
**>(lqtL_checkudata(L
, 2, "QDockWidget*"));
260 __lua__obj
->QMainWindow::removeDockWidget(arg1
);
263 int LuaBinder
< QMainWindow
>::__LuaWrapCall__setCentralWidget (lua_State
*L
) {
264 QMainWindow
*& __lua__obj
= *static_cast<QMainWindow
**>(lqtL_checkudata(L
, 1, "QMainWindow*"));
266 lua_pushstring(L
, "trying to reference deleted pointer");
270 QWidget
* arg1
= *static_cast<QWidget
**>(lqtL_checkudata(L
, 2, "QWidget*"));
271 __lua__obj
->QMainWindow::setCentralWidget(arg1
);
274 int LuaBinder
< QMainWindow
>::__LuaWrapCall__setDockOptions (lua_State
*L
) {
275 QMainWindow
*& __lua__obj
= *static_cast<QMainWindow
**>(lqtL_checkudata(L
, 1, "QMainWindow*"));
277 lua_pushstring(L
, "trying to reference deleted pointer");
281 QFlags
<QMainWindow::DockOption
> arg1
= **static_cast<QFlags
<QMainWindow::DockOption
>**>(lqtL_checkudata(L
, 2, "QFlags<QMainWindow::DockOption>*"));
282 __lua__obj
->QMainWindow::setDockOptions(arg1
);
285 int LuaBinder
< QMainWindow
>::__LuaWrapCall__setStatusBar (lua_State
*L
) {
286 QMainWindow
*& __lua__obj
= *static_cast<QMainWindow
**>(lqtL_checkudata(L
, 1, "QMainWindow*"));
288 lua_pushstring(L
, "trying to reference deleted pointer");
292 QStatusBar
* arg1
= *static_cast<QStatusBar
**>(lqtL_checkudata(L
, 2, "QStatusBar*"));
293 __lua__obj
->QMainWindow::setStatusBar(arg1
);
296 int LuaBinder
< QMainWindow
>::__LuaWrapCall__insertToolBarBreak (lua_State
*L
) {
297 QMainWindow
*& __lua__obj
= *static_cast<QMainWindow
**>(lqtL_checkudata(L
, 1, "QMainWindow*"));
299 lua_pushstring(L
, "trying to reference deleted pointer");
303 QToolBar
* arg1
= *static_cast<QToolBar
**>(lqtL_checkudata(L
, 2, "QToolBar*"));
304 __lua__obj
->QMainWindow::insertToolBarBreak(arg1
);
307 int LuaBinder
< QMainWindow
>::__LuaWrapCall__setMenuWidget (lua_State
*L
) {
308 QMainWindow
*& __lua__obj
= *static_cast<QMainWindow
**>(lqtL_checkudata(L
, 1, "QMainWindow*"));
310 lua_pushstring(L
, "trying to reference deleted pointer");
314 QWidget
* arg1
= *static_cast<QWidget
**>(lqtL_checkudata(L
, 2, "QWidget*"));
315 __lua__obj
->QMainWindow::setMenuWidget(arg1
);
318 int LuaBinder
< QMainWindow
>::__LuaWrapCall__setMenuBar (lua_State
*L
) {
319 QMainWindow
*& __lua__obj
= *static_cast<QMainWindow
**>(lqtL_checkudata(L
, 1, "QMainWindow*"));
321 lua_pushstring(L
, "trying to reference deleted pointer");
325 QMenuBar
* arg1
= *static_cast<QMenuBar
**>(lqtL_checkudata(L
, 2, "QMenuBar*"));
326 __lua__obj
->QMainWindow::setMenuBar(arg1
);
329 int LuaBinder
< QMainWindow
>::__LuaWrapCall__isAnimated (lua_State
*L
) {
330 QMainWindow
*& __lua__obj
= *static_cast<QMainWindow
**>(lqtL_checkudata(L
, 1, "QMainWindow*"));
332 lua_pushstring(L
, "trying to reference deleted pointer");
336 bool ret
= __lua__obj
->QMainWindow::isAnimated();
337 lua_pushboolean(L
, ret
);
340 int LuaBinder
< QMainWindow
>::__LuaWrapCall__statusBar (lua_State
*L
) {
341 QMainWindow
*& __lua__obj
= *static_cast<QMainWindow
**>(lqtL_checkudata(L
, 1, "QMainWindow*"));
343 lua_pushstring(L
, "trying to reference deleted pointer");
347 QStatusBar
* ret
= __lua__obj
->QMainWindow::statusBar();
348 lqtL_pushudata(L
, ret
, "QStatusBar*");
351 int LuaBinder
< QMainWindow
>::__LuaWrapCall__menuBar (lua_State
*L
) {
352 QMainWindow
*& __lua__obj
= *static_cast<QMainWindow
**>(lqtL_checkudata(L
, 1, "QMainWindow*"));
354 lua_pushstring(L
, "trying to reference deleted pointer");
358 QMenuBar
* ret
= __lua__obj
->QMainWindow::menuBar();
359 lqtL_pushudata(L
, ret
, "QMenuBar*");
362 int LuaBinder
< QMainWindow
>::__LuaWrapCall__setDockNestingEnabled (lua_State
*L
) {
363 QMainWindow
*& __lua__obj
= *static_cast<QMainWindow
**>(lqtL_checkudata(L
, 1, "QMainWindow*"));
365 lua_pushstring(L
, "trying to reference deleted pointer");
369 bool arg1
= (bool)lua_toboolean(L
, 2);
370 __lua__obj
->QMainWindow::setDockNestingEnabled(arg1
);
373 int LuaBinder
< QMainWindow
>::__LuaWrapCall__setIconSize (lua_State
*L
) {
374 QMainWindow
*& __lua__obj
= *static_cast<QMainWindow
**>(lqtL_checkudata(L
, 1, "QMainWindow*"));
376 lua_pushstring(L
, "trying to reference deleted pointer");
380 const QSize
& arg1
= **static_cast<QSize
**>(lqtL_checkudata(L
, 2, "QSize*"));
381 __lua__obj
->QMainWindow::setIconSize(arg1
);
384 int LuaBinder
< QMainWindow
>::__LuaWrapCall__iconSize (lua_State
*L
) {
385 QMainWindow
*& __lua__obj
= *static_cast<QMainWindow
**>(lqtL_checkudata(L
, 1, "QMainWindow*"));
387 lua_pushstring(L
, "trying to reference deleted pointer");
391 QSize ret
= __lua__obj
->QMainWindow::iconSize();
392 lqtL_passudata(L
, new QSize(ret
), "QSize*");
395 int LuaBinder
< QMainWindow
>::__LuaWrapCall__dockWidgetArea (lua_State
*L
) {
396 QMainWindow
*& __lua__obj
= *static_cast<QMainWindow
**>(lqtL_checkudata(L
, 1, "QMainWindow*"));
398 lua_pushstring(L
, "trying to reference deleted pointer");
402 QDockWidget
* arg1
= *static_cast<QDockWidget
**>(lqtL_checkudata(L
, 2, "QDockWidget*"));
403 Qt::DockWidgetArea ret
= __lua__obj
->QMainWindow::dockWidgetArea(arg1
);
404 lqtL_pushenum(L
, ret
, "Qt::DockWidgetArea");
407 int LuaBinder
< QMainWindow
>::__LuaWrapCall__metaObject (lua_State
*L
) {
408 QMainWindow
*& __lua__obj
= *static_cast<QMainWindow
**>(lqtL_checkudata(L
, 1, "QMainWindow*"));
410 lua_pushstring(L
, "trying to reference deleted pointer");
414 const QMetaObject
* ret
= __lua__obj
->QMainWindow::metaObject();
415 lqtL_pushudata(L
, ret
, "QMetaObject*");
418 int LuaBinder
< QMainWindow
>::__LuaWrapCall__new (lua_State
*L
) {
419 QWidget
* arg1
= lqtL_testudata(L
, 1, "QWidget*")?*static_cast<QWidget
**>(lqtL_checkudata(L
, 1, "QWidget*")):static_cast< QWidget
* >(0);
420 QFlags
<Qt::WindowType
> arg2
= lqtL_testudata(L
, 2, "QFlags<Qt::WindowType>*")?**static_cast<QFlags
<Qt::WindowType
>**>(lqtL_checkudata(L
, 2, "QFlags<Qt::WindowType>*")):static_cast< QFlags
<Qt::WindowType
> >(0);
421 QMainWindow
* ret
= new LuaBinder
< QMainWindow
>(L
, arg1
, arg2
);
422 lqtL_passudata(L
, ret
, "QMainWindow*");
425 int LuaBinder
< QMainWindow
>::__LuaWrapCall__unifiedTitleAndToolBarOnMac (lua_State
*L
) {
426 QMainWindow
*& __lua__obj
= *static_cast<QMainWindow
**>(lqtL_checkudata(L
, 1, "QMainWindow*"));
428 lua_pushstring(L
, "trying to reference deleted pointer");
432 bool ret
= __lua__obj
->QMainWindow::unifiedTitleAndToolBarOnMac();
433 lua_pushboolean(L
, ret
);
436 int LuaBinder
< QMainWindow
>::__LuaWrapCall__delete (lua_State
*L
) {
437 QMainWindow
*& __lua__obj
= *static_cast<QMainWindow
**>(lqtL_checkudata(L
, 1, "QMainWindow*"));
439 lua_pushstring(L
, "trying to reference deleted pointer");
447 int LuaBinder
< QMainWindow
>::__LuaWrapCall__setCorner (lua_State
*L
) {
448 QMainWindow
*& __lua__obj
= *static_cast<QMainWindow
**>(lqtL_checkudata(L
, 1, "QMainWindow*"));
450 lua_pushstring(L
, "trying to reference deleted pointer");
454 Qt::Corner arg1
= static_cast<Qt::Corner
>(lqtL_toenum(L
, 2, "Qt::Corner"));
455 Qt::DockWidgetArea arg2
= static_cast<Qt::DockWidgetArea
>(lqtL_toenum(L
, 3, "Qt::DockWidgetArea"));
456 __lua__obj
->QMainWindow::setCorner(arg1
, arg2
);
459 int LuaBinder
< QMainWindow
>::__LuaWrapCall__corner (lua_State
*L
) {
460 QMainWindow
*& __lua__obj
= *static_cast<QMainWindow
**>(lqtL_checkudata(L
, 1, "QMainWindow*"));
462 lua_pushstring(L
, "trying to reference deleted pointer");
466 Qt::Corner arg1
= static_cast<Qt::Corner
>(lqtL_toenum(L
, 2, "Qt::Corner"));
467 Qt::DockWidgetArea ret
= __lua__obj
->QMainWindow::corner(arg1
);
468 lqtL_pushenum(L
, ret
, "Qt::DockWidgetArea");
471 int LuaBinder
< QMainWindow
>::__LuaWrapCall__addToolBar__OverloadedVersion__1 (lua_State
*L
) {
472 QMainWindow
*& __lua__obj
= *static_cast<QMainWindow
**>(lqtL_checkudata(L
, 1, "QMainWindow*"));
474 lua_pushstring(L
, "trying to reference deleted pointer");
478 Qt::ToolBarArea arg1
= static_cast<Qt::ToolBarArea
>(lqtL_toenum(L
, 2, "Qt::ToolBarArea"));
479 QToolBar
* arg2
= *static_cast<QToolBar
**>(lqtL_checkudata(L
, 3, "QToolBar*"));
480 __lua__obj
->QMainWindow::addToolBar(arg1
, arg2
);
483 int LuaBinder
< QMainWindow
>::__LuaWrapCall__addToolBar__OverloadedVersion__2 (lua_State
*L
) {
484 QMainWindow
*& __lua__obj
= *static_cast<QMainWindow
**>(lqtL_checkudata(L
, 1, "QMainWindow*"));
486 lua_pushstring(L
, "trying to reference deleted pointer");
490 QToolBar
* arg1
= *static_cast<QToolBar
**>(lqtL_checkudata(L
, 2, "QToolBar*"));
491 __lua__obj
->QMainWindow::addToolBar(arg1
);
494 int LuaBinder
< QMainWindow
>::__LuaWrapCall__addToolBar__OverloadedVersion__3 (lua_State
*L
) {
495 QMainWindow
*& __lua__obj
= *static_cast<QMainWindow
**>(lqtL_checkudata(L
, 1, "QMainWindow*"));
497 lua_pushstring(L
, "trying to reference deleted pointer");
501 const QString
& arg1
= QString::fromAscii(lua_tostring(L
, 2), lua_objlen(L
, 2));
502 QToolBar
* ret
= __lua__obj
->QMainWindow::addToolBar(arg1
);
503 lqtL_pushudata(L
, ret
, "QToolBar*");
506 int LuaBinder
< QMainWindow
>::__LuaWrapCall__addToolBar (lua_State
*L
) {
508 const int premium
= 11+lua_gettop(L
);
510 score
[1] += lqtL_testudata(L
, 1, "QMainWindow*")?premium
:-premium
*premium
;
511 if (lqtL_isenum(L
, 2, "Qt::ToolBarArea")) {
514 score
[1] += premium
-1; // table: 0x1308640;
516 score
[1] -= premium
*premium
;
518 if (lqtL_testudata(L
, 3, "QToolBar*")) {
521 score
[1] += premium
-1; // table: 0x1308030;
523 score
[1] -= premium
*premium
;
526 score
[2] += lqtL_testudata(L
, 1, "QMainWindow*")?premium
:-premium
*premium
;
527 if (lqtL_testudata(L
, 2, "QToolBar*")) {
530 score
[2] += premium
-1; // table: 0x13094e0;
532 score
[2] -= premium
*premium
;
535 score
[3] += lqtL_testudata(L
, 1, "QMainWindow*")?premium
:-premium
*premium
;
536 if ((lua_type(L
, 2)==LUA_TSTRING
)) {
539 score
[3] += premium
-1; // table: 0x1309f30;
541 score
[3] -= premium
*premium
;
544 for (int i
=1;i
<=3;i
++) {
545 if (score
[best
] < score
[i
]) { best
= i
; }
548 case 1: return __LuaWrapCall__addToolBar__OverloadedVersion__1(L
); break;
549 case 2: return __LuaWrapCall__addToolBar__OverloadedVersion__2(L
); break;
550 case 3: return __LuaWrapCall__addToolBar__OverloadedVersion__3(L
); break;
552 lua_pushstring(L
, "no overload of function __LuaWrapCall__addToolBar matching arguments");
556 int LuaBinder
< QMainWindow
>::__LuaWrapCall__removeToolBar (lua_State
*L
) {
557 QMainWindow
*& __lua__obj
= *static_cast<QMainWindow
**>(lqtL_checkudata(L
, 1, "QMainWindow*"));
559 lua_pushstring(L
, "trying to reference deleted pointer");
563 QToolBar
* arg1
= *static_cast<QToolBar
**>(lqtL_checkudata(L
, 2, "QToolBar*"));
564 __lua__obj
->QMainWindow::removeToolBar(arg1
);
567 int LuaBinder
< QMainWindow
>::__LuaWrapCall__dockOptions (lua_State
*L
) {
568 QMainWindow
*& __lua__obj
= *static_cast<QMainWindow
**>(lqtL_checkudata(L
, 1, "QMainWindow*"));
570 lua_pushstring(L
, "trying to reference deleted pointer");
574 QFlags
<QMainWindow::DockOption
> ret
= __lua__obj
->QMainWindow::dockOptions();
575 lqtL_passudata(L
, new QFlags
<QMainWindow::DockOption
>(ret
), "QFlags<QMainWindow::DockOption>*");
578 int LuaBinder
< QMainWindow
>::__LuaWrapCall__restoreState (lua_State
*L
) {
579 QMainWindow
*& __lua__obj
= *static_cast<QMainWindow
**>(lqtL_checkudata(L
, 1, "QMainWindow*"));
581 lua_pushstring(L
, "trying to reference deleted pointer");
585 const QByteArray
& arg1
= QByteArray(lua_tostring(L
, 2), lua_objlen(L
, 2));
586 int arg2
= lua_isnumber(L
, 3)?lua_tointeger(L
, 3):static_cast< int >(0);
587 bool ret
= __lua__obj
->QMainWindow::restoreState(arg1
, arg2
);
588 lua_pushboolean(L
, ret
);
591 int LuaBinder
< QMainWindow
>::__LuaWrapCall__toolButtonStyle (lua_State
*L
) {
592 QMainWindow
*& __lua__obj
= *static_cast<QMainWindow
**>(lqtL_checkudata(L
, 1, "QMainWindow*"));
594 lua_pushstring(L
, "trying to reference deleted pointer");
598 Qt::ToolButtonStyle ret
= __lua__obj
->QMainWindow::toolButtonStyle();
599 lqtL_pushenum(L
, ret
, "Qt::ToolButtonStyle");
602 int LuaBinder
< QMainWindow
>::__LuaWrapCall__tabifyDockWidget (lua_State
*L
) {
603 QMainWindow
*& __lua__obj
= *static_cast<QMainWindow
**>(lqtL_checkudata(L
, 1, "QMainWindow*"));
605 lua_pushstring(L
, "trying to reference deleted pointer");
609 QDockWidget
* arg1
= *static_cast<QDockWidget
**>(lqtL_checkudata(L
, 2, "QDockWidget*"));
610 QDockWidget
* arg2
= *static_cast<QDockWidget
**>(lqtL_checkudata(L
, 3, "QDockWidget*"));
611 __lua__obj
->QMainWindow::tabifyDockWidget(arg1
, arg2
);
614 int LuaBinder
< QMainWindow
>::__LuaWrapCall__isDockNestingEnabled (lua_State
*L
) {
615 QMainWindow
*& __lua__obj
= *static_cast<QMainWindow
**>(lqtL_checkudata(L
, 1, "QMainWindow*"));
617 lua_pushstring(L
, "trying to reference deleted pointer");
621 bool ret
= __lua__obj
->QMainWindow::isDockNestingEnabled();
622 lua_pushboolean(L
, ret
);
625 int LuaBinder
< QMainWindow
>::__LuaWrapCall__isSeparator (lua_State
*L
) {
626 QMainWindow
*& __lua__obj
= *static_cast<QMainWindow
**>(lqtL_checkudata(L
, 1, "QMainWindow*"));
628 lua_pushstring(L
, "trying to reference deleted pointer");
632 const QPoint
& arg1
= **static_cast<QPoint
**>(lqtL_checkudata(L
, 2, "QPoint*"));
633 bool ret
= __lua__obj
->QMainWindow::isSeparator(arg1
);
634 lua_pushboolean(L
, ret
);
637 int LuaBinder
< QMainWindow
>::__LuaWrapCall__addDockWidget__OverloadedVersion__1 (lua_State
*L
) {
638 QMainWindow
*& __lua__obj
= *static_cast<QMainWindow
**>(lqtL_checkudata(L
, 1, "QMainWindow*"));
640 lua_pushstring(L
, "trying to reference deleted pointer");
644 Qt::DockWidgetArea arg1
= static_cast<Qt::DockWidgetArea
>(lqtL_toenum(L
, 2, "Qt::DockWidgetArea"));
645 QDockWidget
* arg2
= *static_cast<QDockWidget
**>(lqtL_checkudata(L
, 3, "QDockWidget*"));
646 __lua__obj
->QMainWindow::addDockWidget(arg1
, arg2
);
649 int LuaBinder
< QMainWindow
>::__LuaWrapCall__addDockWidget__OverloadedVersion__2 (lua_State
*L
) {
650 QMainWindow
*& __lua__obj
= *static_cast<QMainWindow
**>(lqtL_checkudata(L
, 1, "QMainWindow*"));
652 lua_pushstring(L
, "trying to reference deleted pointer");
656 Qt::DockWidgetArea arg1
= static_cast<Qt::DockWidgetArea
>(lqtL_toenum(L
, 2, "Qt::DockWidgetArea"));
657 QDockWidget
* arg2
= *static_cast<QDockWidget
**>(lqtL_checkudata(L
, 3, "QDockWidget*"));
658 Qt::Orientation arg3
= static_cast<Qt::Orientation
>(lqtL_toenum(L
, 4, "Qt::Orientation"));
659 __lua__obj
->QMainWindow::addDockWidget(arg1
, arg2
, arg3
);
662 int LuaBinder
< QMainWindow
>::__LuaWrapCall__addDockWidget (lua_State
*L
) {
664 const int premium
= 11+lua_gettop(L
);
666 score
[1] += lqtL_testudata(L
, 1, "QMainWindow*")?premium
:-premium
*premium
;
667 if (lqtL_isenum(L
, 2, "Qt::DockWidgetArea")) {
670 score
[1] += premium
-1; // table: 0x130f820;
672 score
[1] -= premium
*premium
;
674 if (lqtL_testudata(L
, 3, "QDockWidget*")) {
677 score
[1] += premium
-1; // table: 0x130f230;
679 score
[1] -= premium
*premium
;
682 score
[2] += lqtL_testudata(L
, 1, "QMainWindow*")?premium
:-premium
*premium
;
683 if (lqtL_isenum(L
, 2, "Qt::DockWidgetArea")) {
686 score
[2] += premium
-1; // table: 0x13107e0;
688 score
[2] -= premium
*premium
;
690 if (lqtL_testudata(L
, 3, "QDockWidget*")) {
693 score
[2] += premium
-1; // table: 0x1310d30;
695 score
[2] -= premium
*premium
;
697 if (lqtL_isenum(L
, 4, "Qt::Orientation")) {
700 score
[2] += premium
-1; // table: 0x1310cd0;
702 score
[2] -= premium
*premium
;
705 for (int i
=1;i
<=2;i
++) {
706 if (score
[best
] < score
[i
]) { best
= i
; }
709 case 1: return __LuaWrapCall__addDockWidget__OverloadedVersion__1(L
); break;
710 case 2: return __LuaWrapCall__addDockWidget__OverloadedVersion__2(L
); break;
712 lua_pushstring(L
, "no overload of function __LuaWrapCall__addDockWidget matching arguments");
716 int LuaBinder
< QMainWindow
>::__LuaWrapCall__setToolButtonStyle (lua_State
*L
) {
717 QMainWindow
*& __lua__obj
= *static_cast<QMainWindow
**>(lqtL_checkudata(L
, 1, "QMainWindow*"));
719 lua_pushstring(L
, "trying to reference deleted pointer");
723 Qt::ToolButtonStyle arg1
= static_cast<Qt::ToolButtonStyle
>(lqtL_toenum(L
, 2, "Qt::ToolButtonStyle"));
724 __lua__obj
->QMainWindow::setToolButtonStyle(arg1
);
727 int LuaBinder
< QMainWindow
>::__LuaWrapCall__toolBarArea (lua_State
*L
) {
728 QMainWindow
*& __lua__obj
= *static_cast<QMainWindow
**>(lqtL_checkudata(L
, 1, "QMainWindow*"));
730 lua_pushstring(L
, "trying to reference deleted pointer");
734 QToolBar
* arg1
= *static_cast<QToolBar
**>(lqtL_checkudata(L
, 2, "QToolBar*"));
735 Qt::ToolBarArea ret
= __lua__obj
->QMainWindow::toolBarArea(arg1
);
736 lqtL_pushenum(L
, ret
, "Qt::ToolBarArea");
739 int LuaBinder
< QMainWindow
>::__LuaWrapCall__centralWidget (lua_State
*L
) {
740 QMainWindow
*& __lua__obj
= *static_cast<QMainWindow
**>(lqtL_checkudata(L
, 1, "QMainWindow*"));
742 lua_pushstring(L
, "trying to reference deleted pointer");
746 QWidget
* ret
= __lua__obj
->QMainWindow::centralWidget();
747 lqtL_pushudata(L
, ret
, "QWidget*");
750 void LuaBinder
< QMainWindow
>::styleChange (QStyle
& arg1
) {
751 bool absorbed
= false;
752 int oldtop
= lua_gettop(L
);
753 lqtL_pushudata(L
, this, "QMainWindow*");
754 if (lua_getmetatable(L
, -1)) {
755 lua_getfield(L
, -1, "styleChange");
761 lqtL_pushudata(L
, &(arg1
), "QStyle*");
762 if (lua_isfunction(L
, -1-2)) {
763 lua_pcall(L
, 1+1, 2, 0);
764 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
768 lua_settop(L
, oldtop
);
769 this->QWidget::styleChange(arg1
);
771 lua_settop(L
, oldtop
);
773 void LuaBinder
< QMainWindow
>::focusInEvent (QFocusEvent
* arg1
) {
774 bool absorbed
= false;
775 int oldtop
= lua_gettop(L
);
776 lqtL_pushudata(L
, this, "QMainWindow*");
777 if (lua_getmetatable(L
, -1)) {
778 lua_getfield(L
, -1, "focusInEvent");
784 lqtL_pushudata(L
, arg1
, "QFocusEvent*");
785 if (lua_isfunction(L
, -1-2)) {
786 lua_pcall(L
, 1+1, 2, 0);
787 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
791 lua_settop(L
, oldtop
);
792 this->QWidget::focusInEvent(arg1
);
794 lua_settop(L
, oldtop
);
796 void LuaBinder
< QMainWindow
>::keyPressEvent (QKeyEvent
* arg1
) {
797 bool absorbed
= false;
798 int oldtop
= lua_gettop(L
);
799 lqtL_pushudata(L
, this, "QMainWindow*");
800 if (lua_getmetatable(L
, -1)) {
801 lua_getfield(L
, -1, "keyPressEvent");
807 lqtL_pushudata(L
, arg1
, "QKeyEvent*");
808 if (lua_isfunction(L
, -1-2)) {
809 lua_pcall(L
, 1+1, 2, 0);
810 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
814 lua_settop(L
, oldtop
);
815 this->QWidget::keyPressEvent(arg1
);
817 lua_settop(L
, oldtop
);
819 const QMetaObject
* LuaBinder
< QMainWindow
>::metaObject () const {
820 bool absorbed
= false;
821 int oldtop
= lua_gettop(L
);
822 lqtL_pushudata(L
, this, "QMainWindow*");
823 if (lua_getmetatable(L
, -1)) {
824 lua_getfield(L
, -1, "metaObject");
830 if (lua_isfunction(L
, -0-2)) {
831 lua_pcall(L
, 0+1, 2, 0);
832 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
836 lua_settop(L
, oldtop
);
837 return this->QMainWindow::metaObject();
839 const QMetaObject
* ret
= *static_cast<QMetaObject
**>(lqtL_checkudata(L
, -1, "QMetaObject*"));
840 lua_settop(L
, oldtop
);
843 int LuaBinder
< QMainWindow
>::devType () const {
844 bool absorbed
= false;
845 int oldtop
= lua_gettop(L
);
846 lqtL_pushudata(L
, this, "QMainWindow*");
847 if (lua_getmetatable(L
, -1)) {
848 lua_getfield(L
, -1, "devType");
854 if (lua_isfunction(L
, -0-2)) {
855 lua_pcall(L
, 0+1, 2, 0);
856 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
860 lua_settop(L
, oldtop
);
861 return this->QWidget::devType();
863 int ret
= lua_tointeger(L
, -1);
864 lua_settop(L
, oldtop
);
867 void LuaBinder
< QMainWindow
>::setVisible (bool arg1
) {
868 bool absorbed
= false;
869 int oldtop
= lua_gettop(L
);
870 lqtL_pushudata(L
, this, "QMainWindow*");
871 if (lua_getmetatable(L
, -1)) {
872 lua_getfield(L
, -1, "setVisible");
878 lua_pushboolean(L
, arg1
);
879 if (lua_isfunction(L
, -1-2)) {
880 lua_pcall(L
, 1+1, 2, 0);
881 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
885 lua_settop(L
, oldtop
);
886 this->QWidget::setVisible(arg1
);
888 lua_settop(L
, oldtop
);
890 QVariant LuaBinder
< QMainWindow
>::inputMethodQuery (Qt::InputMethodQuery arg1
) const {
891 bool absorbed
= false;
892 int oldtop
= lua_gettop(L
);
893 lqtL_pushudata(L
, this, "QMainWindow*");
894 if (lua_getmetatable(L
, -1)) {
895 lua_getfield(L
, -1, "inputMethodQuery");
901 lqtL_pushenum(L
, arg1
, "Qt::InputMethodQuery");
902 if (lua_isfunction(L
, -1-2)) {
903 lua_pcall(L
, 1+1, 2, 0);
904 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
908 lua_settop(L
, oldtop
);
909 return this->QWidget::inputMethodQuery(arg1
);
911 QVariant ret
= **static_cast<QVariant
**>(lqtL_checkudata(L
, -1, "QVariant*"));
912 lua_settop(L
, oldtop
);
915 QPaintEngine
* LuaBinder
< QMainWindow
>::paintEngine () const {
916 bool absorbed
= false;
917 int oldtop
= lua_gettop(L
);
918 lqtL_pushudata(L
, this, "QMainWindow*");
919 if (lua_getmetatable(L
, -1)) {
920 lua_getfield(L
, -1, "paintEngine");
926 if (lua_isfunction(L
, -0-2)) {
927 lua_pcall(L
, 0+1, 2, 0);
928 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
932 lua_settop(L
, oldtop
);
933 return this->QWidget::paintEngine();
935 QPaintEngine
* ret
= *static_cast<QPaintEngine
**>(lqtL_checkudata(L
, -1, "QPaintEngine*"));
936 lua_settop(L
, oldtop
);
939 void LuaBinder
< QMainWindow
>::dragLeaveEvent (QDragLeaveEvent
* arg1
) {
940 bool absorbed
= false;
941 int oldtop
= lua_gettop(L
);
942 lqtL_pushudata(L
, this, "QMainWindow*");
943 if (lua_getmetatable(L
, -1)) {
944 lua_getfield(L
, -1, "dragLeaveEvent");
950 lqtL_pushudata(L
, arg1
, "QDragLeaveEvent*");
951 if (lua_isfunction(L
, -1-2)) {
952 lua_pcall(L
, 1+1, 2, 0);
953 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
957 lua_settop(L
, oldtop
);
958 this->QWidget::dragLeaveEvent(arg1
);
960 lua_settop(L
, oldtop
);
962 void LuaBinder
< QMainWindow
>::mousePressEvent (QMouseEvent
* arg1
) {
963 bool absorbed
= false;
964 int oldtop
= lua_gettop(L
);
965 lqtL_pushudata(L
, this, "QMainWindow*");
966 if (lua_getmetatable(L
, -1)) {
967 lua_getfield(L
, -1, "mousePressEvent");
973 lqtL_pushudata(L
, arg1
, "QMouseEvent*");
974 if (lua_isfunction(L
, -1-2)) {
975 lua_pcall(L
, 1+1, 2, 0);
976 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
980 lua_settop(L
, oldtop
);
981 this->QWidget::mousePressEvent(arg1
);
983 lua_settop(L
, oldtop
);
985 QSize LuaBinder
< QMainWindow
>::sizeHint () const {
986 bool absorbed
= false;
987 int oldtop
= lua_gettop(L
);
988 lqtL_pushudata(L
, this, "QMainWindow*");
989 if (lua_getmetatable(L
, -1)) {
990 lua_getfield(L
, -1, "sizeHint");
996 if (lua_isfunction(L
, -0-2)) {
997 lua_pcall(L
, 0+1, 2, 0);
998 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1002 lua_settop(L
, oldtop
);
1003 return this->QWidget::sizeHint();
1005 QSize ret
= **static_cast<QSize
**>(lqtL_checkudata(L
, -1, "QSize*"));
1006 lua_settop(L
, oldtop
);
1009 void LuaBinder
< QMainWindow
>::moveEvent (QMoveEvent
* arg1
) {
1010 bool absorbed
= false;
1011 int oldtop
= lua_gettop(L
);
1012 lqtL_pushudata(L
, this, "QMainWindow*");
1013 if (lua_getmetatable(L
, -1)) {
1014 lua_getfield(L
, -1, "moveEvent");
1020 lqtL_pushudata(L
, arg1
, "QMoveEvent*");
1021 if (lua_isfunction(L
, -1-2)) {
1022 lua_pcall(L
, 1+1, 2, 0);
1023 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1027 lua_settop(L
, oldtop
);
1028 this->QWidget::moveEvent(arg1
);
1030 lua_settop(L
, oldtop
);
1032 void LuaBinder
< QMainWindow
>::tabletEvent (QTabletEvent
* arg1
) {
1033 bool absorbed
= false;
1034 int oldtop
= lua_gettop(L
);
1035 lqtL_pushudata(L
, this, "QMainWindow*");
1036 if (lua_getmetatable(L
, -1)) {
1037 lua_getfield(L
, -1, "tabletEvent");
1043 lqtL_pushudata(L
, arg1
, "QTabletEvent*");
1044 if (lua_isfunction(L
, -1-2)) {
1045 lua_pcall(L
, 1+1, 2, 0);
1046 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1050 lua_settop(L
, oldtop
);
1051 this->QWidget::tabletEvent(arg1
);
1053 lua_settop(L
, oldtop
);
1055 void LuaBinder
< QMainWindow
>::enterEvent (QEvent
* arg1
) {
1056 bool absorbed
= false;
1057 int oldtop
= lua_gettop(L
);
1058 lqtL_pushudata(L
, this, "QMainWindow*");
1059 if (lua_getmetatable(L
, -1)) {
1060 lua_getfield(L
, -1, "enterEvent");
1066 lqtL_pushudata(L
, arg1
, "QEvent*");
1067 if (lua_isfunction(L
, -1-2)) {
1068 lua_pcall(L
, 1+1, 2, 0);
1069 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1073 lua_settop(L
, oldtop
);
1074 this->QWidget::enterEvent(arg1
);
1076 lua_settop(L
, oldtop
);
1078 void LuaBinder
< QMainWindow
>::closeEvent (QCloseEvent
* arg1
) {
1079 bool absorbed
= false;
1080 int oldtop
= lua_gettop(L
);
1081 lqtL_pushudata(L
, this, "QMainWindow*");
1082 if (lua_getmetatable(L
, -1)) {
1083 lua_getfield(L
, -1, "closeEvent");
1089 lqtL_pushudata(L
, arg1
, "QCloseEvent*");
1090 if (lua_isfunction(L
, -1-2)) {
1091 lua_pcall(L
, 1+1, 2, 0);
1092 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1096 lua_settop(L
, oldtop
);
1097 this->QWidget::closeEvent(arg1
);
1099 lua_settop(L
, oldtop
);
1101 void LuaBinder
< QMainWindow
>::dropEvent (QDropEvent
* arg1
) {
1102 bool absorbed
= false;
1103 int oldtop
= lua_gettop(L
);
1104 lqtL_pushudata(L
, this, "QMainWindow*");
1105 if (lua_getmetatable(L
, -1)) {
1106 lua_getfield(L
, -1, "dropEvent");
1112 lqtL_pushudata(L
, arg1
, "QDropEvent*");
1113 if (lua_isfunction(L
, -1-2)) {
1114 lua_pcall(L
, 1+1, 2, 0);
1115 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1119 lua_settop(L
, oldtop
);
1120 this->QWidget::dropEvent(arg1
);
1122 lua_settop(L
, oldtop
);
1124 QSize LuaBinder
< QMainWindow
>::minimumSizeHint () const {
1125 bool absorbed
= false;
1126 int oldtop
= lua_gettop(L
);
1127 lqtL_pushudata(L
, this, "QMainWindow*");
1128 if (lua_getmetatable(L
, -1)) {
1129 lua_getfield(L
, -1, "minimumSizeHint");
1135 if (lua_isfunction(L
, -0-2)) {
1136 lua_pcall(L
, 0+1, 2, 0);
1137 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1141 lua_settop(L
, oldtop
);
1142 return this->QWidget::minimumSizeHint();
1144 QSize ret
= **static_cast<QSize
**>(lqtL_checkudata(L
, -1, "QSize*"));
1145 lua_settop(L
, oldtop
);
1148 QMenu
* LuaBinder
< QMainWindow
>::createPopupMenu () {
1149 bool absorbed
= false;
1150 int oldtop
= lua_gettop(L
);
1151 lqtL_pushudata(L
, this, "QMainWindow*");
1152 if (lua_getmetatable(L
, -1)) {
1153 lua_getfield(L
, -1, "createPopupMenu");
1159 if (lua_isfunction(L
, -0-2)) {
1160 lua_pcall(L
, 0+1, 2, 0);
1161 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1165 lua_settop(L
, oldtop
);
1166 return this->QMainWindow::createPopupMenu();
1168 QMenu
* ret
= *static_cast<QMenu
**>(lqtL_checkudata(L
, -1, "QMenu*"));
1169 lua_settop(L
, oldtop
);
1172 void LuaBinder
< QMainWindow
>::actionEvent (QActionEvent
* arg1
) {
1173 bool absorbed
= false;
1174 int oldtop
= lua_gettop(L
);
1175 lqtL_pushudata(L
, this, "QMainWindow*");
1176 if (lua_getmetatable(L
, -1)) {
1177 lua_getfield(L
, -1, "actionEvent");
1183 lqtL_pushudata(L
, arg1
, "QActionEvent*");
1184 if (lua_isfunction(L
, -1-2)) {
1185 lua_pcall(L
, 1+1, 2, 0);
1186 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1190 lua_settop(L
, oldtop
);
1191 this->QWidget::actionEvent(arg1
);
1193 lua_settop(L
, oldtop
);
1195 void LuaBinder
< QMainWindow
>::showEvent (QShowEvent
* arg1
) {
1196 bool absorbed
= false;
1197 int oldtop
= lua_gettop(L
);
1198 lqtL_pushudata(L
, this, "QMainWindow*");
1199 if (lua_getmetatable(L
, -1)) {
1200 lua_getfield(L
, -1, "showEvent");
1206 lqtL_pushudata(L
, arg1
, "QShowEvent*");
1207 if (lua_isfunction(L
, -1-2)) {
1208 lua_pcall(L
, 1+1, 2, 0);
1209 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1213 lua_settop(L
, oldtop
);
1214 this->QWidget::showEvent(arg1
);
1216 lua_settop(L
, oldtop
);
1218 void LuaBinder
< QMainWindow
>::dragEnterEvent (QDragEnterEvent
* arg1
) {
1219 bool absorbed
= false;
1220 int oldtop
= lua_gettop(L
);
1221 lqtL_pushudata(L
, this, "QMainWindow*");
1222 if (lua_getmetatable(L
, -1)) {
1223 lua_getfield(L
, -1, "dragEnterEvent");
1229 lqtL_pushudata(L
, arg1
, "QDragEnterEvent*");
1230 if (lua_isfunction(L
, -1-2)) {
1231 lua_pcall(L
, 1+1, 2, 0);
1232 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1236 lua_settop(L
, oldtop
);
1237 this->QWidget::dragEnterEvent(arg1
);
1239 lua_settop(L
, oldtop
);
1241 void LuaBinder
< QMainWindow
>::paintEvent (QPaintEvent
* arg1
) {
1242 bool absorbed
= false;
1243 int oldtop
= lua_gettop(L
);
1244 lqtL_pushudata(L
, this, "QMainWindow*");
1245 if (lua_getmetatable(L
, -1)) {
1246 lua_getfield(L
, -1, "paintEvent");
1252 lqtL_pushudata(L
, arg1
, "QPaintEvent*");
1253 if (lua_isfunction(L
, -1-2)) {
1254 lua_pcall(L
, 1+1, 2, 0);
1255 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1259 lua_settop(L
, oldtop
);
1260 this->QWidget::paintEvent(arg1
);
1262 lua_settop(L
, oldtop
);
1264 void LuaBinder
< QMainWindow
>::dragMoveEvent (QDragMoveEvent
* arg1
) {
1265 bool absorbed
= false;
1266 int oldtop
= lua_gettop(L
);
1267 lqtL_pushudata(L
, this, "QMainWindow*");
1268 if (lua_getmetatable(L
, -1)) {
1269 lua_getfield(L
, -1, "dragMoveEvent");
1275 lqtL_pushudata(L
, arg1
, "QDragMoveEvent*");
1276 if (lua_isfunction(L
, -1-2)) {
1277 lua_pcall(L
, 1+1, 2, 0);
1278 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1282 lua_settop(L
, oldtop
);
1283 this->QWidget::dragMoveEvent(arg1
);
1285 lua_settop(L
, oldtop
);
1287 void LuaBinder
< QMainWindow
>::contextMenuEvent (QContextMenuEvent
* arg1
) {
1288 bool absorbed
= false;
1289 int oldtop
= lua_gettop(L
);
1290 lqtL_pushudata(L
, this, "QMainWindow*");
1291 if (lua_getmetatable(L
, -1)) {
1292 lua_getfield(L
, -1, "contextMenuEvent");
1298 lqtL_pushudata(L
, arg1
, "QContextMenuEvent*");
1299 if (lua_isfunction(L
, -1-2)) {
1300 lua_pcall(L
, 1+1, 2, 0);
1301 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1305 lua_settop(L
, oldtop
);
1306 this->QMainWindow::contextMenuEvent(arg1
);
1308 lua_settop(L
, oldtop
);
1310 void LuaBinder
< QMainWindow
>::enabledChange (bool arg1
) {
1311 bool absorbed
= false;
1312 int oldtop
= lua_gettop(L
);
1313 lqtL_pushudata(L
, this, "QMainWindow*");
1314 if (lua_getmetatable(L
, -1)) {
1315 lua_getfield(L
, -1, "enabledChange");
1321 lua_pushboolean(L
, arg1
);
1322 if (lua_isfunction(L
, -1-2)) {
1323 lua_pcall(L
, 1+1, 2, 0);
1324 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1328 lua_settop(L
, oldtop
);
1329 this->QWidget::enabledChange(arg1
);
1331 lua_settop(L
, oldtop
);
1333 void LuaBinder
< QMainWindow
>::disconnectNotify (const char * arg1
) {
1334 bool absorbed
= false;
1335 int oldtop
= lua_gettop(L
);
1336 lqtL_pushudata(L
, this, "QMainWindow*");
1337 if (lua_getmetatable(L
, -1)) {
1338 lua_getfield(L
, -1, "disconnectNotify");
1344 lua_pushstring(L
, arg1
);
1345 if (lua_isfunction(L
, -1-2)) {
1346 lua_pcall(L
, 1+1, 2, 0);
1347 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1351 lua_settop(L
, oldtop
);
1352 this->QObject::disconnectNotify(arg1
);
1354 lua_settop(L
, oldtop
);
1356 int LuaBinder
< QMainWindow
>::heightForWidth (int arg1
) const {
1357 bool absorbed
= false;
1358 int oldtop
= lua_gettop(L
);
1359 lqtL_pushudata(L
, this, "QMainWindow*");
1360 if (lua_getmetatable(L
, -1)) {
1361 lua_getfield(L
, -1, "heightForWidth");
1367 lua_pushinteger(L
, arg1
);
1368 if (lua_isfunction(L
, -1-2)) {
1369 lua_pcall(L
, 1+1, 2, 0);
1370 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1374 lua_settop(L
, oldtop
);
1375 return this->QWidget::heightForWidth(arg1
);
1377 int ret
= lua_tointeger(L
, -1);
1378 lua_settop(L
, oldtop
);
1381 void LuaBinder
< QMainWindow
>::fontChange (const QFont
& arg1
) {
1382 bool absorbed
= false;
1383 int oldtop
= lua_gettop(L
);
1384 lqtL_pushudata(L
, this, "QMainWindow*");
1385 if (lua_getmetatable(L
, -1)) {
1386 lua_getfield(L
, -1, "fontChange");
1392 lqtL_pushudata(L
, &(arg1
), "QFont*");
1393 if (lua_isfunction(L
, -1-2)) {
1394 lua_pcall(L
, 1+1, 2, 0);
1395 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1399 lua_settop(L
, oldtop
);
1400 this->QWidget::fontChange(arg1
);
1402 lua_settop(L
, oldtop
);
1404 bool LuaBinder
< QMainWindow
>::focusNextPrevChild (bool arg1
) {
1405 bool absorbed
= false;
1406 int oldtop
= lua_gettop(L
);
1407 lqtL_pushudata(L
, this, "QMainWindow*");
1408 if (lua_getmetatable(L
, -1)) {
1409 lua_getfield(L
, -1, "focusNextPrevChild");
1415 lua_pushboolean(L
, arg1
);
1416 if (lua_isfunction(L
, -1-2)) {
1417 lua_pcall(L
, 1+1, 2, 0);
1418 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1422 lua_settop(L
, oldtop
);
1423 return this->QWidget::focusNextPrevChild(arg1
);
1425 bool ret
= (bool)lua_toboolean(L
, -1);
1426 lua_settop(L
, oldtop
);
1429 void LuaBinder
< QMainWindow
>::timerEvent (QTimerEvent
* arg1
) {
1430 bool absorbed
= false;
1431 int oldtop
= lua_gettop(L
);
1432 lqtL_pushudata(L
, this, "QMainWindow*");
1433 if (lua_getmetatable(L
, -1)) {
1434 lua_getfield(L
, -1, "timerEvent");
1440 lqtL_pushudata(L
, arg1
, "QTimerEvent*");
1441 if (lua_isfunction(L
, -1-2)) {
1442 lua_pcall(L
, 1+1, 2, 0);
1443 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1447 lua_settop(L
, oldtop
);
1448 this->QObject::timerEvent(arg1
);
1450 lua_settop(L
, oldtop
);
1452 void LuaBinder
< QMainWindow
>::mouseMoveEvent (QMouseEvent
* arg1
) {
1453 bool absorbed
= false;
1454 int oldtop
= lua_gettop(L
);
1455 lqtL_pushudata(L
, this, "QMainWindow*");
1456 if (lua_getmetatable(L
, -1)) {
1457 lua_getfield(L
, -1, "mouseMoveEvent");
1463 lqtL_pushudata(L
, arg1
, "QMouseEvent*");
1464 if (lua_isfunction(L
, -1-2)) {
1465 lua_pcall(L
, 1+1, 2, 0);
1466 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1470 lua_settop(L
, oldtop
);
1471 this->QWidget::mouseMoveEvent(arg1
);
1473 lua_settop(L
, oldtop
);
1475 void LuaBinder
< QMainWindow
>::focusOutEvent (QFocusEvent
* arg1
) {
1476 bool absorbed
= false;
1477 int oldtop
= lua_gettop(L
);
1478 lqtL_pushudata(L
, this, "QMainWindow*");
1479 if (lua_getmetatable(L
, -1)) {
1480 lua_getfield(L
, -1, "focusOutEvent");
1486 lqtL_pushudata(L
, arg1
, "QFocusEvent*");
1487 if (lua_isfunction(L
, -1-2)) {
1488 lua_pcall(L
, 1+1, 2, 0);
1489 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1493 lua_settop(L
, oldtop
);
1494 this->QWidget::focusOutEvent(arg1
);
1496 lua_settop(L
, oldtop
);
1498 void LuaBinder
< QMainWindow
>::childEvent (QChildEvent
* arg1
) {
1499 bool absorbed
= false;
1500 int oldtop
= lua_gettop(L
);
1501 lqtL_pushudata(L
, this, "QMainWindow*");
1502 if (lua_getmetatable(L
, -1)) {
1503 lua_getfield(L
, -1, "childEvent");
1509 lqtL_pushudata(L
, arg1
, "QChildEvent*");
1510 if (lua_isfunction(L
, -1-2)) {
1511 lua_pcall(L
, 1+1, 2, 0);
1512 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1516 lua_settop(L
, oldtop
);
1517 this->QObject::childEvent(arg1
);
1519 lua_settop(L
, oldtop
);
1521 void LuaBinder
< QMainWindow
>::connectNotify (const char * arg1
) {
1522 bool absorbed
= false;
1523 int oldtop
= lua_gettop(L
);
1524 lqtL_pushudata(L
, this, "QMainWindow*");
1525 if (lua_getmetatable(L
, -1)) {
1526 lua_getfield(L
, -1, "connectNotify");
1532 lua_pushstring(L
, arg1
);
1533 if (lua_isfunction(L
, -1-2)) {
1534 lua_pcall(L
, 1+1, 2, 0);
1535 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1539 lua_settop(L
, oldtop
);
1540 this->QObject::connectNotify(arg1
);
1542 lua_settop(L
, oldtop
);
1544 void LuaBinder
< QMainWindow
>::mouseReleaseEvent (QMouseEvent
* arg1
) {
1545 bool absorbed
= false;
1546 int oldtop
= lua_gettop(L
);
1547 lqtL_pushudata(L
, this, "QMainWindow*");
1548 if (lua_getmetatable(L
, -1)) {
1549 lua_getfield(L
, -1, "mouseReleaseEvent");
1555 lqtL_pushudata(L
, arg1
, "QMouseEvent*");
1556 if (lua_isfunction(L
, -1-2)) {
1557 lua_pcall(L
, 1+1, 2, 0);
1558 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1562 lua_settop(L
, oldtop
);
1563 this->QWidget::mouseReleaseEvent(arg1
);
1565 lua_settop(L
, oldtop
);
1567 int LuaBinder
< QMainWindow
>::metric (QPaintDevice::PaintDeviceMetric arg1
) const {
1568 bool absorbed
= false;
1569 int oldtop
= lua_gettop(L
);
1570 lqtL_pushudata(L
, this, "QMainWindow*");
1571 if (lua_getmetatable(L
, -1)) {
1572 lua_getfield(L
, -1, "metric");
1578 lqtL_pushenum(L
, arg1
, "QPaintDevice::PaintDeviceMetric");
1579 if (lua_isfunction(L
, -1-2)) {
1580 lua_pcall(L
, 1+1, 2, 0);
1581 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1585 lua_settop(L
, oldtop
);
1586 return this->QWidget::metric(arg1
);
1588 int ret
= lua_tointeger(L
, -1);
1589 lua_settop(L
, oldtop
);
1592 bool LuaBinder
< QMainWindow
>::eventFilter (QObject
* arg1
, QEvent
* arg2
) {
1593 bool absorbed
= false;
1594 int oldtop
= lua_gettop(L
);
1595 lqtL_pushudata(L
, this, "QMainWindow*");
1596 if (lua_getmetatable(L
, -1)) {
1597 lua_getfield(L
, -1, "eventFilter");
1603 lqtL_pushudata(L
, arg1
, "QObject*");
1604 lqtL_pushudata(L
, arg2
, "QEvent*");
1605 if (lua_isfunction(L
, -2-2)) {
1606 lua_pcall(L
, 2+1, 2, 0);
1607 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1611 lua_settop(L
, oldtop
);
1612 return this->QObject::eventFilter(arg1
, arg2
);
1614 bool ret
= (bool)lua_toboolean(L
, -1);
1615 lua_settop(L
, oldtop
);
1618 void LuaBinder
< QMainWindow
>::inputMethodEvent (QInputMethodEvent
* arg1
) {
1619 bool absorbed
= false;
1620 int oldtop
= lua_gettop(L
);
1621 lqtL_pushudata(L
, this, "QMainWindow*");
1622 if (lua_getmetatable(L
, -1)) {
1623 lua_getfield(L
, -1, "inputMethodEvent");
1629 lqtL_pushudata(L
, arg1
, "QInputMethodEvent*");
1630 if (lua_isfunction(L
, -1-2)) {
1631 lua_pcall(L
, 1+1, 2, 0);
1632 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1636 lua_settop(L
, oldtop
);
1637 this->QWidget::inputMethodEvent(arg1
);
1639 lua_settop(L
, oldtop
);
1641 void LuaBinder
< QMainWindow
>::wheelEvent (QWheelEvent
* arg1
) {
1642 bool absorbed
= false;
1643 int oldtop
= lua_gettop(L
);
1644 lqtL_pushudata(L
, this, "QMainWindow*");
1645 if (lua_getmetatable(L
, -1)) {
1646 lua_getfield(L
, -1, "wheelEvent");
1652 lqtL_pushudata(L
, arg1
, "QWheelEvent*");
1653 if (lua_isfunction(L
, -1-2)) {
1654 lua_pcall(L
, 1+1, 2, 0);
1655 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1659 lua_settop(L
, oldtop
);
1660 this->QWidget::wheelEvent(arg1
);
1662 lua_settop(L
, oldtop
);
1664 void LuaBinder
< QMainWindow
>::resizeEvent (QResizeEvent
* arg1
) {
1665 bool absorbed
= false;
1666 int oldtop
= lua_gettop(L
);
1667 lqtL_pushudata(L
, this, "QMainWindow*");
1668 if (lua_getmetatable(L
, -1)) {
1669 lua_getfield(L
, -1, "resizeEvent");
1675 lqtL_pushudata(L
, arg1
, "QResizeEvent*");
1676 if (lua_isfunction(L
, -1-2)) {
1677 lua_pcall(L
, 1+1, 2, 0);
1678 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1682 lua_settop(L
, oldtop
);
1683 this->QWidget::resizeEvent(arg1
);
1685 lua_settop(L
, oldtop
);
1687 void LuaBinder
< QMainWindow
>::paletteChange (const QPalette
& arg1
) {
1688 bool absorbed
= false;
1689 int oldtop
= lua_gettop(L
);
1690 lqtL_pushudata(L
, this, "QMainWindow*");
1691 if (lua_getmetatable(L
, -1)) {
1692 lua_getfield(L
, -1, "paletteChange");
1698 lqtL_pushudata(L
, &(arg1
), "QPalette*");
1699 if (lua_isfunction(L
, -1-2)) {
1700 lua_pcall(L
, 1+1, 2, 0);
1701 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1705 lua_settop(L
, oldtop
);
1706 this->QWidget::paletteChange(arg1
);
1708 lua_settop(L
, oldtop
);
1710 void LuaBinder
< QMainWindow
>::languageChange () {
1711 bool absorbed
= false;
1712 int oldtop
= lua_gettop(L
);
1713 lqtL_pushudata(L
, this, "QMainWindow*");
1714 if (lua_getmetatable(L
, -1)) {
1715 lua_getfield(L
, -1, "languageChange");
1721 if (lua_isfunction(L
, -0-2)) {
1722 lua_pcall(L
, 0+1, 2, 0);
1723 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1727 lua_settop(L
, oldtop
);
1728 this->QWidget::languageChange();
1730 lua_settop(L
, oldtop
);
1732 bool LuaBinder
< QMainWindow
>::event (QEvent
* arg1
) {
1733 bool absorbed
= false;
1734 int oldtop
= lua_gettop(L
);
1735 lqtL_pushudata(L
, this, "QMainWindow*");
1736 if (lua_getmetatable(L
, -1)) {
1737 lua_getfield(L
, -1, "event");
1743 lqtL_pushudata(L
, arg1
, "QEvent*");
1744 if (lua_isfunction(L
, -1-2)) {
1745 lua_pcall(L
, 1+1, 2, 0);
1746 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1750 lua_settop(L
, oldtop
);
1751 return this->QMainWindow::event(arg1
);
1753 bool ret
= (bool)lua_toboolean(L
, -1);
1754 lua_settop(L
, oldtop
);
1757 void LuaBinder
< QMainWindow
>::hideEvent (QHideEvent
* arg1
) {
1758 bool absorbed
= false;
1759 int oldtop
= lua_gettop(L
);
1760 lqtL_pushudata(L
, this, "QMainWindow*");
1761 if (lua_getmetatable(L
, -1)) {
1762 lua_getfield(L
, -1, "hideEvent");
1768 lqtL_pushudata(L
, arg1
, "QHideEvent*");
1769 if (lua_isfunction(L
, -1-2)) {
1770 lua_pcall(L
, 1+1, 2, 0);
1771 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1775 lua_settop(L
, oldtop
);
1776 this->QWidget::hideEvent(arg1
);
1778 lua_settop(L
, oldtop
);
1780 void LuaBinder
< QMainWindow
>::mouseDoubleClickEvent (QMouseEvent
* arg1
) {
1781 bool absorbed
= false;
1782 int oldtop
= lua_gettop(L
);
1783 lqtL_pushudata(L
, this, "QMainWindow*");
1784 if (lua_getmetatable(L
, -1)) {
1785 lua_getfield(L
, -1, "mouseDoubleClickEvent");
1791 lqtL_pushudata(L
, arg1
, "QMouseEvent*");
1792 if (lua_isfunction(L
, -1-2)) {
1793 lua_pcall(L
, 1+1, 2, 0);
1794 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1798 lua_settop(L
, oldtop
);
1799 this->QWidget::mouseDoubleClickEvent(arg1
);
1801 lua_settop(L
, oldtop
);
1803 void LuaBinder
< QMainWindow
>::keyReleaseEvent (QKeyEvent
* arg1
) {
1804 bool absorbed
= false;
1805 int oldtop
= lua_gettop(L
);
1806 lqtL_pushudata(L
, this, "QMainWindow*");
1807 if (lua_getmetatable(L
, -1)) {
1808 lua_getfield(L
, -1, "keyReleaseEvent");
1814 lqtL_pushudata(L
, arg1
, "QKeyEvent*");
1815 if (lua_isfunction(L
, -1-2)) {
1816 lua_pcall(L
, 1+1, 2, 0);
1817 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1821 lua_settop(L
, oldtop
);
1822 this->QWidget::keyReleaseEvent(arg1
);
1824 lua_settop(L
, oldtop
);
1826 void LuaBinder
< QMainWindow
>::windowActivationChange (bool arg1
) {
1827 bool absorbed
= false;
1828 int oldtop
= lua_gettop(L
);
1829 lqtL_pushudata(L
, this, "QMainWindow*");
1830 if (lua_getmetatable(L
, -1)) {
1831 lua_getfield(L
, -1, "windowActivationChange");
1837 lua_pushboolean(L
, arg1
);
1838 if (lua_isfunction(L
, -1-2)) {
1839 lua_pcall(L
, 1+1, 2, 0);
1840 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1844 lua_settop(L
, oldtop
);
1845 this->QWidget::windowActivationChange(arg1
);
1847 lua_settop(L
, oldtop
);
1849 void LuaBinder
< QMainWindow
>::leaveEvent (QEvent
* arg1
) {
1850 bool absorbed
= false;
1851 int oldtop
= lua_gettop(L
);
1852 lqtL_pushudata(L
, this, "QMainWindow*");
1853 if (lua_getmetatable(L
, -1)) {
1854 lua_getfield(L
, -1, "leaveEvent");
1860 lqtL_pushudata(L
, arg1
, "QEvent*");
1861 if (lua_isfunction(L
, -1-2)) {
1862 lua_pcall(L
, 1+1, 2, 0);
1863 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1867 lua_settop(L
, oldtop
);
1868 this->QWidget::leaveEvent(arg1
);
1870 lua_settop(L
, oldtop
);
1872 void LuaBinder
< QMainWindow
>::changeEvent (QEvent
* arg1
) {
1873 bool absorbed
= false;
1874 int oldtop
= lua_gettop(L
);
1875 lqtL_pushudata(L
, this, "QMainWindow*");
1876 if (lua_getmetatable(L
, -1)) {
1877 lua_getfield(L
, -1, "changeEvent");
1883 lqtL_pushudata(L
, arg1
, "QEvent*");
1884 if (lua_isfunction(L
, -1-2)) {
1885 lua_pcall(L
, 1+1, 2, 0);
1886 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1890 lua_settop(L
, oldtop
);
1891 this->QWidget::changeEvent(arg1
);
1893 lua_settop(L
, oldtop
);
1895 void LuaBinder
< QMainWindow
>::customEvent (QEvent
* arg1
) {
1896 bool absorbed
= false;
1897 int oldtop
= lua_gettop(L
);
1898 lqtL_pushudata(L
, this, "QMainWindow*");
1899 if (lua_getmetatable(L
, -1)) {
1900 lua_getfield(L
, -1, "customEvent");
1906 lqtL_pushudata(L
, arg1
, "QEvent*");
1907 if (lua_isfunction(L
, -1-2)) {
1908 lua_pcall(L
, 1+1, 2, 0);
1909 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1913 lua_settop(L
, oldtop
);
1914 this->QObject::customEvent(arg1
);
1916 lua_settop(L
, oldtop
);
1918 LuaBinder
< QMainWindow
>:: ~LuaBinder
< QMainWindow
> () {
1919 int oldtop
= lua_gettop(L
);
1920 lqtL_pushudata(L
, this, "QMainWindow*");
1921 lua_getfield(L
, -1, "~QMainWindow");
1923 if (lua_isfunction(L
, -1)) {
1925 lua_pcall(L
, 1, 1, 0);
1928 lua_settop(L
, oldtop
);
1930 int LuaBinder
< QMainWindow
>::lqt_pushenum_DockOption (lua_State
*L
) {
1932 lua_getfield(L
, LUA_REGISTRYINDEX
, LQT_ENUMS
);
1933 if (!lua_istable(L
, -1)) {
1936 lua_pushvalue(L
, -1);
1937 lua_setfield(L
, LUA_REGISTRYINDEX
, LQT_ENUMS
);
1940 enum_table
= lua_gettop(L
);
1941 lua_pushstring(L
, "AnimatedDocks");
1942 lua_rawseti(L
, enum_table
, 1);
1943 lua_pushinteger(L
, 1);
1944 lua_setfield(L
, enum_table
, "AnimatedDocks");
1945 lua_pushstring(L
, "AllowNestedDocks");
1946 lua_rawseti(L
, enum_table
, 2);
1947 lua_pushinteger(L
, 2);
1948 lua_setfield(L
, enum_table
, "AllowNestedDocks");
1949 lua_pushstring(L
, "AllowTabbedDocks");
1950 lua_rawseti(L
, enum_table
, 4);
1951 lua_pushinteger(L
, 4);
1952 lua_setfield(L
, enum_table
, "AllowTabbedDocks");
1953 lua_pushstring(L
, "ForceTabbedDocks");
1954 lua_rawseti(L
, enum_table
, 8);
1955 lua_pushinteger(L
, 8);
1956 lua_setfield(L
, enum_table
, "ForceTabbedDocks");
1957 lua_pushstring(L
, "VerticalTabs");
1958 lua_rawseti(L
, enum_table
, 16);
1959 lua_pushinteger(L
, 16);
1960 lua_setfield(L
, enum_table
, "VerticalTabs");
1961 lua_pushcfunction(L
, LuaBinder
< QMainWindow
>::lqt_pushenum_DockOption_QFLAGS_CREATOR
);
1962 lua_setfield(L
, enum_table
, "QFlags");
1963 lua_pushvalue(L
, -1);
1964 lua_setfield(L
, -3, "QMainWindow::DockOption");
1968 int LuaBinder
< QMainWindow
>::lqt_pushenum_DockOption_QFLAGS_CREATOR (lua_State
*L
) {
1969 int argn
= lua_gettop(L
);
1971 void *p
= lua_newuserdata(L
, sizeof(QFlags
<QMainWindow::DockOption
>*) + sizeof(QFlags
<QMainWindow::DockOption
>));
1972 QFlags
<QMainWindow::DockOption
> *fl
= static_cast<QFlags
<QMainWindow::DockOption
>*>( static_cast<void*>(&static_cast<QFlags
<QMainWindow::DockOption
>**>(p
)[1]) );
1974 for (i
=1;i
<=argn
;i
++) {
1975 *fl
|= static_cast<QMainWindow::DockOption
>(lqtL_toenum(L
, i
, "QMainWindow::DockOption"));
1977 if (luaL_newmetatable(L
, "QFlags<QMainWindow::DockOption>*")) {
1978 lua_pushstring(L
, "QFlags<QMainWindow::DockOption>*");
1979 lua_setfield(L
, -2, "__qtype");
1981 lua_setmetatable(L
, -2);
1984 int luaopen_QMainWindow (lua_State
*L
) {
1985 if (luaL_newmetatable(L
, "QMainWindow*")) {
1986 lua_pushcfunction(L
, LuaBinder
< QMainWindow
>::__LuaWrapCall__splitDockWidget
);
1987 lua_setfield(L
, -2, "splitDockWidget");
1988 lua_pushcfunction(L
, LuaBinder
< QMainWindow
>::__LuaWrapCall__toolBarBreak
);
1989 lua_setfield(L
, -2, "toolBarBreak");
1990 lua_pushcfunction(L
, LuaBinder
< QMainWindow
>::__LuaWrapCall__saveState
);
1991 lua_setfield(L
, -2, "saveState");
1992 lua_pushcfunction(L
, LuaBinder
< QMainWindow
>::__LuaWrapCall__addToolBarBreak
);
1993 lua_setfield(L
, -2, "addToolBarBreak");
1994 lua_pushcfunction(L
, LuaBinder
< QMainWindow
>::__LuaWrapCall__createPopupMenu
);
1995 lua_setfield(L
, -2, "createPopupMenu");
1996 lua_pushcfunction(L
, LuaBinder
< QMainWindow
>::__LuaWrapCall__insertToolBar
);
1997 lua_setfield(L
, -2, "insertToolBar");
1998 lua_pushcfunction(L
, LuaBinder
< QMainWindow
>::__LuaWrapCall__removeToolBarBreak
);
1999 lua_setfield(L
, -2, "removeToolBarBreak");
2000 lua_pushcfunction(L
, LuaBinder
< QMainWindow
>::__LuaWrapCall__setAnimated
);
2001 lua_setfield(L
, -2, "setAnimated");
2002 lua_pushcfunction(L
, LuaBinder
< QMainWindow
>::__LuaWrapCall__trUtf8
);
2003 lua_setfield(L
, -2, "trUtf8");
2004 lua_pushcfunction(L
, LuaBinder
< QMainWindow
>::__LuaWrapCall__setUnifiedTitleAndToolBarOnMac
);
2005 lua_setfield(L
, -2, "setUnifiedTitleAndToolBarOnMac");
2006 lua_pushcfunction(L
, LuaBinder
< QMainWindow
>::__LuaWrapCall__tr
);
2007 lua_setfield(L
, -2, "tr");
2008 lua_pushcfunction(L
, LuaBinder
< QMainWindow
>::__LuaWrapCall__menuWidget
);
2009 lua_setfield(L
, -2, "menuWidget");
2010 lua_pushcfunction(L
, LuaBinder
< QMainWindow
>::__LuaWrapCall__removeDockWidget
);
2011 lua_setfield(L
, -2, "removeDockWidget");
2012 lua_pushcfunction(L
, LuaBinder
< QMainWindow
>::__LuaWrapCall__setCentralWidget
);
2013 lua_setfield(L
, -2, "setCentralWidget");
2014 lua_pushcfunction(L
, LuaBinder
< QMainWindow
>::__LuaWrapCall__setDockOptions
);
2015 lua_setfield(L
, -2, "setDockOptions");
2016 lua_pushcfunction(L
, LuaBinder
< QMainWindow
>::__LuaWrapCall__setStatusBar
);
2017 lua_setfield(L
, -2, "setStatusBar");
2018 lua_pushcfunction(L
, LuaBinder
< QMainWindow
>::__LuaWrapCall__insertToolBarBreak
);
2019 lua_setfield(L
, -2, "insertToolBarBreak");
2020 lua_pushcfunction(L
, LuaBinder
< QMainWindow
>::__LuaWrapCall__setMenuWidget
);
2021 lua_setfield(L
, -2, "setMenuWidget");
2022 lua_pushcfunction(L
, LuaBinder
< QMainWindow
>::__LuaWrapCall__setMenuBar
);
2023 lua_setfield(L
, -2, "setMenuBar");
2024 lua_pushcfunction(L
, LuaBinder
< QMainWindow
>::__LuaWrapCall__isAnimated
);
2025 lua_setfield(L
, -2, "isAnimated");
2026 lua_pushcfunction(L
, LuaBinder
< QMainWindow
>::__LuaWrapCall__statusBar
);
2027 lua_setfield(L
, -2, "statusBar");
2028 lua_pushcfunction(L
, LuaBinder
< QMainWindow
>::__LuaWrapCall__menuBar
);
2029 lua_setfield(L
, -2, "menuBar");
2030 lua_pushcfunction(L
, LuaBinder
< QMainWindow
>::__LuaWrapCall__setDockNestingEnabled
);
2031 lua_setfield(L
, -2, "setDockNestingEnabled");
2032 lua_pushcfunction(L
, LuaBinder
< QMainWindow
>::__LuaWrapCall__setIconSize
);
2033 lua_setfield(L
, -2, "setIconSize");
2034 lua_pushcfunction(L
, LuaBinder
< QMainWindow
>::__LuaWrapCall__iconSize
);
2035 lua_setfield(L
, -2, "iconSize");
2036 lua_pushcfunction(L
, LuaBinder
< QMainWindow
>::__LuaWrapCall__dockWidgetArea
);
2037 lua_setfield(L
, -2, "dockWidgetArea");
2038 lua_pushcfunction(L
, LuaBinder
< QMainWindow
>::__LuaWrapCall__metaObject
);
2039 lua_setfield(L
, -2, "metaObject");
2040 lua_pushcfunction(L
, LuaBinder
< QMainWindow
>::__LuaWrapCall__new
);
2041 lua_setfield(L
, -2, "new");
2042 lua_pushcfunction(L
, LuaBinder
< QMainWindow
>::__LuaWrapCall__unifiedTitleAndToolBarOnMac
);
2043 lua_setfield(L
, -2, "unifiedTitleAndToolBarOnMac");
2044 lua_pushcfunction(L
, LuaBinder
< QMainWindow
>::__LuaWrapCall__delete
);
2045 lua_setfield(L
, -2, "delete");
2046 lua_pushcfunction(L
, LuaBinder
< QMainWindow
>::__LuaWrapCall__setCorner
);
2047 lua_setfield(L
, -2, "setCorner");
2048 lua_pushcfunction(L
, LuaBinder
< QMainWindow
>::__LuaWrapCall__corner
);
2049 lua_setfield(L
, -2, "corner");
2050 lua_pushcfunction(L
, LuaBinder
< QMainWindow
>::__LuaWrapCall__addToolBar
);
2051 lua_setfield(L
, -2, "addToolBar");
2052 lua_pushcfunction(L
, LuaBinder
< QMainWindow
>::__LuaWrapCall__removeToolBar
);
2053 lua_setfield(L
, -2, "removeToolBar");
2054 lua_pushcfunction(L
, LuaBinder
< QMainWindow
>::__LuaWrapCall__dockOptions
);
2055 lua_setfield(L
, -2, "dockOptions");
2056 lua_pushcfunction(L
, LuaBinder
< QMainWindow
>::__LuaWrapCall__restoreState
);
2057 lua_setfield(L
, -2, "restoreState");
2058 lua_pushcfunction(L
, LuaBinder
< QMainWindow
>::__LuaWrapCall__toolButtonStyle
);
2059 lua_setfield(L
, -2, "toolButtonStyle");
2060 lua_pushcfunction(L
, LuaBinder
< QMainWindow
>::__LuaWrapCall__tabifyDockWidget
);
2061 lua_setfield(L
, -2, "tabifyDockWidget");
2062 lua_pushcfunction(L
, LuaBinder
< QMainWindow
>::__LuaWrapCall__isDockNestingEnabled
);
2063 lua_setfield(L
, -2, "isDockNestingEnabled");
2064 lua_pushcfunction(L
, LuaBinder
< QMainWindow
>::__LuaWrapCall__isSeparator
);
2065 lua_setfield(L
, -2, "isSeparator");
2066 lua_pushcfunction(L
, LuaBinder
< QMainWindow
>::__LuaWrapCall__addDockWidget
);
2067 lua_setfield(L
, -2, "addDockWidget");
2068 lua_pushcfunction(L
, LuaBinder
< QMainWindow
>::__LuaWrapCall__setToolButtonStyle
);
2069 lua_setfield(L
, -2, "setToolButtonStyle");
2070 lua_pushcfunction(L
, LuaBinder
< QMainWindow
>::__LuaWrapCall__toolBarArea
);
2071 lua_setfield(L
, -2, "toolBarArea");
2072 lua_pushcfunction(L
, LuaBinder
< QMainWindow
>::__LuaWrapCall__centralWidget
);
2073 lua_setfield(L
, -2, "centralWidget");
2074 LuaBinder
< QMainWindow
>::lqt_pushenum_DockOption(L
);
2075 lua_setfield(L
, -2, "DockOption");
2077 lua_pushboolean(L
, 1);
2078 lua_setfield(L
, -2, "QWidget*");
2079 lua_pushboolean(L
, 0);
2080 lua_setfield(L
, -2, "QObject*");
2081 lua_pushboolean(L
, 0);
2082 lua_setfield(L
, -2, "QPaintDevice*");
2083 lua_setfield(L
, -2, "__base");
2084 lua_pushcfunction(L
, lqtL_newindex
);
2085 lua_setfield(L
, -2, "__newindex");
2086 lua_pushcfunction(L
, lqtL_index
);
2087 lua_setfield(L
, -2, "__index");
2088 lua_pushcfunction(L
, lqtL_gc
);
2089 lua_setfield(L
, -2, "__gc");
2090 lua_pushstring(L
, "QMainWindow");
2091 lua_setfield(L
, -2, "__qtype");
2092 lua_setglobal(L
, "QMainWindow");