added "install" instruction
[Leditor.git] / src / lqt_bind_QAction.cpp
blob04ddfff606d38180f7ab32d84e917b5edafb89e8
1 #include "lqt_bind_QAction.hpp"
3 int LuaBinder< QAction >::__LuaWrapCall__parentWidget (lua_State *L) {
4 QAction *& __lua__obj = *static_cast<QAction**>(lqtL_checkudata(L, 1, "QAction*"));
5 if (__lua__obj==0) {
6 lua_pushstring(L, "trying to reference deleted pointer");
7 lua_error(L);
8 return 0;
10 QWidget * ret = __lua__obj->QAction::parentWidget();
11 lqtL_pushudata(L, ret, "QWidget*");
12 return 1;
14 int LuaBinder< QAction >::__LuaWrapCall__setChecked (lua_State *L) {
15 QAction *& __lua__obj = *static_cast<QAction**>(lqtL_checkudata(L, 1, "QAction*"));
16 if (__lua__obj==0) {
17 lua_pushstring(L, "trying to reference deleted pointer");
18 lua_error(L);
19 return 0;
21 bool arg1 = (bool)lua_toboolean(L, 2);
22 __lua__obj->QAction::setChecked(arg1);
23 return 0;
25 int LuaBinder< QAction >::__LuaWrapCall__statusTip (lua_State *L) {
26 QAction *& __lua__obj = *static_cast<QAction**>(lqtL_checkudata(L, 1, "QAction*"));
27 if (__lua__obj==0) {
28 lua_pushstring(L, "trying to reference deleted pointer");
29 lua_error(L);
30 return 0;
32 QString ret = __lua__obj->QAction::statusTip();
33 lua_pushlstring(L, ret.toAscii().data(), ret.toAscii().size());
34 return 1;
36 int LuaBinder< QAction >::__LuaWrapCall__setVisible (lua_State *L) {
37 QAction *& __lua__obj = *static_cast<QAction**>(lqtL_checkudata(L, 1, "QAction*"));
38 if (__lua__obj==0) {
39 lua_pushstring(L, "trying to reference deleted pointer");
40 lua_error(L);
41 return 0;
43 bool arg1 = (bool)lua_toboolean(L, 2);
44 __lua__obj->QAction::setVisible(arg1);
45 return 0;
47 int LuaBinder< QAction >::__LuaWrapCall__setIcon (lua_State *L) {
48 QAction *& __lua__obj = *static_cast<QAction**>(lqtL_checkudata(L, 1, "QAction*"));
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->QAction::setIcon(arg1);
56 return 0;
58 int LuaBinder< QAction >::__LuaWrapCall__isSeparator (lua_State *L) {
59 QAction *& __lua__obj = *static_cast<QAction**>(lqtL_checkudata(L, 1, "QAction*"));
60 if (__lua__obj==0) {
61 lua_pushstring(L, "trying to reference deleted pointer");
62 lua_error(L);
63 return 0;
65 bool ret = __lua__obj->QAction::isSeparator();
66 lua_pushboolean(L, ret);
67 return 1;
69 int LuaBinder< QAction >::__LuaWrapCall__toggle (lua_State *L) {
70 QAction *& __lua__obj = *static_cast<QAction**>(lqtL_checkudata(L, 1, "QAction*"));
71 if (__lua__obj==0) {
72 lua_pushstring(L, "trying to reference deleted pointer");
73 lua_error(L);
74 return 0;
76 __lua__obj->QAction::toggle();
77 return 0;
79 int LuaBinder< QAction >::__LuaWrapCall__icon (lua_State *L) {
80 QAction *& __lua__obj = *static_cast<QAction**>(lqtL_checkudata(L, 1, "QAction*"));
81 if (__lua__obj==0) {
82 lua_pushstring(L, "trying to reference deleted pointer");
83 lua_error(L);
84 return 0;
86 QIcon ret = __lua__obj->QAction::icon();
87 lqtL_passudata(L, new QIcon(ret), "QIcon*");
88 return 1;
90 int LuaBinder< QAction >::__LuaWrapCall__tr__OverloadedVersion__1 (lua_State *L) {
91 const char * arg1 = lua_tostring(L, 1);
92 const char * arg2 = (lua_type(L, 2)==LUA_TSTRING)?lua_tostring(L, 2):static_cast< const char * >(0);
93 QString ret = QAction::tr(arg1, arg2);
94 lua_pushlstring(L, ret.toAscii().data(), ret.toAscii().size());
95 return 1;
97 int LuaBinder< QAction >::__LuaWrapCall__tr__OverloadedVersion__2 (lua_State *L) {
98 const char * arg1 = lua_tostring(L, 1);
99 const char * arg2 = lua_tostring(L, 2);
100 int arg3 = lua_tointeger(L, 3);
101 QString ret = QAction::tr(arg1, arg2, arg3);
102 lua_pushlstring(L, ret.toAscii().data(), ret.toAscii().size());
103 return 1;
105 int LuaBinder< QAction >::__LuaWrapCall__tr (lua_State *L) {
106 int score[3];
107 const int premium = 11+lua_gettop(L);
108 score[1] = 0;
109 if ((lua_type(L, 1)==LUA_TSTRING)) {
110 score[1] += premium;
111 } else if (false) {
112 score[1] += premium-1; // table: 0x143c9d0;
113 } else {
114 score[1] -= premium*premium;
116 if ((lua_type(L, 2)==LUA_TSTRING)) {
117 score[1] += premium;
118 } else if (true) {
119 score[1] += premium-1; // table: 0x143c740;
120 } else {
121 score[1] -= premium*premium;
123 score[2] = 0;
124 if ((lua_type(L, 1)==LUA_TSTRING)) {
125 score[2] += premium;
126 } else if (false) {
127 score[2] += premium-1; // table: 0x143e400;
128 } else {
129 score[2] -= premium*premium;
131 if ((lua_type(L, 2)==LUA_TSTRING)) {
132 score[2] += premium;
133 } else if (false) {
134 score[2] += premium-1; // table: 0x143e8f0;
135 } else {
136 score[2] -= premium*premium;
138 if (lua_isnumber(L, 3)) {
139 score[2] += premium;
140 } else if (false) {
141 score[2] += premium-1; // table: 0x143eca0;
142 } else {
143 score[2] -= premium*premium;
145 int best = 1;
146 for (int i=1;i<=2;i++) {
147 if (score[best] < score[i]) { best = i; }
149 switch (best) {
150 case 1: return __LuaWrapCall__tr__OverloadedVersion__1(L); break;
151 case 2: return __LuaWrapCall__tr__OverloadedVersion__2(L); break;
153 lua_pushstring(L, "no overload of function __LuaWrapCall__tr matching arguments");
154 lua_error(L);
155 return 0;
157 int LuaBinder< QAction >::__LuaWrapCall__isVisible (lua_State *L) {
158 QAction *& __lua__obj = *static_cast<QAction**>(lqtL_checkudata(L, 1, "QAction*"));
159 if (__lua__obj==0) {
160 lua_pushstring(L, "trying to reference deleted pointer");
161 lua_error(L);
162 return 0;
164 bool ret = __lua__obj->QAction::isVisible();
165 lua_pushboolean(L, ret);
166 return 1;
168 int LuaBinder< QAction >::__LuaWrapCall__whatsThis (lua_State *L) {
169 QAction *& __lua__obj = *static_cast<QAction**>(lqtL_checkudata(L, 1, "QAction*"));
170 if (__lua__obj==0) {
171 lua_pushstring(L, "trying to reference deleted pointer");
172 lua_error(L);
173 return 0;
175 QString ret = __lua__obj->QAction::whatsThis();
176 lua_pushlstring(L, ret.toAscii().data(), ret.toAscii().size());
177 return 1;
179 int LuaBinder< QAction >::__LuaWrapCall__toolTip (lua_State *L) {
180 QAction *& __lua__obj = *static_cast<QAction**>(lqtL_checkudata(L, 1, "QAction*"));
181 if (__lua__obj==0) {
182 lua_pushstring(L, "trying to reference deleted pointer");
183 lua_error(L);
184 return 0;
186 QString ret = __lua__obj->QAction::toolTip();
187 lua_pushlstring(L, ret.toAscii().data(), ret.toAscii().size());
188 return 1;
190 int LuaBinder< QAction >::__LuaWrapCall__setIconText (lua_State *L) {
191 QAction *& __lua__obj = *static_cast<QAction**>(lqtL_checkudata(L, 1, "QAction*"));
192 if (__lua__obj==0) {
193 lua_pushstring(L, "trying to reference deleted pointer");
194 lua_error(L);
195 return 0;
197 const QString& arg1 = QString::fromAscii(lua_tostring(L, 2), lua_objlen(L, 2));
198 __lua__obj->QAction::setIconText(arg1);
199 return 0;
201 int LuaBinder< QAction >::__LuaWrapCall__shortcut (lua_State *L) {
202 QAction *& __lua__obj = *static_cast<QAction**>(lqtL_checkudata(L, 1, "QAction*"));
203 if (__lua__obj==0) {
204 lua_pushstring(L, "trying to reference deleted pointer");
205 lua_error(L);
206 return 0;
208 QKeySequence ret = __lua__obj->QAction::shortcut();
209 lqtL_passudata(L, new QKeySequence(ret), "QKeySequence*");
210 return 1;
212 int LuaBinder< QAction >::__LuaWrapCall__iconText (lua_State *L) {
213 QAction *& __lua__obj = *static_cast<QAction**>(lqtL_checkudata(L, 1, "QAction*"));
214 if (__lua__obj==0) {
215 lua_pushstring(L, "trying to reference deleted pointer");
216 lua_error(L);
217 return 0;
219 QString ret = __lua__obj->QAction::iconText();
220 lua_pushlstring(L, ret.toAscii().data(), ret.toAscii().size());
221 return 1;
223 int LuaBinder< QAction >::__LuaWrapCall__shortcutContext (lua_State *L) {
224 QAction *& __lua__obj = *static_cast<QAction**>(lqtL_checkudata(L, 1, "QAction*"));
225 if (__lua__obj==0) {
226 lua_pushstring(L, "trying to reference deleted pointer");
227 lua_error(L);
228 return 0;
230 Qt::ShortcutContext ret = __lua__obj->QAction::shortcutContext();
231 lqtL_pushenum(L, ret, "Qt::ShortcutContext");
232 return 1;
234 int LuaBinder< QAction >::__LuaWrapCall__setToolTip (lua_State *L) {
235 QAction *& __lua__obj = *static_cast<QAction**>(lqtL_checkudata(L, 1, "QAction*"));
236 if (__lua__obj==0) {
237 lua_pushstring(L, "trying to reference deleted pointer");
238 lua_error(L);
239 return 0;
241 const QString& arg1 = QString::fromAscii(lua_tostring(L, 2), lua_objlen(L, 2));
242 __lua__obj->QAction::setToolTip(arg1);
243 return 0;
245 int LuaBinder< QAction >::__LuaWrapCall__setMenu (lua_State *L) {
246 QAction *& __lua__obj = *static_cast<QAction**>(lqtL_checkudata(L, 1, "QAction*"));
247 if (__lua__obj==0) {
248 lua_pushstring(L, "trying to reference deleted pointer");
249 lua_error(L);
250 return 0;
252 QMenu * arg1 = *static_cast<QMenu**>(lqtL_checkudata(L, 2, "QMenu*"));
253 __lua__obj->QAction::setMenu(arg1);
254 return 0;
256 int LuaBinder< QAction >::__LuaWrapCall__showStatusText (lua_State *L) {
257 QAction *& __lua__obj = *static_cast<QAction**>(lqtL_checkudata(L, 1, "QAction*"));
258 if (__lua__obj==0) {
259 lua_pushstring(L, "trying to reference deleted pointer");
260 lua_error(L);
261 return 0;
263 QWidget * arg1 = lqtL_testudata(L, 2, "QWidget*")?*static_cast<QWidget**>(lqtL_checkudata(L, 2, "QWidget*")):static_cast< QWidget * >(0);
264 bool ret = __lua__obj->QAction::showStatusText(arg1);
265 lua_pushboolean(L, ret);
266 return 1;
268 int LuaBinder< QAction >::__LuaWrapCall__setAutoRepeat (lua_State *L) {
269 QAction *& __lua__obj = *static_cast<QAction**>(lqtL_checkudata(L, 1, "QAction*"));
270 if (__lua__obj==0) {
271 lua_pushstring(L, "trying to reference deleted pointer");
272 lua_error(L);
273 return 0;
275 bool arg1 = (bool)lua_toboolean(L, 2);
276 __lua__obj->QAction::setAutoRepeat(arg1);
277 return 0;
279 int LuaBinder< QAction >::__LuaWrapCall__setCheckable (lua_State *L) {
280 QAction *& __lua__obj = *static_cast<QAction**>(lqtL_checkudata(L, 1, "QAction*"));
281 if (__lua__obj==0) {
282 lua_pushstring(L, "trying to reference deleted pointer");
283 lua_error(L);
284 return 0;
286 bool arg1 = (bool)lua_toboolean(L, 2);
287 __lua__obj->QAction::setCheckable(arg1);
288 return 0;
290 int LuaBinder< QAction >::__LuaWrapCall__setSeparator (lua_State *L) {
291 QAction *& __lua__obj = *static_cast<QAction**>(lqtL_checkudata(L, 1, "QAction*"));
292 if (__lua__obj==0) {
293 lua_pushstring(L, "trying to reference deleted pointer");
294 lua_error(L);
295 return 0;
297 bool arg1 = (bool)lua_toboolean(L, 2);
298 __lua__obj->QAction::setSeparator(arg1);
299 return 0;
301 int LuaBinder< QAction >::__LuaWrapCall__activate (lua_State *L) {
302 QAction *& __lua__obj = *static_cast<QAction**>(lqtL_checkudata(L, 1, "QAction*"));
303 if (__lua__obj==0) {
304 lua_pushstring(L, "trying to reference deleted pointer");
305 lua_error(L);
306 return 0;
308 QAction::ActionEvent arg1 = static_cast<QAction::ActionEvent>(lqtL_toenum(L, 2, "QAction::ActionEvent"));
309 __lua__obj->QAction::activate(arg1);
310 return 0;
312 int LuaBinder< QAction >::__LuaWrapCall__trigger (lua_State *L) {
313 QAction *& __lua__obj = *static_cast<QAction**>(lqtL_checkudata(L, 1, "QAction*"));
314 if (__lua__obj==0) {
315 lua_pushstring(L, "trying to reference deleted pointer");
316 lua_error(L);
317 return 0;
319 __lua__obj->QAction::trigger();
320 return 0;
322 int LuaBinder< QAction >::__LuaWrapCall__shortcuts (lua_State *L) {
323 QAction *& __lua__obj = *static_cast<QAction**>(lqtL_checkudata(L, 1, "QAction*"));
324 if (__lua__obj==0) {
325 lua_pushstring(L, "trying to reference deleted pointer");
326 lua_error(L);
327 return 0;
329 QList<QKeySequence> ret = __lua__obj->QAction::shortcuts();
330 lqtL_passudata(L, new QList<QKeySequence>(ret), "QList<QKeySequence>*");
331 return 1;
333 int LuaBinder< QAction >::__LuaWrapCall__associatedWidgets (lua_State *L) {
334 QAction *& __lua__obj = *static_cast<QAction**>(lqtL_checkudata(L, 1, "QAction*"));
335 if (__lua__obj==0) {
336 lua_pushstring(L, "trying to reference deleted pointer");
337 lua_error(L);
338 return 0;
340 QList<QWidget*> ret = __lua__obj->QAction::associatedWidgets();
341 lqtL_passudata(L, new QList<QWidget*>(ret), "QList<QWidget*>*");
342 return 1;
344 int LuaBinder< QAction >::__LuaWrapCall__setText (lua_State *L) {
345 QAction *& __lua__obj = *static_cast<QAction**>(lqtL_checkudata(L, 1, "QAction*"));
346 if (__lua__obj==0) {
347 lua_pushstring(L, "trying to reference deleted pointer");
348 lua_error(L);
349 return 0;
351 const QString& arg1 = QString::fromAscii(lua_tostring(L, 2), lua_objlen(L, 2));
352 __lua__obj->QAction::setText(arg1);
353 return 0;
355 int LuaBinder< QAction >::__LuaWrapCall__data (lua_State *L) {
356 QAction *& __lua__obj = *static_cast<QAction**>(lqtL_checkudata(L, 1, "QAction*"));
357 if (__lua__obj==0) {
358 lua_pushstring(L, "trying to reference deleted pointer");
359 lua_error(L);
360 return 0;
362 QVariant ret = __lua__obj->QAction::data();
363 lqtL_passudata(L, new QVariant(ret), "QVariant*");
364 return 1;
366 int LuaBinder< QAction >::__LuaWrapCall__isCheckable (lua_State *L) {
367 QAction *& __lua__obj = *static_cast<QAction**>(lqtL_checkudata(L, 1, "QAction*"));
368 if (__lua__obj==0) {
369 lua_pushstring(L, "trying to reference deleted pointer");
370 lua_error(L);
371 return 0;
373 bool ret = __lua__obj->QAction::isCheckable();
374 lua_pushboolean(L, ret);
375 return 1;
377 int LuaBinder< QAction >::__LuaWrapCall__setStatusTip (lua_State *L) {
378 QAction *& __lua__obj = *static_cast<QAction**>(lqtL_checkudata(L, 1, "QAction*"));
379 if (__lua__obj==0) {
380 lua_pushstring(L, "trying to reference deleted pointer");
381 lua_error(L);
382 return 0;
384 const QString& arg1 = QString::fromAscii(lua_tostring(L, 2), lua_objlen(L, 2));
385 __lua__obj->QAction::setStatusTip(arg1);
386 return 0;
388 int LuaBinder< QAction >::__LuaWrapCall__setDisabled (lua_State *L) {
389 QAction *& __lua__obj = *static_cast<QAction**>(lqtL_checkudata(L, 1, "QAction*"));
390 if (__lua__obj==0) {
391 lua_pushstring(L, "trying to reference deleted pointer");
392 lua_error(L);
393 return 0;
395 bool arg1 = (bool)lua_toboolean(L, 2);
396 __lua__obj->QAction::setDisabled(arg1);
397 return 0;
399 int LuaBinder< QAction >::__LuaWrapCall__setShortcutContext (lua_State *L) {
400 QAction *& __lua__obj = *static_cast<QAction**>(lqtL_checkudata(L, 1, "QAction*"));
401 if (__lua__obj==0) {
402 lua_pushstring(L, "trying to reference deleted pointer");
403 lua_error(L);
404 return 0;
406 Qt::ShortcutContext arg1 = static_cast<Qt::ShortcutContext>(lqtL_toenum(L, 2, "Qt::ShortcutContext"));
407 __lua__obj->QAction::setShortcutContext(arg1);
408 return 0;
410 int LuaBinder< QAction >::__LuaWrapCall__setActionGroup (lua_State *L) {
411 QAction *& __lua__obj = *static_cast<QAction**>(lqtL_checkudata(L, 1, "QAction*"));
412 if (__lua__obj==0) {
413 lua_pushstring(L, "trying to reference deleted pointer");
414 lua_error(L);
415 return 0;
417 QActionGroup * arg1 = *static_cast<QActionGroup**>(lqtL_checkudata(L, 2, "QActionGroup*"));
418 __lua__obj->QAction::setActionGroup(arg1);
419 return 0;
421 int LuaBinder< QAction >::__LuaWrapCall__autoRepeat (lua_State *L) {
422 QAction *& __lua__obj = *static_cast<QAction**>(lqtL_checkudata(L, 1, "QAction*"));
423 if (__lua__obj==0) {
424 lua_pushstring(L, "trying to reference deleted pointer");
425 lua_error(L);
426 return 0;
428 bool ret = __lua__obj->QAction::autoRepeat();
429 lua_pushboolean(L, ret);
430 return 1;
432 int LuaBinder< QAction >::__LuaWrapCall__setFont (lua_State *L) {
433 QAction *& __lua__obj = *static_cast<QAction**>(lqtL_checkudata(L, 1, "QAction*"));
434 if (__lua__obj==0) {
435 lua_pushstring(L, "trying to reference deleted pointer");
436 lua_error(L);
437 return 0;
439 const QFont& arg1 = **static_cast<QFont**>(lqtL_checkudata(L, 2, "QFont*"));
440 __lua__obj->QAction::setFont(arg1);
441 return 0;
443 int LuaBinder< QAction >::__LuaWrapCall__metaObject (lua_State *L) {
444 QAction *& __lua__obj = *static_cast<QAction**>(lqtL_checkudata(L, 1, "QAction*"));
445 if (__lua__obj==0) {
446 lua_pushstring(L, "trying to reference deleted pointer");
447 lua_error(L);
448 return 0;
450 const QMetaObject * ret = __lua__obj->QAction::metaObject();
451 lqtL_pushudata(L, ret, "QMetaObject*");
452 return 1;
454 int LuaBinder< QAction >::__LuaWrapCall__new__OverloadedVersion__1 (lua_State *L) {
455 QObject * arg1 = *static_cast<QObject**>(lqtL_checkudata(L, 1, "QObject*"));
456 QAction * ret = new LuaBinder< QAction >(L, arg1);
457 lqtL_passudata(L, ret, "QAction*");
458 return 1;
460 int LuaBinder< QAction >::__LuaWrapCall__new__OverloadedVersion__2 (lua_State *L) {
461 const QString& arg1 = QString::fromAscii(lua_tostring(L, 1), lua_objlen(L, 1));
462 QObject * arg2 = *static_cast<QObject**>(lqtL_checkudata(L, 2, "QObject*"));
463 QAction * ret = new LuaBinder< QAction >(L, arg1, arg2);
464 lqtL_passudata(L, ret, "QAction*");
465 return 1;
467 int LuaBinder< QAction >::__LuaWrapCall__new__OverloadedVersion__3 (lua_State *L) {
468 const QIcon& arg1 = **static_cast<QIcon**>(lqtL_checkudata(L, 1, "QIcon*"));
469 const QString& arg2 = QString::fromAscii(lua_tostring(L, 2), lua_objlen(L, 2));
470 QObject * arg3 = *static_cast<QObject**>(lqtL_checkudata(L, 3, "QObject*"));
471 QAction * ret = new LuaBinder< QAction >(L, arg1, arg2, arg3);
472 lqtL_passudata(L, ret, "QAction*");
473 return 1;
475 int LuaBinder< QAction >::__LuaWrapCall__new (lua_State *L) {
476 int score[4];
477 const int premium = 11+lua_gettop(L);
478 score[1] = 0;
479 if (lqtL_testudata(L, 1, "QObject*")) {
480 score[1] += premium;
481 } else if (false) {
482 score[1] += premium-1; // table: 0x14423d0;
483 } else {
484 score[1] -= premium*premium;
486 score[2] = 0;
487 if ((lua_type(L, 1)==LUA_TSTRING)) {
488 score[2] += premium;
489 } else if (false) {
490 score[2] += premium-1; // table: 0x1442df0;
491 } else {
492 score[2] -= premium*premium;
494 if (lqtL_testudata(L, 2, "QObject*")) {
495 score[2] += premium;
496 } else if (false) {
497 score[2] += premium-1; // table: 0x14428e0;
498 } else {
499 score[2] -= premium*premium;
501 score[3] = 0;
502 if (lqtL_testudata(L, 1, "QIcon*")) {
503 score[3] += premium;
504 } else if (false) {
505 score[3] += premium-1; // table: 0x1443c50;
506 } else {
507 score[3] -= premium*premium;
509 if ((lua_type(L, 2)==LUA_TSTRING)) {
510 score[3] += premium;
511 } else if (false) {
512 score[3] += premium-1; // table: 0x14436c0;
513 } else {
514 score[3] -= premium*premium;
516 if (lqtL_testudata(L, 3, "QObject*")) {
517 score[3] += premium;
518 } else if (false) {
519 score[3] += premium-1; // table: 0x1444100;
520 } else {
521 score[3] -= premium*premium;
523 int best = 1;
524 for (int i=1;i<=3;i++) {
525 if (score[best] < score[i]) { best = i; }
527 switch (best) {
528 case 1: return __LuaWrapCall__new__OverloadedVersion__1(L); break;
529 case 2: return __LuaWrapCall__new__OverloadedVersion__2(L); break;
530 case 3: return __LuaWrapCall__new__OverloadedVersion__3(L); break;
532 lua_pushstring(L, "no overload of function __LuaWrapCall__new matching arguments");
533 lua_error(L);
534 return 0;
536 int LuaBinder< QAction >::__LuaWrapCall__hover (lua_State *L) {
537 QAction *& __lua__obj = *static_cast<QAction**>(lqtL_checkudata(L, 1, "QAction*"));
538 if (__lua__obj==0) {
539 lua_pushstring(L, "trying to reference deleted pointer");
540 lua_error(L);
541 return 0;
543 __lua__obj->QAction::hover();
544 return 0;
546 int LuaBinder< QAction >::__LuaWrapCall__delete (lua_State *L) {
547 QAction *& __lua__obj = *static_cast<QAction**>(lqtL_checkudata(L, 1, "QAction*"));
548 if (__lua__obj==0) {
549 lua_pushstring(L, "trying to reference deleted pointer");
550 lua_error(L);
551 return 0;
553 delete __lua__obj;
554 __lua__obj = 0;
555 return 0;
557 int LuaBinder< QAction >::__LuaWrapCall__font (lua_State *L) {
558 QAction *& __lua__obj = *static_cast<QAction**>(lqtL_checkudata(L, 1, "QAction*"));
559 if (__lua__obj==0) {
560 lua_pushstring(L, "trying to reference deleted pointer");
561 lua_error(L);
562 return 0;
564 QFont ret = __lua__obj->QAction::font();
565 lqtL_passudata(L, new QFont(ret), "QFont*");
566 return 1;
568 int LuaBinder< QAction >::__LuaWrapCall__actionGroup (lua_State *L) {
569 QAction *& __lua__obj = *static_cast<QAction**>(lqtL_checkudata(L, 1, "QAction*"));
570 if (__lua__obj==0) {
571 lua_pushstring(L, "trying to reference deleted pointer");
572 lua_error(L);
573 return 0;
575 QActionGroup * ret = __lua__obj->QAction::actionGroup();
576 lqtL_pushudata(L, ret, "QActionGroup*");
577 return 1;
579 int LuaBinder< QAction >::__LuaWrapCall__setShortcut (lua_State *L) {
580 QAction *& __lua__obj = *static_cast<QAction**>(lqtL_checkudata(L, 1, "QAction*"));
581 if (__lua__obj==0) {
582 lua_pushstring(L, "trying to reference deleted pointer");
583 lua_error(L);
584 return 0;
586 const QKeySequence& arg1 = **static_cast<QKeySequence**>(lqtL_checkudata(L, 2, "QKeySequence*"));
587 __lua__obj->QAction::setShortcut(arg1);
588 return 0;
590 int LuaBinder< QAction >::__LuaWrapCall__setShortcuts__OverloadedVersion__1 (lua_State *L) {
591 QAction *& __lua__obj = *static_cast<QAction**>(lqtL_checkudata(L, 1, "QAction*"));
592 if (__lua__obj==0) {
593 lua_pushstring(L, "trying to reference deleted pointer");
594 lua_error(L);
595 return 0;
597 const QList<QKeySequence>& arg1 = **static_cast<QList<QKeySequence>**>(lqtL_checkudata(L, 2, "QList<QKeySequence>*"));
598 __lua__obj->QAction::setShortcuts(arg1);
599 return 0;
601 int LuaBinder< QAction >::__LuaWrapCall__setShortcuts__OverloadedVersion__2 (lua_State *L) {
602 QAction *& __lua__obj = *static_cast<QAction**>(lqtL_checkudata(L, 1, "QAction*"));
603 if (__lua__obj==0) {
604 lua_pushstring(L, "trying to reference deleted pointer");
605 lua_error(L);
606 return 0;
608 QKeySequence::StandardKey arg1 = static_cast<QKeySequence::StandardKey>(lqtL_toenum(L, 2, "QKeySequence::StandardKey"));
609 __lua__obj->QAction::setShortcuts(arg1);
610 return 0;
612 int LuaBinder< QAction >::__LuaWrapCall__setShortcuts (lua_State *L) {
613 int score[3];
614 const int premium = 11+lua_gettop(L);
615 score[1] = 0;
616 score[1] += lqtL_testudata(L, 1, "QAction*")?premium:-premium*premium;
617 if (lqtL_testudata(L, 2, "QList<QKeySequence>*")) {
618 score[1] += premium;
619 } else if (false) {
620 score[1] += premium-1; // table: 0x1450510;
621 } else {
622 score[1] -= premium*premium;
624 score[2] = 0;
625 score[2] += lqtL_testudata(L, 1, "QAction*")?premium:-premium*premium;
626 if (lqtL_isenum(L, 2, "QKeySequence::StandardKey")) {
627 score[2] += premium;
628 } else if (false) {
629 score[2] += premium-1; // table: 0x1451050;
630 } else {
631 score[2] -= premium*premium;
633 int best = 1;
634 for (int i=1;i<=2;i++) {
635 if (score[best] < score[i]) { best = i; }
637 switch (best) {
638 case 1: return __LuaWrapCall__setShortcuts__OverloadedVersion__1(L); break;
639 case 2: return __LuaWrapCall__setShortcuts__OverloadedVersion__2(L); break;
641 lua_pushstring(L, "no overload of function __LuaWrapCall__setShortcuts matching arguments");
642 lua_error(L);
643 return 0;
645 int LuaBinder< QAction >::__LuaWrapCall__isChecked (lua_State *L) {
646 QAction *& __lua__obj = *static_cast<QAction**>(lqtL_checkudata(L, 1, "QAction*"));
647 if (__lua__obj==0) {
648 lua_pushstring(L, "trying to reference deleted pointer");
649 lua_error(L);
650 return 0;
652 bool ret = __lua__obj->QAction::isChecked();
653 lua_pushboolean(L, ret);
654 return 1;
656 int LuaBinder< QAction >::__LuaWrapCall__trUtf8__OverloadedVersion__1 (lua_State *L) {
657 const char * arg1 = lua_tostring(L, 1);
658 const char * arg2 = (lua_type(L, 2)==LUA_TSTRING)?lua_tostring(L, 2):static_cast< const char * >(0);
659 QString ret = QAction::trUtf8(arg1, arg2);
660 lua_pushlstring(L, ret.toAscii().data(), ret.toAscii().size());
661 return 1;
663 int LuaBinder< QAction >::__LuaWrapCall__trUtf8__OverloadedVersion__2 (lua_State *L) {
664 const char * arg1 = lua_tostring(L, 1);
665 const char * arg2 = lua_tostring(L, 2);
666 int arg3 = lua_tointeger(L, 3);
667 QString ret = QAction::trUtf8(arg1, arg2, arg3);
668 lua_pushlstring(L, ret.toAscii().data(), ret.toAscii().size());
669 return 1;
671 int LuaBinder< QAction >::__LuaWrapCall__trUtf8 (lua_State *L) {
672 int score[3];
673 const int premium = 11+lua_gettop(L);
674 score[1] = 0;
675 if ((lua_type(L, 1)==LUA_TSTRING)) {
676 score[1] += premium;
677 } else if (false) {
678 score[1] += premium-1; // table: 0x143d730;
679 } else {
680 score[1] -= premium*premium;
682 if ((lua_type(L, 2)==LUA_TSTRING)) {
683 score[1] += premium;
684 } else if (true) {
685 score[1] += premium-1; // table: 0x143d290;
686 } else {
687 score[1] -= premium*premium;
689 score[2] = 0;
690 if ((lua_type(L, 1)==LUA_TSTRING)) {
691 score[2] += premium;
692 } else if (false) {
693 score[2] += premium-1; // table: 0x143f510;
694 } else {
695 score[2] -= premium*premium;
697 if ((lua_type(L, 2)==LUA_TSTRING)) {
698 score[2] += premium;
699 } else if (false) {
700 score[2] += premium-1; // table: 0x143ec40;
701 } else {
702 score[2] -= premium*premium;
704 if (lua_isnumber(L, 3)) {
705 score[2] += premium;
706 } else if (false) {
707 score[2] += premium-1; // table: 0x143f9a0;
708 } else {
709 score[2] -= premium*premium;
711 int best = 1;
712 for (int i=1;i<=2;i++) {
713 if (score[best] < score[i]) { best = i; }
715 switch (best) {
716 case 1: return __LuaWrapCall__trUtf8__OverloadedVersion__1(L); break;
717 case 2: return __LuaWrapCall__trUtf8__OverloadedVersion__2(L); break;
719 lua_pushstring(L, "no overload of function __LuaWrapCall__trUtf8 matching arguments");
720 lua_error(L);
721 return 0;
723 int LuaBinder< QAction >::__LuaWrapCall__setMenuRole (lua_State *L) {
724 QAction *& __lua__obj = *static_cast<QAction**>(lqtL_checkudata(L, 1, "QAction*"));
725 if (__lua__obj==0) {
726 lua_pushstring(L, "trying to reference deleted pointer");
727 lua_error(L);
728 return 0;
730 QAction::MenuRole arg1 = static_cast<QAction::MenuRole>(lqtL_toenum(L, 2, "QAction::MenuRole"));
731 __lua__obj->QAction::setMenuRole(arg1);
732 return 0;
734 int LuaBinder< QAction >::__LuaWrapCall__menuRole (lua_State *L) {
735 QAction *& __lua__obj = *static_cast<QAction**>(lqtL_checkudata(L, 1, "QAction*"));
736 if (__lua__obj==0) {
737 lua_pushstring(L, "trying to reference deleted pointer");
738 lua_error(L);
739 return 0;
741 QAction::MenuRole ret = __lua__obj->QAction::menuRole();
742 lqtL_pushenum(L, ret, "QAction::MenuRole");
743 return 1;
745 int LuaBinder< QAction >::__LuaWrapCall__menu (lua_State *L) {
746 QAction *& __lua__obj = *static_cast<QAction**>(lqtL_checkudata(L, 1, "QAction*"));
747 if (__lua__obj==0) {
748 lua_pushstring(L, "trying to reference deleted pointer");
749 lua_error(L);
750 return 0;
752 QMenu * ret = __lua__obj->QAction::menu();
753 lqtL_pushudata(L, ret, "QMenu*");
754 return 1;
756 int LuaBinder< QAction >::__LuaWrapCall__setWhatsThis (lua_State *L) {
757 QAction *& __lua__obj = *static_cast<QAction**>(lqtL_checkudata(L, 1, "QAction*"));
758 if (__lua__obj==0) {
759 lua_pushstring(L, "trying to reference deleted pointer");
760 lua_error(L);
761 return 0;
763 const QString& arg1 = QString::fromAscii(lua_tostring(L, 2), lua_objlen(L, 2));
764 __lua__obj->QAction::setWhatsThis(arg1);
765 return 0;
767 int LuaBinder< QAction >::__LuaWrapCall__isEnabled (lua_State *L) {
768 QAction *& __lua__obj = *static_cast<QAction**>(lqtL_checkudata(L, 1, "QAction*"));
769 if (__lua__obj==0) {
770 lua_pushstring(L, "trying to reference deleted pointer");
771 lua_error(L);
772 return 0;
774 bool ret = __lua__obj->QAction::isEnabled();
775 lua_pushboolean(L, ret);
776 return 1;
778 int LuaBinder< QAction >::__LuaWrapCall__setData (lua_State *L) {
779 QAction *& __lua__obj = *static_cast<QAction**>(lqtL_checkudata(L, 1, "QAction*"));
780 if (__lua__obj==0) {
781 lua_pushstring(L, "trying to reference deleted pointer");
782 lua_error(L);
783 return 0;
785 const QVariant& arg1 = **static_cast<QVariant**>(lqtL_checkudata(L, 2, "QVariant*"));
786 __lua__obj->QAction::setData(arg1);
787 return 0;
789 int LuaBinder< QAction >::__LuaWrapCall__setEnabled (lua_State *L) {
790 QAction *& __lua__obj = *static_cast<QAction**>(lqtL_checkudata(L, 1, "QAction*"));
791 if (__lua__obj==0) {
792 lua_pushstring(L, "trying to reference deleted pointer");
793 lua_error(L);
794 return 0;
796 bool arg1 = (bool)lua_toboolean(L, 2);
797 __lua__obj->QAction::setEnabled(arg1);
798 return 0;
800 int LuaBinder< QAction >::__LuaWrapCall__text (lua_State *L) {
801 QAction *& __lua__obj = *static_cast<QAction**>(lqtL_checkudata(L, 1, "QAction*"));
802 if (__lua__obj==0) {
803 lua_pushstring(L, "trying to reference deleted pointer");
804 lua_error(L);
805 return 0;
807 QString ret = __lua__obj->QAction::text();
808 lua_pushlstring(L, ret.toAscii().data(), ret.toAscii().size());
809 return 1;
811 bool LuaBinder< QAction >::event (QEvent * arg1) {
812 bool absorbed = false;
813 int oldtop = lua_gettop(L);
814 lqtL_pushudata(L, this, "QAction*");
815 if (lua_getmetatable(L, -1)) {
816 lua_getfield(L, -1, "event");
817 lua_remove(L, -2);
818 } else {
819 lua_pushnil(L);
821 lua_insert(L, -2);
822 lqtL_pushudata(L, arg1, "QEvent*");
823 if (lua_isfunction(L, -1-2)) {
824 lua_pcall(L, 1+1, 2, 0);
825 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
826 lua_pop(L, 1);
828 if (!absorbed) {
829 lua_settop(L, oldtop);
830 return this->QAction::event(arg1);
832 bool ret = (bool)lua_toboolean(L, -1);
833 lua_settop(L, oldtop);
834 return ret;
836 void LuaBinder< QAction >::connectNotify (const char * arg1) {
837 bool absorbed = false;
838 int oldtop = lua_gettop(L);
839 lqtL_pushudata(L, this, "QAction*");
840 if (lua_getmetatable(L, -1)) {
841 lua_getfield(L, -1, "connectNotify");
842 lua_remove(L, -2);
843 } else {
844 lua_pushnil(L);
846 lua_insert(L, -2);
847 lua_pushstring(L, arg1);
848 if (lua_isfunction(L, -1-2)) {
849 lua_pcall(L, 1+1, 2, 0);
850 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
851 lua_pop(L, 1);
853 if (!absorbed) {
854 lua_settop(L, oldtop);
855 this->QObject::connectNotify(arg1);
857 lua_settop(L, oldtop);
859 bool LuaBinder< QAction >::eventFilter (QObject * arg1, QEvent * arg2) {
860 bool absorbed = false;
861 int oldtop = lua_gettop(L);
862 lqtL_pushudata(L, this, "QAction*");
863 if (lua_getmetatable(L, -1)) {
864 lua_getfield(L, -1, "eventFilter");
865 lua_remove(L, -2);
866 } else {
867 lua_pushnil(L);
869 lua_insert(L, -2);
870 lqtL_pushudata(L, arg1, "QObject*");
871 lqtL_pushudata(L, arg2, "QEvent*");
872 if (lua_isfunction(L, -2-2)) {
873 lua_pcall(L, 2+1, 2, 0);
874 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
875 lua_pop(L, 1);
877 if (!absorbed) {
878 lua_settop(L, oldtop);
879 return this->QObject::eventFilter(arg1, arg2);
881 bool ret = (bool)lua_toboolean(L, -1);
882 lua_settop(L, oldtop);
883 return ret;
885 void LuaBinder< QAction >::disconnectNotify (const char * arg1) {
886 bool absorbed = false;
887 int oldtop = lua_gettop(L);
888 lqtL_pushudata(L, this, "QAction*");
889 if (lua_getmetatable(L, -1)) {
890 lua_getfield(L, -1, "disconnectNotify");
891 lua_remove(L, -2);
892 } else {
893 lua_pushnil(L);
895 lua_insert(L, -2);
896 lua_pushstring(L, arg1);
897 if (lua_isfunction(L, -1-2)) {
898 lua_pcall(L, 1+1, 2, 0);
899 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
900 lua_pop(L, 1);
902 if (!absorbed) {
903 lua_settop(L, oldtop);
904 this->QObject::disconnectNotify(arg1);
906 lua_settop(L, oldtop);
908 void LuaBinder< QAction >::childEvent (QChildEvent * arg1) {
909 bool absorbed = false;
910 int oldtop = lua_gettop(L);
911 lqtL_pushudata(L, this, "QAction*");
912 if (lua_getmetatable(L, -1)) {
913 lua_getfield(L, -1, "childEvent");
914 lua_remove(L, -2);
915 } else {
916 lua_pushnil(L);
918 lua_insert(L, -2);
919 lqtL_pushudata(L, arg1, "QChildEvent*");
920 if (lua_isfunction(L, -1-2)) {
921 lua_pcall(L, 1+1, 2, 0);
922 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
923 lua_pop(L, 1);
925 if (!absorbed) {
926 lua_settop(L, oldtop);
927 this->QObject::childEvent(arg1);
929 lua_settop(L, oldtop);
931 void LuaBinder< QAction >::timerEvent (QTimerEvent * arg1) {
932 bool absorbed = false;
933 int oldtop = lua_gettop(L);
934 lqtL_pushudata(L, this, "QAction*");
935 if (lua_getmetatable(L, -1)) {
936 lua_getfield(L, -1, "timerEvent");
937 lua_remove(L, -2);
938 } else {
939 lua_pushnil(L);
941 lua_insert(L, -2);
942 lqtL_pushudata(L, arg1, "QTimerEvent*");
943 if (lua_isfunction(L, -1-2)) {
944 lua_pcall(L, 1+1, 2, 0);
945 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
946 lua_pop(L, 1);
948 if (!absorbed) {
949 lua_settop(L, oldtop);
950 this->QObject::timerEvent(arg1);
952 lua_settop(L, oldtop);
954 const QMetaObject * LuaBinder< QAction >::metaObject () const {
955 bool absorbed = false;
956 int oldtop = lua_gettop(L);
957 lqtL_pushudata(L, this, "QAction*");
958 if (lua_getmetatable(L, -1)) {
959 lua_getfield(L, -1, "metaObject");
960 lua_remove(L, -2);
961 } else {
962 lua_pushnil(L);
964 lua_insert(L, -2);
965 if (lua_isfunction(L, -0-2)) {
966 lua_pcall(L, 0+1, 2, 0);
967 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
968 lua_pop(L, 1);
970 if (!absorbed) {
971 lua_settop(L, oldtop);
972 return this->QAction::metaObject();
974 const QMetaObject * ret = *static_cast<QMetaObject**>(lqtL_checkudata(L, -1, "QMetaObject*"));
975 lua_settop(L, oldtop);
976 return ret;
978 void LuaBinder< QAction >::customEvent (QEvent * arg1) {
979 bool absorbed = false;
980 int oldtop = lua_gettop(L);
981 lqtL_pushudata(L, this, "QAction*");
982 if (lua_getmetatable(L, -1)) {
983 lua_getfield(L, -1, "customEvent");
984 lua_remove(L, -2);
985 } else {
986 lua_pushnil(L);
988 lua_insert(L, -2);
989 lqtL_pushudata(L, arg1, "QEvent*");
990 if (lua_isfunction(L, -1-2)) {
991 lua_pcall(L, 1+1, 2, 0);
992 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
993 lua_pop(L, 1);
995 if (!absorbed) {
996 lua_settop(L, oldtop);
997 this->QObject::customEvent(arg1);
999 lua_settop(L, oldtop);
1001 LuaBinder< QAction >:: ~LuaBinder< QAction > () {
1002 int oldtop = lua_gettop(L);
1003 lqtL_pushudata(L, this, "QAction*");
1004 lua_getfield(L, -1, "~QAction");
1006 if (lua_isfunction(L, -1)) {
1007 lua_insert(L, -2);
1008 lua_pcall(L, 1, 1, 0);
1009 } else {
1011 lua_settop(L, oldtop);
1013 int LuaBinder< QAction >::lqt_pushenum_MenuRole (lua_State *L) {
1014 int enum_table = 0;
1015 lua_getfield(L, LUA_REGISTRYINDEX, LQT_ENUMS);
1016 if (!lua_istable(L, -1)) {
1017 lua_pop(L, 1);
1018 lua_newtable(L);
1019 lua_pushvalue(L, -1);
1020 lua_setfield(L, LUA_REGISTRYINDEX, LQT_ENUMS);
1022 lua_newtable(L);
1023 enum_table = lua_gettop(L);
1024 lua_pushstring(L, "NoRole");
1025 lua_rawseti(L, enum_table, 0);
1026 lua_pushinteger(L, 0);
1027 lua_setfield(L, enum_table, "NoRole");
1028 lua_pushstring(L, "TextHeuristicRole");
1029 lua_rawseti(L, enum_table, 1);
1030 lua_pushinteger(L, 1);
1031 lua_setfield(L, enum_table, "TextHeuristicRole");
1032 lua_pushstring(L, "ApplicationSpecificRole");
1033 lua_rawseti(L, enum_table, 2);
1034 lua_pushinteger(L, 2);
1035 lua_setfield(L, enum_table, "ApplicationSpecificRole");
1036 lua_pushstring(L, "AboutQtRole");
1037 lua_rawseti(L, enum_table, 3);
1038 lua_pushinteger(L, 3);
1039 lua_setfield(L, enum_table, "AboutQtRole");
1040 lua_pushstring(L, "AboutRole");
1041 lua_rawseti(L, enum_table, 4);
1042 lua_pushinteger(L, 4);
1043 lua_setfield(L, enum_table, "AboutRole");
1044 lua_pushstring(L, "PreferencesRole");
1045 lua_rawseti(L, enum_table, 5);
1046 lua_pushinteger(L, 5);
1047 lua_setfield(L, enum_table, "PreferencesRole");
1048 lua_pushstring(L, "QuitRole");
1049 lua_rawseti(L, enum_table, 6);
1050 lua_pushinteger(L, 6);
1051 lua_setfield(L, enum_table, "QuitRole");
1052 lua_pushcfunction(L, LuaBinder< QAction >::lqt_pushenum_MenuRole_QFLAGS_CREATOR);
1053 lua_setfield(L, enum_table, "QFlags");
1054 lua_pushvalue(L, -1);
1055 lua_setfield(L, -3, "QAction::MenuRole");
1056 lua_remove(L, -2);
1057 return 1;
1059 int LuaBinder< QAction >::lqt_pushenum_MenuRole_QFLAGS_CREATOR (lua_State *L) {
1060 int argn = lua_gettop(L);
1061 int i = 0;
1062 void *p = lua_newuserdata(L, sizeof(QFlags<QAction::MenuRole>*) + sizeof(QFlags<QAction::MenuRole>));
1063 QFlags<QAction::MenuRole> *fl = static_cast<QFlags<QAction::MenuRole>*>( static_cast<void*>(&static_cast<QFlags<QAction::MenuRole>**>(p)[1]) );
1064 *(void**)p = fl;
1065 for (i=1;i<=argn;i++) {
1066 *fl |= static_cast<QAction::MenuRole>(lqtL_toenum(L, i, "QAction::MenuRole"));
1068 if (luaL_newmetatable(L, "QFlags<QAction::MenuRole>*")) {
1069 lua_pushstring(L, "QFlags<QAction::MenuRole>*");
1070 lua_setfield(L, -2, "__qtype");
1072 lua_setmetatable(L, -2);
1073 return 1;
1075 int LuaBinder< QAction >::lqt_pushenum_ActionEvent (lua_State *L) {
1076 int enum_table = 0;
1077 lua_getfield(L, LUA_REGISTRYINDEX, LQT_ENUMS);
1078 if (!lua_istable(L, -1)) {
1079 lua_pop(L, 1);
1080 lua_newtable(L);
1081 lua_pushvalue(L, -1);
1082 lua_setfield(L, LUA_REGISTRYINDEX, LQT_ENUMS);
1084 lua_newtable(L);
1085 enum_table = lua_gettop(L);
1086 lua_pushstring(L, "Trigger");
1087 lua_rawseti(L, enum_table, 0);
1088 lua_pushinteger(L, 0);
1089 lua_setfield(L, enum_table, "Trigger");
1090 lua_pushstring(L, "Hover");
1091 lua_rawseti(L, enum_table, 1);
1092 lua_pushinteger(L, 1);
1093 lua_setfield(L, enum_table, "Hover");
1094 lua_pushcfunction(L, LuaBinder< QAction >::lqt_pushenum_ActionEvent_QFLAGS_CREATOR);
1095 lua_setfield(L, enum_table, "QFlags");
1096 lua_pushvalue(L, -1);
1097 lua_setfield(L, -3, "QAction::ActionEvent");
1098 lua_remove(L, -2);
1099 return 1;
1101 int LuaBinder< QAction >::lqt_pushenum_ActionEvent_QFLAGS_CREATOR (lua_State *L) {
1102 int argn = lua_gettop(L);
1103 int i = 0;
1104 void *p = lua_newuserdata(L, sizeof(QFlags<QAction::ActionEvent>*) + sizeof(QFlags<QAction::ActionEvent>));
1105 QFlags<QAction::ActionEvent> *fl = static_cast<QFlags<QAction::ActionEvent>*>( static_cast<void*>(&static_cast<QFlags<QAction::ActionEvent>**>(p)[1]) );
1106 *(void**)p = fl;
1107 for (i=1;i<=argn;i++) {
1108 *fl |= static_cast<QAction::ActionEvent>(lqtL_toenum(L, i, "QAction::ActionEvent"));
1110 if (luaL_newmetatable(L, "QFlags<QAction::ActionEvent>*")) {
1111 lua_pushstring(L, "QFlags<QAction::ActionEvent>*");
1112 lua_setfield(L, -2, "__qtype");
1114 lua_setmetatable(L, -2);
1115 return 1;
1117 int luaopen_QAction (lua_State *L) {
1118 if (luaL_newmetatable(L, "QAction*")) {
1119 lua_pushcfunction(L, LuaBinder< QAction >::__LuaWrapCall__parentWidget);
1120 lua_setfield(L, -2, "parentWidget");
1121 lua_pushcfunction(L, LuaBinder< QAction >::__LuaWrapCall__setChecked);
1122 lua_setfield(L, -2, "setChecked");
1123 lua_pushcfunction(L, LuaBinder< QAction >::__LuaWrapCall__statusTip);
1124 lua_setfield(L, -2, "statusTip");
1125 lua_pushcfunction(L, LuaBinder< QAction >::__LuaWrapCall__setVisible);
1126 lua_setfield(L, -2, "setVisible");
1127 lua_pushcfunction(L, LuaBinder< QAction >::__LuaWrapCall__setIcon);
1128 lua_setfield(L, -2, "setIcon");
1129 lua_pushcfunction(L, LuaBinder< QAction >::__LuaWrapCall__isSeparator);
1130 lua_setfield(L, -2, "isSeparator");
1131 lua_pushcfunction(L, LuaBinder< QAction >::__LuaWrapCall__toggle);
1132 lua_setfield(L, -2, "toggle");
1133 lua_pushcfunction(L, LuaBinder< QAction >::__LuaWrapCall__icon);
1134 lua_setfield(L, -2, "icon");
1135 lua_pushcfunction(L, LuaBinder< QAction >::__LuaWrapCall__tr);
1136 lua_setfield(L, -2, "tr");
1137 lua_pushcfunction(L, LuaBinder< QAction >::__LuaWrapCall__isVisible);
1138 lua_setfield(L, -2, "isVisible");
1139 lua_pushcfunction(L, LuaBinder< QAction >::__LuaWrapCall__whatsThis);
1140 lua_setfield(L, -2, "whatsThis");
1141 lua_pushcfunction(L, LuaBinder< QAction >::__LuaWrapCall__toolTip);
1142 lua_setfield(L, -2, "toolTip");
1143 lua_pushcfunction(L, LuaBinder< QAction >::__LuaWrapCall__setIconText);
1144 lua_setfield(L, -2, "setIconText");
1145 lua_pushcfunction(L, LuaBinder< QAction >::__LuaWrapCall__shortcut);
1146 lua_setfield(L, -2, "shortcut");
1147 lua_pushcfunction(L, LuaBinder< QAction >::__LuaWrapCall__iconText);
1148 lua_setfield(L, -2, "iconText");
1149 lua_pushcfunction(L, LuaBinder< QAction >::__LuaWrapCall__shortcutContext);
1150 lua_setfield(L, -2, "shortcutContext");
1151 lua_pushcfunction(L, LuaBinder< QAction >::__LuaWrapCall__setToolTip);
1152 lua_setfield(L, -2, "setToolTip");
1153 lua_pushcfunction(L, LuaBinder< QAction >::__LuaWrapCall__setMenu);
1154 lua_setfield(L, -2, "setMenu");
1155 lua_pushcfunction(L, LuaBinder< QAction >::__LuaWrapCall__showStatusText);
1156 lua_setfield(L, -2, "showStatusText");
1157 lua_pushcfunction(L, LuaBinder< QAction >::__LuaWrapCall__setAutoRepeat);
1158 lua_setfield(L, -2, "setAutoRepeat");
1159 lua_pushcfunction(L, LuaBinder< QAction >::__LuaWrapCall__setCheckable);
1160 lua_setfield(L, -2, "setCheckable");
1161 lua_pushcfunction(L, LuaBinder< QAction >::__LuaWrapCall__setSeparator);
1162 lua_setfield(L, -2, "setSeparator");
1163 lua_pushcfunction(L, LuaBinder< QAction >::__LuaWrapCall__activate);
1164 lua_setfield(L, -2, "activate");
1165 lua_pushcfunction(L, LuaBinder< QAction >::__LuaWrapCall__trigger);
1166 lua_setfield(L, -2, "trigger");
1167 lua_pushcfunction(L, LuaBinder< QAction >::__LuaWrapCall__shortcuts);
1168 lua_setfield(L, -2, "shortcuts");
1169 lua_pushcfunction(L, LuaBinder< QAction >::__LuaWrapCall__associatedWidgets);
1170 lua_setfield(L, -2, "associatedWidgets");
1171 lua_pushcfunction(L, LuaBinder< QAction >::__LuaWrapCall__setText);
1172 lua_setfield(L, -2, "setText");
1173 lua_pushcfunction(L, LuaBinder< QAction >::__LuaWrapCall__data);
1174 lua_setfield(L, -2, "data");
1175 lua_pushcfunction(L, LuaBinder< QAction >::__LuaWrapCall__isCheckable);
1176 lua_setfield(L, -2, "isCheckable");
1177 lua_pushcfunction(L, LuaBinder< QAction >::__LuaWrapCall__setStatusTip);
1178 lua_setfield(L, -2, "setStatusTip");
1179 lua_pushcfunction(L, LuaBinder< QAction >::__LuaWrapCall__setDisabled);
1180 lua_setfield(L, -2, "setDisabled");
1181 lua_pushcfunction(L, LuaBinder< QAction >::__LuaWrapCall__setShortcutContext);
1182 lua_setfield(L, -2, "setShortcutContext");
1183 lua_pushcfunction(L, LuaBinder< QAction >::__LuaWrapCall__setActionGroup);
1184 lua_setfield(L, -2, "setActionGroup");
1185 lua_pushcfunction(L, LuaBinder< QAction >::__LuaWrapCall__autoRepeat);
1186 lua_setfield(L, -2, "autoRepeat");
1187 lua_pushcfunction(L, LuaBinder< QAction >::__LuaWrapCall__setFont);
1188 lua_setfield(L, -2, "setFont");
1189 lua_pushcfunction(L, LuaBinder< QAction >::__LuaWrapCall__metaObject);
1190 lua_setfield(L, -2, "metaObject");
1191 lua_pushcfunction(L, LuaBinder< QAction >::__LuaWrapCall__new);
1192 lua_setfield(L, -2, "new");
1193 lua_pushcfunction(L, LuaBinder< QAction >::__LuaWrapCall__hover);
1194 lua_setfield(L, -2, "hover");
1195 lua_pushcfunction(L, LuaBinder< QAction >::__LuaWrapCall__delete);
1196 lua_setfield(L, -2, "delete");
1197 lua_pushcfunction(L, LuaBinder< QAction >::__LuaWrapCall__font);
1198 lua_setfield(L, -2, "font");
1199 lua_pushcfunction(L, LuaBinder< QAction >::__LuaWrapCall__actionGroup);
1200 lua_setfield(L, -2, "actionGroup");
1201 lua_pushcfunction(L, LuaBinder< QAction >::__LuaWrapCall__setShortcut);
1202 lua_setfield(L, -2, "setShortcut");
1203 lua_pushcfunction(L, LuaBinder< QAction >::__LuaWrapCall__setShortcuts);
1204 lua_setfield(L, -2, "setShortcuts");
1205 lua_pushcfunction(L, LuaBinder< QAction >::__LuaWrapCall__isChecked);
1206 lua_setfield(L, -2, "isChecked");
1207 lua_pushcfunction(L, LuaBinder< QAction >::__LuaWrapCall__trUtf8);
1208 lua_setfield(L, -2, "trUtf8");
1209 lua_pushcfunction(L, LuaBinder< QAction >::__LuaWrapCall__setMenuRole);
1210 lua_setfield(L, -2, "setMenuRole");
1211 lua_pushcfunction(L, LuaBinder< QAction >::__LuaWrapCall__menuRole);
1212 lua_setfield(L, -2, "menuRole");
1213 lua_pushcfunction(L, LuaBinder< QAction >::__LuaWrapCall__menu);
1214 lua_setfield(L, -2, "menu");
1215 lua_pushcfunction(L, LuaBinder< QAction >::__LuaWrapCall__setWhatsThis);
1216 lua_setfield(L, -2, "setWhatsThis");
1217 lua_pushcfunction(L, LuaBinder< QAction >::__LuaWrapCall__isEnabled);
1218 lua_setfield(L, -2, "isEnabled");
1219 lua_pushcfunction(L, LuaBinder< QAction >::__LuaWrapCall__setData);
1220 lua_setfield(L, -2, "setData");
1221 lua_pushcfunction(L, LuaBinder< QAction >::__LuaWrapCall__setEnabled);
1222 lua_setfield(L, -2, "setEnabled");
1223 lua_pushcfunction(L, LuaBinder< QAction >::__LuaWrapCall__text);
1224 lua_setfield(L, -2, "text");
1225 LuaBinder< QAction >::lqt_pushenum_MenuRole(L);
1226 lua_setfield(L, -2, "MenuRole");
1227 LuaBinder< QAction >::lqt_pushenum_ActionEvent(L);
1228 lua_setfield(L, -2, "ActionEvent");
1229 lua_newtable(L);
1230 lua_pushboolean(L, 1);
1231 lua_setfield(L, -2, "QObject*");
1232 lua_setfield(L, -2, "__base");
1233 lua_pushcfunction(L, lqtL_newindex);
1234 lua_setfield(L, -2, "__newindex");
1235 lua_pushcfunction(L, lqtL_index);
1236 lua_setfield(L, -2, "__index");
1237 lua_pushcfunction(L, lqtL_gc);
1238 lua_setfield(L, -2, "__gc");
1239 lua_pushstring(L, "QAction");
1240 lua_setfield(L, -2, "__qtype");
1241 lua_setglobal(L, "QAction");
1242 } else {
1243 lua_pop(L, 1);
1245 return 0;