added "install" instruction
[Leditor.git] / src / lqt_bind_QMenu.cpp
blobe5fbfb596f01393c8131e0036ab2db1eab88cfa6
1 #include "lqt_bind_QMenu.hpp"
3 int LuaBinder< QMenu >::__LuaWrapCall__sizeHint (lua_State *L) {
4 QMenu *& __lua__obj = *static_cast<QMenu**>(lqtL_checkudata(L, 1, "QMenu*"));
5 if (__lua__obj==0) {
6 lua_pushstring(L, "trying to reference deleted pointer");
7 lua_error(L);
8 return 0;
10 QSize ret = __lua__obj->QMenu::sizeHint();
11 lqtL_passudata(L, new QSize(ret), "QSize*");
12 return 1;
14 int LuaBinder< QMenu >::__LuaWrapCall__defaultAction (lua_State *L) {
15 QMenu *& __lua__obj = *static_cast<QMenu**>(lqtL_checkudata(L, 1, "QMenu*"));
16 if (__lua__obj==0) {
17 lua_pushstring(L, "trying to reference deleted pointer");
18 lua_error(L);
19 return 0;
21 QAction * ret = __lua__obj->QMenu::defaultAction();
22 lqtL_pushudata(L, ret, "QAction*");
23 return 1;
25 int LuaBinder< QMenu >::__LuaWrapCall__isTearOffMenuVisible (lua_State *L) {
26 QMenu *& __lua__obj = *static_cast<QMenu**>(lqtL_checkudata(L, 1, "QMenu*"));
27 if (__lua__obj==0) {
28 lua_pushstring(L, "trying to reference deleted pointer");
29 lua_error(L);
30 return 0;
32 bool ret = __lua__obj->QMenu::isTearOffMenuVisible();
33 lua_pushboolean(L, ret);
34 return 1;
36 int LuaBinder< QMenu >::__LuaWrapCall__isTearOffEnabled (lua_State *L) {
37 QMenu *& __lua__obj = *static_cast<QMenu**>(lqtL_checkudata(L, 1, "QMenu*"));
38 if (__lua__obj==0) {
39 lua_pushstring(L, "trying to reference deleted pointer");
40 lua_error(L);
41 return 0;
43 bool ret = __lua__obj->QMenu::isTearOffEnabled();
44 lua_pushboolean(L, ret);
45 return 1;
47 int LuaBinder< QMenu >::__LuaWrapCall__setIcon (lua_State *L) {
48 QMenu *& __lua__obj = *static_cast<QMenu**>(lqtL_checkudata(L, 1, "QMenu*"));
49 if (__lua__obj==0) {
50 lua_pushstring(L, "trying to reference deleted pointer");
51 lua_error(L);
52 return 0;
54 const QIcon& arg1 = **static_cast<QIcon**>(lqtL_checkudata(L, 2, "QIcon*"));
55 __lua__obj->QMenu::setIcon(arg1);
56 return 0;
58 int LuaBinder< QMenu >::__LuaWrapCall__trUtf8__OverloadedVersion__1 (lua_State *L) {
59 const char * arg1 = lua_tostring(L, 1);
60 const char * arg2 = (lua_type(L, 2)==LUA_TSTRING)?lua_tostring(L, 2):static_cast< const char * >(0);
61 QString ret = QMenu::trUtf8(arg1, arg2);
62 lua_pushlstring(L, ret.toAscii().data(), ret.toAscii().size());
63 return 1;
65 int LuaBinder< QMenu >::__LuaWrapCall__trUtf8__OverloadedVersion__2 (lua_State *L) {
66 const char * arg1 = lua_tostring(L, 1);
67 const char * arg2 = lua_tostring(L, 2);
68 int arg3 = lua_tointeger(L, 3);
69 QString ret = QMenu::trUtf8(arg1, arg2, arg3);
70 lua_pushlstring(L, ret.toAscii().data(), ret.toAscii().size());
71 return 1;
73 int LuaBinder< QMenu >::__LuaWrapCall__trUtf8 (lua_State *L) {
74 int score[3];
75 const int premium = 11+lua_gettop(L);
76 score[1] = 0;
77 if ((lua_type(L, 1)==LUA_TSTRING)) {
78 score[1] += premium;
79 } else if (false) {
80 score[1] += premium-1; // table: 0xb8ff20;
81 } else {
82 score[1] -= premium*premium;
84 if ((lua_type(L, 2)==LUA_TSTRING)) {
85 score[1] += premium;
86 } else if (true) {
87 score[1] += premium-1; // table: 0xf47880;
88 } else {
89 score[1] -= premium*premium;
91 score[2] = 0;
92 if ((lua_type(L, 1)==LUA_TSTRING)) {
93 score[2] += premium;
94 } else if (false) {
95 score[2] += premium-1; // table: 0xe520b0;
96 } else {
97 score[2] -= premium*premium;
99 if ((lua_type(L, 2)==LUA_TSTRING)) {
100 score[2] += premium;
101 } else if (false) {
102 score[2] += premium-1; // table: 0xeee350;
103 } else {
104 score[2] -= premium*premium;
106 if (lua_isnumber(L, 3)) {
107 score[2] += premium;
108 } else if (false) {
109 score[2] += premium-1; // table: 0xe52100;
110 } else {
111 score[2] -= premium*premium;
113 int best = 1;
114 for (int i=1;i<=2;i++) {
115 if (score[best] < score[i]) { best = i; }
117 switch (best) {
118 case 1: return __LuaWrapCall__trUtf8__OverloadedVersion__1(L); break;
119 case 2: return __LuaWrapCall__trUtf8__OverloadedVersion__2(L); break;
121 lua_pushstring(L, "no overload of function __LuaWrapCall__trUtf8 matching arguments");
122 lua_error(L);
123 return 0;
125 int LuaBinder< QMenu >::__LuaWrapCall__actionAt (lua_State *L) {
126 QMenu *& __lua__obj = *static_cast<QMenu**>(lqtL_checkudata(L, 1, "QMenu*"));
127 if (__lua__obj==0) {
128 lua_pushstring(L, "trying to reference deleted pointer");
129 lua_error(L);
130 return 0;
132 const QPoint& arg1 = **static_cast<QPoint**>(lqtL_checkudata(L, 2, "QPoint*"));
133 QAction * ret = __lua__obj->QMenu::actionAt(arg1);
134 lqtL_pushudata(L, ret, "QAction*");
135 return 1;
137 int LuaBinder< QMenu >::__LuaWrapCall__icon (lua_State *L) {
138 QMenu *& __lua__obj = *static_cast<QMenu**>(lqtL_checkudata(L, 1, "QMenu*"));
139 if (__lua__obj==0) {
140 lua_pushstring(L, "trying to reference deleted pointer");
141 lua_error(L);
142 return 0;
144 QIcon ret = __lua__obj->QMenu::icon();
145 lqtL_passudata(L, new QIcon(ret), "QIcon*");
146 return 1;
148 int LuaBinder< QMenu >::__LuaWrapCall__tr__OverloadedVersion__1 (lua_State *L) {
149 const char * arg1 = lua_tostring(L, 1);
150 const char * arg2 = (lua_type(L, 2)==LUA_TSTRING)?lua_tostring(L, 2):static_cast< const char * >(0);
151 QString ret = QMenu::tr(arg1, arg2);
152 lua_pushlstring(L, ret.toAscii().data(), ret.toAscii().size());
153 return 1;
155 int LuaBinder< QMenu >::__LuaWrapCall__tr__OverloadedVersion__2 (lua_State *L) {
156 const char * arg1 = lua_tostring(L, 1);
157 const char * arg2 = lua_tostring(L, 2);
158 int arg3 = lua_tointeger(L, 3);
159 QString ret = QMenu::tr(arg1, arg2, arg3);
160 lua_pushlstring(L, ret.toAscii().data(), ret.toAscii().size());
161 return 1;
163 int LuaBinder< QMenu >::__LuaWrapCall__tr (lua_State *L) {
164 int score[3];
165 const int premium = 11+lua_gettop(L);
166 score[1] = 0;
167 if ((lua_type(L, 1)==LUA_TSTRING)) {
168 score[1] += premium;
169 } else if (false) {
170 score[1] += premium-1; // table: 0xbc6160;
171 } else {
172 score[1] -= premium*premium;
174 if ((lua_type(L, 2)==LUA_TSTRING)) {
175 score[1] += premium;
176 } else if (true) {
177 score[1] += premium-1; // table: 0x688400;
178 } else {
179 score[1] -= premium*premium;
181 score[2] = 0;
182 if ((lua_type(L, 1)==LUA_TSTRING)) {
183 score[2] += premium;
184 } else if (false) {
185 score[2] += premium-1; // table: 0x5e0f00;
186 } else {
187 score[2] -= premium*premium;
189 if ((lua_type(L, 2)==LUA_TSTRING)) {
190 score[2] += premium;
191 } else if (false) {
192 score[2] += premium-1; // table: 0xdb40e0;
193 } else {
194 score[2] -= premium*premium;
196 if (lua_isnumber(L, 3)) {
197 score[2] += premium;
198 } else if (false) {
199 score[2] += premium-1; // table: 0xcee3f0;
200 } else {
201 score[2] -= premium*premium;
203 int best = 1;
204 for (int i=1;i<=2;i++) {
205 if (score[best] < score[i]) { best = i; }
207 switch (best) {
208 case 1: return __LuaWrapCall__tr__OverloadedVersion__1(L); break;
209 case 2: return __LuaWrapCall__tr__OverloadedVersion__2(L); break;
211 lua_pushstring(L, "no overload of function __LuaWrapCall__tr matching arguments");
212 lua_error(L);
213 return 0;
215 int LuaBinder< QMenu >::__LuaWrapCall__isEmpty (lua_State *L) {
216 QMenu *& __lua__obj = *static_cast<QMenu**>(lqtL_checkudata(L, 1, "QMenu*"));
217 if (__lua__obj==0) {
218 lua_pushstring(L, "trying to reference deleted pointer");
219 lua_error(L);
220 return 0;
222 bool ret = __lua__obj->QMenu::isEmpty();
223 lua_pushboolean(L, ret);
224 return 1;
226 int LuaBinder< QMenu >::__LuaWrapCall__popup (lua_State *L) {
227 QMenu *& __lua__obj = *static_cast<QMenu**>(lqtL_checkudata(L, 1, "QMenu*"));
228 if (__lua__obj==0) {
229 lua_pushstring(L, "trying to reference deleted pointer");
230 lua_error(L);
231 return 0;
233 const QPoint& arg1 = **static_cast<QPoint**>(lqtL_checkudata(L, 2, "QPoint*"));
234 QAction * arg2 = lqtL_testudata(L, 3, "QAction*")?*static_cast<QAction**>(lqtL_checkudata(L, 3, "QAction*")):static_cast< QAction * >(0);
235 __lua__obj->QMenu::popup(arg1, arg2);
236 return 0;
238 int LuaBinder< QMenu >::__LuaWrapCall__title (lua_State *L) {
239 QMenu *& __lua__obj = *static_cast<QMenu**>(lqtL_checkudata(L, 1, "QMenu*"));
240 if (__lua__obj==0) {
241 lua_pushstring(L, "trying to reference deleted pointer");
242 lua_error(L);
243 return 0;
245 QString ret = __lua__obj->QMenu::title();
246 lua_pushlstring(L, ret.toAscii().data(), ret.toAscii().size());
247 return 1;
249 int LuaBinder< QMenu >::__LuaWrapCall__setDefaultAction (lua_State *L) {
250 QMenu *& __lua__obj = *static_cast<QMenu**>(lqtL_checkudata(L, 1, "QMenu*"));
251 if (__lua__obj==0) {
252 lua_pushstring(L, "trying to reference deleted pointer");
253 lua_error(L);
254 return 0;
256 QAction * arg1 = *static_cast<QAction**>(lqtL_checkudata(L, 2, "QAction*"));
257 __lua__obj->QMenu::setDefaultAction(arg1);
258 return 0;
260 int LuaBinder< QMenu >::__LuaWrapCall__setNoReplayFor (lua_State *L) {
261 QMenu *& __lua__obj = *static_cast<QMenu**>(lqtL_checkudata(L, 1, "QMenu*"));
262 if (__lua__obj==0) {
263 lua_pushstring(L, "trying to reference deleted pointer");
264 lua_error(L);
265 return 0;
267 QWidget * arg1 = *static_cast<QWidget**>(lqtL_checkudata(L, 2, "QWidget*"));
268 __lua__obj->QMenu::setNoReplayFor(arg1);
269 return 0;
271 int LuaBinder< QMenu >::__LuaWrapCall__setSeparatorsCollapsible (lua_State *L) {
272 QMenu *& __lua__obj = *static_cast<QMenu**>(lqtL_checkudata(L, 1, "QMenu*"));
273 if (__lua__obj==0) {
274 lua_pushstring(L, "trying to reference deleted pointer");
275 lua_error(L);
276 return 0;
278 bool arg1 = (bool)lua_toboolean(L, 2);
279 __lua__obj->QMenu::setSeparatorsCollapsible(arg1);
280 return 0;
282 int LuaBinder< QMenu >::__LuaWrapCall__addAction__OverloadedVersion__1 (lua_State *L) {
283 QMenu *& __lua__obj = *static_cast<QMenu**>(lqtL_checkudata(L, 1, "QMenu*"));
284 if (__lua__obj==0) {
285 lua_pushstring(L, "trying to reference deleted pointer");
286 lua_error(L);
287 return 0;
289 const QString& arg1 = QString::fromAscii(lua_tostring(L, 2), lua_objlen(L, 2));
290 QAction * ret = __lua__obj->QMenu::addAction(arg1);
291 lqtL_pushudata(L, ret, "QAction*");
292 return 1;
294 int LuaBinder< QMenu >::__LuaWrapCall__addAction__OverloadedVersion__2 (lua_State *L) {
295 QMenu *& __lua__obj = *static_cast<QMenu**>(lqtL_checkudata(L, 1, "QMenu*"));
296 if (__lua__obj==0) {
297 lua_pushstring(L, "trying to reference deleted pointer");
298 lua_error(L);
299 return 0;
301 const QIcon& arg1 = **static_cast<QIcon**>(lqtL_checkudata(L, 2, "QIcon*"));
302 const QString& arg2 = QString::fromAscii(lua_tostring(L, 3), lua_objlen(L, 3));
303 QAction * ret = __lua__obj->QMenu::addAction(arg1, arg2);
304 lqtL_pushudata(L, ret, "QAction*");
305 return 1;
307 int LuaBinder< QMenu >::__LuaWrapCall__addAction__OverloadedVersion__3 (lua_State *L) {
308 QMenu *& __lua__obj = *static_cast<QMenu**>(lqtL_checkudata(L, 1, "QMenu*"));
309 if (__lua__obj==0) {
310 lua_pushstring(L, "trying to reference deleted pointer");
311 lua_error(L);
312 return 0;
314 const QString& arg1 = QString::fromAscii(lua_tostring(L, 2), lua_objlen(L, 2));
315 const QObject * arg2 = *static_cast<QObject**>(lqtL_checkudata(L, 3, "QObject*"));
316 const char * arg3 = lua_tostring(L, 4);
317 const QKeySequence& arg4 = lqtL_testudata(L, 5, "QKeySequence*")?**static_cast<QKeySequence**>(lqtL_checkudata(L, 5, "QKeySequence*")):static_cast< const QKeySequence& >(0);
318 QAction * ret = __lua__obj->QMenu::addAction(arg1, arg2, arg3, arg4);
319 lqtL_pushudata(L, ret, "QAction*");
320 return 1;
322 int LuaBinder< QMenu >::__LuaWrapCall__addAction__OverloadedVersion__4 (lua_State *L) {
323 QMenu *& __lua__obj = *static_cast<QMenu**>(lqtL_checkudata(L, 1, "QMenu*"));
324 if (__lua__obj==0) {
325 lua_pushstring(L, "trying to reference deleted pointer");
326 lua_error(L);
327 return 0;
329 const QIcon& arg1 = **static_cast<QIcon**>(lqtL_checkudata(L, 2, "QIcon*"));
330 const QString& arg2 = QString::fromAscii(lua_tostring(L, 3), lua_objlen(L, 3));
331 const QObject * arg3 = *static_cast<QObject**>(lqtL_checkudata(L, 4, "QObject*"));
332 const char * arg4 = lua_tostring(L, 5);
333 const QKeySequence& arg5 = lqtL_testudata(L, 6, "QKeySequence*")?**static_cast<QKeySequence**>(lqtL_checkudata(L, 6, "QKeySequence*")):static_cast< const QKeySequence& >(0);
334 QAction * ret = __lua__obj->QMenu::addAction(arg1, arg2, arg3, arg4, arg5);
335 lqtL_pushudata(L, ret, "QAction*");
336 return 1;
338 int LuaBinder< QMenu >::__LuaWrapCall__addAction (lua_State *L) {
339 int score[5];
340 const int premium = 11+lua_gettop(L);
341 score[1] = 0;
342 score[1] += lqtL_testudata(L, 1, "QMenu*")?premium:-premium*premium;
343 if ((lua_type(L, 2)==LUA_TSTRING)) {
344 score[1] += premium;
345 } else if (false) {
346 score[1] += premium-1; // table: 0xf3f960;
347 } else {
348 score[1] -= premium*premium;
350 score[2] = 0;
351 score[2] += lqtL_testudata(L, 1, "QMenu*")?premium:-premium*premium;
352 if (lqtL_testudata(L, 2, "QIcon*")) {
353 score[2] += premium;
354 } else if (false) {
355 score[2] += premium-1; // table: 0xedea50;
356 } else {
357 score[2] -= premium*premium;
359 if ((lua_type(L, 3)==LUA_TSTRING)) {
360 score[2] += premium;
361 } else if (false) {
362 score[2] += premium-1; // table: 0xf11c20;
363 } else {
364 score[2] -= premium*premium;
366 score[3] = 0;
367 score[3] += lqtL_testudata(L, 1, "QMenu*")?premium:-premium*premium;
368 if ((lua_type(L, 2)==LUA_TSTRING)) {
369 score[3] += premium;
370 } else if (false) {
371 score[3] += premium-1; // table: 0xd89cd0;
372 } else {
373 score[3] -= premium*premium;
375 if (lqtL_testudata(L, 3, "QObject*")) {
376 score[3] += premium;
377 } else if (false) {
378 score[3] += premium-1; // table: 0xd89d50;
379 } else {
380 score[3] -= premium*premium;
382 if ((lua_type(L, 4)==LUA_TSTRING)) {
383 score[3] += premium;
384 } else if (false) {
385 score[3] += premium-1; // table: 0xc639a0;
386 } else {
387 score[3] -= premium*premium;
389 if (lqtL_testudata(L, 5, "QKeySequence*")) {
390 score[3] += premium;
391 } else if (true) {
392 score[3] += premium-1; // table: 0xd8ee10;
393 } else {
394 score[3] -= premium*premium;
396 score[4] = 0;
397 score[4] += lqtL_testudata(L, 1, "QMenu*")?premium:-premium*premium;
398 if (lqtL_testudata(L, 2, "QIcon*")) {
399 score[4] += premium;
400 } else if (false) {
401 score[4] += premium-1; // table: 0xd98e70;
402 } else {
403 score[4] -= premium*premium;
405 if ((lua_type(L, 3)==LUA_TSTRING)) {
406 score[4] += premium;
407 } else if (false) {
408 score[4] += premium-1; // table: 0xd98ef0;
409 } else {
410 score[4] -= premium*premium;
412 if (lqtL_testudata(L, 4, "QObject*")) {
413 score[4] += premium;
414 } else if (false) {
415 score[4] += premium-1; // table: 0xd9efb0;
416 } else {
417 score[4] -= premium*premium;
419 if ((lua_type(L, 5)==LUA_TSTRING)) {
420 score[4] += premium;
421 } else if (false) {
422 score[4] += premium-1; // table: 0xd81030;
423 } else {
424 score[4] -= premium*premium;
426 if (lqtL_testudata(L, 6, "QKeySequence*")) {
427 score[4] += premium;
428 } else if (true) {
429 score[4] += premium-1; // table: 0xd840b0;
430 } else {
431 score[4] -= premium*premium;
433 int best = 1;
434 for (int i=1;i<=4;i++) {
435 if (score[best] < score[i]) { best = i; }
437 switch (best) {
438 case 1: return __LuaWrapCall__addAction__OverloadedVersion__1(L); break;
439 case 2: return __LuaWrapCall__addAction__OverloadedVersion__2(L); break;
440 case 3: return __LuaWrapCall__addAction__OverloadedVersion__3(L); break;
441 case 4: return __LuaWrapCall__addAction__OverloadedVersion__4(L); break;
443 lua_pushstring(L, "no overload of function __LuaWrapCall__addAction matching arguments");
444 lua_error(L);
445 return 0;
447 int LuaBinder< QMenu >::__LuaWrapCall__insertMenu (lua_State *L) {
448 QMenu *& __lua__obj = *static_cast<QMenu**>(lqtL_checkudata(L, 1, "QMenu*"));
449 if (__lua__obj==0) {
450 lua_pushstring(L, "trying to reference deleted pointer");
451 lua_error(L);
452 return 0;
454 QAction * arg1 = *static_cast<QAction**>(lqtL_checkudata(L, 2, "QAction*"));
455 QMenu * arg2 = *static_cast<QMenu**>(lqtL_checkudata(L, 3, "QMenu*"));
456 QAction * ret = __lua__obj->QMenu::insertMenu(arg1, arg2);
457 lqtL_pushudata(L, ret, "QAction*");
458 return 1;
460 int LuaBinder< QMenu >::__LuaWrapCall__clear (lua_State *L) {
461 QMenu *& __lua__obj = *static_cast<QMenu**>(lqtL_checkudata(L, 1, "QMenu*"));
462 if (__lua__obj==0) {
463 lua_pushstring(L, "trying to reference deleted pointer");
464 lua_error(L);
465 return 0;
467 __lua__obj->QMenu::clear();
468 return 0;
470 int LuaBinder< QMenu >::__LuaWrapCall__delete (lua_State *L) {
471 QMenu *& __lua__obj = *static_cast<QMenu**>(lqtL_checkudata(L, 1, "QMenu*"));
472 if (__lua__obj==0) {
473 lua_pushstring(L, "trying to reference deleted pointer");
474 lua_error(L);
475 return 0;
477 delete __lua__obj;
478 __lua__obj = 0;
479 return 0;
481 int LuaBinder< QMenu >::__LuaWrapCall__new__OverloadedVersion__1 (lua_State *L) {
482 QWidget * arg1 = lqtL_testudata(L, 1, "QWidget*")?*static_cast<QWidget**>(lqtL_checkudata(L, 1, "QWidget*")):static_cast< QWidget * >(0);
483 QMenu * ret = new LuaBinder< QMenu >(L, arg1);
484 lqtL_passudata(L, ret, "QMenu*");
485 return 1;
487 int LuaBinder< QMenu >::__LuaWrapCall__new__OverloadedVersion__2 (lua_State *L) {
488 const QString& arg1 = QString::fromAscii(lua_tostring(L, 1), lua_objlen(L, 1));
489 QWidget * arg2 = lqtL_testudata(L, 2, "QWidget*")?*static_cast<QWidget**>(lqtL_checkudata(L, 2, "QWidget*")):static_cast< QWidget * >(0);
490 QMenu * ret = new LuaBinder< QMenu >(L, arg1, arg2);
491 lqtL_passudata(L, ret, "QMenu*");
492 return 1;
494 int LuaBinder< QMenu >::__LuaWrapCall__new (lua_State *L) {
495 int score[3];
496 const int premium = 11+lua_gettop(L);
497 score[1] = 0;
498 if (lqtL_testudata(L, 1, "QWidget*")) {
499 score[1] += premium;
500 } else if (true) {
501 score[1] += premium-1; // table: 0xf148e0;
502 } else {
503 score[1] -= premium*premium;
505 score[2] = 0;
506 if ((lua_type(L, 1)==LUA_TSTRING)) {
507 score[2] += premium;
508 } else if (false) {
509 score[2] += premium-1; // table: 0xdb0dc0;
510 } else {
511 score[2] -= premium*premium;
513 if (lqtL_testudata(L, 2, "QWidget*")) {
514 score[2] += premium;
515 } else if (true) {
516 score[2] += premium-1; // table: 0x725420;
517 } else {
518 score[2] -= premium*premium;
520 int best = 1;
521 for (int i=1;i<=2;i++) {
522 if (score[best] < score[i]) { best = i; }
524 switch (best) {
525 case 1: return __LuaWrapCall__new__OverloadedVersion__1(L); break;
526 case 2: return __LuaWrapCall__new__OverloadedVersion__2(L); break;
528 lua_pushstring(L, "no overload of function __LuaWrapCall__new matching arguments");
529 lua_error(L);
530 return 0;
532 int LuaBinder< QMenu >::__LuaWrapCall__actionGeometry (lua_State *L) {
533 QMenu *& __lua__obj = *static_cast<QMenu**>(lqtL_checkudata(L, 1, "QMenu*"));
534 if (__lua__obj==0) {
535 lua_pushstring(L, "trying to reference deleted pointer");
536 lua_error(L);
537 return 0;
539 QAction * arg1 = *static_cast<QAction**>(lqtL_checkudata(L, 2, "QAction*"));
540 QRect ret = __lua__obj->QMenu::actionGeometry(arg1);
541 lqtL_passudata(L, new QRect(ret), "QRect*");
542 return 1;
544 int LuaBinder< QMenu >::__LuaWrapCall__addSeparator (lua_State *L) {
545 QMenu *& __lua__obj = *static_cast<QMenu**>(lqtL_checkudata(L, 1, "QMenu*"));
546 if (__lua__obj==0) {
547 lua_pushstring(L, "trying to reference deleted pointer");
548 lua_error(L);
549 return 0;
551 QAction * ret = __lua__obj->QMenu::addSeparator();
552 lqtL_pushudata(L, ret, "QAction*");
553 return 1;
555 int LuaBinder< QMenu >::__LuaWrapCall__insertSeparator (lua_State *L) {
556 QMenu *& __lua__obj = *static_cast<QMenu**>(lqtL_checkudata(L, 1, "QMenu*"));
557 if (__lua__obj==0) {
558 lua_pushstring(L, "trying to reference deleted pointer");
559 lua_error(L);
560 return 0;
562 QAction * arg1 = *static_cast<QAction**>(lqtL_checkudata(L, 2, "QAction*"));
563 QAction * ret = __lua__obj->QMenu::insertSeparator(arg1);
564 lqtL_pushudata(L, ret, "QAction*");
565 return 1;
567 int LuaBinder< QMenu >::__LuaWrapCall__metaObject (lua_State *L) {
568 QMenu *& __lua__obj = *static_cast<QMenu**>(lqtL_checkudata(L, 1, "QMenu*"));
569 if (__lua__obj==0) {
570 lua_pushstring(L, "trying to reference deleted pointer");
571 lua_error(L);
572 return 0;
574 const QMetaObject * ret = __lua__obj->QMenu::metaObject();
575 lqtL_pushudata(L, ret, "QMetaObject*");
576 return 1;
578 int LuaBinder< QMenu >::__LuaWrapCall__hideTearOffMenu (lua_State *L) {
579 QMenu *& __lua__obj = *static_cast<QMenu**>(lqtL_checkudata(L, 1, "QMenu*"));
580 if (__lua__obj==0) {
581 lua_pushstring(L, "trying to reference deleted pointer");
582 lua_error(L);
583 return 0;
585 __lua__obj->QMenu::hideTearOffMenu();
586 return 0;
588 int LuaBinder< QMenu >::__LuaWrapCall__addMenu__OverloadedVersion__1 (lua_State *L) {
589 QMenu *& __lua__obj = *static_cast<QMenu**>(lqtL_checkudata(L, 1, "QMenu*"));
590 if (__lua__obj==0) {
591 lua_pushstring(L, "trying to reference deleted pointer");
592 lua_error(L);
593 return 0;
595 QMenu * arg1 = *static_cast<QMenu**>(lqtL_checkudata(L, 2, "QMenu*"));
596 QAction * ret = __lua__obj->QMenu::addMenu(arg1);
597 lqtL_pushudata(L, ret, "QAction*");
598 return 1;
600 int LuaBinder< QMenu >::__LuaWrapCall__addMenu__OverloadedVersion__2 (lua_State *L) {
601 QMenu *& __lua__obj = *static_cast<QMenu**>(lqtL_checkudata(L, 1, "QMenu*"));
602 if (__lua__obj==0) {
603 lua_pushstring(L, "trying to reference deleted pointer");
604 lua_error(L);
605 return 0;
607 const QString& arg1 = QString::fromAscii(lua_tostring(L, 2), lua_objlen(L, 2));
608 QMenu * ret = __lua__obj->QMenu::addMenu(arg1);
609 lqtL_pushudata(L, ret, "QMenu*");
610 return 1;
612 int LuaBinder< QMenu >::__LuaWrapCall__addMenu__OverloadedVersion__3 (lua_State *L) {
613 QMenu *& __lua__obj = *static_cast<QMenu**>(lqtL_checkudata(L, 1, "QMenu*"));
614 if (__lua__obj==0) {
615 lua_pushstring(L, "trying to reference deleted pointer");
616 lua_error(L);
617 return 0;
619 const QIcon& arg1 = **static_cast<QIcon**>(lqtL_checkudata(L, 2, "QIcon*"));
620 const QString& arg2 = QString::fromAscii(lua_tostring(L, 3), lua_objlen(L, 3));
621 QMenu * ret = __lua__obj->QMenu::addMenu(arg1, arg2);
622 lqtL_pushudata(L, ret, "QMenu*");
623 return 1;
625 int LuaBinder< QMenu >::__LuaWrapCall__addMenu (lua_State *L) {
626 int score[4];
627 const int premium = 11+lua_gettop(L);
628 score[1] = 0;
629 score[1] += lqtL_testudata(L, 1, "QMenu*")?premium:-premium*premium;
630 if (lqtL_testudata(L, 2, "QMenu*")) {
631 score[1] += premium;
632 } else if (false) {
633 score[1] += premium-1; // table: 0xd5d500;
634 } else {
635 score[1] -= premium*premium;
637 score[2] = 0;
638 score[2] += lqtL_testudata(L, 1, "QMenu*")?premium:-premium*premium;
639 if ((lua_type(L, 2)==LUA_TSTRING)) {
640 score[2] += premium;
641 } else if (false) {
642 score[2] += premium-1; // table: 0xc79420;
643 } else {
644 score[2] -= premium*premium;
646 score[3] = 0;
647 score[3] += lqtL_testudata(L, 1, "QMenu*")?premium:-premium*premium;
648 if (lqtL_testudata(L, 2, "QIcon*")) {
649 score[3] += premium;
650 } else if (false) {
651 score[3] += premium-1; // table: 0xc461b0;
652 } else {
653 score[3] -= premium*premium;
655 if ((lua_type(L, 3)==LUA_TSTRING)) {
656 score[3] += premium;
657 } else if (false) {
658 score[3] += premium-1; // table: 0xc47760;
659 } else {
660 score[3] -= premium*premium;
662 int best = 1;
663 for (int i=1;i<=3;i++) {
664 if (score[best] < score[i]) { best = i; }
666 switch (best) {
667 case 1: return __LuaWrapCall__addMenu__OverloadedVersion__1(L); break;
668 case 2: return __LuaWrapCall__addMenu__OverloadedVersion__2(L); break;
669 case 3: return __LuaWrapCall__addMenu__OverloadedVersion__3(L); break;
671 lua_pushstring(L, "no overload of function __LuaWrapCall__addMenu matching arguments");
672 lua_error(L);
673 return 0;
675 int LuaBinder< QMenu >::__LuaWrapCall__setTearOffEnabled (lua_State *L) {
676 QMenu *& __lua__obj = *static_cast<QMenu**>(lqtL_checkudata(L, 1, "QMenu*"));
677 if (__lua__obj==0) {
678 lua_pushstring(L, "trying to reference deleted pointer");
679 lua_error(L);
680 return 0;
682 bool arg1 = (bool)lua_toboolean(L, 2);
683 __lua__obj->QMenu::setTearOffEnabled(arg1);
684 return 0;
686 int LuaBinder< QMenu >::__LuaWrapCall__separatorsCollapsible (lua_State *L) {
687 QMenu *& __lua__obj = *static_cast<QMenu**>(lqtL_checkudata(L, 1, "QMenu*"));
688 if (__lua__obj==0) {
689 lua_pushstring(L, "trying to reference deleted pointer");
690 lua_error(L);
691 return 0;
693 bool ret = __lua__obj->QMenu::separatorsCollapsible();
694 lua_pushboolean(L, ret);
695 return 1;
697 int LuaBinder< QMenu >::__LuaWrapCall__setActiveAction (lua_State *L) {
698 QMenu *& __lua__obj = *static_cast<QMenu**>(lqtL_checkudata(L, 1, "QMenu*"));
699 if (__lua__obj==0) {
700 lua_pushstring(L, "trying to reference deleted pointer");
701 lua_error(L);
702 return 0;
704 QAction * arg1 = *static_cast<QAction**>(lqtL_checkudata(L, 2, "QAction*"));
705 __lua__obj->QMenu::setActiveAction(arg1);
706 return 0;
708 int LuaBinder< QMenu >::__LuaWrapCall__menuAction (lua_State *L) {
709 QMenu *& __lua__obj = *static_cast<QMenu**>(lqtL_checkudata(L, 1, "QMenu*"));
710 if (__lua__obj==0) {
711 lua_pushstring(L, "trying to reference deleted pointer");
712 lua_error(L);
713 return 0;
715 QAction * ret = __lua__obj->QMenu::menuAction();
716 lqtL_pushudata(L, ret, "QAction*");
717 return 1;
719 int LuaBinder< QMenu >::__LuaWrapCall__exec__OverloadedVersion__1 (lua_State *L) {
720 QMenu *& __lua__obj = *static_cast<QMenu**>(lqtL_checkudata(L, 1, "QMenu*"));
721 if (__lua__obj==0) {
722 lua_pushstring(L, "trying to reference deleted pointer");
723 lua_error(L);
724 return 0;
726 QAction * ret = __lua__obj->QMenu::exec();
727 lqtL_pushudata(L, ret, "QAction*");
728 return 1;
730 int LuaBinder< QMenu >::__LuaWrapCall__exec__OverloadedVersion__2 (lua_State *L) {
731 QMenu *& __lua__obj = *static_cast<QMenu**>(lqtL_checkudata(L, 1, "QMenu*"));
732 if (__lua__obj==0) {
733 lua_pushstring(L, "trying to reference deleted pointer");
734 lua_error(L);
735 return 0;
737 const QPoint& arg1 = **static_cast<QPoint**>(lqtL_checkudata(L, 2, "QPoint*"));
738 QAction * arg2 = lqtL_testudata(L, 3, "QAction*")?*static_cast<QAction**>(lqtL_checkudata(L, 3, "QAction*")):static_cast< QAction * >(0);
739 QAction * ret = __lua__obj->QMenu::exec(arg1, arg2);
740 lqtL_pushudata(L, ret, "QAction*");
741 return 1;
743 int LuaBinder< QMenu >::__LuaWrapCall__exec__OverloadedVersion__3 (lua_State *L) {
744 QList<QAction*> arg1 = **static_cast<QList<QAction*>**>(lqtL_checkudata(L, 1, "QList<QAction*>*"));
745 const QPoint& arg2 = **static_cast<QPoint**>(lqtL_checkudata(L, 2, "QPoint*"));
746 QAction * arg3 = lqtL_testudata(L, 3, "QAction*")?*static_cast<QAction**>(lqtL_checkudata(L, 3, "QAction*")):static_cast< QAction * >(0);
747 QAction * ret = QMenu::exec(arg1, arg2, arg3);
748 lqtL_pushudata(L, ret, "QAction*");
749 return 1;
751 int LuaBinder< QMenu >::__LuaWrapCall__exec (lua_State *L) {
752 int score[4];
753 const int premium = 11+lua_gettop(L);
754 score[1] = 0;
755 score[1] += lqtL_testudata(L, 1, "QMenu*")?premium:-premium*premium;
756 score[2] = 0;
757 score[2] += lqtL_testudata(L, 1, "QMenu*")?premium:-premium*premium;
758 if (lqtL_testudata(L, 2, "QPoint*")) {
759 score[2] += premium;
760 } else if (false) {
761 score[2] += premium-1; // table: 0x7a7f10;
762 } else {
763 score[2] -= premium*premium;
765 if (lqtL_testudata(L, 3, "QAction*")) {
766 score[2] += premium;
767 } else if (true) {
768 score[2] += premium-1; // table: 0x981c90;
769 } else {
770 score[2] -= premium*premium;
772 score[3] = 0;
773 if (lqtL_testudata(L, 1, "QList<QAction*>*")) {
774 score[3] += premium;
775 } else if (false) {
776 score[3] += premium-1; // table: 0x677bb0;
777 } else {
778 score[3] -= premium*premium;
780 if (lqtL_testudata(L, 2, "QPoint*")) {
781 score[3] += premium;
782 } else if (false) {
783 score[3] += premium-1; // table: 0xdb6100;
784 } else {
785 score[3] -= premium*premium;
787 if (lqtL_testudata(L, 3, "QAction*")) {
788 score[3] += premium;
789 } else if (true) {
790 score[3] += premium-1; // table: 0xe4d3c0;
791 } else {
792 score[3] -= premium*premium;
794 int best = 1;
795 for (int i=1;i<=3;i++) {
796 if (score[best] < score[i]) { best = i; }
798 switch (best) {
799 case 1: return __LuaWrapCall__exec__OverloadedVersion__1(L); break;
800 case 2: return __LuaWrapCall__exec__OverloadedVersion__2(L); break;
801 case 3: return __LuaWrapCall__exec__OverloadedVersion__3(L); break;
803 lua_pushstring(L, "no overload of function __LuaWrapCall__exec matching arguments");
804 lua_error(L);
805 return 0;
807 int LuaBinder< QMenu >::__LuaWrapCall__setTitle (lua_State *L) {
808 QMenu *& __lua__obj = *static_cast<QMenu**>(lqtL_checkudata(L, 1, "QMenu*"));
809 if (__lua__obj==0) {
810 lua_pushstring(L, "trying to reference deleted pointer");
811 lua_error(L);
812 return 0;
814 const QString& arg1 = QString::fromAscii(lua_tostring(L, 2), lua_objlen(L, 2));
815 __lua__obj->QMenu::setTitle(arg1);
816 return 0;
818 int LuaBinder< QMenu >::__LuaWrapCall__activeAction (lua_State *L) {
819 QMenu *& __lua__obj = *static_cast<QMenu**>(lqtL_checkudata(L, 1, "QMenu*"));
820 if (__lua__obj==0) {
821 lua_pushstring(L, "trying to reference deleted pointer");
822 lua_error(L);
823 return 0;
825 QAction * ret = __lua__obj->QMenu::activeAction();
826 lqtL_pushudata(L, ret, "QAction*");
827 return 1;
829 void LuaBinder< QMenu >::styleChange (QStyle& arg1) {
830 bool absorbed = false;
831 int oldtop = lua_gettop(L);
832 lqtL_pushudata(L, this, "QMenu*");
833 if (lua_getmetatable(L, -1)) {
834 lua_getfield(L, -1, "styleChange");
835 lua_remove(L, -2);
836 } else {
837 lua_pushnil(L);
839 lua_insert(L, -2);
840 lqtL_pushudata(L, &(arg1), "QStyle*");
841 if (lua_isfunction(L, -1-2)) {
842 lua_pcall(L, 1+1, 2, 0);
843 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
844 lua_pop(L, 1);
846 if (!absorbed) {
847 lua_settop(L, oldtop);
848 this->QWidget::styleChange(arg1);
850 lua_settop(L, oldtop);
852 void LuaBinder< QMenu >::focusInEvent (QFocusEvent * arg1) {
853 bool absorbed = false;
854 int oldtop = lua_gettop(L);
855 lqtL_pushudata(L, this, "QMenu*");
856 if (lua_getmetatable(L, -1)) {
857 lua_getfield(L, -1, "focusInEvent");
858 lua_remove(L, -2);
859 } else {
860 lua_pushnil(L);
862 lua_insert(L, -2);
863 lqtL_pushudata(L, arg1, "QFocusEvent*");
864 if (lua_isfunction(L, -1-2)) {
865 lua_pcall(L, 1+1, 2, 0);
866 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
867 lua_pop(L, 1);
869 if (!absorbed) {
870 lua_settop(L, oldtop);
871 this->QWidget::focusInEvent(arg1);
873 lua_settop(L, oldtop);
875 void LuaBinder< QMenu >::keyPressEvent (QKeyEvent * arg1) {
876 bool absorbed = false;
877 int oldtop = lua_gettop(L);
878 lqtL_pushudata(L, this, "QMenu*");
879 if (lua_getmetatable(L, -1)) {
880 lua_getfield(L, -1, "keyPressEvent");
881 lua_remove(L, -2);
882 } else {
883 lua_pushnil(L);
885 lua_insert(L, -2);
886 lqtL_pushudata(L, arg1, "QKeyEvent*");
887 if (lua_isfunction(L, -1-2)) {
888 lua_pcall(L, 1+1, 2, 0);
889 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
890 lua_pop(L, 1);
892 if (!absorbed) {
893 lua_settop(L, oldtop);
894 this->QMenu::keyPressEvent(arg1);
896 lua_settop(L, oldtop);
898 const QMetaObject * LuaBinder< QMenu >::metaObject () const {
899 bool absorbed = false;
900 int oldtop = lua_gettop(L);
901 lqtL_pushudata(L, this, "QMenu*");
902 if (lua_getmetatable(L, -1)) {
903 lua_getfield(L, -1, "metaObject");
904 lua_remove(L, -2);
905 } else {
906 lua_pushnil(L);
908 lua_insert(L, -2);
909 if (lua_isfunction(L, -0-2)) {
910 lua_pcall(L, 0+1, 2, 0);
911 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
912 lua_pop(L, 1);
914 if (!absorbed) {
915 lua_settop(L, oldtop);
916 return this->QMenu::metaObject();
918 const QMetaObject * ret = *static_cast<QMetaObject**>(lqtL_checkudata(L, -1, "QMetaObject*"));
919 lua_settop(L, oldtop);
920 return ret;
922 int LuaBinder< QMenu >::devType () const {
923 bool absorbed = false;
924 int oldtop = lua_gettop(L);
925 lqtL_pushudata(L, this, "QMenu*");
926 if (lua_getmetatable(L, -1)) {
927 lua_getfield(L, -1, "devType");
928 lua_remove(L, -2);
929 } else {
930 lua_pushnil(L);
932 lua_insert(L, -2);
933 if (lua_isfunction(L, -0-2)) {
934 lua_pcall(L, 0+1, 2, 0);
935 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
936 lua_pop(L, 1);
938 if (!absorbed) {
939 lua_settop(L, oldtop);
940 return this->QWidget::devType();
942 int ret = lua_tointeger(L, -1);
943 lua_settop(L, oldtop);
944 return ret;
946 void LuaBinder< QMenu >::setVisible (bool arg1) {
947 bool absorbed = false;
948 int oldtop = lua_gettop(L);
949 lqtL_pushudata(L, this, "QMenu*");
950 if (lua_getmetatable(L, -1)) {
951 lua_getfield(L, -1, "setVisible");
952 lua_remove(L, -2);
953 } else {
954 lua_pushnil(L);
956 lua_insert(L, -2);
957 lua_pushboolean(L, arg1);
958 if (lua_isfunction(L, -1-2)) {
959 lua_pcall(L, 1+1, 2, 0);
960 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
961 lua_pop(L, 1);
963 if (!absorbed) {
964 lua_settop(L, oldtop);
965 this->QWidget::setVisible(arg1);
967 lua_settop(L, oldtop);
969 bool LuaBinder< QMenu >::focusNextPrevChild (bool arg1) {
970 bool absorbed = false;
971 int oldtop = lua_gettop(L);
972 lqtL_pushudata(L, this, "QMenu*");
973 if (lua_getmetatable(L, -1)) {
974 lua_getfield(L, -1, "focusNextPrevChild");
975 lua_remove(L, -2);
976 } else {
977 lua_pushnil(L);
979 lua_insert(L, -2);
980 lua_pushboolean(L, arg1);
981 if (lua_isfunction(L, -1-2)) {
982 lua_pcall(L, 1+1, 2, 0);
983 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
984 lua_pop(L, 1);
986 if (!absorbed) {
987 lua_settop(L, oldtop);
988 return this->QMenu::focusNextPrevChild(arg1);
990 bool ret = (bool)lua_toboolean(L, -1);
991 lua_settop(L, oldtop);
992 return ret;
994 QPaintEngine * LuaBinder< QMenu >::paintEngine () const {
995 bool absorbed = false;
996 int oldtop = lua_gettop(L);
997 lqtL_pushudata(L, this, "QMenu*");
998 if (lua_getmetatable(L, -1)) {
999 lua_getfield(L, -1, "paintEngine");
1000 lua_remove(L, -2);
1001 } else {
1002 lua_pushnil(L);
1004 lua_insert(L, -2);
1005 if (lua_isfunction(L, -0-2)) {
1006 lua_pcall(L, 0+1, 2, 0);
1007 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
1008 lua_pop(L, 1);
1010 if (!absorbed) {
1011 lua_settop(L, oldtop);
1012 return this->QWidget::paintEngine();
1014 QPaintEngine * ret = *static_cast<QPaintEngine**>(lqtL_checkudata(L, -1, "QPaintEngine*"));
1015 lua_settop(L, oldtop);
1016 return ret;
1018 void LuaBinder< QMenu >::dragLeaveEvent (QDragLeaveEvent * arg1) {
1019 bool absorbed = false;
1020 int oldtop = lua_gettop(L);
1021 lqtL_pushudata(L, this, "QMenu*");
1022 if (lua_getmetatable(L, -1)) {
1023 lua_getfield(L, -1, "dragLeaveEvent");
1024 lua_remove(L, -2);
1025 } else {
1026 lua_pushnil(L);
1028 lua_insert(L, -2);
1029 lqtL_pushudata(L, arg1, "QDragLeaveEvent*");
1030 if (lua_isfunction(L, -1-2)) {
1031 lua_pcall(L, 1+1, 2, 0);
1032 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
1033 lua_pop(L, 1);
1035 if (!absorbed) {
1036 lua_settop(L, oldtop);
1037 this->QWidget::dragLeaveEvent(arg1);
1039 lua_settop(L, oldtop);
1041 void LuaBinder< QMenu >::mousePressEvent (QMouseEvent * arg1) {
1042 bool absorbed = false;
1043 int oldtop = lua_gettop(L);
1044 lqtL_pushudata(L, this, "QMenu*");
1045 if (lua_getmetatable(L, -1)) {
1046 lua_getfield(L, -1, "mousePressEvent");
1047 lua_remove(L, -2);
1048 } else {
1049 lua_pushnil(L);
1051 lua_insert(L, -2);
1052 lqtL_pushudata(L, arg1, "QMouseEvent*");
1053 if (lua_isfunction(L, -1-2)) {
1054 lua_pcall(L, 1+1, 2, 0);
1055 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
1056 lua_pop(L, 1);
1058 if (!absorbed) {
1059 lua_settop(L, oldtop);
1060 this->QMenu::mousePressEvent(arg1);
1062 lua_settop(L, oldtop);
1064 QSize LuaBinder< QMenu >::sizeHint () const {
1065 bool absorbed = false;
1066 int oldtop = lua_gettop(L);
1067 lqtL_pushudata(L, this, "QMenu*");
1068 if (lua_getmetatable(L, -1)) {
1069 lua_getfield(L, -1, "sizeHint");
1070 lua_remove(L, -2);
1071 } else {
1072 lua_pushnil(L);
1074 lua_insert(L, -2);
1075 if (lua_isfunction(L, -0-2)) {
1076 lua_pcall(L, 0+1, 2, 0);
1077 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
1078 lua_pop(L, 1);
1080 if (!absorbed) {
1081 lua_settop(L, oldtop);
1082 return this->QMenu::sizeHint();
1084 QSize ret = **static_cast<QSize**>(lqtL_checkudata(L, -1, "QSize*"));
1085 lua_settop(L, oldtop);
1086 return ret;
1088 void LuaBinder< QMenu >::changeEvent (QEvent * arg1) {
1089 bool absorbed = false;
1090 int oldtop = lua_gettop(L);
1091 lqtL_pushudata(L, this, "QMenu*");
1092 if (lua_getmetatable(L, -1)) {
1093 lua_getfield(L, -1, "changeEvent");
1094 lua_remove(L, -2);
1095 } else {
1096 lua_pushnil(L);
1098 lua_insert(L, -2);
1099 lqtL_pushudata(L, arg1, "QEvent*");
1100 if (lua_isfunction(L, -1-2)) {
1101 lua_pcall(L, 1+1, 2, 0);
1102 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
1103 lua_pop(L, 1);
1105 if (!absorbed) {
1106 lua_settop(L, oldtop);
1107 this->QMenu::changeEvent(arg1);
1109 lua_settop(L, oldtop);
1111 void LuaBinder< QMenu >::tabletEvent (QTabletEvent * arg1) {
1112 bool absorbed = false;
1113 int oldtop = lua_gettop(L);
1114 lqtL_pushudata(L, this, "QMenu*");
1115 if (lua_getmetatable(L, -1)) {
1116 lua_getfield(L, -1, "tabletEvent");
1117 lua_remove(L, -2);
1118 } else {
1119 lua_pushnil(L);
1121 lua_insert(L, -2);
1122 lqtL_pushudata(L, arg1, "QTabletEvent*");
1123 if (lua_isfunction(L, -1-2)) {
1124 lua_pcall(L, 1+1, 2, 0);
1125 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
1126 lua_pop(L, 1);
1128 if (!absorbed) {
1129 lua_settop(L, oldtop);
1130 this->QWidget::tabletEvent(arg1);
1132 lua_settop(L, oldtop);
1134 void LuaBinder< QMenu >::customEvent (QEvent * arg1) {
1135 bool absorbed = false;
1136 int oldtop = lua_gettop(L);
1137 lqtL_pushudata(L, this, "QMenu*");
1138 if (lua_getmetatable(L, -1)) {
1139 lua_getfield(L, -1, "customEvent");
1140 lua_remove(L, -2);
1141 } else {
1142 lua_pushnil(L);
1144 lua_insert(L, -2);
1145 lqtL_pushudata(L, arg1, "QEvent*");
1146 if (lua_isfunction(L, -1-2)) {
1147 lua_pcall(L, 1+1, 2, 0);
1148 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
1149 lua_pop(L, 1);
1151 if (!absorbed) {
1152 lua_settop(L, oldtop);
1153 this->QObject::customEvent(arg1);
1155 lua_settop(L, oldtop);
1157 void LuaBinder< QMenu >::dropEvent (QDropEvent * arg1) {
1158 bool absorbed = false;
1159 int oldtop = lua_gettop(L);
1160 lqtL_pushudata(L, this, "QMenu*");
1161 if (lua_getmetatable(L, -1)) {
1162 lua_getfield(L, -1, "dropEvent");
1163 lua_remove(L, -2);
1164 } else {
1165 lua_pushnil(L);
1167 lua_insert(L, -2);
1168 lqtL_pushudata(L, arg1, "QDropEvent*");
1169 if (lua_isfunction(L, -1-2)) {
1170 lua_pcall(L, 1+1, 2, 0);
1171 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
1172 lua_pop(L, 1);
1174 if (!absorbed) {
1175 lua_settop(L, oldtop);
1176 this->QWidget::dropEvent(arg1);
1178 lua_settop(L, oldtop);
1180 QSize LuaBinder< QMenu >::minimumSizeHint () const {
1181 bool absorbed = false;
1182 int oldtop = lua_gettop(L);
1183 lqtL_pushudata(L, this, "QMenu*");
1184 if (lua_getmetatable(L, -1)) {
1185 lua_getfield(L, -1, "minimumSizeHint");
1186 lua_remove(L, -2);
1187 } else {
1188 lua_pushnil(L);
1190 lua_insert(L, -2);
1191 if (lua_isfunction(L, -0-2)) {
1192 lua_pcall(L, 0+1, 2, 0);
1193 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
1194 lua_pop(L, 1);
1196 if (!absorbed) {
1197 lua_settop(L, oldtop);
1198 return this->QWidget::minimumSizeHint();
1200 QSize ret = **static_cast<QSize**>(lqtL_checkudata(L, -1, "QSize*"));
1201 lua_settop(L, oldtop);
1202 return ret;
1204 void LuaBinder< QMenu >::windowActivationChange (bool arg1) {
1205 bool absorbed = false;
1206 int oldtop = lua_gettop(L);
1207 lqtL_pushudata(L, this, "QMenu*");
1208 if (lua_getmetatable(L, -1)) {
1209 lua_getfield(L, -1, "windowActivationChange");
1210 lua_remove(L, -2);
1211 } else {
1212 lua_pushnil(L);
1214 lua_insert(L, -2);
1215 lua_pushboolean(L, arg1);
1216 if (lua_isfunction(L, -1-2)) {
1217 lua_pcall(L, 1+1, 2, 0);
1218 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
1219 lua_pop(L, 1);
1221 if (!absorbed) {
1222 lua_settop(L, oldtop);
1223 this->QWidget::windowActivationChange(arg1);
1225 lua_settop(L, oldtop);
1227 void LuaBinder< QMenu >::keyReleaseEvent (QKeyEvent * arg1) {
1228 bool absorbed = false;
1229 int oldtop = lua_gettop(L);
1230 lqtL_pushudata(L, this, "QMenu*");
1231 if (lua_getmetatable(L, -1)) {
1232 lua_getfield(L, -1, "keyReleaseEvent");
1233 lua_remove(L, -2);
1234 } else {
1235 lua_pushnil(L);
1237 lua_insert(L, -2);
1238 lqtL_pushudata(L, arg1, "QKeyEvent*");
1239 if (lua_isfunction(L, -1-2)) {
1240 lua_pcall(L, 1+1, 2, 0);
1241 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
1242 lua_pop(L, 1);
1244 if (!absorbed) {
1245 lua_settop(L, oldtop);
1246 this->QWidget::keyReleaseEvent(arg1);
1248 lua_settop(L, oldtop);
1250 void LuaBinder< QMenu >::showEvent (QShowEvent * arg1) {
1251 bool absorbed = false;
1252 int oldtop = lua_gettop(L);
1253 lqtL_pushudata(L, this, "QMenu*");
1254 if (lua_getmetatable(L, -1)) {
1255 lua_getfield(L, -1, "showEvent");
1256 lua_remove(L, -2);
1257 } else {
1258 lua_pushnil(L);
1260 lua_insert(L, -2);
1261 lqtL_pushudata(L, arg1, "QShowEvent*");
1262 if (lua_isfunction(L, -1-2)) {
1263 lua_pcall(L, 1+1, 2, 0);
1264 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
1265 lua_pop(L, 1);
1267 if (!absorbed) {
1268 lua_settop(L, oldtop);
1269 this->QWidget::showEvent(arg1);
1271 lua_settop(L, oldtop);
1273 void LuaBinder< QMenu >::mouseDoubleClickEvent (QMouseEvent * arg1) {
1274 bool absorbed = false;
1275 int oldtop = lua_gettop(L);
1276 lqtL_pushudata(L, this, "QMenu*");
1277 if (lua_getmetatable(L, -1)) {
1278 lua_getfield(L, -1, "mouseDoubleClickEvent");
1279 lua_remove(L, -2);
1280 } else {
1281 lua_pushnil(L);
1283 lua_insert(L, -2);
1284 lqtL_pushudata(L, arg1, "QMouseEvent*");
1285 if (lua_isfunction(L, -1-2)) {
1286 lua_pcall(L, 1+1, 2, 0);
1287 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
1288 lua_pop(L, 1);
1290 if (!absorbed) {
1291 lua_settop(L, oldtop);
1292 this->QWidget::mouseDoubleClickEvent(arg1);
1294 lua_settop(L, oldtop);
1296 void LuaBinder< QMenu >::paintEvent (QPaintEvent * arg1) {
1297 bool absorbed = false;
1298 int oldtop = lua_gettop(L);
1299 lqtL_pushudata(L, this, "QMenu*");
1300 if (lua_getmetatable(L, -1)) {
1301 lua_getfield(L, -1, "paintEvent");
1302 lua_remove(L, -2);
1303 } else {
1304 lua_pushnil(L);
1306 lua_insert(L, -2);
1307 lqtL_pushudata(L, arg1, "QPaintEvent*");
1308 if (lua_isfunction(L, -1-2)) {
1309 lua_pcall(L, 1+1, 2, 0);
1310 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
1311 lua_pop(L, 1);
1313 if (!absorbed) {
1314 lua_settop(L, oldtop);
1315 this->QMenu::paintEvent(arg1);
1317 lua_settop(L, oldtop);
1319 void LuaBinder< QMenu >::dragMoveEvent (QDragMoveEvent * arg1) {
1320 bool absorbed = false;
1321 int oldtop = lua_gettop(L);
1322 lqtL_pushudata(L, this, "QMenu*");
1323 if (lua_getmetatable(L, -1)) {
1324 lua_getfield(L, -1, "dragMoveEvent");
1325 lua_remove(L, -2);
1326 } else {
1327 lua_pushnil(L);
1329 lua_insert(L, -2);
1330 lqtL_pushudata(L, arg1, "QDragMoveEvent*");
1331 if (lua_isfunction(L, -1-2)) {
1332 lua_pcall(L, 1+1, 2, 0);
1333 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
1334 lua_pop(L, 1);
1336 if (!absorbed) {
1337 lua_settop(L, oldtop);
1338 this->QWidget::dragMoveEvent(arg1);
1340 lua_settop(L, oldtop);
1342 void LuaBinder< QMenu >::contextMenuEvent (QContextMenuEvent * arg1) {
1343 bool absorbed = false;
1344 int oldtop = lua_gettop(L);
1345 lqtL_pushudata(L, this, "QMenu*");
1346 if (lua_getmetatable(L, -1)) {
1347 lua_getfield(L, -1, "contextMenuEvent");
1348 lua_remove(L, -2);
1349 } else {
1350 lua_pushnil(L);
1352 lua_insert(L, -2);
1353 lqtL_pushudata(L, arg1, "QContextMenuEvent*");
1354 if (lua_isfunction(L, -1-2)) {
1355 lua_pcall(L, 1+1, 2, 0);
1356 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
1357 lua_pop(L, 1);
1359 if (!absorbed) {
1360 lua_settop(L, oldtop);
1361 this->QWidget::contextMenuEvent(arg1);
1363 lua_settop(L, oldtop);
1365 void LuaBinder< QMenu >::enabledChange (bool arg1) {
1366 bool absorbed = false;
1367 int oldtop = lua_gettop(L);
1368 lqtL_pushudata(L, this, "QMenu*");
1369 if (lua_getmetatable(L, -1)) {
1370 lua_getfield(L, -1, "enabledChange");
1371 lua_remove(L, -2);
1372 } else {
1373 lua_pushnil(L);
1375 lua_insert(L, -2);
1376 lua_pushboolean(L, arg1);
1377 if (lua_isfunction(L, -1-2)) {
1378 lua_pcall(L, 1+1, 2, 0);
1379 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
1380 lua_pop(L, 1);
1382 if (!absorbed) {
1383 lua_settop(L, oldtop);
1384 this->QWidget::enabledChange(arg1);
1386 lua_settop(L, oldtop);
1388 void LuaBinder< QMenu >::resizeEvent (QResizeEvent * arg1) {
1389 bool absorbed = false;
1390 int oldtop = lua_gettop(L);
1391 lqtL_pushudata(L, this, "QMenu*");
1392 if (lua_getmetatable(L, -1)) {
1393 lua_getfield(L, -1, "resizeEvent");
1394 lua_remove(L, -2);
1395 } else {
1396 lua_pushnil(L);
1398 lua_insert(L, -2);
1399 lqtL_pushudata(L, arg1, "QResizeEvent*");
1400 if (lua_isfunction(L, -1-2)) {
1401 lua_pcall(L, 1+1, 2, 0);
1402 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
1403 lua_pop(L, 1);
1405 if (!absorbed) {
1406 lua_settop(L, oldtop);
1407 this->QWidget::resizeEvent(arg1);
1409 lua_settop(L, oldtop);
1411 int LuaBinder< QMenu >::heightForWidth (int arg1) const {
1412 bool absorbed = false;
1413 int oldtop = lua_gettop(L);
1414 lqtL_pushudata(L, this, "QMenu*");
1415 if (lua_getmetatable(L, -1)) {
1416 lua_getfield(L, -1, "heightForWidth");
1417 lua_remove(L, -2);
1418 } else {
1419 lua_pushnil(L);
1421 lua_insert(L, -2);
1422 lua_pushinteger(L, arg1);
1423 if (lua_isfunction(L, -1-2)) {
1424 lua_pcall(L, 1+1, 2, 0);
1425 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
1426 lua_pop(L, 1);
1428 if (!absorbed) {
1429 lua_settop(L, oldtop);
1430 return this->QWidget::heightForWidth(arg1);
1432 int ret = lua_tointeger(L, -1);
1433 lua_settop(L, oldtop);
1434 return ret;
1436 void LuaBinder< QMenu >::fontChange (const QFont& arg1) {
1437 bool absorbed = false;
1438 int oldtop = lua_gettop(L);
1439 lqtL_pushudata(L, this, "QMenu*");
1440 if (lua_getmetatable(L, -1)) {
1441 lua_getfield(L, -1, "fontChange");
1442 lua_remove(L, -2);
1443 } else {
1444 lua_pushnil(L);
1446 lua_insert(L, -2);
1447 lqtL_pushudata(L, &(arg1), "QFont*");
1448 if (lua_isfunction(L, -1-2)) {
1449 lua_pcall(L, 1+1, 2, 0);
1450 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
1451 lua_pop(L, 1);
1453 if (!absorbed) {
1454 lua_settop(L, oldtop);
1455 this->QWidget::fontChange(arg1);
1457 lua_settop(L, oldtop);
1459 void LuaBinder< QMenu >::mouseReleaseEvent (QMouseEvent * arg1) {
1460 bool absorbed = false;
1461 int oldtop = lua_gettop(L);
1462 lqtL_pushudata(L, this, "QMenu*");
1463 if (lua_getmetatable(L, -1)) {
1464 lua_getfield(L, -1, "mouseReleaseEvent");
1465 lua_remove(L, -2);
1466 } else {
1467 lua_pushnil(L);
1469 lua_insert(L, -2);
1470 lqtL_pushudata(L, arg1, "QMouseEvent*");
1471 if (lua_isfunction(L, -1-2)) {
1472 lua_pcall(L, 1+1, 2, 0);
1473 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
1474 lua_pop(L, 1);
1476 if (!absorbed) {
1477 lua_settop(L, oldtop);
1478 this->QMenu::mouseReleaseEvent(arg1);
1480 lua_settop(L, oldtop);
1482 void LuaBinder< QMenu >::timerEvent (QTimerEvent * arg1) {
1483 bool absorbed = false;
1484 int oldtop = lua_gettop(L);
1485 lqtL_pushudata(L, this, "QMenu*");
1486 if (lua_getmetatable(L, -1)) {
1487 lua_getfield(L, -1, "timerEvent");
1488 lua_remove(L, -2);
1489 } else {
1490 lua_pushnil(L);
1492 lua_insert(L, -2);
1493 lqtL_pushudata(L, arg1, "QTimerEvent*");
1494 if (lua_isfunction(L, -1-2)) {
1495 lua_pcall(L, 1+1, 2, 0);
1496 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
1497 lua_pop(L, 1);
1499 if (!absorbed) {
1500 lua_settop(L, oldtop);
1501 this->QMenu::timerEvent(arg1);
1503 lua_settop(L, oldtop);
1505 void LuaBinder< QMenu >::mouseMoveEvent (QMouseEvent * arg1) {
1506 bool absorbed = false;
1507 int oldtop = lua_gettop(L);
1508 lqtL_pushudata(L, this, "QMenu*");
1509 if (lua_getmetatable(L, -1)) {
1510 lua_getfield(L, -1, "mouseMoveEvent");
1511 lua_remove(L, -2);
1512 } else {
1513 lua_pushnil(L);
1515 lua_insert(L, -2);
1516 lqtL_pushudata(L, arg1, "QMouseEvent*");
1517 if (lua_isfunction(L, -1-2)) {
1518 lua_pcall(L, 1+1, 2, 0);
1519 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
1520 lua_pop(L, 1);
1522 if (!absorbed) {
1523 lua_settop(L, oldtop);
1524 this->QMenu::mouseMoveEvent(arg1);
1526 lua_settop(L, oldtop);
1528 void LuaBinder< QMenu >::disconnectNotify (const char * arg1) {
1529 bool absorbed = false;
1530 int oldtop = lua_gettop(L);
1531 lqtL_pushudata(L, this, "QMenu*");
1532 if (lua_getmetatable(L, -1)) {
1533 lua_getfield(L, -1, "disconnectNotify");
1534 lua_remove(L, -2);
1535 } else {
1536 lua_pushnil(L);
1538 lua_insert(L, -2);
1539 lua_pushstring(L, arg1);
1540 if (lua_isfunction(L, -1-2)) {
1541 lua_pcall(L, 1+1, 2, 0);
1542 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
1543 lua_pop(L, 1);
1545 if (!absorbed) {
1546 lua_settop(L, oldtop);
1547 this->QObject::disconnectNotify(arg1);
1549 lua_settop(L, oldtop);
1551 void LuaBinder< QMenu >::childEvent (QChildEvent * arg1) {
1552 bool absorbed = false;
1553 int oldtop = lua_gettop(L);
1554 lqtL_pushudata(L, this, "QMenu*");
1555 if (lua_getmetatable(L, -1)) {
1556 lua_getfield(L, -1, "childEvent");
1557 lua_remove(L, -2);
1558 } else {
1559 lua_pushnil(L);
1561 lua_insert(L, -2);
1562 lqtL_pushudata(L, arg1, "QChildEvent*");
1563 if (lua_isfunction(L, -1-2)) {
1564 lua_pcall(L, 1+1, 2, 0);
1565 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
1566 lua_pop(L, 1);
1568 if (!absorbed) {
1569 lua_settop(L, oldtop);
1570 this->QObject::childEvent(arg1);
1572 lua_settop(L, oldtop);
1574 void LuaBinder< QMenu >::focusOutEvent (QFocusEvent * arg1) {
1575 bool absorbed = false;
1576 int oldtop = lua_gettop(L);
1577 lqtL_pushudata(L, this, "QMenu*");
1578 if (lua_getmetatable(L, -1)) {
1579 lua_getfield(L, -1, "focusOutEvent");
1580 lua_remove(L, -2);
1581 } else {
1582 lua_pushnil(L);
1584 lua_insert(L, -2);
1585 lqtL_pushudata(L, arg1, "QFocusEvent*");
1586 if (lua_isfunction(L, -1-2)) {
1587 lua_pcall(L, 1+1, 2, 0);
1588 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
1589 lua_pop(L, 1);
1591 if (!absorbed) {
1592 lua_settop(L, oldtop);
1593 this->QWidget::focusOutEvent(arg1);
1595 lua_settop(L, oldtop);
1597 int LuaBinder< QMenu >::metric (QPaintDevice::PaintDeviceMetric arg1) const {
1598 bool absorbed = false;
1599 int oldtop = lua_gettop(L);
1600 lqtL_pushudata(L, this, "QMenu*");
1601 if (lua_getmetatable(L, -1)) {
1602 lua_getfield(L, -1, "metric");
1603 lua_remove(L, -2);
1604 } else {
1605 lua_pushnil(L);
1607 lua_insert(L, -2);
1608 lqtL_pushenum(L, arg1, "QPaintDevice::PaintDeviceMetric");
1609 if (lua_isfunction(L, -1-2)) {
1610 lua_pcall(L, 1+1, 2, 0);
1611 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
1612 lua_pop(L, 1);
1614 if (!absorbed) {
1615 lua_settop(L, oldtop);
1616 return this->QWidget::metric(arg1);
1618 int ret = lua_tointeger(L, -1);
1619 lua_settop(L, oldtop);
1620 return ret;
1622 void LuaBinder< QMenu >::connectNotify (const char * arg1) {
1623 bool absorbed = false;
1624 int oldtop = lua_gettop(L);
1625 lqtL_pushudata(L, this, "QMenu*");
1626 if (lua_getmetatable(L, -1)) {
1627 lua_getfield(L, -1, "connectNotify");
1628 lua_remove(L, -2);
1629 } else {
1630 lua_pushnil(L);
1632 lua_insert(L, -2);
1633 lua_pushstring(L, arg1);
1634 if (lua_isfunction(L, -1-2)) {
1635 lua_pcall(L, 1+1, 2, 0);
1636 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
1637 lua_pop(L, 1);
1639 if (!absorbed) {
1640 lua_settop(L, oldtop);
1641 this->QObject::connectNotify(arg1);
1643 lua_settop(L, oldtop);
1645 bool LuaBinder< QMenu >::eventFilter (QObject * arg1, QEvent * arg2) {
1646 bool absorbed = false;
1647 int oldtop = lua_gettop(L);
1648 lqtL_pushudata(L, this, "QMenu*");
1649 if (lua_getmetatable(L, -1)) {
1650 lua_getfield(L, -1, "eventFilter");
1651 lua_remove(L, -2);
1652 } else {
1653 lua_pushnil(L);
1655 lua_insert(L, -2);
1656 lqtL_pushudata(L, arg1, "QObject*");
1657 lqtL_pushudata(L, arg2, "QEvent*");
1658 if (lua_isfunction(L, -2-2)) {
1659 lua_pcall(L, 2+1, 2, 0);
1660 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
1661 lua_pop(L, 1);
1663 if (!absorbed) {
1664 lua_settop(L, oldtop);
1665 return this->QObject::eventFilter(arg1, arg2);
1667 bool ret = (bool)lua_toboolean(L, -1);
1668 lua_settop(L, oldtop);
1669 return ret;
1671 void LuaBinder< QMenu >::inputMethodEvent (QInputMethodEvent * arg1) {
1672 bool absorbed = false;
1673 int oldtop = lua_gettop(L);
1674 lqtL_pushudata(L, this, "QMenu*");
1675 if (lua_getmetatable(L, -1)) {
1676 lua_getfield(L, -1, "inputMethodEvent");
1677 lua_remove(L, -2);
1678 } else {
1679 lua_pushnil(L);
1681 lua_insert(L, -2);
1682 lqtL_pushudata(L, arg1, "QInputMethodEvent*");
1683 if (lua_isfunction(L, -1-2)) {
1684 lua_pcall(L, 1+1, 2, 0);
1685 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
1686 lua_pop(L, 1);
1688 if (!absorbed) {
1689 lua_settop(L, oldtop);
1690 this->QWidget::inputMethodEvent(arg1);
1692 lua_settop(L, oldtop);
1694 void LuaBinder< QMenu >::wheelEvent (QWheelEvent * arg1) {
1695 bool absorbed = false;
1696 int oldtop = lua_gettop(L);
1697 lqtL_pushudata(L, this, "QMenu*");
1698 if (lua_getmetatable(L, -1)) {
1699 lua_getfield(L, -1, "wheelEvent");
1700 lua_remove(L, -2);
1701 } else {
1702 lua_pushnil(L);
1704 lua_insert(L, -2);
1705 lqtL_pushudata(L, arg1, "QWheelEvent*");
1706 if (lua_isfunction(L, -1-2)) {
1707 lua_pcall(L, 1+1, 2, 0);
1708 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
1709 lua_pop(L, 1);
1711 if (!absorbed) {
1712 lua_settop(L, oldtop);
1713 this->QMenu::wheelEvent(arg1);
1715 lua_settop(L, oldtop);
1717 void LuaBinder< QMenu >::actionEvent (QActionEvent * arg1) {
1718 bool absorbed = false;
1719 int oldtop = lua_gettop(L);
1720 lqtL_pushudata(L, this, "QMenu*");
1721 if (lua_getmetatable(L, -1)) {
1722 lua_getfield(L, -1, "actionEvent");
1723 lua_remove(L, -2);
1724 } else {
1725 lua_pushnil(L);
1727 lua_insert(L, -2);
1728 lqtL_pushudata(L, arg1, "QActionEvent*");
1729 if (lua_isfunction(L, -1-2)) {
1730 lua_pcall(L, 1+1, 2, 0);
1731 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
1732 lua_pop(L, 1);
1734 if (!absorbed) {
1735 lua_settop(L, oldtop);
1736 this->QMenu::actionEvent(arg1);
1738 lua_settop(L, oldtop);
1740 void LuaBinder< QMenu >::paletteChange (const QPalette& arg1) {
1741 bool absorbed = false;
1742 int oldtop = lua_gettop(L);
1743 lqtL_pushudata(L, this, "QMenu*");
1744 if (lua_getmetatable(L, -1)) {
1745 lua_getfield(L, -1, "paletteChange");
1746 lua_remove(L, -2);
1747 } else {
1748 lua_pushnil(L);
1750 lua_insert(L, -2);
1751 lqtL_pushudata(L, &(arg1), "QPalette*");
1752 if (lua_isfunction(L, -1-2)) {
1753 lua_pcall(L, 1+1, 2, 0);
1754 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
1755 lua_pop(L, 1);
1757 if (!absorbed) {
1758 lua_settop(L, oldtop);
1759 this->QWidget::paletteChange(arg1);
1761 lua_settop(L, oldtop);
1763 void LuaBinder< QMenu >::languageChange () {
1764 bool absorbed = false;
1765 int oldtop = lua_gettop(L);
1766 lqtL_pushudata(L, this, "QMenu*");
1767 if (lua_getmetatable(L, -1)) {
1768 lua_getfield(L, -1, "languageChange");
1769 lua_remove(L, -2);
1770 } else {
1771 lua_pushnil(L);
1773 lua_insert(L, -2);
1774 if (lua_isfunction(L, -0-2)) {
1775 lua_pcall(L, 0+1, 2, 0);
1776 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
1777 lua_pop(L, 1);
1779 if (!absorbed) {
1780 lua_settop(L, oldtop);
1781 this->QWidget::languageChange();
1783 lua_settop(L, oldtop);
1785 bool LuaBinder< QMenu >::event (QEvent * arg1) {
1786 bool absorbed = false;
1787 int oldtop = lua_gettop(L);
1788 lqtL_pushudata(L, this, "QMenu*");
1789 if (lua_getmetatable(L, -1)) {
1790 lua_getfield(L, -1, "event");
1791 lua_remove(L, -2);
1792 } else {
1793 lua_pushnil(L);
1795 lua_insert(L, -2);
1796 lqtL_pushudata(L, arg1, "QEvent*");
1797 if (lua_isfunction(L, -1-2)) {
1798 lua_pcall(L, 1+1, 2, 0);
1799 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
1800 lua_pop(L, 1);
1802 if (!absorbed) {
1803 lua_settop(L, oldtop);
1804 return this->QMenu::event(arg1);
1806 bool ret = (bool)lua_toboolean(L, -1);
1807 lua_settop(L, oldtop);
1808 return ret;
1810 void LuaBinder< QMenu >::hideEvent (QHideEvent * arg1) {
1811 bool absorbed = false;
1812 int oldtop = lua_gettop(L);
1813 lqtL_pushudata(L, this, "QMenu*");
1814 if (lua_getmetatable(L, -1)) {
1815 lua_getfield(L, -1, "hideEvent");
1816 lua_remove(L, -2);
1817 } else {
1818 lua_pushnil(L);
1820 lua_insert(L, -2);
1821 lqtL_pushudata(L, arg1, "QHideEvent*");
1822 if (lua_isfunction(L, -1-2)) {
1823 lua_pcall(L, 1+1, 2, 0);
1824 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
1825 lua_pop(L, 1);
1827 if (!absorbed) {
1828 lua_settop(L, oldtop);
1829 this->QMenu::hideEvent(arg1);
1831 lua_settop(L, oldtop);
1833 void LuaBinder< QMenu >::dragEnterEvent (QDragEnterEvent * arg1) {
1834 bool absorbed = false;
1835 int oldtop = lua_gettop(L);
1836 lqtL_pushudata(L, this, "QMenu*");
1837 if (lua_getmetatable(L, -1)) {
1838 lua_getfield(L, -1, "dragEnterEvent");
1839 lua_remove(L, -2);
1840 } else {
1841 lua_pushnil(L);
1843 lua_insert(L, -2);
1844 lqtL_pushudata(L, arg1, "QDragEnterEvent*");
1845 if (lua_isfunction(L, -1-2)) {
1846 lua_pcall(L, 1+1, 2, 0);
1847 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
1848 lua_pop(L, 1);
1850 if (!absorbed) {
1851 lua_settop(L, oldtop);
1852 this->QWidget::dragEnterEvent(arg1);
1854 lua_settop(L, oldtop);
1856 void LuaBinder< QMenu >::moveEvent (QMoveEvent * arg1) {
1857 bool absorbed = false;
1858 int oldtop = lua_gettop(L);
1859 lqtL_pushudata(L, this, "QMenu*");
1860 if (lua_getmetatable(L, -1)) {
1861 lua_getfield(L, -1, "moveEvent");
1862 lua_remove(L, -2);
1863 } else {
1864 lua_pushnil(L);
1866 lua_insert(L, -2);
1867 lqtL_pushudata(L, arg1, "QMoveEvent*");
1868 if (lua_isfunction(L, -1-2)) {
1869 lua_pcall(L, 1+1, 2, 0);
1870 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
1871 lua_pop(L, 1);
1873 if (!absorbed) {
1874 lua_settop(L, oldtop);
1875 this->QWidget::moveEvent(arg1);
1877 lua_settop(L, oldtop);
1879 void LuaBinder< QMenu >::closeEvent (QCloseEvent * arg1) {
1880 bool absorbed = false;
1881 int oldtop = lua_gettop(L);
1882 lqtL_pushudata(L, this, "QMenu*");
1883 if (lua_getmetatable(L, -1)) {
1884 lua_getfield(L, -1, "closeEvent");
1885 lua_remove(L, -2);
1886 } else {
1887 lua_pushnil(L);
1889 lua_insert(L, -2);
1890 lqtL_pushudata(L, arg1, "QCloseEvent*");
1891 if (lua_isfunction(L, -1-2)) {
1892 lua_pcall(L, 1+1, 2, 0);
1893 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
1894 lua_pop(L, 1);
1896 if (!absorbed) {
1897 lua_settop(L, oldtop);
1898 this->QWidget::closeEvent(arg1);
1900 lua_settop(L, oldtop);
1902 void LuaBinder< QMenu >::leaveEvent (QEvent * arg1) {
1903 bool absorbed = false;
1904 int oldtop = lua_gettop(L);
1905 lqtL_pushudata(L, this, "QMenu*");
1906 if (lua_getmetatable(L, -1)) {
1907 lua_getfield(L, -1, "leaveEvent");
1908 lua_remove(L, -2);
1909 } else {
1910 lua_pushnil(L);
1912 lua_insert(L, -2);
1913 lqtL_pushudata(L, arg1, "QEvent*");
1914 if (lua_isfunction(L, -1-2)) {
1915 lua_pcall(L, 1+1, 2, 0);
1916 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
1917 lua_pop(L, 1);
1919 if (!absorbed) {
1920 lua_settop(L, oldtop);
1921 this->QMenu::leaveEvent(arg1);
1923 lua_settop(L, oldtop);
1925 QVariant LuaBinder< QMenu >::inputMethodQuery (Qt::InputMethodQuery arg1) const {
1926 bool absorbed = false;
1927 int oldtop = lua_gettop(L);
1928 lqtL_pushudata(L, this, "QMenu*");
1929 if (lua_getmetatable(L, -1)) {
1930 lua_getfield(L, -1, "inputMethodQuery");
1931 lua_remove(L, -2);
1932 } else {
1933 lua_pushnil(L);
1935 lua_insert(L, -2);
1936 lqtL_pushenum(L, arg1, "Qt::InputMethodQuery");
1937 if (lua_isfunction(L, -1-2)) {
1938 lua_pcall(L, 1+1, 2, 0);
1939 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
1940 lua_pop(L, 1);
1942 if (!absorbed) {
1943 lua_settop(L, oldtop);
1944 return this->QWidget::inputMethodQuery(arg1);
1946 QVariant ret = **static_cast<QVariant**>(lqtL_checkudata(L, -1, "QVariant*"));
1947 lua_settop(L, oldtop);
1948 return ret;
1950 void LuaBinder< QMenu >::enterEvent (QEvent * arg1) {
1951 bool absorbed = false;
1952 int oldtop = lua_gettop(L);
1953 lqtL_pushudata(L, this, "QMenu*");
1954 if (lua_getmetatable(L, -1)) {
1955 lua_getfield(L, -1, "enterEvent");
1956 lua_remove(L, -2);
1957 } else {
1958 lua_pushnil(L);
1960 lua_insert(L, -2);
1961 lqtL_pushudata(L, arg1, "QEvent*");
1962 if (lua_isfunction(L, -1-2)) {
1963 lua_pcall(L, 1+1, 2, 0);
1964 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
1965 lua_pop(L, 1);
1967 if (!absorbed) {
1968 lua_settop(L, oldtop);
1969 this->QMenu::enterEvent(arg1);
1971 lua_settop(L, oldtop);
1973 LuaBinder< QMenu >:: ~LuaBinder< QMenu > () {
1974 int oldtop = lua_gettop(L);
1975 lqtL_pushudata(L, this, "QMenu*");
1976 lua_getfield(L, -1, "~QMenu");
1978 if (lua_isfunction(L, -1)) {
1979 lua_insert(L, -2);
1980 lua_pcall(L, 1, 1, 0);
1981 } else {
1983 lua_settop(L, oldtop);
1985 int luaopen_QMenu (lua_State *L) {
1986 if (luaL_newmetatable(L, "QMenu*")) {
1987 lua_pushcfunction(L, LuaBinder< QMenu >::__LuaWrapCall__sizeHint);
1988 lua_setfield(L, -2, "sizeHint");
1989 lua_pushcfunction(L, LuaBinder< QMenu >::__LuaWrapCall__defaultAction);
1990 lua_setfield(L, -2, "defaultAction");
1991 lua_pushcfunction(L, LuaBinder< QMenu >::__LuaWrapCall__isTearOffMenuVisible);
1992 lua_setfield(L, -2, "isTearOffMenuVisible");
1993 lua_pushcfunction(L, LuaBinder< QMenu >::__LuaWrapCall__isTearOffEnabled);
1994 lua_setfield(L, -2, "isTearOffEnabled");
1995 lua_pushcfunction(L, LuaBinder< QMenu >::__LuaWrapCall__setIcon);
1996 lua_setfield(L, -2, "setIcon");
1997 lua_pushcfunction(L, LuaBinder< QMenu >::__LuaWrapCall__trUtf8);
1998 lua_setfield(L, -2, "trUtf8");
1999 lua_pushcfunction(L, LuaBinder< QMenu >::__LuaWrapCall__actionAt);
2000 lua_setfield(L, -2, "actionAt");
2001 lua_pushcfunction(L, LuaBinder< QMenu >::__LuaWrapCall__icon);
2002 lua_setfield(L, -2, "icon");
2003 lua_pushcfunction(L, LuaBinder< QMenu >::__LuaWrapCall__tr);
2004 lua_setfield(L, -2, "tr");
2005 lua_pushcfunction(L, LuaBinder< QMenu >::__LuaWrapCall__isEmpty);
2006 lua_setfield(L, -2, "isEmpty");
2007 lua_pushcfunction(L, LuaBinder< QMenu >::__LuaWrapCall__popup);
2008 lua_setfield(L, -2, "popup");
2009 lua_pushcfunction(L, LuaBinder< QMenu >::__LuaWrapCall__title);
2010 lua_setfield(L, -2, "title");
2011 lua_pushcfunction(L, LuaBinder< QMenu >::__LuaWrapCall__setDefaultAction);
2012 lua_setfield(L, -2, "setDefaultAction");
2013 lua_pushcfunction(L, LuaBinder< QMenu >::__LuaWrapCall__setNoReplayFor);
2014 lua_setfield(L, -2, "setNoReplayFor");
2015 lua_pushcfunction(L, LuaBinder< QMenu >::__LuaWrapCall__setSeparatorsCollapsible);
2016 lua_setfield(L, -2, "setSeparatorsCollapsible");
2017 lua_pushcfunction(L, LuaBinder< QMenu >::__LuaWrapCall__addAction);
2018 lua_setfield(L, -2, "addAction");
2019 lua_pushcfunction(L, LuaBinder< QMenu >::__LuaWrapCall__insertMenu);
2020 lua_setfield(L, -2, "insertMenu");
2021 lua_pushcfunction(L, LuaBinder< QMenu >::__LuaWrapCall__clear);
2022 lua_setfield(L, -2, "clear");
2023 lua_pushcfunction(L, LuaBinder< QMenu >::__LuaWrapCall__delete);
2024 lua_setfield(L, -2, "delete");
2025 lua_pushcfunction(L, LuaBinder< QMenu >::__LuaWrapCall__new);
2026 lua_setfield(L, -2, "new");
2027 lua_pushcfunction(L, LuaBinder< QMenu >::__LuaWrapCall__actionGeometry);
2028 lua_setfield(L, -2, "actionGeometry");
2029 lua_pushcfunction(L, LuaBinder< QMenu >::__LuaWrapCall__addSeparator);
2030 lua_setfield(L, -2, "addSeparator");
2031 lua_pushcfunction(L, LuaBinder< QMenu >::__LuaWrapCall__insertSeparator);
2032 lua_setfield(L, -2, "insertSeparator");
2033 lua_pushcfunction(L, LuaBinder< QMenu >::__LuaWrapCall__metaObject);
2034 lua_setfield(L, -2, "metaObject");
2035 lua_pushcfunction(L, LuaBinder< QMenu >::__LuaWrapCall__hideTearOffMenu);
2036 lua_setfield(L, -2, "hideTearOffMenu");
2037 lua_pushcfunction(L, LuaBinder< QMenu >::__LuaWrapCall__addMenu);
2038 lua_setfield(L, -2, "addMenu");
2039 lua_pushcfunction(L, LuaBinder< QMenu >::__LuaWrapCall__setTearOffEnabled);
2040 lua_setfield(L, -2, "setTearOffEnabled");
2041 lua_pushcfunction(L, LuaBinder< QMenu >::__LuaWrapCall__separatorsCollapsible);
2042 lua_setfield(L, -2, "separatorsCollapsible");
2043 lua_pushcfunction(L, LuaBinder< QMenu >::__LuaWrapCall__setActiveAction);
2044 lua_setfield(L, -2, "setActiveAction");
2045 lua_pushcfunction(L, LuaBinder< QMenu >::__LuaWrapCall__menuAction);
2046 lua_setfield(L, -2, "menuAction");
2047 lua_pushcfunction(L, LuaBinder< QMenu >::__LuaWrapCall__exec);
2048 lua_setfield(L, -2, "exec");
2049 lua_pushcfunction(L, LuaBinder< QMenu >::__LuaWrapCall__setTitle);
2050 lua_setfield(L, -2, "setTitle");
2051 lua_pushcfunction(L, LuaBinder< QMenu >::__LuaWrapCall__activeAction);
2052 lua_setfield(L, -2, "activeAction");
2053 lua_newtable(L);
2054 lua_pushboolean(L, 1);
2055 lua_setfield(L, -2, "QWidget*");
2056 lua_pushboolean(L, 0);
2057 lua_setfield(L, -2, "QObject*");
2058 lua_pushboolean(L, 0);
2059 lua_setfield(L, -2, "QPaintDevice*");
2060 lua_setfield(L, -2, "__base");
2061 lua_pushcfunction(L, lqtL_newindex);
2062 lua_setfield(L, -2, "__newindex");
2063 lua_pushcfunction(L, lqtL_index);
2064 lua_setfield(L, -2, "__index");
2065 lua_pushcfunction(L, lqtL_gc);
2066 lua_setfield(L, -2, "__gc");
2067 lua_pushstring(L, "QMenu");
2068 lua_setfield(L, -2, "__qtype");
2069 lua_setglobal(L, "QMenu");
2070 } else {
2071 lua_pop(L, 1);
2073 return 0;