1 #include "lqt_bind_QMenuBar.hpp"
3 int LuaBinder
< QMenuBar
>::__LuaWrapCall__setCornerWidget (lua_State
*L
) {
4 QMenuBar
*& __lua__obj
= *static_cast<QMenuBar
**>(lqtL_checkudata(L
, 1, "QMenuBar*"));
6 lua_pushstring(L
, "trying to reference deleted pointer");
10 QWidget
* arg1
= *static_cast<QWidget
**>(lqtL_checkudata(L
, 2, "QWidget*"));
11 Qt::Corner arg2
= lqtL_isenum(L
, 3, "Qt::Corner")?static_cast<Qt::Corner
>(lqtL_toenum(L
, 3, "Qt::Corner")):Qt::TopRightCorner
;
12 __lua__obj
->QMenuBar::setCornerWidget(arg1
, arg2
);
15 int LuaBinder
< QMenuBar
>::__LuaWrapCall__sizeHint (lua_State
*L
) {
16 QMenuBar
*& __lua__obj
= *static_cast<QMenuBar
**>(lqtL_checkudata(L
, 1, "QMenuBar*"));
18 lua_pushstring(L
, "trying to reference deleted pointer");
22 QSize ret
= __lua__obj
->QMenuBar::sizeHint();
23 lqtL_passudata(L
, new QSize(ret
), "QSize*");
26 int LuaBinder
< QMenuBar
>::__LuaWrapCall__addSeparator (lua_State
*L
) {
27 QMenuBar
*& __lua__obj
= *static_cast<QMenuBar
**>(lqtL_checkudata(L
, 1, "QMenuBar*"));
29 lua_pushstring(L
, "trying to reference deleted pointer");
33 QAction
* ret
= __lua__obj
->QMenuBar::addSeparator();
34 lqtL_pushudata(L
, ret
, "QAction*");
37 int LuaBinder
< QMenuBar
>::__LuaWrapCall__minimumSizeHint (lua_State
*L
) {
38 QMenuBar
*& __lua__obj
= *static_cast<QMenuBar
**>(lqtL_checkudata(L
, 1, "QMenuBar*"));
40 lua_pushstring(L
, "trying to reference deleted pointer");
44 QSize ret
= __lua__obj
->QMenuBar::minimumSizeHint();
45 lqtL_passudata(L
, new QSize(ret
), "QSize*");
48 int LuaBinder
< QMenuBar
>::__LuaWrapCall__isDefaultUp (lua_State
*L
) {
49 QMenuBar
*& __lua__obj
= *static_cast<QMenuBar
**>(lqtL_checkudata(L
, 1, "QMenuBar*"));
51 lua_pushstring(L
, "trying to reference deleted pointer");
55 bool ret
= __lua__obj
->QMenuBar::isDefaultUp();
56 lua_pushboolean(L
, ret
);
59 int LuaBinder
< QMenuBar
>::__LuaWrapCall__heightForWidth (lua_State
*L
) {
60 QMenuBar
*& __lua__obj
= *static_cast<QMenuBar
**>(lqtL_checkudata(L
, 1, "QMenuBar*"));
62 lua_pushstring(L
, "trying to reference deleted pointer");
66 int arg1
= lua_tointeger(L
, 2);
67 int ret
= __lua__obj
->QMenuBar::heightForWidth(arg1
);
68 lua_pushinteger(L
, ret
);
71 int LuaBinder
< QMenuBar
>::__LuaWrapCall__trUtf8__OverloadedVersion__1 (lua_State
*L
) {
72 const char * arg1
= lua_tostring(L
, 1);
73 const char * arg2
= (lua_type(L
, 2)==LUA_TSTRING
)?lua_tostring(L
, 2):static_cast< const char * >(0);
74 QString ret
= QMenuBar::trUtf8(arg1
, arg2
);
75 lua_pushlstring(L
, ret
.toAscii().data(), ret
.toAscii().size());
78 int LuaBinder
< QMenuBar
>::__LuaWrapCall__trUtf8__OverloadedVersion__2 (lua_State
*L
) {
79 const char * arg1
= lua_tostring(L
, 1);
80 const char * arg2
= lua_tostring(L
, 2);
81 int arg3
= lua_tointeger(L
, 3);
82 QString ret
= QMenuBar::trUtf8(arg1
, arg2
, arg3
);
83 lua_pushlstring(L
, ret
.toAscii().data(), ret
.toAscii().size());
86 int LuaBinder
< QMenuBar
>::__LuaWrapCall__trUtf8 (lua_State
*L
) {
88 const int premium
= 11+lua_gettop(L
);
90 if ((lua_type(L
, 1)==LUA_TSTRING
)) {
93 score
[1] += premium
-1; // table: 0x1066350;
95 score
[1] -= premium
*premium
;
97 if ((lua_type(L
, 2)==LUA_TSTRING
)) {
100 score
[1] += premium
-1; // table: 0x1065eb0;
102 score
[1] -= premium
*premium
;
105 if ((lua_type(L
, 1)==LUA_TSTRING
)) {
108 score
[2] += premium
-1; // table: 0x1068140;
110 score
[2] -= premium
*premium
;
112 if ((lua_type(L
, 2)==LUA_TSTRING
)) {
115 score
[2] += premium
-1; // table: 0x1067870;
117 score
[2] -= premium
*premium
;
119 if (lua_isnumber(L
, 3)) {
122 score
[2] += premium
-1; // table: 0x10685d0;
124 score
[2] -= premium
*premium
;
127 for (int i
=1;i
<=2;i
++) {
128 if (score
[best
] < score
[i
]) { best
= i
; }
131 case 1: return __LuaWrapCall__trUtf8__OverloadedVersion__1(L
); break;
132 case 2: return __LuaWrapCall__trUtf8__OverloadedVersion__2(L
); break;
134 lua_pushstring(L
, "no overload of function __LuaWrapCall__trUtf8 matching arguments");
138 int LuaBinder
< QMenuBar
>::__LuaWrapCall__actionAt (lua_State
*L
) {
139 QMenuBar
*& __lua__obj
= *static_cast<QMenuBar
**>(lqtL_checkudata(L
, 1, "QMenuBar*"));
141 lua_pushstring(L
, "trying to reference deleted pointer");
145 const QPoint
& arg1
= **static_cast<QPoint
**>(lqtL_checkudata(L
, 2, "QPoint*"));
146 QAction
* ret
= __lua__obj
->QMenuBar::actionAt(arg1
);
147 lqtL_pushudata(L
, ret
, "QAction*");
150 int LuaBinder
< QMenuBar
>::__LuaWrapCall__metaObject (lua_State
*L
) {
151 QMenuBar
*& __lua__obj
= *static_cast<QMenuBar
**>(lqtL_checkudata(L
, 1, "QMenuBar*"));
153 lua_pushstring(L
, "trying to reference deleted pointer");
157 const QMetaObject
* ret
= __lua__obj
->QMenuBar::metaObject();
158 lqtL_pushudata(L
, ret
, "QMetaObject*");
161 int LuaBinder
< QMenuBar
>::__LuaWrapCall__insertMenu (lua_State
*L
) {
162 QMenuBar
*& __lua__obj
= *static_cast<QMenuBar
**>(lqtL_checkudata(L
, 1, "QMenuBar*"));
164 lua_pushstring(L
, "trying to reference deleted pointer");
168 QAction
* arg1
= *static_cast<QAction
**>(lqtL_checkudata(L
, 2, "QAction*"));
169 QMenu
* arg2
= *static_cast<QMenu
**>(lqtL_checkudata(L
, 3, "QMenu*"));
170 QAction
* ret
= __lua__obj
->QMenuBar::insertMenu(arg1
, arg2
);
171 lqtL_pushudata(L
, ret
, "QAction*");
174 int LuaBinder
< QMenuBar
>::__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
= QMenuBar::tr(arg1
, arg2
);
178 lua_pushlstring(L
, ret
.toAscii().data(), ret
.toAscii().size());
181 int LuaBinder
< QMenuBar
>::__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
= QMenuBar::tr(arg1
, arg2
, arg3
);
186 lua_pushlstring(L
, ret
.toAscii().data(), ret
.toAscii().size());
189 int LuaBinder
< QMenuBar
>::__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: 0x10655f0;
198 score
[1] -= premium
*premium
;
200 if ((lua_type(L
, 2)==LUA_TSTRING
)) {
203 score
[1] += premium
-1; // table: 0x1065350;
205 score
[1] -= premium
*premium
;
208 if ((lua_type(L
, 1)==LUA_TSTRING
)) {
211 score
[2] += premium
-1; // table: 0x1067030;
213 score
[2] -= premium
*premium
;
215 if ((lua_type(L
, 2)==LUA_TSTRING
)) {
218 score
[2] += premium
-1; // table: 0x1067520;
220 score
[2] -= premium
*premium
;
222 if (lua_isnumber(L
, 3)) {
225 score
[2] += premium
-1; // table: 0x10678d0;
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
< QMenuBar
>::__LuaWrapCall__delete (lua_State
*L
) {
242 QMenuBar
*& __lua__obj
= *static_cast<QMenuBar
**>(lqtL_checkudata(L
, 1, "QMenuBar*"));
244 lua_pushstring(L
, "trying to reference deleted pointer");
252 int LuaBinder
< QMenuBar
>::__LuaWrapCall__cornerWidget (lua_State
*L
) {
253 QMenuBar
*& __lua__obj
= *static_cast<QMenuBar
**>(lqtL_checkudata(L
, 1, "QMenuBar*"));
255 lua_pushstring(L
, "trying to reference deleted pointer");
259 Qt::Corner arg1
= lqtL_isenum(L
, 2, "Qt::Corner")?static_cast<Qt::Corner
>(lqtL_toenum(L
, 2, "Qt::Corner")):Qt::TopRightCorner
;
260 QWidget
* ret
= __lua__obj
->QMenuBar::cornerWidget(arg1
);
261 lqtL_pushudata(L
, ret
, "QWidget*");
264 int LuaBinder
< QMenuBar
>::__LuaWrapCall__new (lua_State
*L
) {
265 QWidget
* arg1
= lqtL_testudata(L
, 1, "QWidget*")?*static_cast<QWidget
**>(lqtL_checkudata(L
, 1, "QWidget*")):static_cast< QWidget
* >(0);
266 QMenuBar
* ret
= new LuaBinder
< QMenuBar
>(L
, arg1
);
267 lqtL_passudata(L
, ret
, "QMenuBar*");
270 int LuaBinder
< QMenuBar
>::__LuaWrapCall__setVisible (lua_State
*L
) {
271 QMenuBar
*& __lua__obj
= *static_cast<QMenuBar
**>(lqtL_checkudata(L
, 1, "QMenuBar*"));
273 lua_pushstring(L
, "trying to reference deleted pointer");
277 bool arg1
= (bool)lua_toboolean(L
, 2);
278 __lua__obj
->QMenuBar::setVisible(arg1
);
281 int LuaBinder
< QMenuBar
>::__LuaWrapCall__clear (lua_State
*L
) {
282 QMenuBar
*& __lua__obj
= *static_cast<QMenuBar
**>(lqtL_checkudata(L
, 1, "QMenuBar*"));
284 lua_pushstring(L
, "trying to reference deleted pointer");
288 __lua__obj
->QMenuBar::clear();
291 int LuaBinder
< QMenuBar
>::__LuaWrapCall__insertSeparator (lua_State
*L
) {
292 QMenuBar
*& __lua__obj
= *static_cast<QMenuBar
**>(lqtL_checkudata(L
, 1, "QMenuBar*"));
294 lua_pushstring(L
, "trying to reference deleted pointer");
298 QAction
* arg1
= *static_cast<QAction
**>(lqtL_checkudata(L
, 2, "QAction*"));
299 QAction
* ret
= __lua__obj
->QMenuBar::insertSeparator(arg1
);
300 lqtL_pushudata(L
, ret
, "QAction*");
303 int LuaBinder
< QMenuBar
>::__LuaWrapCall__addMenu__OverloadedVersion__1 (lua_State
*L
) {
304 QMenuBar
*& __lua__obj
= *static_cast<QMenuBar
**>(lqtL_checkudata(L
, 1, "QMenuBar*"));
306 lua_pushstring(L
, "trying to reference deleted pointer");
310 QMenu
* arg1
= *static_cast<QMenu
**>(lqtL_checkudata(L
, 2, "QMenu*"));
311 QAction
* ret
= __lua__obj
->QMenuBar::addMenu(arg1
);
312 lqtL_pushudata(L
, ret
, "QAction*");
315 int LuaBinder
< QMenuBar
>::__LuaWrapCall__addMenu__OverloadedVersion__2 (lua_State
*L
) {
316 QMenuBar
*& __lua__obj
= *static_cast<QMenuBar
**>(lqtL_checkudata(L
, 1, "QMenuBar*"));
318 lua_pushstring(L
, "trying to reference deleted pointer");
322 const QString
& arg1
= QString::fromAscii(lua_tostring(L
, 2), lua_objlen(L
, 2));
323 QMenu
* ret
= __lua__obj
->QMenuBar::addMenu(arg1
);
324 lqtL_pushudata(L
, ret
, "QMenu*");
327 int LuaBinder
< QMenuBar
>::__LuaWrapCall__addMenu__OverloadedVersion__3 (lua_State
*L
) {
328 QMenuBar
*& __lua__obj
= *static_cast<QMenuBar
**>(lqtL_checkudata(L
, 1, "QMenuBar*"));
330 lua_pushstring(L
, "trying to reference deleted pointer");
334 const QIcon
& arg1
= **static_cast<QIcon
**>(lqtL_checkudata(L
, 2, "QIcon*"));
335 const QString
& arg2
= QString::fromAscii(lua_tostring(L
, 3), lua_objlen(L
, 3));
336 QMenu
* ret
= __lua__obj
->QMenuBar::addMenu(arg1
, arg2
);
337 lqtL_pushudata(L
, ret
, "QMenu*");
340 int LuaBinder
< QMenuBar
>::__LuaWrapCall__addMenu (lua_State
*L
) {
342 const int premium
= 11+lua_gettop(L
);
344 score
[1] += lqtL_testudata(L
, 1, "QMenuBar*")?premium
:-premium
*premium
;
345 if (lqtL_testudata(L
, 2, "QMenu*")) {
348 score
[1] += premium
-1; // table: 0x106cf00;
350 score
[1] -= premium
*premium
;
353 score
[2] += lqtL_testudata(L
, 1, "QMenuBar*")?premium
:-premium
*premium
;
354 if ((lua_type(L
, 2)==LUA_TSTRING
)) {
357 score
[2] += premium
-1; // table: 0x106d940;
359 score
[2] -= premium
*premium
;
362 score
[3] += lqtL_testudata(L
, 1, "QMenuBar*")?premium
:-premium
*premium
;
363 if (lqtL_testudata(L
, 2, "QIcon*")) {
366 score
[3] += premium
-1; // table: 0x106e3a0;
368 score
[3] -= premium
*premium
;
370 if ((lua_type(L
, 3)==LUA_TSTRING
)) {
373 score
[3] += premium
-1; // table: 0x106de70;
375 score
[3] -= premium
*premium
;
378 for (int i
=1;i
<=3;i
++) {
379 if (score
[best
] < score
[i
]) { best
= i
; }
382 case 1: return __LuaWrapCall__addMenu__OverloadedVersion__1(L
); break;
383 case 2: return __LuaWrapCall__addMenu__OverloadedVersion__2(L
); break;
384 case 3: return __LuaWrapCall__addMenu__OverloadedVersion__3(L
); break;
386 lua_pushstring(L
, "no overload of function __LuaWrapCall__addMenu matching arguments");
390 int LuaBinder
< QMenuBar
>::__LuaWrapCall__setDefaultUp (lua_State
*L
) {
391 QMenuBar
*& __lua__obj
= *static_cast<QMenuBar
**>(lqtL_checkudata(L
, 1, "QMenuBar*"));
393 lua_pushstring(L
, "trying to reference deleted pointer");
397 bool arg1
= (bool)lua_toboolean(L
, 2);
398 __lua__obj
->QMenuBar::setDefaultUp(arg1
);
401 int LuaBinder
< QMenuBar
>::__LuaWrapCall__addAction__OverloadedVersion__1 (lua_State
*L
) {
402 QMenuBar
*& __lua__obj
= *static_cast<QMenuBar
**>(lqtL_checkudata(L
, 1, "QMenuBar*"));
404 lua_pushstring(L
, "trying to reference deleted pointer");
408 const QString
& arg1
= QString::fromAscii(lua_tostring(L
, 2), lua_objlen(L
, 2));
409 QAction
* ret
= __lua__obj
->QMenuBar::addAction(arg1
);
410 lqtL_pushudata(L
, ret
, "QAction*");
413 int LuaBinder
< QMenuBar
>::__LuaWrapCall__addAction__OverloadedVersion__2 (lua_State
*L
) {
414 QMenuBar
*& __lua__obj
= *static_cast<QMenuBar
**>(lqtL_checkudata(L
, 1, "QMenuBar*"));
416 lua_pushstring(L
, "trying to reference deleted pointer");
420 const QString
& arg1
= QString::fromAscii(lua_tostring(L
, 2), lua_objlen(L
, 2));
421 const QObject
* arg2
= *static_cast<QObject
**>(lqtL_checkudata(L
, 3, "QObject*"));
422 const char * arg3
= lua_tostring(L
, 4);
423 QAction
* ret
= __lua__obj
->QMenuBar::addAction(arg1
, arg2
, arg3
);
424 lqtL_pushudata(L
, ret
, "QAction*");
427 int LuaBinder
< QMenuBar
>::__LuaWrapCall__addAction (lua_State
*L
) {
429 const int premium
= 11+lua_gettop(L
);
431 score
[1] += lqtL_testudata(L
, 1, "QMenuBar*")?premium
:-premium
*premium
;
432 if ((lua_type(L
, 2)==LUA_TSTRING
)) {
435 score
[1] += premium
-1; // table: 0x106b2b0;
437 score
[1] -= premium
*premium
;
440 score
[2] += lqtL_testudata(L
, 1, "QMenuBar*")?premium
:-premium
*premium
;
441 if ((lua_type(L
, 2)==LUA_TSTRING
)) {
444 score
[2] += premium
-1; // table: 0x106bd10;
446 score
[2] -= premium
*premium
;
448 if (lqtL_testudata(L
, 3, "QObject*")) {
451 score
[2] += premium
-1; // table: 0x106b7d0;
453 score
[2] -= premium
*premium
;
455 if ((lua_type(L
, 4)==LUA_TSTRING
)) {
458 score
[2] += premium
-1; // table: 0x106c1c0;
460 score
[2] -= premium
*premium
;
463 for (int i
=1;i
<=2;i
++) {
464 if (score
[best
] < score
[i
]) { best
= i
; }
467 case 1: return __LuaWrapCall__addAction__OverloadedVersion__1(L
); break;
468 case 2: return __LuaWrapCall__addAction__OverloadedVersion__2(L
); break;
470 lua_pushstring(L
, "no overload of function __LuaWrapCall__addAction matching arguments");
474 int LuaBinder
< QMenuBar
>::__LuaWrapCall__setActiveAction (lua_State
*L
) {
475 QMenuBar
*& __lua__obj
= *static_cast<QMenuBar
**>(lqtL_checkudata(L
, 1, "QMenuBar*"));
477 lua_pushstring(L
, "trying to reference deleted pointer");
481 QAction
* arg1
= *static_cast<QAction
**>(lqtL_checkudata(L
, 2, "QAction*"));
482 __lua__obj
->QMenuBar::setActiveAction(arg1
);
485 int LuaBinder
< QMenuBar
>::__LuaWrapCall__actionGeometry (lua_State
*L
) {
486 QMenuBar
*& __lua__obj
= *static_cast<QMenuBar
**>(lqtL_checkudata(L
, 1, "QMenuBar*"));
488 lua_pushstring(L
, "trying to reference deleted pointer");
492 QAction
* arg1
= *static_cast<QAction
**>(lqtL_checkudata(L
, 2, "QAction*"));
493 QRect ret
= __lua__obj
->QMenuBar::actionGeometry(arg1
);
494 lqtL_passudata(L
, new QRect(ret
), "QRect*");
497 int LuaBinder
< QMenuBar
>::__LuaWrapCall__activeAction (lua_State
*L
) {
498 QMenuBar
*& __lua__obj
= *static_cast<QMenuBar
**>(lqtL_checkudata(L
, 1, "QMenuBar*"));
500 lua_pushstring(L
, "trying to reference deleted pointer");
504 QAction
* ret
= __lua__obj
->QMenuBar::activeAction();
505 lqtL_pushudata(L
, ret
, "QAction*");
508 void LuaBinder
< QMenuBar
>::styleChange (QStyle
& arg1
) {
509 bool absorbed
= false;
510 int oldtop
= lua_gettop(L
);
511 lqtL_pushudata(L
, this, "QMenuBar*");
512 if (lua_getmetatable(L
, -1)) {
513 lua_getfield(L
, -1, "styleChange");
519 lqtL_pushudata(L
, &(arg1
), "QStyle*");
520 if (lua_isfunction(L
, -1-2)) {
521 lua_pcall(L
, 1+1, 2, 0);
522 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
526 lua_settop(L
, oldtop
);
527 this->QWidget::styleChange(arg1
);
529 lua_settop(L
, oldtop
);
531 void LuaBinder
< QMenuBar
>::focusInEvent (QFocusEvent
* arg1
) {
532 bool absorbed
= false;
533 int oldtop
= lua_gettop(L
);
534 lqtL_pushudata(L
, this, "QMenuBar*");
535 if (lua_getmetatable(L
, -1)) {
536 lua_getfield(L
, -1, "focusInEvent");
542 lqtL_pushudata(L
, arg1
, "QFocusEvent*");
543 if (lua_isfunction(L
, -1-2)) {
544 lua_pcall(L
, 1+1, 2, 0);
545 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
549 lua_settop(L
, oldtop
);
550 this->QMenuBar::focusInEvent(arg1
);
552 lua_settop(L
, oldtop
);
554 void LuaBinder
< QMenuBar
>::keyPressEvent (QKeyEvent
* arg1
) {
555 bool absorbed
= false;
556 int oldtop
= lua_gettop(L
);
557 lqtL_pushudata(L
, this, "QMenuBar*");
558 if (lua_getmetatable(L
, -1)) {
559 lua_getfield(L
, -1, "keyPressEvent");
565 lqtL_pushudata(L
, arg1
, "QKeyEvent*");
566 if (lua_isfunction(L
, -1-2)) {
567 lua_pcall(L
, 1+1, 2, 0);
568 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
572 lua_settop(L
, oldtop
);
573 this->QMenuBar::keyPressEvent(arg1
);
575 lua_settop(L
, oldtop
);
577 const QMetaObject
* LuaBinder
< QMenuBar
>::metaObject () const {
578 bool absorbed
= false;
579 int oldtop
= lua_gettop(L
);
580 lqtL_pushudata(L
, this, "QMenuBar*");
581 if (lua_getmetatable(L
, -1)) {
582 lua_getfield(L
, -1, "metaObject");
588 if (lua_isfunction(L
, -0-2)) {
589 lua_pcall(L
, 0+1, 2, 0);
590 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
594 lua_settop(L
, oldtop
);
595 return this->QMenuBar::metaObject();
597 const QMetaObject
* ret
= *static_cast<QMetaObject
**>(lqtL_checkudata(L
, -1, "QMetaObject*"));
598 lua_settop(L
, oldtop
);
601 int LuaBinder
< QMenuBar
>::devType () const {
602 bool absorbed
= false;
603 int oldtop
= lua_gettop(L
);
604 lqtL_pushudata(L
, this, "QMenuBar*");
605 if (lua_getmetatable(L
, -1)) {
606 lua_getfield(L
, -1, "devType");
612 if (lua_isfunction(L
, -0-2)) {
613 lua_pcall(L
, 0+1, 2, 0);
614 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
618 lua_settop(L
, oldtop
);
619 return this->QWidget::devType();
621 int ret
= lua_tointeger(L
, -1);
622 lua_settop(L
, oldtop
);
625 void LuaBinder
< QMenuBar
>::setVisible (bool arg1
) {
626 bool absorbed
= false;
627 int oldtop
= lua_gettop(L
);
628 lqtL_pushudata(L
, this, "QMenuBar*");
629 if (lua_getmetatable(L
, -1)) {
630 lua_getfield(L
, -1, "setVisible");
636 lua_pushboolean(L
, arg1
);
637 if (lua_isfunction(L
, -1-2)) {
638 lua_pcall(L
, 1+1, 2, 0);
639 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
643 lua_settop(L
, oldtop
);
644 this->QMenuBar::setVisible(arg1
);
646 lua_settop(L
, oldtop
);
648 QVariant LuaBinder
< QMenuBar
>::inputMethodQuery (Qt::InputMethodQuery arg1
) const {
649 bool absorbed
= false;
650 int oldtop
= lua_gettop(L
);
651 lqtL_pushudata(L
, this, "QMenuBar*");
652 if (lua_getmetatable(L
, -1)) {
653 lua_getfield(L
, -1, "inputMethodQuery");
659 lqtL_pushenum(L
, arg1
, "Qt::InputMethodQuery");
660 if (lua_isfunction(L
, -1-2)) {
661 lua_pcall(L
, 1+1, 2, 0);
662 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
666 lua_settop(L
, oldtop
);
667 return this->QWidget::inputMethodQuery(arg1
);
669 QVariant ret
= **static_cast<QVariant
**>(lqtL_checkudata(L
, -1, "QVariant*"));
670 lua_settop(L
, oldtop
);
673 QPaintEngine
* LuaBinder
< QMenuBar
>::paintEngine () const {
674 bool absorbed
= false;
675 int oldtop
= lua_gettop(L
);
676 lqtL_pushudata(L
, this, "QMenuBar*");
677 if (lua_getmetatable(L
, -1)) {
678 lua_getfield(L
, -1, "paintEngine");
684 if (lua_isfunction(L
, -0-2)) {
685 lua_pcall(L
, 0+1, 2, 0);
686 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
690 lua_settop(L
, oldtop
);
691 return this->QWidget::paintEngine();
693 QPaintEngine
* ret
= *static_cast<QPaintEngine
**>(lqtL_checkudata(L
, -1, "QPaintEngine*"));
694 lua_settop(L
, oldtop
);
697 void LuaBinder
< QMenuBar
>::dragLeaveEvent (QDragLeaveEvent
* arg1
) {
698 bool absorbed
= false;
699 int oldtop
= lua_gettop(L
);
700 lqtL_pushudata(L
, this, "QMenuBar*");
701 if (lua_getmetatable(L
, -1)) {
702 lua_getfield(L
, -1, "dragLeaveEvent");
708 lqtL_pushudata(L
, arg1
, "QDragLeaveEvent*");
709 if (lua_isfunction(L
, -1-2)) {
710 lua_pcall(L
, 1+1, 2, 0);
711 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
715 lua_settop(L
, oldtop
);
716 this->QWidget::dragLeaveEvent(arg1
);
718 lua_settop(L
, oldtop
);
720 void LuaBinder
< QMenuBar
>::mousePressEvent (QMouseEvent
* arg1
) {
721 bool absorbed
= false;
722 int oldtop
= lua_gettop(L
);
723 lqtL_pushudata(L
, this, "QMenuBar*");
724 if (lua_getmetatable(L
, -1)) {
725 lua_getfield(L
, -1, "mousePressEvent");
731 lqtL_pushudata(L
, arg1
, "QMouseEvent*");
732 if (lua_isfunction(L
, -1-2)) {
733 lua_pcall(L
, 1+1, 2, 0);
734 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
738 lua_settop(L
, oldtop
);
739 this->QMenuBar::mousePressEvent(arg1
);
741 lua_settop(L
, oldtop
);
743 QSize LuaBinder
< QMenuBar
>::sizeHint () const {
744 bool absorbed
= false;
745 int oldtop
= lua_gettop(L
);
746 lqtL_pushudata(L
, this, "QMenuBar*");
747 if (lua_getmetatable(L
, -1)) {
748 lua_getfield(L
, -1, "sizeHint");
754 if (lua_isfunction(L
, -0-2)) {
755 lua_pcall(L
, 0+1, 2, 0);
756 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
760 lua_settop(L
, oldtop
);
761 return this->QMenuBar::sizeHint();
763 QSize ret
= **static_cast<QSize
**>(lqtL_checkudata(L
, -1, "QSize*"));
764 lua_settop(L
, oldtop
);
767 void LuaBinder
< QMenuBar
>::changeEvent (QEvent
* arg1
) {
768 bool absorbed
= false;
769 int oldtop
= lua_gettop(L
);
770 lqtL_pushudata(L
, this, "QMenuBar*");
771 if (lua_getmetatable(L
, -1)) {
772 lua_getfield(L
, -1, "changeEvent");
778 lqtL_pushudata(L
, arg1
, "QEvent*");
779 if (lua_isfunction(L
, -1-2)) {
780 lua_pcall(L
, 1+1, 2, 0);
781 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
785 lua_settop(L
, oldtop
);
786 this->QMenuBar::changeEvent(arg1
);
788 lua_settop(L
, oldtop
);
790 void LuaBinder
< QMenuBar
>::tabletEvent (QTabletEvent
* arg1
) {
791 bool absorbed
= false;
792 int oldtop
= lua_gettop(L
);
793 lqtL_pushudata(L
, this, "QMenuBar*");
794 if (lua_getmetatable(L
, -1)) {
795 lua_getfield(L
, -1, "tabletEvent");
801 lqtL_pushudata(L
, arg1
, "QTabletEvent*");
802 if (lua_isfunction(L
, -1-2)) {
803 lua_pcall(L
, 1+1, 2, 0);
804 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
808 lua_settop(L
, oldtop
);
809 this->QWidget::tabletEvent(arg1
);
811 lua_settop(L
, oldtop
);
813 void LuaBinder
< QMenuBar
>::customEvent (QEvent
* arg1
) {
814 bool absorbed
= false;
815 int oldtop
= lua_gettop(L
);
816 lqtL_pushudata(L
, this, "QMenuBar*");
817 if (lua_getmetatable(L
, -1)) {
818 lua_getfield(L
, -1, "customEvent");
824 lqtL_pushudata(L
, arg1
, "QEvent*");
825 if (lua_isfunction(L
, -1-2)) {
826 lua_pcall(L
, 1+1, 2, 0);
827 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
831 lua_settop(L
, oldtop
);
832 this->QObject::customEvent(arg1
);
834 lua_settop(L
, oldtop
);
836 void LuaBinder
< QMenuBar
>::dropEvent (QDropEvent
* arg1
) {
837 bool absorbed
= false;
838 int oldtop
= lua_gettop(L
);
839 lqtL_pushudata(L
, this, "QMenuBar*");
840 if (lua_getmetatable(L
, -1)) {
841 lua_getfield(L
, -1, "dropEvent");
847 lqtL_pushudata(L
, arg1
, "QDropEvent*");
848 if (lua_isfunction(L
, -1-2)) {
849 lua_pcall(L
, 1+1, 2, 0);
850 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
854 lua_settop(L
, oldtop
);
855 this->QWidget::dropEvent(arg1
);
857 lua_settop(L
, oldtop
);
859 QSize LuaBinder
< QMenuBar
>::minimumSizeHint () const {
860 bool absorbed
= false;
861 int oldtop
= lua_gettop(L
);
862 lqtL_pushudata(L
, this, "QMenuBar*");
863 if (lua_getmetatable(L
, -1)) {
864 lua_getfield(L
, -1, "minimumSizeHint");
870 if (lua_isfunction(L
, -0-2)) {
871 lua_pcall(L
, 0+1, 2, 0);
872 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
876 lua_settop(L
, oldtop
);
877 return this->QMenuBar::minimumSizeHint();
879 QSize ret
= **static_cast<QSize
**>(lqtL_checkudata(L
, -1, "QSize*"));
880 lua_settop(L
, oldtop
);
883 void LuaBinder
< QMenuBar
>::windowActivationChange (bool arg1
) {
884 bool absorbed
= false;
885 int oldtop
= lua_gettop(L
);
886 lqtL_pushudata(L
, this, "QMenuBar*");
887 if (lua_getmetatable(L
, -1)) {
888 lua_getfield(L
, -1, "windowActivationChange");
894 lua_pushboolean(L
, arg1
);
895 if (lua_isfunction(L
, -1-2)) {
896 lua_pcall(L
, 1+1, 2, 0);
897 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
901 lua_settop(L
, oldtop
);
902 this->QWidget::windowActivationChange(arg1
);
904 lua_settop(L
, oldtop
);
906 void LuaBinder
< QMenuBar
>::keyReleaseEvent (QKeyEvent
* arg1
) {
907 bool absorbed
= false;
908 int oldtop
= lua_gettop(L
);
909 lqtL_pushudata(L
, this, "QMenuBar*");
910 if (lua_getmetatable(L
, -1)) {
911 lua_getfield(L
, -1, "keyReleaseEvent");
917 lqtL_pushudata(L
, arg1
, "QKeyEvent*");
918 if (lua_isfunction(L
, -1-2)) {
919 lua_pcall(L
, 1+1, 2, 0);
920 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
924 lua_settop(L
, oldtop
);
925 this->QWidget::keyReleaseEvent(arg1
);
927 lua_settop(L
, oldtop
);
929 void LuaBinder
< QMenuBar
>::showEvent (QShowEvent
* arg1
) {
930 bool absorbed
= false;
931 int oldtop
= lua_gettop(L
);
932 lqtL_pushudata(L
, this, "QMenuBar*");
933 if (lua_getmetatable(L
, -1)) {
934 lua_getfield(L
, -1, "showEvent");
940 lqtL_pushudata(L
, arg1
, "QShowEvent*");
941 if (lua_isfunction(L
, -1-2)) {
942 lua_pcall(L
, 1+1, 2, 0);
943 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
947 lua_settop(L
, oldtop
);
948 this->QWidget::showEvent(arg1
);
950 lua_settop(L
, oldtop
);
952 void LuaBinder
< QMenuBar
>::mouseDoubleClickEvent (QMouseEvent
* arg1
) {
953 bool absorbed
= false;
954 int oldtop
= lua_gettop(L
);
955 lqtL_pushudata(L
, this, "QMenuBar*");
956 if (lua_getmetatable(L
, -1)) {
957 lua_getfield(L
, -1, "mouseDoubleClickEvent");
963 lqtL_pushudata(L
, arg1
, "QMouseEvent*");
964 if (lua_isfunction(L
, -1-2)) {
965 lua_pcall(L
, 1+1, 2, 0);
966 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
970 lua_settop(L
, oldtop
);
971 this->QWidget::mouseDoubleClickEvent(arg1
);
973 lua_settop(L
, oldtop
);
975 void LuaBinder
< QMenuBar
>::paintEvent (QPaintEvent
* arg1
) {
976 bool absorbed
= false;
977 int oldtop
= lua_gettop(L
);
978 lqtL_pushudata(L
, this, "QMenuBar*");
979 if (lua_getmetatable(L
, -1)) {
980 lua_getfield(L
, -1, "paintEvent");
986 lqtL_pushudata(L
, arg1
, "QPaintEvent*");
987 if (lua_isfunction(L
, -1-2)) {
988 lua_pcall(L
, 1+1, 2, 0);
989 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
993 lua_settop(L
, oldtop
);
994 this->QMenuBar::paintEvent(arg1
);
996 lua_settop(L
, oldtop
);
998 void LuaBinder
< QMenuBar
>::dragMoveEvent (QDragMoveEvent
* arg1
) {
999 bool absorbed
= false;
1000 int oldtop
= lua_gettop(L
);
1001 lqtL_pushudata(L
, this, "QMenuBar*");
1002 if (lua_getmetatable(L
, -1)) {
1003 lua_getfield(L
, -1, "dragMoveEvent");
1009 lqtL_pushudata(L
, arg1
, "QDragMoveEvent*");
1010 if (lua_isfunction(L
, -1-2)) {
1011 lua_pcall(L
, 1+1, 2, 0);
1012 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1016 lua_settop(L
, oldtop
);
1017 this->QWidget::dragMoveEvent(arg1
);
1019 lua_settop(L
, oldtop
);
1021 void LuaBinder
< QMenuBar
>::contextMenuEvent (QContextMenuEvent
* arg1
) {
1022 bool absorbed
= false;
1023 int oldtop
= lua_gettop(L
);
1024 lqtL_pushudata(L
, this, "QMenuBar*");
1025 if (lua_getmetatable(L
, -1)) {
1026 lua_getfield(L
, -1, "contextMenuEvent");
1032 lqtL_pushudata(L
, arg1
, "QContextMenuEvent*");
1033 if (lua_isfunction(L
, -1-2)) {
1034 lua_pcall(L
, 1+1, 2, 0);
1035 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1039 lua_settop(L
, oldtop
);
1040 this->QWidget::contextMenuEvent(arg1
);
1042 lua_settop(L
, oldtop
);
1044 void LuaBinder
< QMenuBar
>::enabledChange (bool arg1
) {
1045 bool absorbed
= false;
1046 int oldtop
= lua_gettop(L
);
1047 lqtL_pushudata(L
, this, "QMenuBar*");
1048 if (lua_getmetatable(L
, -1)) {
1049 lua_getfield(L
, -1, "enabledChange");
1055 lua_pushboolean(L
, arg1
);
1056 if (lua_isfunction(L
, -1-2)) {
1057 lua_pcall(L
, 1+1, 2, 0);
1058 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1062 lua_settop(L
, oldtop
);
1063 this->QWidget::enabledChange(arg1
);
1065 lua_settop(L
, oldtop
);
1067 void LuaBinder
< QMenuBar
>::mouseReleaseEvent (QMouseEvent
* arg1
) {
1068 bool absorbed
= false;
1069 int oldtop
= lua_gettop(L
);
1070 lqtL_pushudata(L
, this, "QMenuBar*");
1071 if (lua_getmetatable(L
, -1)) {
1072 lua_getfield(L
, -1, "mouseReleaseEvent");
1078 lqtL_pushudata(L
, arg1
, "QMouseEvent*");
1079 if (lua_isfunction(L
, -1-2)) {
1080 lua_pcall(L
, 1+1, 2, 0);
1081 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1085 lua_settop(L
, oldtop
);
1086 this->QMenuBar::mouseReleaseEvent(arg1
);
1088 lua_settop(L
, oldtop
);
1090 int LuaBinder
< QMenuBar
>::heightForWidth (int arg1
) const {
1091 bool absorbed
= false;
1092 int oldtop
= lua_gettop(L
);
1093 lqtL_pushudata(L
, this, "QMenuBar*");
1094 if (lua_getmetatable(L
, -1)) {
1095 lua_getfield(L
, -1, "heightForWidth");
1101 lua_pushinteger(L
, arg1
);
1102 if (lua_isfunction(L
, -1-2)) {
1103 lua_pcall(L
, 1+1, 2, 0);
1104 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1108 lua_settop(L
, oldtop
);
1109 return this->QMenuBar::heightForWidth(arg1
);
1111 int ret
= lua_tointeger(L
, -1);
1112 lua_settop(L
, oldtop
);
1115 void LuaBinder
< QMenuBar
>::fontChange (const QFont
& arg1
) {
1116 bool absorbed
= false;
1117 int oldtop
= lua_gettop(L
);
1118 lqtL_pushudata(L
, this, "QMenuBar*");
1119 if (lua_getmetatable(L
, -1)) {
1120 lua_getfield(L
, -1, "fontChange");
1126 lqtL_pushudata(L
, &(arg1
), "QFont*");
1127 if (lua_isfunction(L
, -1-2)) {
1128 lua_pcall(L
, 1+1, 2, 0);
1129 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1133 lua_settop(L
, oldtop
);
1134 this->QWidget::fontChange(arg1
);
1136 lua_settop(L
, oldtop
);
1138 bool LuaBinder
< QMenuBar
>::focusNextPrevChild (bool arg1
) {
1139 bool absorbed
= false;
1140 int oldtop
= lua_gettop(L
);
1141 lqtL_pushudata(L
, this, "QMenuBar*");
1142 if (lua_getmetatable(L
, -1)) {
1143 lua_getfield(L
, -1, "focusNextPrevChild");
1149 lua_pushboolean(L
, arg1
);
1150 if (lua_isfunction(L
, -1-2)) {
1151 lua_pcall(L
, 1+1, 2, 0);
1152 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1156 lua_settop(L
, oldtop
);
1157 return this->QWidget::focusNextPrevChild(arg1
);
1159 bool ret
= (bool)lua_toboolean(L
, -1);
1160 lua_settop(L
, oldtop
);
1163 void LuaBinder
< QMenuBar
>::disconnectNotify (const char * arg1
) {
1164 bool absorbed
= false;
1165 int oldtop
= lua_gettop(L
);
1166 lqtL_pushudata(L
, this, "QMenuBar*");
1167 if (lua_getmetatable(L
, -1)) {
1168 lua_getfield(L
, -1, "disconnectNotify");
1174 lua_pushstring(L
, arg1
);
1175 if (lua_isfunction(L
, -1-2)) {
1176 lua_pcall(L
, 1+1, 2, 0);
1177 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1181 lua_settop(L
, oldtop
);
1182 this->QObject::disconnectNotify(arg1
);
1184 lua_settop(L
, oldtop
);
1186 void LuaBinder
< QMenuBar
>::mouseMoveEvent (QMouseEvent
* arg1
) {
1187 bool absorbed
= false;
1188 int oldtop
= lua_gettop(L
);
1189 lqtL_pushudata(L
, this, "QMenuBar*");
1190 if (lua_getmetatable(L
, -1)) {
1191 lua_getfield(L
, -1, "mouseMoveEvent");
1197 lqtL_pushudata(L
, arg1
, "QMouseEvent*");
1198 if (lua_isfunction(L
, -1-2)) {
1199 lua_pcall(L
, 1+1, 2, 0);
1200 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1204 lua_settop(L
, oldtop
);
1205 this->QMenuBar::mouseMoveEvent(arg1
);
1207 lua_settop(L
, oldtop
);
1209 void LuaBinder
< QMenuBar
>::timerEvent (QTimerEvent
* arg1
) {
1210 bool absorbed
= false;
1211 int oldtop
= lua_gettop(L
);
1212 lqtL_pushudata(L
, this, "QMenuBar*");
1213 if (lua_getmetatable(L
, -1)) {
1214 lua_getfield(L
, -1, "timerEvent");
1220 lqtL_pushudata(L
, arg1
, "QTimerEvent*");
1221 if (lua_isfunction(L
, -1-2)) {
1222 lua_pcall(L
, 1+1, 2, 0);
1223 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1227 lua_settop(L
, oldtop
);
1228 this->QObject::timerEvent(arg1
);
1230 lua_settop(L
, oldtop
);
1232 void LuaBinder
< QMenuBar
>::childEvent (QChildEvent
* arg1
) {
1233 bool absorbed
= false;
1234 int oldtop
= lua_gettop(L
);
1235 lqtL_pushudata(L
, this, "QMenuBar*");
1236 if (lua_getmetatable(L
, -1)) {
1237 lua_getfield(L
, -1, "childEvent");
1243 lqtL_pushudata(L
, arg1
, "QChildEvent*");
1244 if (lua_isfunction(L
, -1-2)) {
1245 lua_pcall(L
, 1+1, 2, 0);
1246 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1250 lua_settop(L
, oldtop
);
1251 this->QObject::childEvent(arg1
);
1253 lua_settop(L
, oldtop
);
1255 void LuaBinder
< QMenuBar
>::focusOutEvent (QFocusEvent
* arg1
) {
1256 bool absorbed
= false;
1257 int oldtop
= lua_gettop(L
);
1258 lqtL_pushudata(L
, this, "QMenuBar*");
1259 if (lua_getmetatable(L
, -1)) {
1260 lua_getfield(L
, -1, "focusOutEvent");
1266 lqtL_pushudata(L
, arg1
, "QFocusEvent*");
1267 if (lua_isfunction(L
, -1-2)) {
1268 lua_pcall(L
, 1+1, 2, 0);
1269 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1273 lua_settop(L
, oldtop
);
1274 this->QMenuBar::focusOutEvent(arg1
);
1276 lua_settop(L
, oldtop
);
1278 int LuaBinder
< QMenuBar
>::metric (QPaintDevice::PaintDeviceMetric arg1
) const {
1279 bool absorbed
= false;
1280 int oldtop
= lua_gettop(L
);
1281 lqtL_pushudata(L
, this, "QMenuBar*");
1282 if (lua_getmetatable(L
, -1)) {
1283 lua_getfield(L
, -1, "metric");
1289 lqtL_pushenum(L
, arg1
, "QPaintDevice::PaintDeviceMetric");
1290 if (lua_isfunction(L
, -1-2)) {
1291 lua_pcall(L
, 1+1, 2, 0);
1292 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1296 lua_settop(L
, oldtop
);
1297 return this->QWidget::metric(arg1
);
1299 int ret
= lua_tointeger(L
, -1);
1300 lua_settop(L
, oldtop
);
1303 void LuaBinder
< QMenuBar
>::connectNotify (const char * arg1
) {
1304 bool absorbed
= false;
1305 int oldtop
= lua_gettop(L
);
1306 lqtL_pushudata(L
, this, "QMenuBar*");
1307 if (lua_getmetatable(L
, -1)) {
1308 lua_getfield(L
, -1, "connectNotify");
1314 lua_pushstring(L
, arg1
);
1315 if (lua_isfunction(L
, -1-2)) {
1316 lua_pcall(L
, 1+1, 2, 0);
1317 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1321 lua_settop(L
, oldtop
);
1322 this->QObject::connectNotify(arg1
);
1324 lua_settop(L
, oldtop
);
1326 bool LuaBinder
< QMenuBar
>::eventFilter (QObject
* arg1
, QEvent
* arg2
) {
1327 bool absorbed
= false;
1328 int oldtop
= lua_gettop(L
);
1329 lqtL_pushudata(L
, this, "QMenuBar*");
1330 if (lua_getmetatable(L
, -1)) {
1331 lua_getfield(L
, -1, "eventFilter");
1337 lqtL_pushudata(L
, arg1
, "QObject*");
1338 lqtL_pushudata(L
, arg2
, "QEvent*");
1339 if (lua_isfunction(L
, -2-2)) {
1340 lua_pcall(L
, 2+1, 2, 0);
1341 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1345 lua_settop(L
, oldtop
);
1346 return this->QMenuBar::eventFilter(arg1
, arg2
);
1348 bool ret
= (bool)lua_toboolean(L
, -1);
1349 lua_settop(L
, oldtop
);
1352 void LuaBinder
< QMenuBar
>::inputMethodEvent (QInputMethodEvent
* arg1
) {
1353 bool absorbed
= false;
1354 int oldtop
= lua_gettop(L
);
1355 lqtL_pushudata(L
, this, "QMenuBar*");
1356 if (lua_getmetatable(L
, -1)) {
1357 lua_getfield(L
, -1, "inputMethodEvent");
1363 lqtL_pushudata(L
, arg1
, "QInputMethodEvent*");
1364 if (lua_isfunction(L
, -1-2)) {
1365 lua_pcall(L
, 1+1, 2, 0);
1366 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1370 lua_settop(L
, oldtop
);
1371 this->QWidget::inputMethodEvent(arg1
);
1373 lua_settop(L
, oldtop
);
1375 void LuaBinder
< QMenuBar
>::wheelEvent (QWheelEvent
* arg1
) {
1376 bool absorbed
= false;
1377 int oldtop
= lua_gettop(L
);
1378 lqtL_pushudata(L
, this, "QMenuBar*");
1379 if (lua_getmetatable(L
, -1)) {
1380 lua_getfield(L
, -1, "wheelEvent");
1386 lqtL_pushudata(L
, arg1
, "QWheelEvent*");
1387 if (lua_isfunction(L
, -1-2)) {
1388 lua_pcall(L
, 1+1, 2, 0);
1389 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1393 lua_settop(L
, oldtop
);
1394 this->QWidget::wheelEvent(arg1
);
1396 lua_settop(L
, oldtop
);
1398 void LuaBinder
< QMenuBar
>::actionEvent (QActionEvent
* arg1
) {
1399 bool absorbed
= false;
1400 int oldtop
= lua_gettop(L
);
1401 lqtL_pushudata(L
, this, "QMenuBar*");
1402 if (lua_getmetatable(L
, -1)) {
1403 lua_getfield(L
, -1, "actionEvent");
1409 lqtL_pushudata(L
, arg1
, "QActionEvent*");
1410 if (lua_isfunction(L
, -1-2)) {
1411 lua_pcall(L
, 1+1, 2, 0);
1412 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1416 lua_settop(L
, oldtop
);
1417 this->QMenuBar::actionEvent(arg1
);
1419 lua_settop(L
, oldtop
);
1421 void LuaBinder
< QMenuBar
>::paletteChange (const QPalette
& arg1
) {
1422 bool absorbed
= false;
1423 int oldtop
= lua_gettop(L
);
1424 lqtL_pushudata(L
, this, "QMenuBar*");
1425 if (lua_getmetatable(L
, -1)) {
1426 lua_getfield(L
, -1, "paletteChange");
1432 lqtL_pushudata(L
, &(arg1
), "QPalette*");
1433 if (lua_isfunction(L
, -1-2)) {
1434 lua_pcall(L
, 1+1, 2, 0);
1435 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1439 lua_settop(L
, oldtop
);
1440 this->QWidget::paletteChange(arg1
);
1442 lua_settop(L
, oldtop
);
1444 void LuaBinder
< QMenuBar
>::languageChange () {
1445 bool absorbed
= false;
1446 int oldtop
= lua_gettop(L
);
1447 lqtL_pushudata(L
, this, "QMenuBar*");
1448 if (lua_getmetatable(L
, -1)) {
1449 lua_getfield(L
, -1, "languageChange");
1455 if (lua_isfunction(L
, -0-2)) {
1456 lua_pcall(L
, 0+1, 2, 0);
1457 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1461 lua_settop(L
, oldtop
);
1462 this->QWidget::languageChange();
1464 lua_settop(L
, oldtop
);
1466 bool LuaBinder
< QMenuBar
>::event (QEvent
* arg1
) {
1467 bool absorbed
= false;
1468 int oldtop
= lua_gettop(L
);
1469 lqtL_pushudata(L
, this, "QMenuBar*");
1470 if (lua_getmetatable(L
, -1)) {
1471 lua_getfield(L
, -1, "event");
1477 lqtL_pushudata(L
, arg1
, "QEvent*");
1478 if (lua_isfunction(L
, -1-2)) {
1479 lua_pcall(L
, 1+1, 2, 0);
1480 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1484 lua_settop(L
, oldtop
);
1485 return this->QMenuBar::event(arg1
);
1487 bool ret
= (bool)lua_toboolean(L
, -1);
1488 lua_settop(L
, oldtop
);
1491 void LuaBinder
< QMenuBar
>::hideEvent (QHideEvent
* arg1
) {
1492 bool absorbed
= false;
1493 int oldtop
= lua_gettop(L
);
1494 lqtL_pushudata(L
, this, "QMenuBar*");
1495 if (lua_getmetatable(L
, -1)) {
1496 lua_getfield(L
, -1, "hideEvent");
1502 lqtL_pushudata(L
, arg1
, "QHideEvent*");
1503 if (lua_isfunction(L
, -1-2)) {
1504 lua_pcall(L
, 1+1, 2, 0);
1505 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1509 lua_settop(L
, oldtop
);
1510 this->QWidget::hideEvent(arg1
);
1512 lua_settop(L
, oldtop
);
1514 void LuaBinder
< QMenuBar
>::dragEnterEvent (QDragEnterEvent
* arg1
) {
1515 bool absorbed
= false;
1516 int oldtop
= lua_gettop(L
);
1517 lqtL_pushudata(L
, this, "QMenuBar*");
1518 if (lua_getmetatable(L
, -1)) {
1519 lua_getfield(L
, -1, "dragEnterEvent");
1525 lqtL_pushudata(L
, arg1
, "QDragEnterEvent*");
1526 if (lua_isfunction(L
, -1-2)) {
1527 lua_pcall(L
, 1+1, 2, 0);
1528 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1532 lua_settop(L
, oldtop
);
1533 this->QWidget::dragEnterEvent(arg1
);
1535 lua_settop(L
, oldtop
);
1537 void LuaBinder
< QMenuBar
>::moveEvent (QMoveEvent
* arg1
) {
1538 bool absorbed
= false;
1539 int oldtop
= lua_gettop(L
);
1540 lqtL_pushudata(L
, this, "QMenuBar*");
1541 if (lua_getmetatable(L
, -1)) {
1542 lua_getfield(L
, -1, "moveEvent");
1548 lqtL_pushudata(L
, arg1
, "QMoveEvent*");
1549 if (lua_isfunction(L
, -1-2)) {
1550 lua_pcall(L
, 1+1, 2, 0);
1551 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1555 lua_settop(L
, oldtop
);
1556 this->QWidget::moveEvent(arg1
);
1558 lua_settop(L
, oldtop
);
1560 void LuaBinder
< QMenuBar
>::closeEvent (QCloseEvent
* arg1
) {
1561 bool absorbed
= false;
1562 int oldtop
= lua_gettop(L
);
1563 lqtL_pushudata(L
, this, "QMenuBar*");
1564 if (lua_getmetatable(L
, -1)) {
1565 lua_getfield(L
, -1, "closeEvent");
1571 lqtL_pushudata(L
, arg1
, "QCloseEvent*");
1572 if (lua_isfunction(L
, -1-2)) {
1573 lua_pcall(L
, 1+1, 2, 0);
1574 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1578 lua_settop(L
, oldtop
);
1579 this->QWidget::closeEvent(arg1
);
1581 lua_settop(L
, oldtop
);
1583 void LuaBinder
< QMenuBar
>::leaveEvent (QEvent
* arg1
) {
1584 bool absorbed
= false;
1585 int oldtop
= lua_gettop(L
);
1586 lqtL_pushudata(L
, this, "QMenuBar*");
1587 if (lua_getmetatable(L
, -1)) {
1588 lua_getfield(L
, -1, "leaveEvent");
1594 lqtL_pushudata(L
, arg1
, "QEvent*");
1595 if (lua_isfunction(L
, -1-2)) {
1596 lua_pcall(L
, 1+1, 2, 0);
1597 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1601 lua_settop(L
, oldtop
);
1602 this->QMenuBar::leaveEvent(arg1
);
1604 lua_settop(L
, oldtop
);
1606 void LuaBinder
< QMenuBar
>::resizeEvent (QResizeEvent
* arg1
) {
1607 bool absorbed
= false;
1608 int oldtop
= lua_gettop(L
);
1609 lqtL_pushudata(L
, this, "QMenuBar*");
1610 if (lua_getmetatable(L
, -1)) {
1611 lua_getfield(L
, -1, "resizeEvent");
1617 lqtL_pushudata(L
, arg1
, "QResizeEvent*");
1618 if (lua_isfunction(L
, -1-2)) {
1619 lua_pcall(L
, 1+1, 2, 0);
1620 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1624 lua_settop(L
, oldtop
);
1625 this->QMenuBar::resizeEvent(arg1
);
1627 lua_settop(L
, oldtop
);
1629 void LuaBinder
< QMenuBar
>::enterEvent (QEvent
* arg1
) {
1630 bool absorbed
= false;
1631 int oldtop
= lua_gettop(L
);
1632 lqtL_pushudata(L
, this, "QMenuBar*");
1633 if (lua_getmetatable(L
, -1)) {
1634 lua_getfield(L
, -1, "enterEvent");
1640 lqtL_pushudata(L
, arg1
, "QEvent*");
1641 if (lua_isfunction(L
, -1-2)) {
1642 lua_pcall(L
, 1+1, 2, 0);
1643 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1647 lua_settop(L
, oldtop
);
1648 this->QWidget::enterEvent(arg1
);
1650 lua_settop(L
, oldtop
);
1652 LuaBinder
< QMenuBar
>:: ~LuaBinder
< QMenuBar
> () {
1653 int oldtop
= lua_gettop(L
);
1654 lqtL_pushudata(L
, this, "QMenuBar*");
1655 lua_getfield(L
, -1, "~QMenuBar");
1657 if (lua_isfunction(L
, -1)) {
1659 lua_pcall(L
, 1, 1, 0);
1662 lua_settop(L
, oldtop
);
1664 int luaopen_QMenuBar (lua_State
*L
) {
1665 if (luaL_newmetatable(L
, "QMenuBar*")) {
1666 lua_pushcfunction(L
, LuaBinder
< QMenuBar
>::__LuaWrapCall__setCornerWidget
);
1667 lua_setfield(L
, -2, "setCornerWidget");
1668 lua_pushcfunction(L
, LuaBinder
< QMenuBar
>::__LuaWrapCall__sizeHint
);
1669 lua_setfield(L
, -2, "sizeHint");
1670 lua_pushcfunction(L
, LuaBinder
< QMenuBar
>::__LuaWrapCall__addSeparator
);
1671 lua_setfield(L
, -2, "addSeparator");
1672 lua_pushcfunction(L
, LuaBinder
< QMenuBar
>::__LuaWrapCall__minimumSizeHint
);
1673 lua_setfield(L
, -2, "minimumSizeHint");
1674 lua_pushcfunction(L
, LuaBinder
< QMenuBar
>::__LuaWrapCall__isDefaultUp
);
1675 lua_setfield(L
, -2, "isDefaultUp");
1676 lua_pushcfunction(L
, LuaBinder
< QMenuBar
>::__LuaWrapCall__heightForWidth
);
1677 lua_setfield(L
, -2, "heightForWidth");
1678 lua_pushcfunction(L
, LuaBinder
< QMenuBar
>::__LuaWrapCall__trUtf8
);
1679 lua_setfield(L
, -2, "trUtf8");
1680 lua_pushcfunction(L
, LuaBinder
< QMenuBar
>::__LuaWrapCall__actionAt
);
1681 lua_setfield(L
, -2, "actionAt");
1682 lua_pushcfunction(L
, LuaBinder
< QMenuBar
>::__LuaWrapCall__metaObject
);
1683 lua_setfield(L
, -2, "metaObject");
1684 lua_pushcfunction(L
, LuaBinder
< QMenuBar
>::__LuaWrapCall__insertMenu
);
1685 lua_setfield(L
, -2, "insertMenu");
1686 lua_pushcfunction(L
, LuaBinder
< QMenuBar
>::__LuaWrapCall__tr
);
1687 lua_setfield(L
, -2, "tr");
1688 lua_pushcfunction(L
, LuaBinder
< QMenuBar
>::__LuaWrapCall__delete
);
1689 lua_setfield(L
, -2, "delete");
1690 lua_pushcfunction(L
, LuaBinder
< QMenuBar
>::__LuaWrapCall__cornerWidget
);
1691 lua_setfield(L
, -2, "cornerWidget");
1692 lua_pushcfunction(L
, LuaBinder
< QMenuBar
>::__LuaWrapCall__new
);
1693 lua_setfield(L
, -2, "new");
1694 lua_pushcfunction(L
, LuaBinder
< QMenuBar
>::__LuaWrapCall__setVisible
);
1695 lua_setfield(L
, -2, "setVisible");
1696 lua_pushcfunction(L
, LuaBinder
< QMenuBar
>::__LuaWrapCall__clear
);
1697 lua_setfield(L
, -2, "clear");
1698 lua_pushcfunction(L
, LuaBinder
< QMenuBar
>::__LuaWrapCall__insertSeparator
);
1699 lua_setfield(L
, -2, "insertSeparator");
1700 lua_pushcfunction(L
, LuaBinder
< QMenuBar
>::__LuaWrapCall__addMenu
);
1701 lua_setfield(L
, -2, "addMenu");
1702 lua_pushcfunction(L
, LuaBinder
< QMenuBar
>::__LuaWrapCall__setDefaultUp
);
1703 lua_setfield(L
, -2, "setDefaultUp");
1704 lua_pushcfunction(L
, LuaBinder
< QMenuBar
>::__LuaWrapCall__addAction
);
1705 lua_setfield(L
, -2, "addAction");
1706 lua_pushcfunction(L
, LuaBinder
< QMenuBar
>::__LuaWrapCall__setActiveAction
);
1707 lua_setfield(L
, -2, "setActiveAction");
1708 lua_pushcfunction(L
, LuaBinder
< QMenuBar
>::__LuaWrapCall__actionGeometry
);
1709 lua_setfield(L
, -2, "actionGeometry");
1710 lua_pushcfunction(L
, LuaBinder
< QMenuBar
>::__LuaWrapCall__activeAction
);
1711 lua_setfield(L
, -2, "activeAction");
1713 lua_pushboolean(L
, 1);
1714 lua_setfield(L
, -2, "QWidget*");
1715 lua_pushboolean(L
, 0);
1716 lua_setfield(L
, -2, "QObject*");
1717 lua_pushboolean(L
, 0);
1718 lua_setfield(L
, -2, "QPaintDevice*");
1719 lua_setfield(L
, -2, "__base");
1720 lua_pushcfunction(L
, lqtL_newindex
);
1721 lua_setfield(L
, -2, "__newindex");
1722 lua_pushcfunction(L
, lqtL_index
);
1723 lua_setfield(L
, -2, "__index");
1724 lua_pushcfunction(L
, lqtL_gc
);
1725 lua_setfield(L
, -2, "__gc");
1726 lua_pushstring(L
, "QMenuBar");
1727 lua_setfield(L
, -2, "__qtype");
1728 lua_setglobal(L
, "QMenuBar");