Add menu
[Leditor.git] / src / lqt_bind_QMenu.cpp
blobf309c55127e326c747099f7dc320610bad77c5d6
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: 0xa0e0a0;
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: 0x9065a0;
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: 0x9dfec0;
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: 0xaaefc0;
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: 0x7f02e0;
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: 0x62a7a0;
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: 0x6cff50;
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: 0x703480;
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: 0x7f3fb0;
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: 0xb6c1d0;
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: 0xb58c90;
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: 0xc0f990;
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: 0x936ae0;
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: 0x6759d0;
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: 0x756cd0;
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: 0xb27c60;
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: 0x929630;
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: 0x9b7eb0;
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: 0x635f10;
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: 0x7f0630;
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: 0xb38e40;
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: 0x87af20;
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: 0x9ff0c0;
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: 0x802520;
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: 0x6feeb0;
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: 0xa714c0;
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: 0x5ef9a0;
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: 0x7f0d00;
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: 0xb41250;
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: 0xb418e0;
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: 0xb454a0;
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: 0xb65760;
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: 0xb28b70;
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: 0xb16070;
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 void LuaBinder< QMenu >::contextMenuEvent (QContextMenuEvent * arg1) {
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, "contextMenuEvent");
904 lua_remove(L, -2);
905 } else {
906 lua_pushnil(L);
908 lua_insert(L, -2);
909 lqtL_pushudata(L, arg1, "QContextMenuEvent*");
910 if (lua_isfunction(L, -1-2)) {
911 lua_pcall(L, 1+1, 2, 0);
912 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
913 lua_pop(L, 1);
915 if (!absorbed) {
916 lua_settop(L, oldtop);
917 this->QWidget::contextMenuEvent(arg1);
919 lua_settop(L, oldtop);
921 int LuaBinder< QMenu >::devType () const {
922 bool absorbed = false;
923 int oldtop = lua_gettop(L);
924 lqtL_pushudata(L, this, "QMenu*");
925 if (lua_getmetatable(L, -1)) {
926 lua_getfield(L, -1, "devType");
927 lua_remove(L, -2);
928 } else {
929 lua_pushnil(L);
931 lua_insert(L, -2);
932 if (lua_isfunction(L, -0-2)) {
933 lua_pcall(L, 0+1, 2, 0);
934 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
935 lua_pop(L, 1);
937 if (!absorbed) {
938 lua_settop(L, oldtop);
939 return this->QWidget::devType();
941 int ret = lua_tointeger(L, -1);
942 lua_settop(L, oldtop);
943 return ret;
945 void LuaBinder< QMenu >::setVisible (bool arg1) {
946 bool absorbed = false;
947 int oldtop = lua_gettop(L);
948 lqtL_pushudata(L, this, "QMenu*");
949 if (lua_getmetatable(L, -1)) {
950 lua_getfield(L, -1, "setVisible");
951 lua_remove(L, -2);
952 } else {
953 lua_pushnil(L);
955 lua_insert(L, -2);
956 lua_pushboolean(L, arg1);
957 if (lua_isfunction(L, -1-2)) {
958 lua_pcall(L, 1+1, 2, 0);
959 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
960 lua_pop(L, 1);
962 if (!absorbed) {
963 lua_settop(L, oldtop);
964 this->QWidget::setVisible(arg1);
966 lua_settop(L, oldtop);
968 bool LuaBinder< QMenu >::focusNextPrevChild (bool arg1) {
969 bool absorbed = false;
970 int oldtop = lua_gettop(L);
971 lqtL_pushudata(L, this, "QMenu*");
972 if (lua_getmetatable(L, -1)) {
973 lua_getfield(L, -1, "focusNextPrevChild");
974 lua_remove(L, -2);
975 } else {
976 lua_pushnil(L);
978 lua_insert(L, -2);
979 lua_pushboolean(L, arg1);
980 if (lua_isfunction(L, -1-2)) {
981 lua_pcall(L, 1+1, 2, 0);
982 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
983 lua_pop(L, 1);
985 if (!absorbed) {
986 lua_settop(L, oldtop);
987 return this->QMenu::focusNextPrevChild(arg1);
989 bool ret = (bool)lua_toboolean(L, -1);
990 lua_settop(L, oldtop);
991 return ret;
993 QPaintEngine * LuaBinder< QMenu >::paintEngine () const {
994 bool absorbed = false;
995 int oldtop = lua_gettop(L);
996 lqtL_pushudata(L, this, "QMenu*");
997 if (lua_getmetatable(L, -1)) {
998 lua_getfield(L, -1, "paintEngine");
999 lua_remove(L, -2);
1000 } else {
1001 lua_pushnil(L);
1003 lua_insert(L, -2);
1004 if (lua_isfunction(L, -0-2)) {
1005 lua_pcall(L, 0+1, 2, 0);
1006 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
1007 lua_pop(L, 1);
1009 if (!absorbed) {
1010 lua_settop(L, oldtop);
1011 return this->QWidget::paintEngine();
1013 QPaintEngine * ret = *static_cast<QPaintEngine**>(lqtL_checkudata(L, -1, "QPaintEngine*"));
1014 lua_settop(L, oldtop);
1015 return ret;
1017 void LuaBinder< QMenu >::dragLeaveEvent (QDragLeaveEvent * arg1) {
1018 bool absorbed = false;
1019 int oldtop = lua_gettop(L);
1020 lqtL_pushudata(L, this, "QMenu*");
1021 if (lua_getmetatable(L, -1)) {
1022 lua_getfield(L, -1, "dragLeaveEvent");
1023 lua_remove(L, -2);
1024 } else {
1025 lua_pushnil(L);
1027 lua_insert(L, -2);
1028 lqtL_pushudata(L, arg1, "QDragLeaveEvent*");
1029 if (lua_isfunction(L, -1-2)) {
1030 lua_pcall(L, 1+1, 2, 0);
1031 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
1032 lua_pop(L, 1);
1034 if (!absorbed) {
1035 lua_settop(L, oldtop);
1036 this->QWidget::dragLeaveEvent(arg1);
1038 lua_settop(L, oldtop);
1040 void LuaBinder< QMenu >::mousePressEvent (QMouseEvent * arg1) {
1041 bool absorbed = false;
1042 int oldtop = lua_gettop(L);
1043 lqtL_pushudata(L, this, "QMenu*");
1044 if (lua_getmetatable(L, -1)) {
1045 lua_getfield(L, -1, "mousePressEvent");
1046 lua_remove(L, -2);
1047 } else {
1048 lua_pushnil(L);
1050 lua_insert(L, -2);
1051 lqtL_pushudata(L, arg1, "QMouseEvent*");
1052 if (lua_isfunction(L, -1-2)) {
1053 lua_pcall(L, 1+1, 2, 0);
1054 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
1055 lua_pop(L, 1);
1057 if (!absorbed) {
1058 lua_settop(L, oldtop);
1059 this->QMenu::mousePressEvent(arg1);
1061 lua_settop(L, oldtop);
1063 QSize LuaBinder< QMenu >::sizeHint () const {
1064 bool absorbed = false;
1065 int oldtop = lua_gettop(L);
1066 lqtL_pushudata(L, this, "QMenu*");
1067 if (lua_getmetatable(L, -1)) {
1068 lua_getfield(L, -1, "sizeHint");
1069 lua_remove(L, -2);
1070 } else {
1071 lua_pushnil(L);
1073 lua_insert(L, -2);
1074 if (lua_isfunction(L, -0-2)) {
1075 lua_pcall(L, 0+1, 2, 0);
1076 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
1077 lua_pop(L, 1);
1079 if (!absorbed) {
1080 lua_settop(L, oldtop);
1081 return this->QMenu::sizeHint();
1083 QSize ret = **static_cast<QSize**>(lqtL_checkudata(L, -1, "QSize*"));
1084 lua_settop(L, oldtop);
1085 return ret;
1087 void LuaBinder< QMenu >::changeEvent (QEvent * arg1) {
1088 bool absorbed = false;
1089 int oldtop = lua_gettop(L);
1090 lqtL_pushudata(L, this, "QMenu*");
1091 if (lua_getmetatable(L, -1)) {
1092 lua_getfield(L, -1, "changeEvent");
1093 lua_remove(L, -2);
1094 } else {
1095 lua_pushnil(L);
1097 lua_insert(L, -2);
1098 lqtL_pushudata(L, arg1, "QEvent*");
1099 if (lua_isfunction(L, -1-2)) {
1100 lua_pcall(L, 1+1, 2, 0);
1101 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
1102 lua_pop(L, 1);
1104 if (!absorbed) {
1105 lua_settop(L, oldtop);
1106 this->QMenu::changeEvent(arg1);
1108 lua_settop(L, oldtop);
1110 void LuaBinder< QMenu >::tabletEvent (QTabletEvent * arg1) {
1111 bool absorbed = false;
1112 int oldtop = lua_gettop(L);
1113 lqtL_pushudata(L, this, "QMenu*");
1114 if (lua_getmetatable(L, -1)) {
1115 lua_getfield(L, -1, "tabletEvent");
1116 lua_remove(L, -2);
1117 } else {
1118 lua_pushnil(L);
1120 lua_insert(L, -2);
1121 lqtL_pushudata(L, arg1, "QTabletEvent*");
1122 if (lua_isfunction(L, -1-2)) {
1123 lua_pcall(L, 1+1, 2, 0);
1124 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
1125 lua_pop(L, 1);
1127 if (!absorbed) {
1128 lua_settop(L, oldtop);
1129 this->QWidget::tabletEvent(arg1);
1131 lua_settop(L, oldtop);
1133 void LuaBinder< QMenu >::closeEvent (QCloseEvent * arg1) {
1134 bool absorbed = false;
1135 int oldtop = lua_gettop(L);
1136 lqtL_pushudata(L, this, "QMenu*");
1137 if (lua_getmetatable(L, -1)) {
1138 lua_getfield(L, -1, "closeEvent");
1139 lua_remove(L, -2);
1140 } else {
1141 lua_pushnil(L);
1143 lua_insert(L, -2);
1144 lqtL_pushudata(L, arg1, "QCloseEvent*");
1145 if (lua_isfunction(L, -1-2)) {
1146 lua_pcall(L, 1+1, 2, 0);
1147 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
1148 lua_pop(L, 1);
1150 if (!absorbed) {
1151 lua_settop(L, oldtop);
1152 this->QWidget::closeEvent(arg1);
1154 lua_settop(L, oldtop);
1156 void LuaBinder< QMenu >::dragEnterEvent (QDragEnterEvent * arg1) {
1157 bool absorbed = false;
1158 int oldtop = lua_gettop(L);
1159 lqtL_pushudata(L, this, "QMenu*");
1160 if (lua_getmetatable(L, -1)) {
1161 lua_getfield(L, -1, "dragEnterEvent");
1162 lua_remove(L, -2);
1163 } else {
1164 lua_pushnil(L);
1166 lua_insert(L, -2);
1167 lqtL_pushudata(L, arg1, "QDragEnterEvent*");
1168 if (lua_isfunction(L, -1-2)) {
1169 lua_pcall(L, 1+1, 2, 0);
1170 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
1171 lua_pop(L, 1);
1173 if (!absorbed) {
1174 lua_settop(L, oldtop);
1175 this->QWidget::dragEnterEvent(arg1);
1177 lua_settop(L, oldtop);
1179 QSize LuaBinder< QMenu >::minimumSizeHint () const {
1180 bool absorbed = false;
1181 int oldtop = lua_gettop(L);
1182 lqtL_pushudata(L, this, "QMenu*");
1183 if (lua_getmetatable(L, -1)) {
1184 lua_getfield(L, -1, "minimumSizeHint");
1185 lua_remove(L, -2);
1186 } else {
1187 lua_pushnil(L);
1189 lua_insert(L, -2);
1190 if (lua_isfunction(L, -0-2)) {
1191 lua_pcall(L, 0+1, 2, 0);
1192 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
1193 lua_pop(L, 1);
1195 if (!absorbed) {
1196 lua_settop(L, oldtop);
1197 return this->QWidget::minimumSizeHint();
1199 QSize ret = **static_cast<QSize**>(lqtL_checkudata(L, -1, "QSize*"));
1200 lua_settop(L, oldtop);
1201 return ret;
1203 void LuaBinder< QMenu >::dragMoveEvent (QDragMoveEvent * arg1) {
1204 bool absorbed = false;
1205 int oldtop = lua_gettop(L);
1206 lqtL_pushudata(L, this, "QMenu*");
1207 if (lua_getmetatable(L, -1)) {
1208 lua_getfield(L, -1, "dragMoveEvent");
1209 lua_remove(L, -2);
1210 } else {
1211 lua_pushnil(L);
1213 lua_insert(L, -2);
1214 lqtL_pushudata(L, arg1, "QDragMoveEvent*");
1215 if (lua_isfunction(L, -1-2)) {
1216 lua_pcall(L, 1+1, 2, 0);
1217 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
1218 lua_pop(L, 1);
1220 if (!absorbed) {
1221 lua_settop(L, oldtop);
1222 this->QWidget::dragMoveEvent(arg1);
1224 lua_settop(L, oldtop);
1226 void LuaBinder< QMenu >::dropEvent (QDropEvent * arg1) {
1227 bool absorbed = false;
1228 int oldtop = lua_gettop(L);
1229 lqtL_pushudata(L, this, "QMenu*");
1230 if (lua_getmetatable(L, -1)) {
1231 lua_getfield(L, -1, "dropEvent");
1232 lua_remove(L, -2);
1233 } else {
1234 lua_pushnil(L);
1236 lua_insert(L, -2);
1237 lqtL_pushudata(L, arg1, "QDropEvent*");
1238 if (lua_isfunction(L, -1-2)) {
1239 lua_pcall(L, 1+1, 2, 0);
1240 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
1241 lua_pop(L, 1);
1243 if (!absorbed) {
1244 lua_settop(L, oldtop);
1245 this->QWidget::dropEvent(arg1);
1247 lua_settop(L, oldtop);
1249 void LuaBinder< QMenu >::showEvent (QShowEvent * arg1) {
1250 bool absorbed = false;
1251 int oldtop = lua_gettop(L);
1252 lqtL_pushudata(L, this, "QMenu*");
1253 if (lua_getmetatable(L, -1)) {
1254 lua_getfield(L, -1, "showEvent");
1255 lua_remove(L, -2);
1256 } else {
1257 lua_pushnil(L);
1259 lua_insert(L, -2);
1260 lqtL_pushudata(L, arg1, "QShowEvent*");
1261 if (lua_isfunction(L, -1-2)) {
1262 lua_pcall(L, 1+1, 2, 0);
1263 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
1264 lua_pop(L, 1);
1266 if (!absorbed) {
1267 lua_settop(L, oldtop);
1268 this->QWidget::showEvent(arg1);
1270 lua_settop(L, oldtop);
1272 void LuaBinder< QMenu >::customEvent (QEvent * arg1) {
1273 bool absorbed = false;
1274 int oldtop = lua_gettop(L);
1275 lqtL_pushudata(L, this, "QMenu*");
1276 if (lua_getmetatable(L, -1)) {
1277 lua_getfield(L, -1, "customEvent");
1278 lua_remove(L, -2);
1279 } else {
1280 lua_pushnil(L);
1282 lua_insert(L, -2);
1283 lqtL_pushudata(L, arg1, "QEvent*");
1284 if (lua_isfunction(L, -1-2)) {
1285 lua_pcall(L, 1+1, 2, 0);
1286 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
1287 lua_pop(L, 1);
1289 if (!absorbed) {
1290 lua_settop(L, oldtop);
1291 this->QObject::customEvent(arg1);
1293 lua_settop(L, oldtop);
1295 void LuaBinder< QMenu >::paintEvent (QPaintEvent * arg1) {
1296 bool absorbed = false;
1297 int oldtop = lua_gettop(L);
1298 lqtL_pushudata(L, this, "QMenu*");
1299 if (lua_getmetatable(L, -1)) {
1300 lua_getfield(L, -1, "paintEvent");
1301 lua_remove(L, -2);
1302 } else {
1303 lua_pushnil(L);
1305 lua_insert(L, -2);
1306 lqtL_pushudata(L, arg1, "QPaintEvent*");
1307 if (lua_isfunction(L, -1-2)) {
1308 lua_pcall(L, 1+1, 2, 0);
1309 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
1310 lua_pop(L, 1);
1312 if (!absorbed) {
1313 lua_settop(L, oldtop);
1314 this->QMenu::paintEvent(arg1);
1316 lua_settop(L, oldtop);
1318 void LuaBinder< QMenu >::resizeEvent (QResizeEvent * arg1) {
1319 bool absorbed = false;
1320 int oldtop = lua_gettop(L);
1321 lqtL_pushudata(L, this, "QMenu*");
1322 if (lua_getmetatable(L, -1)) {
1323 lua_getfield(L, -1, "resizeEvent");
1324 lua_remove(L, -2);
1325 } else {
1326 lua_pushnil(L);
1328 lua_insert(L, -2);
1329 lqtL_pushudata(L, arg1, "QResizeEvent*");
1330 if (lua_isfunction(L, -1-2)) {
1331 lua_pcall(L, 1+1, 2, 0);
1332 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
1333 lua_pop(L, 1);
1335 if (!absorbed) {
1336 lua_settop(L, oldtop);
1337 this->QWidget::resizeEvent(arg1);
1339 lua_settop(L, oldtop);
1341 void LuaBinder< QMenu >::mouseReleaseEvent (QMouseEvent * arg1) {
1342 bool absorbed = false;
1343 int oldtop = lua_gettop(L);
1344 lqtL_pushudata(L, this, "QMenu*");
1345 if (lua_getmetatable(L, -1)) {
1346 lua_getfield(L, -1, "mouseReleaseEvent");
1347 lua_remove(L, -2);
1348 } else {
1349 lua_pushnil(L);
1351 lua_insert(L, -2);
1352 lqtL_pushudata(L, arg1, "QMouseEvent*");
1353 if (lua_isfunction(L, -1-2)) {
1354 lua_pcall(L, 1+1, 2, 0);
1355 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
1356 lua_pop(L, 1);
1358 if (!absorbed) {
1359 lua_settop(L, oldtop);
1360 this->QMenu::mouseReleaseEvent(arg1);
1362 lua_settop(L, oldtop);
1364 void LuaBinder< QMenu >::enabledChange (bool arg1) {
1365 bool absorbed = false;
1366 int oldtop = lua_gettop(L);
1367 lqtL_pushudata(L, this, "QMenu*");
1368 if (lua_getmetatable(L, -1)) {
1369 lua_getfield(L, -1, "enabledChange");
1370 lua_remove(L, -2);
1371 } else {
1372 lua_pushnil(L);
1374 lua_insert(L, -2);
1375 lua_pushboolean(L, arg1);
1376 if (lua_isfunction(L, -1-2)) {
1377 lua_pcall(L, 1+1, 2, 0);
1378 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
1379 lua_pop(L, 1);
1381 if (!absorbed) {
1382 lua_settop(L, oldtop);
1383 this->QWidget::enabledChange(arg1);
1385 lua_settop(L, oldtop);
1387 void LuaBinder< QMenu >::windowActivationChange (bool arg1) {
1388 bool absorbed = false;
1389 int oldtop = lua_gettop(L);
1390 lqtL_pushudata(L, this, "QMenu*");
1391 if (lua_getmetatable(L, -1)) {
1392 lua_getfield(L, -1, "windowActivationChange");
1393 lua_remove(L, -2);
1394 } else {
1395 lua_pushnil(L);
1397 lua_insert(L, -2);
1398 lua_pushboolean(L, arg1);
1399 if (lua_isfunction(L, -1-2)) {
1400 lua_pcall(L, 1+1, 2, 0);
1401 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
1402 lua_pop(L, 1);
1404 if (!absorbed) {
1405 lua_settop(L, oldtop);
1406 this->QWidget::windowActivationChange(arg1);
1408 lua_settop(L, oldtop);
1410 int LuaBinder< QMenu >::heightForWidth (int arg1) const {
1411 bool absorbed = false;
1412 int oldtop = lua_gettop(L);
1413 lqtL_pushudata(L, this, "QMenu*");
1414 if (lua_getmetatable(L, -1)) {
1415 lua_getfield(L, -1, "heightForWidth");
1416 lua_remove(L, -2);
1417 } else {
1418 lua_pushnil(L);
1420 lua_insert(L, -2);
1421 lua_pushinteger(L, arg1);
1422 if (lua_isfunction(L, -1-2)) {
1423 lua_pcall(L, 1+1, 2, 0);
1424 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
1425 lua_pop(L, 1);
1427 if (!absorbed) {
1428 lua_settop(L, oldtop);
1429 return this->QWidget::heightForWidth(arg1);
1431 int ret = lua_tointeger(L, -1);
1432 lua_settop(L, oldtop);
1433 return ret;
1435 void LuaBinder< QMenu >::mouseDoubleClickEvent (QMouseEvent * arg1) {
1436 bool absorbed = false;
1437 int oldtop = lua_gettop(L);
1438 lqtL_pushudata(L, this, "QMenu*");
1439 if (lua_getmetatable(L, -1)) {
1440 lua_getfield(L, -1, "mouseDoubleClickEvent");
1441 lua_remove(L, -2);
1442 } else {
1443 lua_pushnil(L);
1445 lua_insert(L, -2);
1446 lqtL_pushudata(L, arg1, "QMouseEvent*");
1447 if (lua_isfunction(L, -1-2)) {
1448 lua_pcall(L, 1+1, 2, 0);
1449 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
1450 lua_pop(L, 1);
1452 if (!absorbed) {
1453 lua_settop(L, oldtop);
1454 this->QWidget::mouseDoubleClickEvent(arg1);
1456 lua_settop(L, oldtop);
1458 int LuaBinder< QMenu >::metric (QPaintDevice::PaintDeviceMetric arg1) const {
1459 bool absorbed = false;
1460 int oldtop = lua_gettop(L);
1461 lqtL_pushudata(L, this, "QMenu*");
1462 if (lua_getmetatable(L, -1)) {
1463 lua_getfield(L, -1, "metric");
1464 lua_remove(L, -2);
1465 } else {
1466 lua_pushnil(L);
1468 lua_insert(L, -2);
1469 lqtL_pushenum(L, arg1, "QPaintDevice::PaintDeviceMetric");
1470 if (lua_isfunction(L, -1-2)) {
1471 lua_pcall(L, 1+1, 2, 0);
1472 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
1473 lua_pop(L, 1);
1475 if (!absorbed) {
1476 lua_settop(L, oldtop);
1477 return this->QWidget::metric(arg1);
1479 int ret = lua_tointeger(L, -1);
1480 lua_settop(L, oldtop);
1481 return ret;
1483 void LuaBinder< QMenu >::timerEvent (QTimerEvent * arg1) {
1484 bool absorbed = false;
1485 int oldtop = lua_gettop(L);
1486 lqtL_pushudata(L, this, "QMenu*");
1487 if (lua_getmetatable(L, -1)) {
1488 lua_getfield(L, -1, "timerEvent");
1489 lua_remove(L, -2);
1490 } else {
1491 lua_pushnil(L);
1493 lua_insert(L, -2);
1494 lqtL_pushudata(L, arg1, "QTimerEvent*");
1495 if (lua_isfunction(L, -1-2)) {
1496 lua_pcall(L, 1+1, 2, 0);
1497 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
1498 lua_pop(L, 1);
1500 if (!absorbed) {
1501 lua_settop(L, oldtop);
1502 this->QMenu::timerEvent(arg1);
1504 lua_settop(L, oldtop);
1506 void LuaBinder< QMenu >::mouseMoveEvent (QMouseEvent * arg1) {
1507 bool absorbed = false;
1508 int oldtop = lua_gettop(L);
1509 lqtL_pushudata(L, this, "QMenu*");
1510 if (lua_getmetatable(L, -1)) {
1511 lua_getfield(L, -1, "mouseMoveEvent");
1512 lua_remove(L, -2);
1513 } else {
1514 lua_pushnil(L);
1516 lua_insert(L, -2);
1517 lqtL_pushudata(L, arg1, "QMouseEvent*");
1518 if (lua_isfunction(L, -1-2)) {
1519 lua_pcall(L, 1+1, 2, 0);
1520 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
1521 lua_pop(L, 1);
1523 if (!absorbed) {
1524 lua_settop(L, oldtop);
1525 this->QMenu::mouseMoveEvent(arg1);
1527 lua_settop(L, oldtop);
1529 void LuaBinder< QMenu >::focusOutEvent (QFocusEvent * arg1) {
1530 bool absorbed = false;
1531 int oldtop = lua_gettop(L);
1532 lqtL_pushudata(L, this, "QMenu*");
1533 if (lua_getmetatable(L, -1)) {
1534 lua_getfield(L, -1, "focusOutEvent");
1535 lua_remove(L, -2);
1536 } else {
1537 lua_pushnil(L);
1539 lua_insert(L, -2);
1540 lqtL_pushudata(L, arg1, "QFocusEvent*");
1541 if (lua_isfunction(L, -1-2)) {
1542 lua_pcall(L, 1+1, 2, 0);
1543 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
1544 lua_pop(L, 1);
1546 if (!absorbed) {
1547 lua_settop(L, oldtop);
1548 this->QWidget::focusOutEvent(arg1);
1550 lua_settop(L, oldtop);
1552 void LuaBinder< QMenu >::childEvent (QChildEvent * arg1) {
1553 bool absorbed = false;
1554 int oldtop = lua_gettop(L);
1555 lqtL_pushudata(L, this, "QMenu*");
1556 if (lua_getmetatable(L, -1)) {
1557 lua_getfield(L, -1, "childEvent");
1558 lua_remove(L, -2);
1559 } else {
1560 lua_pushnil(L);
1562 lua_insert(L, -2);
1563 lqtL_pushudata(L, arg1, "QChildEvent*");
1564 if (lua_isfunction(L, -1-2)) {
1565 lua_pcall(L, 1+1, 2, 0);
1566 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
1567 lua_pop(L, 1);
1569 if (!absorbed) {
1570 lua_settop(L, oldtop);
1571 this->QObject::childEvent(arg1);
1573 lua_settop(L, oldtop);
1575 void LuaBinder< QMenu >::connectNotify (const char * arg1) {
1576 bool absorbed = false;
1577 int oldtop = lua_gettop(L);
1578 lqtL_pushudata(L, this, "QMenu*");
1579 if (lua_getmetatable(L, -1)) {
1580 lua_getfield(L, -1, "connectNotify");
1581 lua_remove(L, -2);
1582 } else {
1583 lua_pushnil(L);
1585 lua_insert(L, -2);
1586 lua_pushstring(L, arg1);
1587 if (lua_isfunction(L, -1-2)) {
1588 lua_pcall(L, 1+1, 2, 0);
1589 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
1590 lua_pop(L, 1);
1592 if (!absorbed) {
1593 lua_settop(L, oldtop);
1594 this->QObject::connectNotify(arg1);
1596 lua_settop(L, oldtop);
1598 void LuaBinder< QMenu >::disconnectNotify (const char * arg1) {
1599 bool absorbed = false;
1600 int oldtop = lua_gettop(L);
1601 lqtL_pushudata(L, this, "QMenu*");
1602 if (lua_getmetatable(L, -1)) {
1603 lua_getfield(L, -1, "disconnectNotify");
1604 lua_remove(L, -2);
1605 } else {
1606 lua_pushnil(L);
1608 lua_insert(L, -2);
1609 lua_pushstring(L, arg1);
1610 if (lua_isfunction(L, -1-2)) {
1611 lua_pcall(L, 1+1, 2, 0);
1612 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
1613 lua_pop(L, 1);
1615 if (!absorbed) {
1616 lua_settop(L, oldtop);
1617 this->QObject::disconnectNotify(arg1);
1619 lua_settop(L, oldtop);
1621 void LuaBinder< QMenu >::fontChange (const QFont& arg1) {
1622 bool absorbed = false;
1623 int oldtop = lua_gettop(L);
1624 lqtL_pushudata(L, this, "QMenu*");
1625 if (lua_getmetatable(L, -1)) {
1626 lua_getfield(L, -1, "fontChange");
1627 lua_remove(L, -2);
1628 } else {
1629 lua_pushnil(L);
1631 lua_insert(L, -2);
1632 lqtL_pushudata(L, &(arg1), "QFont*");
1633 if (lua_isfunction(L, -1-2)) {
1634 lua_pcall(L, 1+1, 2, 0);
1635 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
1636 lua_pop(L, 1);
1638 if (!absorbed) {
1639 lua_settop(L, oldtop);
1640 this->QWidget::fontChange(arg1);
1642 lua_settop(L, oldtop);
1644 bool LuaBinder< QMenu >::eventFilter (QObject * arg1, QEvent * arg2) {
1645 bool absorbed = false;
1646 int oldtop = lua_gettop(L);
1647 lqtL_pushudata(L, this, "QMenu*");
1648 if (lua_getmetatable(L, -1)) {
1649 lua_getfield(L, -1, "eventFilter");
1650 lua_remove(L, -2);
1651 } else {
1652 lua_pushnil(L);
1654 lua_insert(L, -2);
1655 lqtL_pushudata(L, arg1, "QObject*");
1656 lqtL_pushudata(L, arg2, "QEvent*");
1657 if (lua_isfunction(L, -2-2)) {
1658 lua_pcall(L, 2+1, 2, 0);
1659 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
1660 lua_pop(L, 1);
1662 if (!absorbed) {
1663 lua_settop(L, oldtop);
1664 return this->QObject::eventFilter(arg1, arg2);
1666 bool ret = (bool)lua_toboolean(L, -1);
1667 lua_settop(L, oldtop);
1668 return ret;
1670 void LuaBinder< QMenu >::inputMethodEvent (QInputMethodEvent * arg1) {
1671 bool absorbed = false;
1672 int oldtop = lua_gettop(L);
1673 lqtL_pushudata(L, this, "QMenu*");
1674 if (lua_getmetatable(L, -1)) {
1675 lua_getfield(L, -1, "inputMethodEvent");
1676 lua_remove(L, -2);
1677 } else {
1678 lua_pushnil(L);
1680 lua_insert(L, -2);
1681 lqtL_pushudata(L, arg1, "QInputMethodEvent*");
1682 if (lua_isfunction(L, -1-2)) {
1683 lua_pcall(L, 1+1, 2, 0);
1684 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
1685 lua_pop(L, 1);
1687 if (!absorbed) {
1688 lua_settop(L, oldtop);
1689 this->QWidget::inputMethodEvent(arg1);
1691 lua_settop(L, oldtop);
1693 void LuaBinder< QMenu >::wheelEvent (QWheelEvent * arg1) {
1694 bool absorbed = false;
1695 int oldtop = lua_gettop(L);
1696 lqtL_pushudata(L, this, "QMenu*");
1697 if (lua_getmetatable(L, -1)) {
1698 lua_getfield(L, -1, "wheelEvent");
1699 lua_remove(L, -2);
1700 } else {
1701 lua_pushnil(L);
1703 lua_insert(L, -2);
1704 lqtL_pushudata(L, arg1, "QWheelEvent*");
1705 if (lua_isfunction(L, -1-2)) {
1706 lua_pcall(L, 1+1, 2, 0);
1707 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
1708 lua_pop(L, 1);
1710 if (!absorbed) {
1711 lua_settop(L, oldtop);
1712 this->QMenu::wheelEvent(arg1);
1714 lua_settop(L, oldtop);
1716 void LuaBinder< QMenu >::actionEvent (QActionEvent * arg1) {
1717 bool absorbed = false;
1718 int oldtop = lua_gettop(L);
1719 lqtL_pushudata(L, this, "QMenu*");
1720 if (lua_getmetatable(L, -1)) {
1721 lua_getfield(L, -1, "actionEvent");
1722 lua_remove(L, -2);
1723 } else {
1724 lua_pushnil(L);
1726 lua_insert(L, -2);
1727 lqtL_pushudata(L, arg1, "QActionEvent*");
1728 if (lua_isfunction(L, -1-2)) {
1729 lua_pcall(L, 1+1, 2, 0);
1730 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
1731 lua_pop(L, 1);
1733 if (!absorbed) {
1734 lua_settop(L, oldtop);
1735 this->QMenu::actionEvent(arg1);
1737 lua_settop(L, oldtop);
1739 void LuaBinder< QMenu >::paletteChange (const QPalette& arg1) {
1740 bool absorbed = false;
1741 int oldtop = lua_gettop(L);
1742 lqtL_pushudata(L, this, "QMenu*");
1743 if (lua_getmetatable(L, -1)) {
1744 lua_getfield(L, -1, "paletteChange");
1745 lua_remove(L, -2);
1746 } else {
1747 lua_pushnil(L);
1749 lua_insert(L, -2);
1750 lqtL_pushudata(L, &(arg1), "QPalette*");
1751 if (lua_isfunction(L, -1-2)) {
1752 lua_pcall(L, 1+1, 2, 0);
1753 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
1754 lua_pop(L, 1);
1756 if (!absorbed) {
1757 lua_settop(L, oldtop);
1758 this->QWidget::paletteChange(arg1);
1760 lua_settop(L, oldtop);
1762 void LuaBinder< QMenu >::languageChange () {
1763 bool absorbed = false;
1764 int oldtop = lua_gettop(L);
1765 lqtL_pushudata(L, this, "QMenu*");
1766 if (lua_getmetatable(L, -1)) {
1767 lua_getfield(L, -1, "languageChange");
1768 lua_remove(L, -2);
1769 } else {
1770 lua_pushnil(L);
1772 lua_insert(L, -2);
1773 if (lua_isfunction(L, -0-2)) {
1774 lua_pcall(L, 0+1, 2, 0);
1775 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
1776 lua_pop(L, 1);
1778 if (!absorbed) {
1779 lua_settop(L, oldtop);
1780 this->QWidget::languageChange();
1782 lua_settop(L, oldtop);
1784 bool LuaBinder< QMenu >::event (QEvent * arg1) {
1785 bool absorbed = false;
1786 int oldtop = lua_gettop(L);
1787 lqtL_pushudata(L, this, "QMenu*");
1788 if (lua_getmetatable(L, -1)) {
1789 lua_getfield(L, -1, "event");
1790 lua_remove(L, -2);
1791 } else {
1792 lua_pushnil(L);
1794 lua_insert(L, -2);
1795 lqtL_pushudata(L, arg1, "QEvent*");
1796 if (lua_isfunction(L, -1-2)) {
1797 lua_pcall(L, 1+1, 2, 0);
1798 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
1799 lua_pop(L, 1);
1801 if (!absorbed) {
1802 lua_settop(L, oldtop);
1803 return this->QMenu::event(arg1);
1805 bool ret = (bool)lua_toboolean(L, -1);
1806 lua_settop(L, oldtop);
1807 return ret;
1809 void LuaBinder< QMenu >::hideEvent (QHideEvent * arg1) {
1810 bool absorbed = false;
1811 int oldtop = lua_gettop(L);
1812 lqtL_pushudata(L, this, "QMenu*");
1813 if (lua_getmetatable(L, -1)) {
1814 lua_getfield(L, -1, "hideEvent");
1815 lua_remove(L, -2);
1816 } else {
1817 lua_pushnil(L);
1819 lua_insert(L, -2);
1820 lqtL_pushudata(L, arg1, "QHideEvent*");
1821 if (lua_isfunction(L, -1-2)) {
1822 lua_pcall(L, 1+1, 2, 0);
1823 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
1824 lua_pop(L, 1);
1826 if (!absorbed) {
1827 lua_settop(L, oldtop);
1828 this->QMenu::hideEvent(arg1);
1830 lua_settop(L, oldtop);
1832 const QMetaObject * LuaBinder< QMenu >::metaObject () const {
1833 bool absorbed = false;
1834 int oldtop = lua_gettop(L);
1835 lqtL_pushudata(L, this, "QMenu*");
1836 if (lua_getmetatable(L, -1)) {
1837 lua_getfield(L, -1, "metaObject");
1838 lua_remove(L, -2);
1839 } else {
1840 lua_pushnil(L);
1842 lua_insert(L, -2);
1843 if (lua_isfunction(L, -0-2)) {
1844 lua_pcall(L, 0+1, 2, 0);
1845 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
1846 lua_pop(L, 1);
1848 if (!absorbed) {
1849 lua_settop(L, oldtop);
1850 return this->QMenu::metaObject();
1852 const QMetaObject * ret = *static_cast<QMetaObject**>(lqtL_checkudata(L, -1, "QMetaObject*"));
1853 lua_settop(L, oldtop);
1854 return ret;
1856 QVariant LuaBinder< QMenu >::inputMethodQuery (Qt::InputMethodQuery arg1) const {
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, "inputMethodQuery");
1862 lua_remove(L, -2);
1863 } else {
1864 lua_pushnil(L);
1866 lua_insert(L, -2);
1867 lqtL_pushenum(L, arg1, "Qt::InputMethodQuery");
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 return this->QWidget::inputMethodQuery(arg1);
1877 QVariant ret = **static_cast<QVariant**>(lqtL_checkudata(L, -1, "QVariant*"));
1878 lua_settop(L, oldtop);
1879 return ret;
1881 void LuaBinder< QMenu >::moveEvent (QMoveEvent * arg1) {
1882 bool absorbed = false;
1883 int oldtop = lua_gettop(L);
1884 lqtL_pushudata(L, this, "QMenu*");
1885 if (lua_getmetatable(L, -1)) {
1886 lua_getfield(L, -1, "moveEvent");
1887 lua_remove(L, -2);
1888 } else {
1889 lua_pushnil(L);
1891 lua_insert(L, -2);
1892 lqtL_pushudata(L, arg1, "QMoveEvent*");
1893 if (lua_isfunction(L, -1-2)) {
1894 lua_pcall(L, 1+1, 2, 0);
1895 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
1896 lua_pop(L, 1);
1898 if (!absorbed) {
1899 lua_settop(L, oldtop);
1900 this->QWidget::moveEvent(arg1);
1902 lua_settop(L, oldtop);
1904 void LuaBinder< QMenu >::leaveEvent (QEvent * arg1) {
1905 bool absorbed = false;
1906 int oldtop = lua_gettop(L);
1907 lqtL_pushudata(L, this, "QMenu*");
1908 if (lua_getmetatable(L, -1)) {
1909 lua_getfield(L, -1, "leaveEvent");
1910 lua_remove(L, -2);
1911 } else {
1912 lua_pushnil(L);
1914 lua_insert(L, -2);
1915 lqtL_pushudata(L, arg1, "QEvent*");
1916 if (lua_isfunction(L, -1-2)) {
1917 lua_pcall(L, 1+1, 2, 0);
1918 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
1919 lua_pop(L, 1);
1921 if (!absorbed) {
1922 lua_settop(L, oldtop);
1923 this->QMenu::leaveEvent(arg1);
1925 lua_settop(L, oldtop);
1927 void LuaBinder< QMenu >::keyReleaseEvent (QKeyEvent * arg1) {
1928 bool absorbed = false;
1929 int oldtop = lua_gettop(L);
1930 lqtL_pushudata(L, this, "QMenu*");
1931 if (lua_getmetatable(L, -1)) {
1932 lua_getfield(L, -1, "keyReleaseEvent");
1933 lua_remove(L, -2);
1934 } else {
1935 lua_pushnil(L);
1937 lua_insert(L, -2);
1938 lqtL_pushudata(L, arg1, "QKeyEvent*");
1939 if (lua_isfunction(L, -1-2)) {
1940 lua_pcall(L, 1+1, 2, 0);
1941 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
1942 lua_pop(L, 1);
1944 if (!absorbed) {
1945 lua_settop(L, oldtop);
1946 this->QWidget::keyReleaseEvent(arg1);
1948 lua_settop(L, oldtop);
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;