added "install" instruction
[Leditor.git] / src / lqt_bind_QMenuBar.cpp
bloba5b2d5e481a7d3dd8dfe65bc2dff46be71a2e4b1
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*"));
5 if (__lua__obj==0) {
6 lua_pushstring(L, "trying to reference deleted pointer");
7 lua_error(L);
8 return 0;
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);
13 return 0;
15 int LuaBinder< QMenuBar >::__LuaWrapCall__sizeHint (lua_State *L) {
16 QMenuBar *& __lua__obj = *static_cast<QMenuBar**>(lqtL_checkudata(L, 1, "QMenuBar*"));
17 if (__lua__obj==0) {
18 lua_pushstring(L, "trying to reference deleted pointer");
19 lua_error(L);
20 return 0;
22 QSize ret = __lua__obj->QMenuBar::sizeHint();
23 lqtL_passudata(L, new QSize(ret), "QSize*");
24 return 1;
26 int LuaBinder< QMenuBar >::__LuaWrapCall__addSeparator (lua_State *L) {
27 QMenuBar *& __lua__obj = *static_cast<QMenuBar**>(lqtL_checkudata(L, 1, "QMenuBar*"));
28 if (__lua__obj==0) {
29 lua_pushstring(L, "trying to reference deleted pointer");
30 lua_error(L);
31 return 0;
33 QAction * ret = __lua__obj->QMenuBar::addSeparator();
34 lqtL_pushudata(L, ret, "QAction*");
35 return 1;
37 int LuaBinder< QMenuBar >::__LuaWrapCall__minimumSizeHint (lua_State *L) {
38 QMenuBar *& __lua__obj = *static_cast<QMenuBar**>(lqtL_checkudata(L, 1, "QMenuBar*"));
39 if (__lua__obj==0) {
40 lua_pushstring(L, "trying to reference deleted pointer");
41 lua_error(L);
42 return 0;
44 QSize ret = __lua__obj->QMenuBar::minimumSizeHint();
45 lqtL_passudata(L, new QSize(ret), "QSize*");
46 return 1;
48 int LuaBinder< QMenuBar >::__LuaWrapCall__isDefaultUp (lua_State *L) {
49 QMenuBar *& __lua__obj = *static_cast<QMenuBar**>(lqtL_checkudata(L, 1, "QMenuBar*"));
50 if (__lua__obj==0) {
51 lua_pushstring(L, "trying to reference deleted pointer");
52 lua_error(L);
53 return 0;
55 bool ret = __lua__obj->QMenuBar::isDefaultUp();
56 lua_pushboolean(L, ret);
57 return 1;
59 int LuaBinder< QMenuBar >::__LuaWrapCall__heightForWidth (lua_State *L) {
60 QMenuBar *& __lua__obj = *static_cast<QMenuBar**>(lqtL_checkudata(L, 1, "QMenuBar*"));
61 if (__lua__obj==0) {
62 lua_pushstring(L, "trying to reference deleted pointer");
63 lua_error(L);
64 return 0;
66 int arg1 = lua_tointeger(L, 2);
67 int ret = __lua__obj->QMenuBar::heightForWidth(arg1);
68 lua_pushinteger(L, ret);
69 return 1;
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());
76 return 1;
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());
84 return 1;
86 int LuaBinder< QMenuBar >::__LuaWrapCall__trUtf8 (lua_State *L) {
87 int score[3];
88 const int premium = 11+lua_gettop(L);
89 score[1] = 0;
90 if ((lua_type(L, 1)==LUA_TSTRING)) {
91 score[1] += premium;
92 } else if (false) {
93 score[1] += premium-1; // table: 0x1066350;
94 } else {
95 score[1] -= premium*premium;
97 if ((lua_type(L, 2)==LUA_TSTRING)) {
98 score[1] += premium;
99 } else if (true) {
100 score[1] += premium-1; // table: 0x1065eb0;
101 } else {
102 score[1] -= premium*premium;
104 score[2] = 0;
105 if ((lua_type(L, 1)==LUA_TSTRING)) {
106 score[2] += premium;
107 } else if (false) {
108 score[2] += premium-1; // table: 0x1068140;
109 } else {
110 score[2] -= premium*premium;
112 if ((lua_type(L, 2)==LUA_TSTRING)) {
113 score[2] += premium;
114 } else if (false) {
115 score[2] += premium-1; // table: 0x1067870;
116 } else {
117 score[2] -= premium*premium;
119 if (lua_isnumber(L, 3)) {
120 score[2] += premium;
121 } else if (false) {
122 score[2] += premium-1; // table: 0x10685d0;
123 } else {
124 score[2] -= premium*premium;
126 int best = 1;
127 for (int i=1;i<=2;i++) {
128 if (score[best] < score[i]) { best = i; }
130 switch (best) {
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");
135 lua_error(L);
136 return 0;
138 int LuaBinder< QMenuBar >::__LuaWrapCall__actionAt (lua_State *L) {
139 QMenuBar *& __lua__obj = *static_cast<QMenuBar**>(lqtL_checkudata(L, 1, "QMenuBar*"));
140 if (__lua__obj==0) {
141 lua_pushstring(L, "trying to reference deleted pointer");
142 lua_error(L);
143 return 0;
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*");
148 return 1;
150 int LuaBinder< QMenuBar >::__LuaWrapCall__metaObject (lua_State *L) {
151 QMenuBar *& __lua__obj = *static_cast<QMenuBar**>(lqtL_checkudata(L, 1, "QMenuBar*"));
152 if (__lua__obj==0) {
153 lua_pushstring(L, "trying to reference deleted pointer");
154 lua_error(L);
155 return 0;
157 const QMetaObject * ret = __lua__obj->QMenuBar::metaObject();
158 lqtL_pushudata(L, ret, "QMetaObject*");
159 return 1;
161 int LuaBinder< QMenuBar >::__LuaWrapCall__insertMenu (lua_State *L) {
162 QMenuBar *& __lua__obj = *static_cast<QMenuBar**>(lqtL_checkudata(L, 1, "QMenuBar*"));
163 if (__lua__obj==0) {
164 lua_pushstring(L, "trying to reference deleted pointer");
165 lua_error(L);
166 return 0;
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*");
172 return 1;
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());
179 return 1;
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());
187 return 1;
189 int LuaBinder< QMenuBar >::__LuaWrapCall__tr (lua_State *L) {
190 int score[3];
191 const int premium = 11+lua_gettop(L);
192 score[1] = 0;
193 if ((lua_type(L, 1)==LUA_TSTRING)) {
194 score[1] += premium;
195 } else if (false) {
196 score[1] += premium-1; // table: 0x10655f0;
197 } else {
198 score[1] -= premium*premium;
200 if ((lua_type(L, 2)==LUA_TSTRING)) {
201 score[1] += premium;
202 } else if (true) {
203 score[1] += premium-1; // table: 0x1065350;
204 } else {
205 score[1] -= premium*premium;
207 score[2] = 0;
208 if ((lua_type(L, 1)==LUA_TSTRING)) {
209 score[2] += premium;
210 } else if (false) {
211 score[2] += premium-1; // table: 0x1067030;
212 } else {
213 score[2] -= premium*premium;
215 if ((lua_type(L, 2)==LUA_TSTRING)) {
216 score[2] += premium;
217 } else if (false) {
218 score[2] += premium-1; // table: 0x1067520;
219 } else {
220 score[2] -= premium*premium;
222 if (lua_isnumber(L, 3)) {
223 score[2] += premium;
224 } else if (false) {
225 score[2] += premium-1; // table: 0x10678d0;
226 } else {
227 score[2] -= premium*premium;
229 int best = 1;
230 for (int i=1;i<=2;i++) {
231 if (score[best] < score[i]) { best = i; }
233 switch (best) {
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");
238 lua_error(L);
239 return 0;
241 int LuaBinder< QMenuBar >::__LuaWrapCall__delete (lua_State *L) {
242 QMenuBar *& __lua__obj = *static_cast<QMenuBar**>(lqtL_checkudata(L, 1, "QMenuBar*"));
243 if (__lua__obj==0) {
244 lua_pushstring(L, "trying to reference deleted pointer");
245 lua_error(L);
246 return 0;
248 delete __lua__obj;
249 __lua__obj = 0;
250 return 0;
252 int LuaBinder< QMenuBar >::__LuaWrapCall__cornerWidget (lua_State *L) {
253 QMenuBar *& __lua__obj = *static_cast<QMenuBar**>(lqtL_checkudata(L, 1, "QMenuBar*"));
254 if (__lua__obj==0) {
255 lua_pushstring(L, "trying to reference deleted pointer");
256 lua_error(L);
257 return 0;
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*");
262 return 1;
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*");
268 return 1;
270 int LuaBinder< QMenuBar >::__LuaWrapCall__setVisible (lua_State *L) {
271 QMenuBar *& __lua__obj = *static_cast<QMenuBar**>(lqtL_checkudata(L, 1, "QMenuBar*"));
272 if (__lua__obj==0) {
273 lua_pushstring(L, "trying to reference deleted pointer");
274 lua_error(L);
275 return 0;
277 bool arg1 = (bool)lua_toboolean(L, 2);
278 __lua__obj->QMenuBar::setVisible(arg1);
279 return 0;
281 int LuaBinder< QMenuBar >::__LuaWrapCall__clear (lua_State *L) {
282 QMenuBar *& __lua__obj = *static_cast<QMenuBar**>(lqtL_checkudata(L, 1, "QMenuBar*"));
283 if (__lua__obj==0) {
284 lua_pushstring(L, "trying to reference deleted pointer");
285 lua_error(L);
286 return 0;
288 __lua__obj->QMenuBar::clear();
289 return 0;
291 int LuaBinder< QMenuBar >::__LuaWrapCall__insertSeparator (lua_State *L) {
292 QMenuBar *& __lua__obj = *static_cast<QMenuBar**>(lqtL_checkudata(L, 1, "QMenuBar*"));
293 if (__lua__obj==0) {
294 lua_pushstring(L, "trying to reference deleted pointer");
295 lua_error(L);
296 return 0;
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*");
301 return 1;
303 int LuaBinder< QMenuBar >::__LuaWrapCall__addMenu__OverloadedVersion__1 (lua_State *L) {
304 QMenuBar *& __lua__obj = *static_cast<QMenuBar**>(lqtL_checkudata(L, 1, "QMenuBar*"));
305 if (__lua__obj==0) {
306 lua_pushstring(L, "trying to reference deleted pointer");
307 lua_error(L);
308 return 0;
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*");
313 return 1;
315 int LuaBinder< QMenuBar >::__LuaWrapCall__addMenu__OverloadedVersion__2 (lua_State *L) {
316 QMenuBar *& __lua__obj = *static_cast<QMenuBar**>(lqtL_checkudata(L, 1, "QMenuBar*"));
317 if (__lua__obj==0) {
318 lua_pushstring(L, "trying to reference deleted pointer");
319 lua_error(L);
320 return 0;
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*");
325 return 1;
327 int LuaBinder< QMenuBar >::__LuaWrapCall__addMenu__OverloadedVersion__3 (lua_State *L) {
328 QMenuBar *& __lua__obj = *static_cast<QMenuBar**>(lqtL_checkudata(L, 1, "QMenuBar*"));
329 if (__lua__obj==0) {
330 lua_pushstring(L, "trying to reference deleted pointer");
331 lua_error(L);
332 return 0;
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*");
338 return 1;
340 int LuaBinder< QMenuBar >::__LuaWrapCall__addMenu (lua_State *L) {
341 int score[4];
342 const int premium = 11+lua_gettop(L);
343 score[1] = 0;
344 score[1] += lqtL_testudata(L, 1, "QMenuBar*")?premium:-premium*premium;
345 if (lqtL_testudata(L, 2, "QMenu*")) {
346 score[1] += premium;
347 } else if (false) {
348 score[1] += premium-1; // table: 0x106cf00;
349 } else {
350 score[1] -= premium*premium;
352 score[2] = 0;
353 score[2] += lqtL_testudata(L, 1, "QMenuBar*")?premium:-premium*premium;
354 if ((lua_type(L, 2)==LUA_TSTRING)) {
355 score[2] += premium;
356 } else if (false) {
357 score[2] += premium-1; // table: 0x106d940;
358 } else {
359 score[2] -= premium*premium;
361 score[3] = 0;
362 score[3] += lqtL_testudata(L, 1, "QMenuBar*")?premium:-premium*premium;
363 if (lqtL_testudata(L, 2, "QIcon*")) {
364 score[3] += premium;
365 } else if (false) {
366 score[3] += premium-1; // table: 0x106e3a0;
367 } else {
368 score[3] -= premium*premium;
370 if ((lua_type(L, 3)==LUA_TSTRING)) {
371 score[3] += premium;
372 } else if (false) {
373 score[3] += premium-1; // table: 0x106de70;
374 } else {
375 score[3] -= premium*premium;
377 int best = 1;
378 for (int i=1;i<=3;i++) {
379 if (score[best] < score[i]) { best = i; }
381 switch (best) {
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");
387 lua_error(L);
388 return 0;
390 int LuaBinder< QMenuBar >::__LuaWrapCall__setDefaultUp (lua_State *L) {
391 QMenuBar *& __lua__obj = *static_cast<QMenuBar**>(lqtL_checkudata(L, 1, "QMenuBar*"));
392 if (__lua__obj==0) {
393 lua_pushstring(L, "trying to reference deleted pointer");
394 lua_error(L);
395 return 0;
397 bool arg1 = (bool)lua_toboolean(L, 2);
398 __lua__obj->QMenuBar::setDefaultUp(arg1);
399 return 0;
401 int LuaBinder< QMenuBar >::__LuaWrapCall__addAction__OverloadedVersion__1 (lua_State *L) {
402 QMenuBar *& __lua__obj = *static_cast<QMenuBar**>(lqtL_checkudata(L, 1, "QMenuBar*"));
403 if (__lua__obj==0) {
404 lua_pushstring(L, "trying to reference deleted pointer");
405 lua_error(L);
406 return 0;
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*");
411 return 1;
413 int LuaBinder< QMenuBar >::__LuaWrapCall__addAction__OverloadedVersion__2 (lua_State *L) {
414 QMenuBar *& __lua__obj = *static_cast<QMenuBar**>(lqtL_checkudata(L, 1, "QMenuBar*"));
415 if (__lua__obj==0) {
416 lua_pushstring(L, "trying to reference deleted pointer");
417 lua_error(L);
418 return 0;
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*");
425 return 1;
427 int LuaBinder< QMenuBar >::__LuaWrapCall__addAction (lua_State *L) {
428 int score[3];
429 const int premium = 11+lua_gettop(L);
430 score[1] = 0;
431 score[1] += lqtL_testudata(L, 1, "QMenuBar*")?premium:-premium*premium;
432 if ((lua_type(L, 2)==LUA_TSTRING)) {
433 score[1] += premium;
434 } else if (false) {
435 score[1] += premium-1; // table: 0x106b2b0;
436 } else {
437 score[1] -= premium*premium;
439 score[2] = 0;
440 score[2] += lqtL_testudata(L, 1, "QMenuBar*")?premium:-premium*premium;
441 if ((lua_type(L, 2)==LUA_TSTRING)) {
442 score[2] += premium;
443 } else if (false) {
444 score[2] += premium-1; // table: 0x106bd10;
445 } else {
446 score[2] -= premium*premium;
448 if (lqtL_testudata(L, 3, "QObject*")) {
449 score[2] += premium;
450 } else if (false) {
451 score[2] += premium-1; // table: 0x106b7d0;
452 } else {
453 score[2] -= premium*premium;
455 if ((lua_type(L, 4)==LUA_TSTRING)) {
456 score[2] += premium;
457 } else if (false) {
458 score[2] += premium-1; // table: 0x106c1c0;
459 } else {
460 score[2] -= premium*premium;
462 int best = 1;
463 for (int i=1;i<=2;i++) {
464 if (score[best] < score[i]) { best = i; }
466 switch (best) {
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");
471 lua_error(L);
472 return 0;
474 int LuaBinder< QMenuBar >::__LuaWrapCall__setActiveAction (lua_State *L) {
475 QMenuBar *& __lua__obj = *static_cast<QMenuBar**>(lqtL_checkudata(L, 1, "QMenuBar*"));
476 if (__lua__obj==0) {
477 lua_pushstring(L, "trying to reference deleted pointer");
478 lua_error(L);
479 return 0;
481 QAction * arg1 = *static_cast<QAction**>(lqtL_checkudata(L, 2, "QAction*"));
482 __lua__obj->QMenuBar::setActiveAction(arg1);
483 return 0;
485 int LuaBinder< QMenuBar >::__LuaWrapCall__actionGeometry (lua_State *L) {
486 QMenuBar *& __lua__obj = *static_cast<QMenuBar**>(lqtL_checkudata(L, 1, "QMenuBar*"));
487 if (__lua__obj==0) {
488 lua_pushstring(L, "trying to reference deleted pointer");
489 lua_error(L);
490 return 0;
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*");
495 return 1;
497 int LuaBinder< QMenuBar >::__LuaWrapCall__activeAction (lua_State *L) {
498 QMenuBar *& __lua__obj = *static_cast<QMenuBar**>(lqtL_checkudata(L, 1, "QMenuBar*"));
499 if (__lua__obj==0) {
500 lua_pushstring(L, "trying to reference deleted pointer");
501 lua_error(L);
502 return 0;
504 QAction * ret = __lua__obj->QMenuBar::activeAction();
505 lqtL_pushudata(L, ret, "QAction*");
506 return 1;
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");
514 lua_remove(L, -2);
515 } else {
516 lua_pushnil(L);
518 lua_insert(L, -2);
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);
523 lua_pop(L, 1);
525 if (!absorbed) {
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");
537 lua_remove(L, -2);
538 } else {
539 lua_pushnil(L);
541 lua_insert(L, -2);
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);
546 lua_pop(L, 1);
548 if (!absorbed) {
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");
560 lua_remove(L, -2);
561 } else {
562 lua_pushnil(L);
564 lua_insert(L, -2);
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);
569 lua_pop(L, 1);
571 if (!absorbed) {
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");
583 lua_remove(L, -2);
584 } else {
585 lua_pushnil(L);
587 lua_insert(L, -2);
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);
591 lua_pop(L, 1);
593 if (!absorbed) {
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);
599 return ret;
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");
607 lua_remove(L, -2);
608 } else {
609 lua_pushnil(L);
611 lua_insert(L, -2);
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);
615 lua_pop(L, 1);
617 if (!absorbed) {
618 lua_settop(L, oldtop);
619 return this->QWidget::devType();
621 int ret = lua_tointeger(L, -1);
622 lua_settop(L, oldtop);
623 return ret;
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");
631 lua_remove(L, -2);
632 } else {
633 lua_pushnil(L);
635 lua_insert(L, -2);
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);
640 lua_pop(L, 1);
642 if (!absorbed) {
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");
654 lua_remove(L, -2);
655 } else {
656 lua_pushnil(L);
658 lua_insert(L, -2);
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);
663 lua_pop(L, 1);
665 if (!absorbed) {
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);
671 return ret;
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");
679 lua_remove(L, -2);
680 } else {
681 lua_pushnil(L);
683 lua_insert(L, -2);
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);
687 lua_pop(L, 1);
689 if (!absorbed) {
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);
695 return ret;
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");
703 lua_remove(L, -2);
704 } else {
705 lua_pushnil(L);
707 lua_insert(L, -2);
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);
712 lua_pop(L, 1);
714 if (!absorbed) {
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");
726 lua_remove(L, -2);
727 } else {
728 lua_pushnil(L);
730 lua_insert(L, -2);
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);
735 lua_pop(L, 1);
737 if (!absorbed) {
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");
749 lua_remove(L, -2);
750 } else {
751 lua_pushnil(L);
753 lua_insert(L, -2);
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);
757 lua_pop(L, 1);
759 if (!absorbed) {
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);
765 return ret;
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");
773 lua_remove(L, -2);
774 } else {
775 lua_pushnil(L);
777 lua_insert(L, -2);
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);
782 lua_pop(L, 1);
784 if (!absorbed) {
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");
796 lua_remove(L, -2);
797 } else {
798 lua_pushnil(L);
800 lua_insert(L, -2);
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);
805 lua_pop(L, 1);
807 if (!absorbed) {
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");
819 lua_remove(L, -2);
820 } else {
821 lua_pushnil(L);
823 lua_insert(L, -2);
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);
828 lua_pop(L, 1);
830 if (!absorbed) {
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");
842 lua_remove(L, -2);
843 } else {
844 lua_pushnil(L);
846 lua_insert(L, -2);
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);
851 lua_pop(L, 1);
853 if (!absorbed) {
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");
865 lua_remove(L, -2);
866 } else {
867 lua_pushnil(L);
869 lua_insert(L, -2);
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);
873 lua_pop(L, 1);
875 if (!absorbed) {
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);
881 return ret;
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");
889 lua_remove(L, -2);
890 } else {
891 lua_pushnil(L);
893 lua_insert(L, -2);
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);
898 lua_pop(L, 1);
900 if (!absorbed) {
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");
912 lua_remove(L, -2);
913 } else {
914 lua_pushnil(L);
916 lua_insert(L, -2);
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);
921 lua_pop(L, 1);
923 if (!absorbed) {
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");
935 lua_remove(L, -2);
936 } else {
937 lua_pushnil(L);
939 lua_insert(L, -2);
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);
944 lua_pop(L, 1);
946 if (!absorbed) {
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");
958 lua_remove(L, -2);
959 } else {
960 lua_pushnil(L);
962 lua_insert(L, -2);
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);
967 lua_pop(L, 1);
969 if (!absorbed) {
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");
981 lua_remove(L, -2);
982 } else {
983 lua_pushnil(L);
985 lua_insert(L, -2);
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);
990 lua_pop(L, 1);
992 if (!absorbed) {
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");
1004 lua_remove(L, -2);
1005 } else {
1006 lua_pushnil(L);
1008 lua_insert(L, -2);
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);
1013 lua_pop(L, 1);
1015 if (!absorbed) {
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");
1027 lua_remove(L, -2);
1028 } else {
1029 lua_pushnil(L);
1031 lua_insert(L, -2);
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);
1036 lua_pop(L, 1);
1038 if (!absorbed) {
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");
1050 lua_remove(L, -2);
1051 } else {
1052 lua_pushnil(L);
1054 lua_insert(L, -2);
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);
1059 lua_pop(L, 1);
1061 if (!absorbed) {
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");
1073 lua_remove(L, -2);
1074 } else {
1075 lua_pushnil(L);
1077 lua_insert(L, -2);
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);
1082 lua_pop(L, 1);
1084 if (!absorbed) {
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");
1096 lua_remove(L, -2);
1097 } else {
1098 lua_pushnil(L);
1100 lua_insert(L, -2);
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);
1105 lua_pop(L, 1);
1107 if (!absorbed) {
1108 lua_settop(L, oldtop);
1109 return this->QMenuBar::heightForWidth(arg1);
1111 int ret = lua_tointeger(L, -1);
1112 lua_settop(L, oldtop);
1113 return ret;
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");
1121 lua_remove(L, -2);
1122 } else {
1123 lua_pushnil(L);
1125 lua_insert(L, -2);
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);
1130 lua_pop(L, 1);
1132 if (!absorbed) {
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");
1144 lua_remove(L, -2);
1145 } else {
1146 lua_pushnil(L);
1148 lua_insert(L, -2);
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);
1153 lua_pop(L, 1);
1155 if (!absorbed) {
1156 lua_settop(L, oldtop);
1157 return this->QWidget::focusNextPrevChild(arg1);
1159 bool ret = (bool)lua_toboolean(L, -1);
1160 lua_settop(L, oldtop);
1161 return ret;
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");
1169 lua_remove(L, -2);
1170 } else {
1171 lua_pushnil(L);
1173 lua_insert(L, -2);
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);
1178 lua_pop(L, 1);
1180 if (!absorbed) {
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");
1192 lua_remove(L, -2);
1193 } else {
1194 lua_pushnil(L);
1196 lua_insert(L, -2);
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);
1201 lua_pop(L, 1);
1203 if (!absorbed) {
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");
1215 lua_remove(L, -2);
1216 } else {
1217 lua_pushnil(L);
1219 lua_insert(L, -2);
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);
1224 lua_pop(L, 1);
1226 if (!absorbed) {
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");
1238 lua_remove(L, -2);
1239 } else {
1240 lua_pushnil(L);
1242 lua_insert(L, -2);
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);
1247 lua_pop(L, 1);
1249 if (!absorbed) {
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");
1261 lua_remove(L, -2);
1262 } else {
1263 lua_pushnil(L);
1265 lua_insert(L, -2);
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);
1270 lua_pop(L, 1);
1272 if (!absorbed) {
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");
1284 lua_remove(L, -2);
1285 } else {
1286 lua_pushnil(L);
1288 lua_insert(L, -2);
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);
1293 lua_pop(L, 1);
1295 if (!absorbed) {
1296 lua_settop(L, oldtop);
1297 return this->QWidget::metric(arg1);
1299 int ret = lua_tointeger(L, -1);
1300 lua_settop(L, oldtop);
1301 return ret;
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");
1309 lua_remove(L, -2);
1310 } else {
1311 lua_pushnil(L);
1313 lua_insert(L, -2);
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);
1318 lua_pop(L, 1);
1320 if (!absorbed) {
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");
1332 lua_remove(L, -2);
1333 } else {
1334 lua_pushnil(L);
1336 lua_insert(L, -2);
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);
1342 lua_pop(L, 1);
1344 if (!absorbed) {
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);
1350 return ret;
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");
1358 lua_remove(L, -2);
1359 } else {
1360 lua_pushnil(L);
1362 lua_insert(L, -2);
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);
1367 lua_pop(L, 1);
1369 if (!absorbed) {
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");
1381 lua_remove(L, -2);
1382 } else {
1383 lua_pushnil(L);
1385 lua_insert(L, -2);
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);
1390 lua_pop(L, 1);
1392 if (!absorbed) {
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");
1404 lua_remove(L, -2);
1405 } else {
1406 lua_pushnil(L);
1408 lua_insert(L, -2);
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);
1413 lua_pop(L, 1);
1415 if (!absorbed) {
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");
1427 lua_remove(L, -2);
1428 } else {
1429 lua_pushnil(L);
1431 lua_insert(L, -2);
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);
1436 lua_pop(L, 1);
1438 if (!absorbed) {
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");
1450 lua_remove(L, -2);
1451 } else {
1452 lua_pushnil(L);
1454 lua_insert(L, -2);
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);
1458 lua_pop(L, 1);
1460 if (!absorbed) {
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");
1472 lua_remove(L, -2);
1473 } else {
1474 lua_pushnil(L);
1476 lua_insert(L, -2);
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);
1481 lua_pop(L, 1);
1483 if (!absorbed) {
1484 lua_settop(L, oldtop);
1485 return this->QMenuBar::event(arg1);
1487 bool ret = (bool)lua_toboolean(L, -1);
1488 lua_settop(L, oldtop);
1489 return ret;
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");
1497 lua_remove(L, -2);
1498 } else {
1499 lua_pushnil(L);
1501 lua_insert(L, -2);
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);
1506 lua_pop(L, 1);
1508 if (!absorbed) {
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");
1520 lua_remove(L, -2);
1521 } else {
1522 lua_pushnil(L);
1524 lua_insert(L, -2);
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);
1529 lua_pop(L, 1);
1531 if (!absorbed) {
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");
1543 lua_remove(L, -2);
1544 } else {
1545 lua_pushnil(L);
1547 lua_insert(L, -2);
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);
1552 lua_pop(L, 1);
1554 if (!absorbed) {
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");
1566 lua_remove(L, -2);
1567 } else {
1568 lua_pushnil(L);
1570 lua_insert(L, -2);
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);
1575 lua_pop(L, 1);
1577 if (!absorbed) {
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");
1589 lua_remove(L, -2);
1590 } else {
1591 lua_pushnil(L);
1593 lua_insert(L, -2);
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);
1598 lua_pop(L, 1);
1600 if (!absorbed) {
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");
1612 lua_remove(L, -2);
1613 } else {
1614 lua_pushnil(L);
1616 lua_insert(L, -2);
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);
1621 lua_pop(L, 1);
1623 if (!absorbed) {
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");
1635 lua_remove(L, -2);
1636 } else {
1637 lua_pushnil(L);
1639 lua_insert(L, -2);
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);
1644 lua_pop(L, 1);
1646 if (!absorbed) {
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)) {
1658 lua_insert(L, -2);
1659 lua_pcall(L, 1, 1, 0);
1660 } else {
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");
1712 lua_newtable(L);
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");
1729 } else {
1730 lua_pop(L, 1);
1732 return 0;