1 #include "lqt_bind_QMessageBox.hpp"
3 int LuaBinder
< QMessageBox
>::__LuaWrapCall__standardButtons (lua_State
*L
) {
4 QMessageBox
*& __lua__obj
= *static_cast<QMessageBox
**>(lqtL_checkudata(L
, 1, "QMessageBox*"));
6 lua_pushstring(L
, "trying to reference deleted pointer");
10 QFlags
<QMessageBox::StandardButton
> ret
= __lua__obj
->QMessageBox::standardButtons();
11 lqtL_passudata(L
, new QFlags
<QMessageBox::StandardButton
>(ret
), "QFlags<QMessageBox::StandardButton>*");
14 int LuaBinder
< QMessageBox
>::__LuaWrapCall__setWindowModality (lua_State
*L
) {
15 QMessageBox
*& __lua__obj
= *static_cast<QMessageBox
**>(lqtL_checkudata(L
, 1, "QMessageBox*"));
17 lua_pushstring(L
, "trying to reference deleted pointer");
21 Qt::WindowModality arg1
= static_cast<Qt::WindowModality
>(lqtL_toenum(L
, 2, "Qt::WindowModality"));
22 __lua__obj
->QMessageBox::setWindowModality(arg1
);
25 int LuaBinder
< QMessageBox
>::__LuaWrapCall__sizeHint (lua_State
*L
) {
26 QMessageBox
*& __lua__obj
= *static_cast<QMessageBox
**>(lqtL_checkudata(L
, 1, "QMessageBox*"));
28 lua_pushstring(L
, "trying to reference deleted pointer");
32 QSize ret
= __lua__obj
->QMessageBox::sizeHint();
33 lqtL_passudata(L
, new QSize(ret
), "QSize*");
36 int LuaBinder
< QMessageBox
>::__LuaWrapCall__defaultButton (lua_State
*L
) {
37 QMessageBox
*& __lua__obj
= *static_cast<QMessageBox
**>(lqtL_checkudata(L
, 1, "QMessageBox*"));
39 lua_pushstring(L
, "trying to reference deleted pointer");
43 QPushButton
* ret
= __lua__obj
->QMessageBox::defaultButton();
44 lqtL_pushudata(L
, ret
, "QPushButton*");
47 int LuaBinder
< QMessageBox
>::__LuaWrapCall__setDefaultButton__OverloadedVersion__1 (lua_State
*L
) {
48 QMessageBox
*& __lua__obj
= *static_cast<QMessageBox
**>(lqtL_checkudata(L
, 1, "QMessageBox*"));
50 lua_pushstring(L
, "trying to reference deleted pointer");
54 QPushButton
* arg1
= *static_cast<QPushButton
**>(lqtL_checkudata(L
, 2, "QPushButton*"));
55 __lua__obj
->QMessageBox::setDefaultButton(arg1
);
58 int LuaBinder
< QMessageBox
>::__LuaWrapCall__setDefaultButton__OverloadedVersion__2 (lua_State
*L
) {
59 QMessageBox
*& __lua__obj
= *static_cast<QMessageBox
**>(lqtL_checkudata(L
, 1, "QMessageBox*"));
61 lua_pushstring(L
, "trying to reference deleted pointer");
65 QMessageBox::StandardButton arg1
= static_cast<QMessageBox::StandardButton
>(lqtL_toenum(L
, 2, "QMessageBox::StandardButton"));
66 __lua__obj
->QMessageBox::setDefaultButton(arg1
);
69 int LuaBinder
< QMessageBox
>::__LuaWrapCall__setDefaultButton (lua_State
*L
) {
71 const int premium
= 11+lua_gettop(L
);
73 score
[1] += lqtL_testudata(L
, 1, "QMessageBox*")?premium
:-premium
*premium
;
74 if (lqtL_testudata(L
, 2, "QPushButton*")) {
77 score
[1] += premium
-1; // table: 0x1337170;
79 score
[1] -= premium
*premium
;
82 score
[2] += lqtL_testudata(L
, 1, "QMessageBox*")?premium
:-premium
*premium
;
83 if (lqtL_isenum(L
, 2, "QMessageBox::StandardButton")) {
86 score
[2] += premium
-1; // table: 0x1337c20;
88 score
[2] -= premium
*premium
;
91 for (int i
=1;i
<=2;i
++) {
92 if (score
[best
] < score
[i
]) { best
= i
; }
95 case 1: return __LuaWrapCall__setDefaultButton__OverloadedVersion__1(L
); break;
96 case 2: return __LuaWrapCall__setDefaultButton__OverloadedVersion__2(L
); break;
98 lua_pushstring(L
, "no overload of function __LuaWrapCall__setDefaultButton matching arguments");
102 int LuaBinder
< QMessageBox
>::__LuaWrapCall__setIcon (lua_State
*L
) {
103 QMessageBox
*& __lua__obj
= *static_cast<QMessageBox
**>(lqtL_checkudata(L
, 1, "QMessageBox*"));
105 lua_pushstring(L
, "trying to reference deleted pointer");
109 QMessageBox::Icon arg1
= static_cast<QMessageBox::Icon
>(lqtL_toenum(L
, 2, "QMessageBox::Icon"));
110 __lua__obj
->QMessageBox::setIcon(arg1
);
113 int LuaBinder
< QMessageBox
>::__LuaWrapCall__setStandardButtons (lua_State
*L
) {
114 QMessageBox
*& __lua__obj
= *static_cast<QMessageBox
**>(lqtL_checkudata(L
, 1, "QMessageBox*"));
116 lua_pushstring(L
, "trying to reference deleted pointer");
120 QFlags
<QMessageBox::StandardButton
> arg1
= **static_cast<QFlags
<QMessageBox::StandardButton
>**>(lqtL_checkudata(L
, 2, "QFlags<QMessageBox::StandardButton>*"));
121 __lua__obj
->QMessageBox::setStandardButtons(arg1
);
124 int LuaBinder
< QMessageBox
>::__LuaWrapCall__button (lua_State
*L
) {
125 QMessageBox
*& __lua__obj
= *static_cast<QMessageBox
**>(lqtL_checkudata(L
, 1, "QMessageBox*"));
127 lua_pushstring(L
, "trying to reference deleted pointer");
131 QMessageBox::StandardButton arg1
= static_cast<QMessageBox::StandardButton
>(lqtL_toenum(L
, 2, "QMessageBox::StandardButton"));
132 QAbstractButton
* ret
= __lua__obj
->QMessageBox::button(arg1
);
133 lqtL_pushudata(L
, ret
, "QAbstractButton*");
136 int LuaBinder
< QMessageBox
>::__LuaWrapCall__standardIcon (lua_State
*L
) {
137 QMessageBox::Icon arg1
= static_cast<QMessageBox::Icon
>(lqtL_toenum(L
, 1, "QMessageBox::Icon"));
138 QPixmap ret
= QMessageBox::standardIcon(arg1
);
139 lqtL_passudata(L
, new QPixmap(ret
), "QPixmap*");
142 int LuaBinder
< QMessageBox
>::__LuaWrapCall__tr__OverloadedVersion__1 (lua_State
*L
) {
143 const char * arg1
= lua_tostring(L
, 1);
144 const char * arg2
= (lua_type(L
, 2)==LUA_TSTRING
)?lua_tostring(L
, 2):static_cast< const char * >(0);
145 QString ret
= QMessageBox::tr(arg1
, arg2
);
146 lua_pushlstring(L
, ret
.toAscii().data(), ret
.toAscii().size());
149 int LuaBinder
< QMessageBox
>::__LuaWrapCall__tr__OverloadedVersion__2 (lua_State
*L
) {
150 const char * arg1
= lua_tostring(L
, 1);
151 const char * arg2
= lua_tostring(L
, 2);
152 int arg3
= lua_tointeger(L
, 3);
153 QString ret
= QMessageBox::tr(arg1
, arg2
, arg3
);
154 lua_pushlstring(L
, ret
.toAscii().data(), ret
.toAscii().size());
157 int LuaBinder
< QMessageBox
>::__LuaWrapCall__tr (lua_State
*L
) {
159 const int premium
= 11+lua_gettop(L
);
161 if ((lua_type(L
, 1)==LUA_TSTRING
)) {
164 score
[1] += premium
-1; // table: 0x1328e70;
166 score
[1] -= premium
*premium
;
168 if ((lua_type(L
, 2)==LUA_TSTRING
)) {
171 score
[1] += premium
-1; // table: 0x1328bd0;
173 score
[1] -= premium
*premium
;
176 if ((lua_type(L
, 1)==LUA_TSTRING
)) {
179 score
[2] += premium
-1; // table: 0x132a8b0;
181 score
[2] -= premium
*premium
;
183 if ((lua_type(L
, 2)==LUA_TSTRING
)) {
186 score
[2] += premium
-1; // table: 0x132ada0;
188 score
[2] -= premium
*premium
;
190 if (lua_isnumber(L
, 3)) {
193 score
[2] += premium
-1; // table: 0x132b150;
195 score
[2] -= premium
*premium
;
198 for (int i
=1;i
<=2;i
++) {
199 if (score
[best
] < score
[i
]) { best
= i
; }
202 case 1: return __LuaWrapCall__tr__OverloadedVersion__1(L
); break;
203 case 2: return __LuaWrapCall__tr__OverloadedVersion__2(L
); break;
205 lua_pushstring(L
, "no overload of function __LuaWrapCall__tr matching arguments");
209 int LuaBinder
< QMessageBox
>::__LuaWrapCall__textFormat (lua_State
*L
) {
210 QMessageBox
*& __lua__obj
= *static_cast<QMessageBox
**>(lqtL_checkudata(L
, 1, "QMessageBox*"));
212 lua_pushstring(L
, "trying to reference deleted pointer");
216 Qt::TextFormat ret
= __lua__obj
->QMessageBox::textFormat();
217 lqtL_pushenum(L
, ret
, "Qt::TextFormat");
220 int LuaBinder
< QMessageBox
>::__LuaWrapCall__informativeText (lua_State
*L
) {
221 QMessageBox
*& __lua__obj
= *static_cast<QMessageBox
**>(lqtL_checkudata(L
, 1, "QMessageBox*"));
223 lua_pushstring(L
, "trying to reference deleted pointer");
227 QString ret
= __lua__obj
->QMessageBox::informativeText();
228 lua_pushlstring(L
, ret
.toAscii().data(), ret
.toAscii().size());
231 int LuaBinder
< QMessageBox
>::__LuaWrapCall__removeButton (lua_State
*L
) {
232 QMessageBox
*& __lua__obj
= *static_cast<QMessageBox
**>(lqtL_checkudata(L
, 1, "QMessageBox*"));
234 lua_pushstring(L
, "trying to reference deleted pointer");
238 QAbstractButton
* arg1
= *static_cast<QAbstractButton
**>(lqtL_checkudata(L
, 2, "QAbstractButton*"));
239 __lua__obj
->QMessageBox::removeButton(arg1
);
242 int LuaBinder
< QMessageBox
>::__LuaWrapCall__buttonText (lua_State
*L
) {
243 QMessageBox
*& __lua__obj
= *static_cast<QMessageBox
**>(lqtL_checkudata(L
, 1, "QMessageBox*"));
245 lua_pushstring(L
, "trying to reference deleted pointer");
249 int arg1
= lua_tointeger(L
, 2);
250 QString ret
= __lua__obj
->QMessageBox::buttonText(arg1
);
251 lua_pushlstring(L
, ret
.toAscii().data(), ret
.toAscii().size());
254 int LuaBinder
< QMessageBox
>::__LuaWrapCall__critical__OverloadedVersion__1 (lua_State
*L
) {
255 QWidget
* arg1
= *static_cast<QWidget
**>(lqtL_checkudata(L
, 1, "QWidget*"));
256 const QString
& arg2
= QString::fromAscii(lua_tostring(L
, 2), lua_objlen(L
, 2));
257 const QString
& arg3
= QString::fromAscii(lua_tostring(L
, 3), lua_objlen(L
, 3));
258 QFlags
<QMessageBox::StandardButton
> arg4
= lqtL_testudata(L
, 4, "QFlags<QMessageBox::StandardButton>*")?**static_cast<QFlags
<QMessageBox::StandardButton
>**>(lqtL_checkudata(L
, 4, "QFlags<QMessageBox::StandardButton>*")):Ok
;
259 QMessageBox::StandardButton arg5
= lqtL_isenum(L
, 5, "QMessageBox::StandardButton")?static_cast<QMessageBox::StandardButton
>(lqtL_toenum(L
, 5, "QMessageBox::StandardButton")):QMessageBox::NoButton
;
260 QMessageBox::StandardButton ret
= QMessageBox::critical(arg1
, arg2
, arg3
, arg4
, arg5
);
261 lqtL_pushenum(L
, ret
, "QMessageBox::StandardButton");
264 int LuaBinder
< QMessageBox
>::__LuaWrapCall__critical__OverloadedVersion__2 (lua_State
*L
) {
265 QWidget
* arg1
= *static_cast<QWidget
**>(lqtL_checkudata(L
, 1, "QWidget*"));
266 const QString
& arg2
= QString::fromAscii(lua_tostring(L
, 2), lua_objlen(L
, 2));
267 const QString
& arg3
= QString::fromAscii(lua_tostring(L
, 3), lua_objlen(L
, 3));
268 int arg4
= lua_tointeger(L
, 4);
269 int arg5
= lua_tointeger(L
, 5);
270 int arg6
= lua_isnumber(L
, 6)?lua_tointeger(L
, 6):static_cast< int >(0);
271 int ret
= QMessageBox::critical(arg1
, arg2
, arg3
, arg4
, arg5
, arg6
);
272 lua_pushinteger(L
, ret
);
275 int LuaBinder
< QMessageBox
>::__LuaWrapCall__critical__OverloadedVersion__3 (lua_State
*L
) {
276 QWidget
* arg1
= *static_cast<QWidget
**>(lqtL_checkudata(L
, 1, "QWidget*"));
277 const QString
& arg2
= QString::fromAscii(lua_tostring(L
, 2), lua_objlen(L
, 2));
278 const QString
& arg3
= QString::fromAscii(lua_tostring(L
, 3), lua_objlen(L
, 3));
279 const QString
& arg4
= QString::fromAscii(lua_tostring(L
, 4), lua_objlen(L
, 4));
280 const QString
& arg5
= (lua_type(L
, 5)==LUA_TSTRING
)?QString::fromAscii(lua_tostring(L
, 5), lua_objlen(L
, 5)):QString();
281 const QString
& arg6
= (lua_type(L
, 6)==LUA_TSTRING
)?QString::fromAscii(lua_tostring(L
, 6), lua_objlen(L
, 6)):QString();
282 int arg7
= lua_isnumber(L
, 7)?lua_tointeger(L
, 7):static_cast< int >(0);
283 int arg8
= lua_isnumber(L
, 8)?lua_tointeger(L
, 8):static_cast< int >(-1);
284 int ret
= QMessageBox::critical(arg1
, arg2
, arg3
, arg4
, arg5
, arg6
, arg7
, arg8
);
285 lua_pushinteger(L
, ret
);
288 int LuaBinder
< QMessageBox
>::__LuaWrapCall__critical__OverloadedVersion__4 (lua_State
*L
) {
289 QWidget
* arg1
= *static_cast<QWidget
**>(lqtL_checkudata(L
, 1, "QWidget*"));
290 const QString
& arg2
= QString::fromAscii(lua_tostring(L
, 2), lua_objlen(L
, 2));
291 const QString
& arg3
= QString::fromAscii(lua_tostring(L
, 3), lua_objlen(L
, 3));
292 QMessageBox::StandardButton arg4
= static_cast<QMessageBox::StandardButton
>(lqtL_toenum(L
, 4, "QMessageBox::StandardButton"));
293 QMessageBox::StandardButton arg5
= static_cast<QMessageBox::StandardButton
>(lqtL_toenum(L
, 5, "QMessageBox::StandardButton"));
294 int ret
= QMessageBox::critical(arg1
, arg2
, arg3
, arg4
, arg5
);
295 lua_pushinteger(L
, ret
);
298 int LuaBinder
< QMessageBox
>::__LuaWrapCall__critical (lua_State
*L
) {
300 const int premium
= 11+lua_gettop(L
);
302 if (lqtL_testudata(L
, 1, "QWidget*")) {
305 score
[1] += premium
-1; // table: 0x13442d0;
307 score
[1] -= premium
*premium
;
309 if ((lua_type(L
, 2)==LUA_TSTRING
)) {
312 score
[1] += premium
-1; // table: 0x13434f0;
314 score
[1] -= premium
*premium
;
316 if ((lua_type(L
, 3)==LUA_TSTRING
)) {
319 score
[1] += premium
-1; // table: 0x13447f0;
321 score
[1] -= premium
*premium
;
323 if (lqtL_testudata(L
, 4, "QFlags<QMessageBox::StandardButton>*")) {
326 score
[1] += premium
-1; // table: 0x1345050;
328 score
[1] -= premium
*premium
;
330 if (lqtL_isenum(L
, 5, "QMessageBox::StandardButton")) {
333 score
[1] += premium
-1; // table: 0x1345420;
335 score
[1] -= premium
*premium
;
338 if (lqtL_testudata(L
, 1, "QWidget*")) {
341 score
[2] += premium
-1; // table: 0x135ca40;
343 score
[2] -= premium
*premium
;
345 if ((lua_type(L
, 2)==LUA_TSTRING
)) {
348 score
[2] += premium
-1; // table: 0x135bcd0;
350 score
[2] -= premium
*premium
;
352 if ((lua_type(L
, 3)==LUA_TSTRING
)) {
355 score
[2] += premium
-1; // table: 0x135cef0;
357 score
[2] -= premium
*premium
;
359 if (lua_isnumber(L
, 4)) {
362 score
[2] += premium
-1; // table: 0x135d750;
364 score
[2] -= premium
*premium
;
366 if (lua_isnumber(L
, 5)) {
369 score
[2] += premium
-1; // table: 0x135db00;
371 score
[2] -= premium
*premium
;
373 if (lua_isnumber(L
, 6)) {
376 score
[2] += premium
-1; // table: 0x135d6a0;
378 score
[2] -= premium
*premium
;
381 if (lqtL_testudata(L
, 1, "QWidget*")) {
384 score
[3] += premium
-1; // table: 0x135e850;
386 score
[3] -= premium
*premium
;
388 if ((lua_type(L
, 2)==LUA_TSTRING
)) {
391 score
[3] += premium
-1; // table: 0x135e520;
393 score
[3] -= premium
*premium
;
395 if ((lua_type(L
, 3)==LUA_TSTRING
)) {
398 score
[3] += premium
-1; // table: 0x135ed00;
400 score
[3] -= premium
*premium
;
402 if ((lua_type(L
, 4)==LUA_TSTRING
)) {
405 score
[3] += premium
-1; // table: 0x135f560;
407 score
[3] -= premium
*premium
;
409 if ((lua_type(L
, 5)==LUA_TSTRING
)) {
412 score
[3] += premium
-1; // table: 0x135f920;
414 score
[3] -= premium
*premium
;
416 if ((lua_type(L
, 6)==LUA_TSTRING
)) {
419 score
[3] += premium
-1; // table: 0x135f4b0;
421 score
[3] -= premium
*premium
;
423 if (lua_isnumber(L
, 7)) {
426 score
[3] += premium
-1; // table: 0x1360110;
428 score
[3] -= premium
*premium
;
430 if (lua_isnumber(L
, 8)) {
433 score
[3] += premium
-1; // table: 0x13604d0;
435 score
[3] -= premium
*premium
;
438 if (lqtL_testudata(L
, 1, "QWidget*")) {
441 score
[4] += premium
-1; // table: 0x1360e00;
443 score
[4] -= premium
*premium
;
445 if ((lua_type(L
, 2)==LUA_TSTRING
)) {
448 score
[4] += premium
-1; // table: 0x1360ac0;
450 score
[4] -= premium
*premium
;
452 if ((lua_type(L
, 3)==LUA_TSTRING
)) {
455 score
[4] += premium
-1; // table: 0x13612f0;
457 score
[4] -= premium
*premium
;
459 if (lqtL_isenum(L
, 4, "QMessageBox::StandardButton")) {
462 score
[4] += premium
-1; // table: 0x1361b50;
464 score
[4] -= premium
*premium
;
466 if (lqtL_isenum(L
, 5, "QMessageBox::StandardButton")) {
469 score
[4] += premium
-1; // table: 0x1361f00;
471 score
[4] -= premium
*premium
;
474 for (int i
=1;i
<=4;i
++) {
475 if (score
[best
] < score
[i
]) { best
= i
; }
478 case 1: return __LuaWrapCall__critical__OverloadedVersion__1(L
); break;
479 case 2: return __LuaWrapCall__critical__OverloadedVersion__2(L
); break;
480 case 3: return __LuaWrapCall__critical__OverloadedVersion__3(L
); break;
481 case 4: return __LuaWrapCall__critical__OverloadedVersion__4(L
); break;
483 lua_pushstring(L
, "no overload of function __LuaWrapCall__critical matching arguments");
487 int LuaBinder
< QMessageBox
>::__LuaWrapCall__addButton__OverloadedVersion__1 (lua_State
*L
) {
488 QMessageBox
*& __lua__obj
= *static_cast<QMessageBox
**>(lqtL_checkudata(L
, 1, "QMessageBox*"));
490 lua_pushstring(L
, "trying to reference deleted pointer");
494 QAbstractButton
* arg1
= *static_cast<QAbstractButton
**>(lqtL_checkudata(L
, 2, "QAbstractButton*"));
495 QMessageBox::ButtonRole arg2
= static_cast<QMessageBox::ButtonRole
>(lqtL_toenum(L
, 3, "QMessageBox::ButtonRole"));
496 __lua__obj
->QMessageBox::addButton(arg1
, arg2
);
499 int LuaBinder
< QMessageBox
>::__LuaWrapCall__addButton__OverloadedVersion__2 (lua_State
*L
) {
500 QMessageBox
*& __lua__obj
= *static_cast<QMessageBox
**>(lqtL_checkudata(L
, 1, "QMessageBox*"));
502 lua_pushstring(L
, "trying to reference deleted pointer");
506 const QString
& arg1
= QString::fromAscii(lua_tostring(L
, 2), lua_objlen(L
, 2));
507 QMessageBox::ButtonRole arg2
= static_cast<QMessageBox::ButtonRole
>(lqtL_toenum(L
, 3, "QMessageBox::ButtonRole"));
508 QPushButton
* ret
= __lua__obj
->QMessageBox::addButton(arg1
, arg2
);
509 lqtL_pushudata(L
, ret
, "QPushButton*");
512 int LuaBinder
< QMessageBox
>::__LuaWrapCall__addButton__OverloadedVersion__3 (lua_State
*L
) {
513 QMessageBox
*& __lua__obj
= *static_cast<QMessageBox
**>(lqtL_checkudata(L
, 1, "QMessageBox*"));
515 lua_pushstring(L
, "trying to reference deleted pointer");
519 QMessageBox::StandardButton arg1
= static_cast<QMessageBox::StandardButton
>(lqtL_toenum(L
, 2, "QMessageBox::StandardButton"));
520 QPushButton
* ret
= __lua__obj
->QMessageBox::addButton(arg1
);
521 lqtL_pushudata(L
, ret
, "QPushButton*");
524 int LuaBinder
< QMessageBox
>::__LuaWrapCall__addButton (lua_State
*L
) {
526 const int premium
= 11+lua_gettop(L
);
528 score
[1] += lqtL_testudata(L
, 1, "QMessageBox*")?premium
:-premium
*premium
;
529 if (lqtL_testudata(L
, 2, "QAbstractButton*")) {
532 score
[1] += premium
-1; // table: 0x1330cf0;
534 score
[1] -= premium
*premium
;
536 if (lqtL_isenum(L
, 3, "QMessageBox::ButtonRole")) {
539 score
[1] += premium
-1; // table: 0x1330960;
541 score
[1] -= premium
*premium
;
544 score
[2] += lqtL_testudata(L
, 1, "QMessageBox*")?premium
:-premium
*premium
;
545 if ((lua_type(L
, 2)==LUA_TSTRING
)) {
548 score
[2] += premium
-1; // table: 0x1331cd0;
550 score
[2] -= premium
*premium
;
552 if (lqtL_isenum(L
, 3, "QMessageBox::ButtonRole")) {
555 score
[2] += premium
-1; // table: 0x1332250;
557 score
[2] -= premium
*premium
;
560 score
[3] += lqtL_testudata(L
, 1, "QMessageBox*")?premium
:-premium
*premium
;
561 if (lqtL_isenum(L
, 2, "QMessageBox::StandardButton")) {
564 score
[3] += premium
-1; // table: 0x1332b70;
566 score
[3] -= premium
*premium
;
569 for (int i
=1;i
<=3;i
++) {
570 if (score
[best
] < score
[i
]) { best
= i
; }
573 case 1: return __LuaWrapCall__addButton__OverloadedVersion__1(L
); break;
574 case 2: return __LuaWrapCall__addButton__OverloadedVersion__2(L
); break;
575 case 3: return __LuaWrapCall__addButton__OverloadedVersion__3(L
); break;
577 lua_pushstring(L
, "no overload of function __LuaWrapCall__addButton matching arguments");
581 int LuaBinder
< QMessageBox
>::__LuaWrapCall__setDetailedText (lua_State
*L
) {
582 QMessageBox
*& __lua__obj
= *static_cast<QMessageBox
**>(lqtL_checkudata(L
, 1, "QMessageBox*"));
584 lua_pushstring(L
, "trying to reference deleted pointer");
588 const QString
& arg1
= QString::fromAscii(lua_tostring(L
, 2), lua_objlen(L
, 2));
589 __lua__obj
->QMessageBox::setDetailedText(arg1
);
592 int LuaBinder
< QMessageBox
>::__LuaWrapCall__about (lua_State
*L
) {
593 QWidget
* arg1
= *static_cast<QWidget
**>(lqtL_checkudata(L
, 1, "QWidget*"));
594 const QString
& arg2
= QString::fromAscii(lua_tostring(L
, 2), lua_objlen(L
, 2));
595 const QString
& arg3
= QString::fromAscii(lua_tostring(L
, 3), lua_objlen(L
, 3));
596 QMessageBox::about(arg1
, arg2
, arg3
);
599 int LuaBinder
< QMessageBox
>::__LuaWrapCall__setText (lua_State
*L
) {
600 QMessageBox
*& __lua__obj
= *static_cast<QMessageBox
**>(lqtL_checkudata(L
, 1, "QMessageBox*"));
602 lua_pushstring(L
, "trying to reference deleted pointer");
606 const QString
& arg1
= QString::fromAscii(lua_tostring(L
, 2), lua_objlen(L
, 2));
607 __lua__obj
->QMessageBox::setText(arg1
);
610 int LuaBinder
< QMessageBox
>::__LuaWrapCall__aboutQt (lua_State
*L
) {
611 QWidget
* arg1
= *static_cast<QWidget
**>(lqtL_checkudata(L
, 1, "QWidget*"));
612 const QString
& arg2
= (lua_type(L
, 2)==LUA_TSTRING
)?QString::fromAscii(lua_tostring(L
, 2), lua_objlen(L
, 2)):QString();
613 QMessageBox::aboutQt(arg1
, arg2
);
616 int LuaBinder
< QMessageBox
>::__LuaWrapCall__iconPixmap (lua_State
*L
) {
617 QMessageBox
*& __lua__obj
= *static_cast<QMessageBox
**>(lqtL_checkudata(L
, 1, "QMessageBox*"));
619 lua_pushstring(L
, "trying to reference deleted pointer");
623 QPixmap ret
= __lua__obj
->QMessageBox::iconPixmap();
624 lqtL_passudata(L
, new QPixmap(ret
), "QPixmap*");
627 int LuaBinder
< QMessageBox
>::__LuaWrapCall__setEscapeButton__OverloadedVersion__1 (lua_State
*L
) {
628 QMessageBox
*& __lua__obj
= *static_cast<QMessageBox
**>(lqtL_checkudata(L
, 1, "QMessageBox*"));
630 lua_pushstring(L
, "trying to reference deleted pointer");
634 QAbstractButton
* arg1
= *static_cast<QAbstractButton
**>(lqtL_checkudata(L
, 2, "QAbstractButton*"));
635 __lua__obj
->QMessageBox::setEscapeButton(arg1
);
638 int LuaBinder
< QMessageBox
>::__LuaWrapCall__setEscapeButton__OverloadedVersion__2 (lua_State
*L
) {
639 QMessageBox
*& __lua__obj
= *static_cast<QMessageBox
**>(lqtL_checkudata(L
, 1, "QMessageBox*"));
641 lua_pushstring(L
, "trying to reference deleted pointer");
645 QMessageBox::StandardButton arg1
= static_cast<QMessageBox::StandardButton
>(lqtL_toenum(L
, 2, "QMessageBox::StandardButton"));
646 __lua__obj
->QMessageBox::setEscapeButton(arg1
);
649 int LuaBinder
< QMessageBox
>::__LuaWrapCall__setEscapeButton (lua_State
*L
) {
651 const int premium
= 11+lua_gettop(L
);
653 score
[1] += lqtL_testudata(L
, 1, "QMessageBox*")?premium
:-premium
*premium
;
654 if (lqtL_testudata(L
, 2, "QAbstractButton*")) {
657 score
[1] += premium
-1; // table: 0x1338e60;
659 score
[1] -= premium
*premium
;
662 score
[2] += lqtL_testudata(L
, 1, "QMessageBox*")?premium
:-premium
*premium
;
663 if (lqtL_isenum(L
, 2, "QMessageBox::StandardButton")) {
666 score
[2] += premium
-1; // table: 0x13398e0;
668 score
[2] -= premium
*premium
;
671 for (int i
=1;i
<=2;i
++) {
672 if (score
[best
] < score
[i
]) { best
= i
; }
675 case 1: return __LuaWrapCall__setEscapeButton__OverloadedVersion__1(L
); break;
676 case 2: return __LuaWrapCall__setEscapeButton__OverloadedVersion__2(L
); break;
678 lua_pushstring(L
, "no overload of function __LuaWrapCall__setEscapeButton matching arguments");
682 int LuaBinder
< QMessageBox
>::__LuaWrapCall__standardButton (lua_State
*L
) {
683 QMessageBox
*& __lua__obj
= *static_cast<QMessageBox
**>(lqtL_checkudata(L
, 1, "QMessageBox*"));
685 lua_pushstring(L
, "trying to reference deleted pointer");
689 QAbstractButton
* arg1
= *static_cast<QAbstractButton
**>(lqtL_checkudata(L
, 2, "QAbstractButton*"));
690 QMessageBox::StandardButton ret
= __lua__obj
->QMessageBox::standardButton(arg1
);
691 lqtL_pushenum(L
, ret
, "QMessageBox::StandardButton");
694 int LuaBinder
< QMessageBox
>::__LuaWrapCall__metaObject (lua_State
*L
) {
695 QMessageBox
*& __lua__obj
= *static_cast<QMessageBox
**>(lqtL_checkudata(L
, 1, "QMessageBox*"));
697 lua_pushstring(L
, "trying to reference deleted pointer");
701 const QMetaObject
* ret
= __lua__obj
->QMessageBox::metaObject();
702 lqtL_pushudata(L
, ret
, "QMetaObject*");
705 int LuaBinder
< QMessageBox
>::__LuaWrapCall__new__OverloadedVersion__1 (lua_State
*L
) {
706 QWidget
* arg1
= lqtL_testudata(L
, 1, "QWidget*")?*static_cast<QWidget
**>(lqtL_checkudata(L
, 1, "QWidget*")):static_cast< QWidget
* >(0);
707 QMessageBox
* ret
= new LuaBinder
< QMessageBox
>(L
, arg1
);
708 lqtL_passudata(L
, ret
, "QMessageBox*");
711 int LuaBinder
< QMessageBox
>::__LuaWrapCall__new__OverloadedVersion__2 (lua_State
*L
) {
712 QMessageBox::Icon arg1
= static_cast<QMessageBox::Icon
>(lqtL_toenum(L
, 1, "QMessageBox::Icon"));
713 const QString
& arg2
= QString::fromAscii(lua_tostring(L
, 2), lua_objlen(L
, 2));
714 const QString
& arg3
= QString::fromAscii(lua_tostring(L
, 3), lua_objlen(L
, 3));
715 QFlags
<QMessageBox::StandardButton
> arg4
= lqtL_testudata(L
, 4, "QFlags<QMessageBox::StandardButton>*")?**static_cast<QFlags
<QMessageBox::StandardButton
>**>(lqtL_checkudata(L
, 4, "QFlags<QMessageBox::StandardButton>*")):NoButton
;
716 QWidget
* arg5
= lqtL_testudata(L
, 5, "QWidget*")?*static_cast<QWidget
**>(lqtL_checkudata(L
, 5, "QWidget*")):static_cast< QWidget
* >(0);
717 QFlags
<Qt::WindowType
> arg6
= lqtL_testudata(L
, 6, "QFlags<Qt::WindowType>*")?**static_cast<QFlags
<Qt::WindowType
>**>(lqtL_checkudata(L
, 6, "QFlags<Qt::WindowType>*")):Qt::Dialog
| Qt::MSWindowsFixedSizeDialogHint
;
718 QMessageBox
* ret
= new LuaBinder
< QMessageBox
>(L
, arg1
, arg2
, arg3
, arg4
, arg5
, arg6
);
719 lqtL_passudata(L
, ret
, "QMessageBox*");
722 int LuaBinder
< QMessageBox
>::__LuaWrapCall__new__OverloadedVersion__3 (lua_State
*L
) {
723 const QString
& arg1
= QString::fromAscii(lua_tostring(L
, 1), lua_objlen(L
, 1));
724 const QString
& arg2
= QString::fromAscii(lua_tostring(L
, 2), lua_objlen(L
, 2));
725 QMessageBox::Icon arg3
= static_cast<QMessageBox::Icon
>(lqtL_toenum(L
, 3, "QMessageBox::Icon"));
726 int arg4
= lua_tointeger(L
, 4);
727 int arg5
= lua_tointeger(L
, 5);
728 int arg6
= lua_tointeger(L
, 6);
729 QWidget
* arg7
= lqtL_testudata(L
, 7, "QWidget*")?*static_cast<QWidget
**>(lqtL_checkudata(L
, 7, "QWidget*")):static_cast< QWidget
* >(0);
730 QFlags
<Qt::WindowType
> arg8
= lqtL_testudata(L
, 8, "QFlags<Qt::WindowType>*")?**static_cast<QFlags
<Qt::WindowType
>**>(lqtL_checkudata(L
, 8, "QFlags<Qt::WindowType>*")):Qt::Dialog
| Qt::MSWindowsFixedSizeDialogHint
;
731 QMessageBox
* ret
= new LuaBinder
< QMessageBox
>(L
, arg1
, arg2
, arg3
, arg4
, arg5
, arg6
, arg7
, arg8
);
732 lqtL_passudata(L
, ret
, "QMessageBox*");
735 int LuaBinder
< QMessageBox
>::__LuaWrapCall__new (lua_State
*L
) {
737 const int premium
= 11+lua_gettop(L
);
739 if (lqtL_testudata(L
, 1, "QWidget*")) {
742 score
[1] += premium
-1; // table: 0x132db10;
744 score
[1] -= premium
*premium
;
747 if (lqtL_isenum(L
, 1, "QMessageBox::Icon")) {
750 score
[2] += premium
-1; // table: 0x132e590;
752 score
[2] -= premium
*premium
;
754 if ((lua_type(L
, 2)==LUA_TSTRING
)) {
757 score
[2] += premium
-1; // table: 0x132e020;
759 score
[2] -= premium
*premium
;
761 if ((lua_type(L
, 3)==LUA_TSTRING
)) {
764 score
[2] += premium
-1; // table: 0x132eaf0;
766 score
[2] -= premium
*premium
;
768 if (lqtL_testudata(L
, 4, "QFlags<QMessageBox::StandardButton>*")) {
771 score
[2] += premium
-1; // table: 0x132f380;
773 score
[2] -= premium
*premium
;
775 if (lqtL_testudata(L
, 5, "QWidget*")) {
778 score
[2] += premium
-1; // table: 0x132f790;
780 score
[2] -= premium
*premium
;
782 if (lqtL_testudata(L
, 6, "QFlags<Qt::WindowType>*")) {
785 score
[2] += premium
-1; // table: 0x132f2d0;
787 score
[2] -= premium
*premium
;
790 if ((lua_type(L
, 1)==LUA_TSTRING
)) {
793 score
[3] += premium
-1; // table: 0x1348610;
795 score
[3] -= premium
*premium
;
797 if ((lua_type(L
, 2)==LUA_TSTRING
)) {
800 score
[3] += premium
-1; // table: 0x13482e0;
802 score
[3] -= premium
*premium
;
804 if (lqtL_isenum(L
, 3, "QMessageBox::Icon")) {
807 score
[3] += premium
-1; // table: 0x1348b00;
809 score
[3] -= premium
*premium
;
811 if (lua_isnumber(L
, 4)) {
814 score
[3] += premium
-1; // table: 0x1349360;
816 score
[3] -= premium
*premium
;
818 if (lua_isnumber(L
, 5)) {
821 score
[3] += premium
-1; // table: 0x1349770;
823 score
[3] -= premium
*premium
;
825 if (lua_isnumber(L
, 6)) {
828 score
[3] += premium
-1; // table: 0x13492b0;
830 score
[3] -= premium
*premium
;
832 if (lqtL_testudata(L
, 7, "QWidget*")) {
835 score
[3] += premium
-1; // table: 0x134a010;
837 score
[3] -= premium
*premium
;
839 if (lqtL_testudata(L
, 8, "QFlags<Qt::WindowType>*")) {
842 score
[3] += premium
-1; // table: 0x134a410;
844 score
[3] -= premium
*premium
;
847 for (int i
=1;i
<=3;i
++) {
848 if (score
[best
] < score
[i
]) { best
= i
; }
851 case 1: return __LuaWrapCall__new__OverloadedVersion__1(L
); break;
852 case 2: return __LuaWrapCall__new__OverloadedVersion__2(L
); break;
853 case 3: return __LuaWrapCall__new__OverloadedVersion__3(L
); break;
855 lua_pushstring(L
, "no overload of function __LuaWrapCall__new matching arguments");
859 int LuaBinder
< QMessageBox
>::__LuaWrapCall__warning__OverloadedVersion__1 (lua_State
*L
) {
860 QWidget
* arg1
= *static_cast<QWidget
**>(lqtL_checkudata(L
, 1, "QWidget*"));
861 const QString
& arg2
= QString::fromAscii(lua_tostring(L
, 2), lua_objlen(L
, 2));
862 const QString
& arg3
= QString::fromAscii(lua_tostring(L
, 3), lua_objlen(L
, 3));
863 QFlags
<QMessageBox::StandardButton
> arg4
= lqtL_testudata(L
, 4, "QFlags<QMessageBox::StandardButton>*")?**static_cast<QFlags
<QMessageBox::StandardButton
>**>(lqtL_checkudata(L
, 4, "QFlags<QMessageBox::StandardButton>*")):Ok
;
864 QMessageBox::StandardButton arg5
= lqtL_isenum(L
, 5, "QMessageBox::StandardButton")?static_cast<QMessageBox::StandardButton
>(lqtL_toenum(L
, 5, "QMessageBox::StandardButton")):QMessageBox::NoButton
;
865 QMessageBox::StandardButton ret
= QMessageBox::warning(arg1
, arg2
, arg3
, arg4
, arg5
);
866 lqtL_pushenum(L
, ret
, "QMessageBox::StandardButton");
869 int LuaBinder
< QMessageBox
>::__LuaWrapCall__warning__OverloadedVersion__2 (lua_State
*L
) {
870 QWidget
* arg1
= *static_cast<QWidget
**>(lqtL_checkudata(L
, 1, "QWidget*"));
871 const QString
& arg2
= QString::fromAscii(lua_tostring(L
, 2), lua_objlen(L
, 2));
872 const QString
& arg3
= QString::fromAscii(lua_tostring(L
, 3), lua_objlen(L
, 3));
873 int arg4
= lua_tointeger(L
, 4);
874 int arg5
= lua_tointeger(L
, 5);
875 int arg6
= lua_isnumber(L
, 6)?lua_tointeger(L
, 6):static_cast< int >(0);
876 int ret
= QMessageBox::warning(arg1
, arg2
, arg3
, arg4
, arg5
, arg6
);
877 lua_pushinteger(L
, ret
);
880 int LuaBinder
< QMessageBox
>::__LuaWrapCall__warning__OverloadedVersion__3 (lua_State
*L
) {
881 QWidget
* arg1
= *static_cast<QWidget
**>(lqtL_checkudata(L
, 1, "QWidget*"));
882 const QString
& arg2
= QString::fromAscii(lua_tostring(L
, 2), lua_objlen(L
, 2));
883 const QString
& arg3
= QString::fromAscii(lua_tostring(L
, 3), lua_objlen(L
, 3));
884 const QString
& arg4
= QString::fromAscii(lua_tostring(L
, 4), lua_objlen(L
, 4));
885 const QString
& arg5
= (lua_type(L
, 5)==LUA_TSTRING
)?QString::fromAscii(lua_tostring(L
, 5), lua_objlen(L
, 5)):QString();
886 const QString
& arg6
= (lua_type(L
, 6)==LUA_TSTRING
)?QString::fromAscii(lua_tostring(L
, 6), lua_objlen(L
, 6)):QString();
887 int arg7
= lua_isnumber(L
, 7)?lua_tointeger(L
, 7):static_cast< int >(0);
888 int arg8
= lua_isnumber(L
, 8)?lua_tointeger(L
, 8):static_cast< int >(-1);
889 int ret
= QMessageBox::warning(arg1
, arg2
, arg3
, arg4
, arg5
, arg6
, arg7
, arg8
);
890 lua_pushinteger(L
, ret
);
893 int LuaBinder
< QMessageBox
>::__LuaWrapCall__warning__OverloadedVersion__4 (lua_State
*L
) {
894 QWidget
* arg1
= *static_cast<QWidget
**>(lqtL_checkudata(L
, 1, "QWidget*"));
895 const QString
& arg2
= QString::fromAscii(lua_tostring(L
, 2), lua_objlen(L
, 2));
896 const QString
& arg3
= QString::fromAscii(lua_tostring(L
, 3), lua_objlen(L
, 3));
897 QMessageBox::StandardButton arg4
= static_cast<QMessageBox::StandardButton
>(lqtL_toenum(L
, 4, "QMessageBox::StandardButton"));
898 QMessageBox::StandardButton arg5
= static_cast<QMessageBox::StandardButton
>(lqtL_toenum(L
, 5, "QMessageBox::StandardButton"));
899 int ret
= QMessageBox::warning(arg1
, arg2
, arg3
, arg4
, arg5
);
900 lua_pushinteger(L
, ret
);
903 int LuaBinder
< QMessageBox
>::__LuaWrapCall__warning (lua_State
*L
) {
905 const int premium
= 11+lua_gettop(L
);
907 if (lqtL_testudata(L
, 1, "QWidget*")) {
910 score
[1] += premium
-1; // table: 0x13427d0;
912 score
[1] -= premium
*premium
;
914 if ((lua_type(L
, 2)==LUA_TSTRING
)) {
917 score
[1] += premium
-1; // table: 0x1341a10;
919 score
[1] -= premium
*premium
;
921 if ((lua_type(L
, 3)==LUA_TSTRING
)) {
924 score
[1] += premium
-1; // table: 0x1342cf0;
926 score
[1] -= premium
*premium
;
928 if (lqtL_testudata(L
, 4, "QFlags<QMessageBox::StandardButton>*")) {
931 score
[1] += premium
-1; // table: 0x1343550;
933 score
[1] -= premium
*premium
;
935 if (lqtL_isenum(L
, 5, "QMessageBox::StandardButton")) {
938 score
[1] += premium
-1; // table: 0x1343920;
940 score
[1] -= premium
*premium
;
943 if (lqtL_testudata(L
, 1, "QWidget*")) {
946 score
[2] += premium
-1; // table: 0x1356c20;
948 score
[2] -= premium
*premium
;
950 if ((lua_type(L
, 2)==LUA_TSTRING
)) {
953 score
[2] += premium
-1; // table: 0x1355e70;
955 score
[2] -= premium
*premium
;
957 if ((lua_type(L
, 3)==LUA_TSTRING
)) {
960 score
[2] += premium
-1; // table: 0x13570d0;
962 score
[2] -= premium
*premium
;
964 if (lua_isnumber(L
, 4)) {
967 score
[2] += premium
-1; // table: 0x1357930;
969 score
[2] -= premium
*premium
;
971 if (lua_isnumber(L
, 5)) {
974 score
[2] += premium
-1; // table: 0x1357ce0;
976 score
[2] -= premium
*premium
;
978 if (lua_isnumber(L
, 6)) {
981 score
[2] += premium
-1; // table: 0x1357880;
983 score
[2] -= premium
*premium
;
986 if (lqtL_testudata(L
, 1, "QWidget*")) {
989 score
[3] += premium
-1; // table: 0x1358a30;
991 score
[3] -= premium
*premium
;
993 if ((lua_type(L
, 2)==LUA_TSTRING
)) {
996 score
[3] += premium
-1; // table: 0x1358700;
998 score
[3] -= premium
*premium
;
1000 if ((lua_type(L
, 3)==LUA_TSTRING
)) {
1001 score
[3] += premium
;
1003 score
[3] += premium
-1; // table: 0x1358ee0;
1005 score
[3] -= premium
*premium
;
1007 if ((lua_type(L
, 4)==LUA_TSTRING
)) {
1008 score
[3] += premium
;
1010 score
[3] += premium
-1; // table: 0x1359740;
1012 score
[3] -= premium
*premium
;
1014 if ((lua_type(L
, 5)==LUA_TSTRING
)) {
1015 score
[3] += premium
;
1017 score
[3] += premium
-1; // table: 0x1359b00;
1019 score
[3] -= premium
*premium
;
1021 if ((lua_type(L
, 6)==LUA_TSTRING
)) {
1022 score
[3] += premium
;
1024 score
[3] += premium
-1; // table: 0x1359690;
1026 score
[3] -= premium
*premium
;
1028 if (lua_isnumber(L
, 7)) {
1029 score
[3] += premium
;
1031 score
[3] += premium
-1; // table: 0x135a2f0;
1033 score
[3] -= premium
*premium
;
1035 if (lua_isnumber(L
, 8)) {
1036 score
[3] += premium
;
1038 score
[3] += premium
-1; // table: 0x135a6b0;
1040 score
[3] -= premium
*premium
;
1043 if (lqtL_testudata(L
, 1, "QWidget*")) {
1044 score
[4] += premium
;
1046 score
[4] += premium
-1; // table: 0x135afe0;
1048 score
[4] -= premium
*premium
;
1050 if ((lua_type(L
, 2)==LUA_TSTRING
)) {
1051 score
[4] += premium
;
1053 score
[4] += premium
-1; // table: 0x135aca0;
1055 score
[4] -= premium
*premium
;
1057 if ((lua_type(L
, 3)==LUA_TSTRING
)) {
1058 score
[4] += premium
;
1060 score
[4] += premium
-1; // table: 0x135b4d0;
1062 score
[4] -= premium
*premium
;
1064 if (lqtL_isenum(L
, 4, "QMessageBox::StandardButton")) {
1065 score
[4] += premium
;
1067 score
[4] += premium
-1; // table: 0x135bd30;
1069 score
[4] -= premium
*premium
;
1071 if (lqtL_isenum(L
, 5, "QMessageBox::StandardButton")) {
1072 score
[4] += premium
;
1074 score
[4] += premium
-1; // table: 0x135c0e0;
1076 score
[4] -= premium
*premium
;
1079 for (int i
=1;i
<=4;i
++) {
1080 if (score
[best
] < score
[i
]) { best
= i
; }
1083 case 1: return __LuaWrapCall__warning__OverloadedVersion__1(L
); break;
1084 case 2: return __LuaWrapCall__warning__OverloadedVersion__2(L
); break;
1085 case 3: return __LuaWrapCall__warning__OverloadedVersion__3(L
); break;
1086 case 4: return __LuaWrapCall__warning__OverloadedVersion__4(L
); break;
1088 lua_pushstring(L
, "no overload of function __LuaWrapCall__warning matching arguments");
1092 int LuaBinder
< QMessageBox
>::__LuaWrapCall__setWindowTitle (lua_State
*L
) {
1093 QMessageBox
*& __lua__obj
= *static_cast<QMessageBox
**>(lqtL_checkudata(L
, 1, "QMessageBox*"));
1094 if (__lua__obj
==0) {
1095 lua_pushstring(L
, "trying to reference deleted pointer");
1099 const QString
& arg1
= QString::fromAscii(lua_tostring(L
, 2), lua_objlen(L
, 2));
1100 __lua__obj
->QMessageBox::setWindowTitle(arg1
);
1103 int LuaBinder
< QMessageBox
>::__LuaWrapCall__delete (lua_State
*L
) {
1104 QMessageBox
*& __lua__obj
= *static_cast<QMessageBox
**>(lqtL_checkudata(L
, 1, "QMessageBox*"));
1105 if (__lua__obj
==0) {
1106 lua_pushstring(L
, "trying to reference deleted pointer");
1114 int LuaBinder
< QMessageBox
>::__LuaWrapCall__escapeButton (lua_State
*L
) {
1115 QMessageBox
*& __lua__obj
= *static_cast<QMessageBox
**>(lqtL_checkudata(L
, 1, "QMessageBox*"));
1116 if (__lua__obj
==0) {
1117 lua_pushstring(L
, "trying to reference deleted pointer");
1121 QAbstractButton
* ret
= __lua__obj
->QMessageBox::escapeButton();
1122 lqtL_pushudata(L
, ret
, "QAbstractButton*");
1125 int LuaBinder
< QMessageBox
>::__LuaWrapCall__clickedButton (lua_State
*L
) {
1126 QMessageBox
*& __lua__obj
= *static_cast<QMessageBox
**>(lqtL_checkudata(L
, 1, "QMessageBox*"));
1127 if (__lua__obj
==0) {
1128 lua_pushstring(L
, "trying to reference deleted pointer");
1132 QAbstractButton
* ret
= __lua__obj
->QMessageBox::clickedButton();
1133 lqtL_pushudata(L
, ret
, "QAbstractButton*");
1136 int LuaBinder
< QMessageBox
>::__LuaWrapCall__detailedText (lua_State
*L
) {
1137 QMessageBox
*& __lua__obj
= *static_cast<QMessageBox
**>(lqtL_checkudata(L
, 1, "QMessageBox*"));
1138 if (__lua__obj
==0) {
1139 lua_pushstring(L
, "trying to reference deleted pointer");
1143 QString ret
= __lua__obj
->QMessageBox::detailedText();
1144 lua_pushlstring(L
, ret
.toAscii().data(), ret
.toAscii().size());
1147 int LuaBinder
< QMessageBox
>::__LuaWrapCall__text (lua_State
*L
) {
1148 QMessageBox
*& __lua__obj
= *static_cast<QMessageBox
**>(lqtL_checkudata(L
, 1, "QMessageBox*"));
1149 if (__lua__obj
==0) {
1150 lua_pushstring(L
, "trying to reference deleted pointer");
1154 QString ret
= __lua__obj
->QMessageBox::text();
1155 lua_pushlstring(L
, ret
.toAscii().data(), ret
.toAscii().size());
1158 int LuaBinder
< QMessageBox
>::__LuaWrapCall__setTextFormat (lua_State
*L
) {
1159 QMessageBox
*& __lua__obj
= *static_cast<QMessageBox
**>(lqtL_checkudata(L
, 1, "QMessageBox*"));
1160 if (__lua__obj
==0) {
1161 lua_pushstring(L
, "trying to reference deleted pointer");
1165 Qt::TextFormat arg1
= static_cast<Qt::TextFormat
>(lqtL_toenum(L
, 2, "Qt::TextFormat"));
1166 __lua__obj
->QMessageBox::setTextFormat(arg1
);
1169 int LuaBinder
< QMessageBox
>::__LuaWrapCall__trUtf8__OverloadedVersion__1 (lua_State
*L
) {
1170 const char * arg1
= lua_tostring(L
, 1);
1171 const char * arg2
= (lua_type(L
, 2)==LUA_TSTRING
)?lua_tostring(L
, 2):static_cast< const char * >(0);
1172 QString ret
= QMessageBox::trUtf8(arg1
, arg2
);
1173 lua_pushlstring(L
, ret
.toAscii().data(), ret
.toAscii().size());
1176 int LuaBinder
< QMessageBox
>::__LuaWrapCall__trUtf8__OverloadedVersion__2 (lua_State
*L
) {
1177 const char * arg1
= lua_tostring(L
, 1);
1178 const char * arg2
= lua_tostring(L
, 2);
1179 int arg3
= lua_tointeger(L
, 3);
1180 QString ret
= QMessageBox::trUtf8(arg1
, arg2
, arg3
);
1181 lua_pushlstring(L
, ret
.toAscii().data(), ret
.toAscii().size());
1184 int LuaBinder
< QMessageBox
>::__LuaWrapCall__trUtf8 (lua_State
*L
) {
1186 const int premium
= 11+lua_gettop(L
);
1188 if ((lua_type(L
, 1)==LUA_TSTRING
)) {
1189 score
[1] += premium
;
1191 score
[1] += premium
-1; // table: 0x1329bd0;
1193 score
[1] -= premium
*premium
;
1195 if ((lua_type(L
, 2)==LUA_TSTRING
)) {
1196 score
[1] += premium
;
1198 score
[1] += premium
-1; // table: 0x1329730;
1200 score
[1] -= premium
*premium
;
1203 if ((lua_type(L
, 1)==LUA_TSTRING
)) {
1204 score
[2] += premium
;
1206 score
[2] += premium
-1; // table: 0x132b9c0;
1208 score
[2] -= premium
*premium
;
1210 if ((lua_type(L
, 2)==LUA_TSTRING
)) {
1211 score
[2] += premium
;
1213 score
[2] += premium
-1; // table: 0x132b0f0;
1215 score
[2] -= premium
*premium
;
1217 if (lua_isnumber(L
, 3)) {
1218 score
[2] += premium
;
1220 score
[2] += premium
-1; // table: 0x132be50;
1222 score
[2] -= premium
*premium
;
1225 for (int i
=1;i
<=2;i
++) {
1226 if (score
[best
] < score
[i
]) { best
= i
; }
1229 case 1: return __LuaWrapCall__trUtf8__OverloadedVersion__1(L
); break;
1230 case 2: return __LuaWrapCall__trUtf8__OverloadedVersion__2(L
); break;
1232 lua_pushstring(L
, "no overload of function __LuaWrapCall__trUtf8 matching arguments");
1236 int LuaBinder
< QMessageBox
>::__LuaWrapCall__setButtonText (lua_State
*L
) {
1237 QMessageBox
*& __lua__obj
= *static_cast<QMessageBox
**>(lqtL_checkudata(L
, 1, "QMessageBox*"));
1238 if (__lua__obj
==0) {
1239 lua_pushstring(L
, "trying to reference deleted pointer");
1243 int arg1
= lua_tointeger(L
, 2);
1244 const QString
& arg2
= QString::fromAscii(lua_tostring(L
, 3), lua_objlen(L
, 3));
1245 __lua__obj
->QMessageBox::setButtonText(arg1
, arg2
);
1248 int LuaBinder
< QMessageBox
>::__LuaWrapCall__question__OverloadedVersion__1 (lua_State
*L
) {
1249 QWidget
* arg1
= *static_cast<QWidget
**>(lqtL_checkudata(L
, 1, "QWidget*"));
1250 const QString
& arg2
= QString::fromAscii(lua_tostring(L
, 2), lua_objlen(L
, 2));
1251 const QString
& arg3
= QString::fromAscii(lua_tostring(L
, 3), lua_objlen(L
, 3));
1252 QFlags
<QMessageBox::StandardButton
> arg4
= lqtL_testudata(L
, 4, "QFlags<QMessageBox::StandardButton>*")?**static_cast<QFlags
<QMessageBox::StandardButton
>**>(lqtL_checkudata(L
, 4, "QFlags<QMessageBox::StandardButton>*")):Ok
;
1253 QMessageBox::StandardButton arg5
= lqtL_isenum(L
, 5, "QMessageBox::StandardButton")?static_cast<QMessageBox::StandardButton
>(lqtL_toenum(L
, 5, "QMessageBox::StandardButton")):QMessageBox::NoButton
;
1254 QMessageBox::StandardButton ret
= QMessageBox::question(arg1
, arg2
, arg3
, arg4
, arg5
);
1255 lqtL_pushenum(L
, ret
, "QMessageBox::StandardButton");
1258 int LuaBinder
< QMessageBox
>::__LuaWrapCall__question__OverloadedVersion__2 (lua_State
*L
) {
1259 QWidget
* arg1
= *static_cast<QWidget
**>(lqtL_checkudata(L
, 1, "QWidget*"));
1260 const QString
& arg2
= QString::fromAscii(lua_tostring(L
, 2), lua_objlen(L
, 2));
1261 const QString
& arg3
= QString::fromAscii(lua_tostring(L
, 3), lua_objlen(L
, 3));
1262 int arg4
= lua_tointeger(L
, 4);
1263 int arg5
= lua_isnumber(L
, 5)?lua_tointeger(L
, 5):static_cast< int >(0);
1264 int arg6
= lua_isnumber(L
, 6)?lua_tointeger(L
, 6):static_cast< int >(0);
1265 int ret
= QMessageBox::question(arg1
, arg2
, arg3
, arg4
, arg5
, arg6
);
1266 lua_pushinteger(L
, ret
);
1269 int LuaBinder
< QMessageBox
>::__LuaWrapCall__question__OverloadedVersion__3 (lua_State
*L
) {
1270 QWidget
* arg1
= *static_cast<QWidget
**>(lqtL_checkudata(L
, 1, "QWidget*"));
1271 const QString
& arg2
= QString::fromAscii(lua_tostring(L
, 2), lua_objlen(L
, 2));
1272 const QString
& arg3
= QString::fromAscii(lua_tostring(L
, 3), lua_objlen(L
, 3));
1273 const QString
& arg4
= QString::fromAscii(lua_tostring(L
, 4), lua_objlen(L
, 4));
1274 const QString
& arg5
= (lua_type(L
, 5)==LUA_TSTRING
)?QString::fromAscii(lua_tostring(L
, 5), lua_objlen(L
, 5)):QString();
1275 const QString
& arg6
= (lua_type(L
, 6)==LUA_TSTRING
)?QString::fromAscii(lua_tostring(L
, 6), lua_objlen(L
, 6)):QString();
1276 int arg7
= lua_isnumber(L
, 7)?lua_tointeger(L
, 7):static_cast< int >(0);
1277 int arg8
= lua_isnumber(L
, 8)?lua_tointeger(L
, 8):static_cast< int >(-1);
1278 int ret
= QMessageBox::question(arg1
, arg2
, arg3
, arg4
, arg5
, arg6
, arg7
, arg8
);
1279 lua_pushinteger(L
, ret
);
1282 int LuaBinder
< QMessageBox
>::__LuaWrapCall__question__OverloadedVersion__4 (lua_State
*L
) {
1283 QWidget
* arg1
= *static_cast<QWidget
**>(lqtL_checkudata(L
, 1, "QWidget*"));
1284 const QString
& arg2
= QString::fromAscii(lua_tostring(L
, 2), lua_objlen(L
, 2));
1285 const QString
& arg3
= QString::fromAscii(lua_tostring(L
, 3), lua_objlen(L
, 3));
1286 QMessageBox::StandardButton arg4
= static_cast<QMessageBox::StandardButton
>(lqtL_toenum(L
, 4, "QMessageBox::StandardButton"));
1287 QMessageBox::StandardButton arg5
= static_cast<QMessageBox::StandardButton
>(lqtL_toenum(L
, 5, "QMessageBox::StandardButton"));
1288 int ret
= QMessageBox::question(arg1
, arg2
, arg3
, arg4
, arg5
);
1289 lua_pushinteger(L
, ret
);
1292 int LuaBinder
< QMessageBox
>::__LuaWrapCall__question (lua_State
*L
) {
1294 const int premium
= 11+lua_gettop(L
);
1296 if (lqtL_testudata(L
, 1, "QWidget*")) {
1297 score
[1] += premium
;
1299 score
[1] += premium
-1; // table: 0x1340cf0;
1301 score
[1] -= premium
*premium
;
1303 if ((lua_type(L
, 2)==LUA_TSTRING
)) {
1304 score
[1] += premium
;
1306 score
[1] += premium
-1; // table: 0x133fee0;
1308 score
[1] -= premium
*premium
;
1310 if ((lua_type(L
, 3)==LUA_TSTRING
)) {
1311 score
[1] += premium
;
1313 score
[1] += premium
-1; // table: 0x1341210;
1315 score
[1] -= premium
*premium
;
1317 if (lqtL_testudata(L
, 4, "QFlags<QMessageBox::StandardButton>*")) {
1318 score
[1] += premium
;
1320 score
[1] += premium
-1; // table: 0x1341a70;
1322 score
[1] -= premium
*premium
;
1324 if (lqtL_isenum(L
, 5, "QMessageBox::StandardButton")) {
1325 score
[1] += premium
;
1327 score
[1] += premium
-1; // table: 0x1341e40;
1329 score
[1] -= premium
*premium
;
1332 if (lqtL_testudata(L
, 1, "QWidget*")) {
1333 score
[2] += premium
;
1335 score
[2] += premium
-1; // table: 0x1350de0;
1337 score
[2] -= premium
*premium
;
1339 if ((lua_type(L
, 2)==LUA_TSTRING
)) {
1340 score
[2] += premium
;
1342 score
[2] += premium
-1; // table: 0x1350060;
1344 score
[2] -= premium
*premium
;
1346 if ((lua_type(L
, 3)==LUA_TSTRING
)) {
1347 score
[2] += premium
;
1349 score
[2] += premium
-1; // table: 0x1351290;
1351 score
[2] -= premium
*premium
;
1353 if (lua_isnumber(L
, 4)) {
1354 score
[2] += premium
;
1356 score
[2] += premium
-1; // table: 0x1351af0;
1358 score
[2] -= premium
*premium
;
1360 if (lua_isnumber(L
, 5)) {
1361 score
[2] += premium
;
1363 score
[2] += premium
-1; // table: 0x1351eb0;
1365 score
[2] -= premium
*premium
;
1367 if (lua_isnumber(L
, 6)) {
1368 score
[2] += premium
;
1370 score
[2] += premium
-1; // table: 0x1351a40;
1372 score
[2] -= premium
*premium
;
1375 if (lqtL_testudata(L
, 1, "QWidget*")) {
1376 score
[3] += premium
;
1378 score
[3] += premium
-1; // table: 0x1352c00;
1380 score
[3] -= premium
*premium
;
1382 if ((lua_type(L
, 2)==LUA_TSTRING
)) {
1383 score
[3] += premium
;
1385 score
[3] += premium
-1; // table: 0x13528d0;
1387 score
[3] -= premium
*premium
;
1389 if ((lua_type(L
, 3)==LUA_TSTRING
)) {
1390 score
[3] += premium
;
1392 score
[3] += premium
-1; // table: 0x13530b0;
1394 score
[3] -= premium
*premium
;
1396 if ((lua_type(L
, 4)==LUA_TSTRING
)) {
1397 score
[3] += premium
;
1399 score
[3] += premium
-1; // table: 0x1353910;
1401 score
[3] -= premium
*premium
;
1403 if ((lua_type(L
, 5)==LUA_TSTRING
)) {
1404 score
[3] += premium
;
1406 score
[3] += premium
-1; // table: 0x1353cd0;
1408 score
[3] -= premium
*premium
;
1410 if ((lua_type(L
, 6)==LUA_TSTRING
)) {
1411 score
[3] += premium
;
1413 score
[3] += premium
-1; // table: 0x1353860;
1415 score
[3] -= premium
*premium
;
1417 if (lua_isnumber(L
, 7)) {
1418 score
[3] += premium
;
1420 score
[3] += premium
-1; // table: 0x13544c0;
1422 score
[3] -= premium
*premium
;
1424 if (lua_isnumber(L
, 8)) {
1425 score
[3] += premium
;
1427 score
[3] += premium
-1; // table: 0x1354880;
1429 score
[3] -= premium
*premium
;
1432 if (lqtL_testudata(L
, 1, "QWidget*")) {
1433 score
[4] += premium
;
1435 score
[4] += premium
-1; // table: 0x13551b0;
1437 score
[4] -= premium
*premium
;
1439 if ((lua_type(L
, 2)==LUA_TSTRING
)) {
1440 score
[4] += premium
;
1442 score
[4] += premium
-1; // table: 0x1354e70;
1444 score
[4] -= premium
*premium
;
1446 if ((lua_type(L
, 3)==LUA_TSTRING
)) {
1447 score
[4] += premium
;
1449 score
[4] += premium
-1; // table: 0x13556a0;
1451 score
[4] -= premium
*premium
;
1453 if (lqtL_isenum(L
, 4, "QMessageBox::StandardButton")) {
1454 score
[4] += premium
;
1456 score
[4] += premium
-1; // table: 0x1355a60;
1458 score
[4] -= premium
*premium
;
1460 if (lqtL_isenum(L
, 5, "QMessageBox::StandardButton")) {
1461 score
[4] += premium
;
1463 score
[4] += premium
-1; // table: 0x13562c0;
1465 score
[4] -= premium
*premium
;
1468 for (int i
=1;i
<=4;i
++) {
1469 if (score
[best
] < score
[i
]) { best
= i
; }
1472 case 1: return __LuaWrapCall__question__OverloadedVersion__1(L
); break;
1473 case 2: return __LuaWrapCall__question__OverloadedVersion__2(L
); break;
1474 case 3: return __LuaWrapCall__question__OverloadedVersion__3(L
); break;
1475 case 4: return __LuaWrapCall__question__OverloadedVersion__4(L
); break;
1477 lua_pushstring(L
, "no overload of function __LuaWrapCall__question matching arguments");
1481 int LuaBinder
< QMessageBox
>::__LuaWrapCall__setInformativeText (lua_State
*L
) {
1482 QMessageBox
*& __lua__obj
= *static_cast<QMessageBox
**>(lqtL_checkudata(L
, 1, "QMessageBox*"));
1483 if (__lua__obj
==0) {
1484 lua_pushstring(L
, "trying to reference deleted pointer");
1488 const QString
& arg1
= QString::fromAscii(lua_tostring(L
, 2), lua_objlen(L
, 2));
1489 __lua__obj
->QMessageBox::setInformativeText(arg1
);
1492 int LuaBinder
< QMessageBox
>::__LuaWrapCall__setIconPixmap (lua_State
*L
) {
1493 QMessageBox
*& __lua__obj
= *static_cast<QMessageBox
**>(lqtL_checkudata(L
, 1, "QMessageBox*"));
1494 if (__lua__obj
==0) {
1495 lua_pushstring(L
, "trying to reference deleted pointer");
1499 const QPixmap
& arg1
= **static_cast<QPixmap
**>(lqtL_checkudata(L
, 2, "QPixmap*"));
1500 __lua__obj
->QMessageBox::setIconPixmap(arg1
);
1503 int LuaBinder
< QMessageBox
>::__LuaWrapCall__information__OverloadedVersion__1 (lua_State
*L
) {
1504 QWidget
* arg1
= *static_cast<QWidget
**>(lqtL_checkudata(L
, 1, "QWidget*"));
1505 const QString
& arg2
= QString::fromAscii(lua_tostring(L
, 2), lua_objlen(L
, 2));
1506 const QString
& arg3
= QString::fromAscii(lua_tostring(L
, 3), lua_objlen(L
, 3));
1507 QFlags
<QMessageBox::StandardButton
> arg4
= lqtL_testudata(L
, 4, "QFlags<QMessageBox::StandardButton>*")?**static_cast<QFlags
<QMessageBox::StandardButton
>**>(lqtL_checkudata(L
, 4, "QFlags<QMessageBox::StandardButton>*")):Ok
;
1508 QMessageBox::StandardButton arg5
= lqtL_isenum(L
, 5, "QMessageBox::StandardButton")?static_cast<QMessageBox::StandardButton
>(lqtL_toenum(L
, 5, "QMessageBox::StandardButton")):QMessageBox::NoButton
;
1509 QMessageBox::StandardButton ret
= QMessageBox::information(arg1
, arg2
, arg3
, arg4
, arg5
);
1510 lqtL_pushenum(L
, ret
, "QMessageBox::StandardButton");
1513 int LuaBinder
< QMessageBox
>::__LuaWrapCall__information__OverloadedVersion__2 (lua_State
*L
) {
1514 QWidget
* arg1
= *static_cast<QWidget
**>(lqtL_checkudata(L
, 1, "QWidget*"));
1515 const QString
& arg2
= QString::fromAscii(lua_tostring(L
, 2), lua_objlen(L
, 2));
1516 const QString
& arg3
= QString::fromAscii(lua_tostring(L
, 3), lua_objlen(L
, 3));
1517 int arg4
= lua_tointeger(L
, 4);
1518 int arg5
= lua_isnumber(L
, 5)?lua_tointeger(L
, 5):static_cast< int >(0);
1519 int arg6
= lua_isnumber(L
, 6)?lua_tointeger(L
, 6):static_cast< int >(0);
1520 int ret
= QMessageBox::information(arg1
, arg2
, arg3
, arg4
, arg5
, arg6
);
1521 lua_pushinteger(L
, ret
);
1524 int LuaBinder
< QMessageBox
>::__LuaWrapCall__information__OverloadedVersion__3 (lua_State
*L
) {
1525 QWidget
* arg1
= *static_cast<QWidget
**>(lqtL_checkudata(L
, 1, "QWidget*"));
1526 const QString
& arg2
= QString::fromAscii(lua_tostring(L
, 2), lua_objlen(L
, 2));
1527 const QString
& arg3
= QString::fromAscii(lua_tostring(L
, 3), lua_objlen(L
, 3));
1528 const QString
& arg4
= QString::fromAscii(lua_tostring(L
, 4), lua_objlen(L
, 4));
1529 const QString
& arg5
= (lua_type(L
, 5)==LUA_TSTRING
)?QString::fromAscii(lua_tostring(L
, 5), lua_objlen(L
, 5)):QString();
1530 const QString
& arg6
= (lua_type(L
, 6)==LUA_TSTRING
)?QString::fromAscii(lua_tostring(L
, 6), lua_objlen(L
, 6)):QString();
1531 int arg7
= lua_isnumber(L
, 7)?lua_tointeger(L
, 7):static_cast< int >(0);
1532 int arg8
= lua_isnumber(L
, 8)?lua_tointeger(L
, 8):static_cast< int >(-1);
1533 int ret
= QMessageBox::information(arg1
, arg2
, arg3
, arg4
, arg5
, arg6
, arg7
, arg8
);
1534 lua_pushinteger(L
, ret
);
1537 int LuaBinder
< QMessageBox
>::__LuaWrapCall__information__OverloadedVersion__4 (lua_State
*L
) {
1538 QWidget
* arg1
= *static_cast<QWidget
**>(lqtL_checkudata(L
, 1, "QWidget*"));
1539 const QString
& arg2
= QString::fromAscii(lua_tostring(L
, 2), lua_objlen(L
, 2));
1540 const QString
& arg3
= QString::fromAscii(lua_tostring(L
, 3), lua_objlen(L
, 3));
1541 QMessageBox::StandardButton arg4
= static_cast<QMessageBox::StandardButton
>(lqtL_toenum(L
, 4, "QMessageBox::StandardButton"));
1542 QMessageBox::StandardButton arg5
= lqtL_isenum(L
, 5, "QMessageBox::StandardButton")?static_cast<QMessageBox::StandardButton
>(lqtL_toenum(L
, 5, "QMessageBox::StandardButton")):QMessageBox::NoButton
;
1543 QMessageBox::StandardButton ret
= QMessageBox::information(arg1
, arg2
, arg3
, arg4
, arg5
);
1544 lqtL_pushenum(L
, ret
, "QMessageBox::StandardButton");
1547 int LuaBinder
< QMessageBox
>::__LuaWrapCall__information (lua_State
*L
) {
1549 const int premium
= 11+lua_gettop(L
);
1551 if (lqtL_testudata(L
, 1, "QWidget*")) {
1552 score
[1] += premium
;
1554 score
[1] += premium
-1; // table: 0x133f1a0;
1556 score
[1] -= premium
*premium
;
1558 if ((lua_type(L
, 2)==LUA_TSTRING
)) {
1559 score
[1] += premium
;
1561 score
[1] += premium
-1; // table: 0x133eba0;
1563 score
[1] -= premium
*premium
;
1565 if ((lua_type(L
, 3)==LUA_TSTRING
)) {
1566 score
[1] += premium
;
1568 score
[1] += premium
-1; // table: 0x133f6e0;
1570 score
[1] -= premium
*premium
;
1572 if (lqtL_testudata(L
, 4, "QFlags<QMessageBox::StandardButton>*")) {
1573 score
[1] += premium
;
1575 score
[1] += premium
-1; // table: 0x133ff40;
1577 score
[1] -= premium
*premium
;
1579 if (lqtL_isenum(L
, 5, "QMessageBox::StandardButton")) {
1580 score
[1] += premium
;
1582 score
[1] += premium
-1; // table: 0x1340310;
1584 score
[1] -= premium
*premium
;
1587 if (lqtL_testudata(L
, 1, "QWidget*")) {
1588 score
[2] += premium
;
1590 score
[2] += premium
-1; // table: 0x134ad30;
1592 score
[2] -= premium
*premium
;
1594 if ((lua_type(L
, 2)==LUA_TSTRING
)) {
1595 score
[2] += premium
;
1597 score
[2] += premium
-1; // table: 0x134aa00;
1599 score
[2] -= premium
*premium
;
1601 if ((lua_type(L
, 3)==LUA_TSTRING
)) {
1602 score
[2] += premium
;
1604 score
[2] += premium
-1; // table: 0x134b1e0;
1606 score
[2] -= premium
*premium
;
1608 if (lua_isnumber(L
, 4)) {
1609 score
[2] += premium
;
1611 score
[2] += premium
-1; // table: 0x134ba40;
1613 score
[2] -= premium
*premium
;
1615 if (lua_isnumber(L
, 5)) {
1616 score
[2] += premium
;
1618 score
[2] += premium
-1; // table: 0x134be00;
1620 score
[2] -= premium
*premium
;
1622 if (lua_isnumber(L
, 6)) {
1623 score
[2] += premium
;
1625 score
[2] += premium
-1; // table: 0x134b990;
1627 score
[2] -= premium
*premium
;
1630 if (lqtL_testudata(L
, 1, "QWidget*")) {
1631 score
[3] += premium
;
1633 score
[3] += premium
-1; // table: 0x134cb50;
1635 score
[3] -= premium
*premium
;
1637 if ((lua_type(L
, 2)==LUA_TSTRING
)) {
1638 score
[3] += premium
;
1640 score
[3] += premium
-1; // table: 0x134c820;
1642 score
[3] -= premium
*premium
;
1644 if ((lua_type(L
, 3)==LUA_TSTRING
)) {
1645 score
[3] += premium
;
1647 score
[3] += premium
-1; // table: 0x134d000;
1649 score
[3] -= premium
*premium
;
1651 if ((lua_type(L
, 4)==LUA_TSTRING
)) {
1652 score
[3] += premium
;
1654 score
[3] += premium
-1; // table: 0x134d860;
1656 score
[3] -= premium
*premium
;
1658 if ((lua_type(L
, 5)==LUA_TSTRING
)) {
1659 score
[3] += premium
;
1661 score
[3] += premium
-1; // table: 0x134dc90;
1663 score
[3] -= premium
*premium
;
1665 if ((lua_type(L
, 6)==LUA_TSTRING
)) {
1666 score
[3] += premium
;
1668 score
[3] += premium
-1; // table: 0x134d7b0;
1670 score
[3] -= premium
*premium
;
1672 if (lua_isnumber(L
, 7)) {
1673 score
[3] += premium
;
1675 score
[3] += premium
-1; // table: 0x134e560;
1677 score
[3] -= premium
*premium
;
1679 if (lua_isnumber(L
, 8)) {
1680 score
[3] += premium
;
1682 score
[3] += premium
-1; // table: 0x134e9a0;
1684 score
[3] -= premium
*premium
;
1687 if (lqtL_testudata(L
, 1, "QWidget*")) {
1688 score
[4] += premium
;
1690 score
[4] += premium
-1; // table: 0x134f370;
1692 score
[4] -= premium
*premium
;
1694 if ((lua_type(L
, 2)==LUA_TSTRING
)) {
1695 score
[4] += premium
;
1697 score
[4] += premium
-1; // table: 0x134edb0;
1699 score
[4] -= premium
*premium
;
1701 if ((lua_type(L
, 3)==LUA_TSTRING
)) {
1702 score
[4] += premium
;
1704 score
[4] += premium
-1; // table: 0x134f860;
1706 score
[4] -= premium
*premium
;
1708 if (lqtL_isenum(L
, 4, "QMessageBox::StandardButton")) {
1709 score
[4] += premium
;
1711 score
[4] += premium
-1; // table: 0x13500c0;
1713 score
[4] -= premium
*premium
;
1715 if (lqtL_isenum(L
, 5, "QMessageBox::StandardButton")) {
1716 score
[4] += premium
;
1718 score
[4] += premium
-1; // table: 0x1350480;
1720 score
[4] -= premium
*premium
;
1723 for (int i
=1;i
<=4;i
++) {
1724 if (score
[best
] < score
[i
]) { best
= i
; }
1727 case 1: return __LuaWrapCall__information__OverloadedVersion__1(L
); break;
1728 case 2: return __LuaWrapCall__information__OverloadedVersion__2(L
); break;
1729 case 3: return __LuaWrapCall__information__OverloadedVersion__3(L
); break;
1730 case 4: return __LuaWrapCall__information__OverloadedVersion__4(L
); break;
1732 lua_pushstring(L
, "no overload of function __LuaWrapCall__information matching arguments");
1736 int LuaBinder
< QMessageBox
>::__LuaWrapCall__icon (lua_State
*L
) {
1737 QMessageBox
*& __lua__obj
= *static_cast<QMessageBox
**>(lqtL_checkudata(L
, 1, "QMessageBox*"));
1738 if (__lua__obj
==0) {
1739 lua_pushstring(L
, "trying to reference deleted pointer");
1743 QMessageBox::Icon ret
= __lua__obj
->QMessageBox::icon();
1744 lqtL_pushenum(L
, ret
, "QMessageBox::Icon");
1747 void LuaBinder
< QMessageBox
>::styleChange (QStyle
& arg1
) {
1748 bool absorbed
= false;
1749 int oldtop
= lua_gettop(L
);
1750 lqtL_pushudata(L
, this, "QMessageBox*");
1751 if (lua_getmetatable(L
, -1)) {
1752 lua_getfield(L
, -1, "styleChange");
1758 lqtL_pushudata(L
, &(arg1
), "QStyle*");
1759 if (lua_isfunction(L
, -1-2)) {
1760 lua_pcall(L
, 1+1, 2, 0);
1761 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1765 lua_settop(L
, oldtop
);
1766 this->QWidget::styleChange(arg1
);
1768 lua_settop(L
, oldtop
);
1770 void LuaBinder
< QMessageBox
>::focusInEvent (QFocusEvent
* arg1
) {
1771 bool absorbed
= false;
1772 int oldtop
= lua_gettop(L
);
1773 lqtL_pushudata(L
, this, "QMessageBox*");
1774 if (lua_getmetatable(L
, -1)) {
1775 lua_getfield(L
, -1, "focusInEvent");
1781 lqtL_pushudata(L
, arg1
, "QFocusEvent*");
1782 if (lua_isfunction(L
, -1-2)) {
1783 lua_pcall(L
, 1+1, 2, 0);
1784 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1788 lua_settop(L
, oldtop
);
1789 this->QWidget::focusInEvent(arg1
);
1791 lua_settop(L
, oldtop
);
1793 void LuaBinder
< QMessageBox
>::keyPressEvent (QKeyEvent
* arg1
) {
1794 bool absorbed
= false;
1795 int oldtop
= lua_gettop(L
);
1796 lqtL_pushudata(L
, this, "QMessageBox*");
1797 if (lua_getmetatable(L
, -1)) {
1798 lua_getfield(L
, -1, "keyPressEvent");
1804 lqtL_pushudata(L
, arg1
, "QKeyEvent*");
1805 if (lua_isfunction(L
, -1-2)) {
1806 lua_pcall(L
, 1+1, 2, 0);
1807 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1811 lua_settop(L
, oldtop
);
1812 this->QMessageBox::keyPressEvent(arg1
);
1814 lua_settop(L
, oldtop
);
1816 void LuaBinder
< QMessageBox
>::contextMenuEvent (QContextMenuEvent
* arg1
) {
1817 bool absorbed
= false;
1818 int oldtop
= lua_gettop(L
);
1819 lqtL_pushudata(L
, this, "QMessageBox*");
1820 if (lua_getmetatable(L
, -1)) {
1821 lua_getfield(L
, -1, "contextMenuEvent");
1827 lqtL_pushudata(L
, arg1
, "QContextMenuEvent*");
1828 if (lua_isfunction(L
, -1-2)) {
1829 lua_pcall(L
, 1+1, 2, 0);
1830 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1834 lua_settop(L
, oldtop
);
1835 this->QDialog::contextMenuEvent(arg1
);
1837 lua_settop(L
, oldtop
);
1839 int LuaBinder
< QMessageBox
>::devType () const {
1840 bool absorbed
= false;
1841 int oldtop
= lua_gettop(L
);
1842 lqtL_pushudata(L
, this, "QMessageBox*");
1843 if (lua_getmetatable(L
, -1)) {
1844 lua_getfield(L
, -1, "devType");
1850 if (lua_isfunction(L
, -0-2)) {
1851 lua_pcall(L
, 0+1, 2, 0);
1852 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1856 lua_settop(L
, oldtop
);
1857 return this->QWidget::devType();
1859 int ret
= lua_tointeger(L
, -1);
1860 lua_settop(L
, oldtop
);
1863 void LuaBinder
< QMessageBox
>::setVisible (bool arg1
) {
1864 bool absorbed
= false;
1865 int oldtop
= lua_gettop(L
);
1866 lqtL_pushudata(L
, this, "QMessageBox*");
1867 if (lua_getmetatable(L
, -1)) {
1868 lua_getfield(L
, -1, "setVisible");
1874 lua_pushboolean(L
, arg1
);
1875 if (lua_isfunction(L
, -1-2)) {
1876 lua_pcall(L
, 1+1, 2, 0);
1877 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1881 lua_settop(L
, oldtop
);
1882 this->QDialog::setVisible(arg1
);
1884 lua_settop(L
, oldtop
);
1886 QVariant LuaBinder
< QMessageBox
>::inputMethodQuery (Qt::InputMethodQuery arg1
) const {
1887 bool absorbed
= false;
1888 int oldtop
= lua_gettop(L
);
1889 lqtL_pushudata(L
, this, "QMessageBox*");
1890 if (lua_getmetatable(L
, -1)) {
1891 lua_getfield(L
, -1, "inputMethodQuery");
1897 lqtL_pushenum(L
, arg1
, "Qt::InputMethodQuery");
1898 if (lua_isfunction(L
, -1-2)) {
1899 lua_pcall(L
, 1+1, 2, 0);
1900 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1904 lua_settop(L
, oldtop
);
1905 return this->QWidget::inputMethodQuery(arg1
);
1907 QVariant ret
= **static_cast<QVariant
**>(lqtL_checkudata(L
, -1, "QVariant*"));
1908 lua_settop(L
, oldtop
);
1911 QPaintEngine
* LuaBinder
< QMessageBox
>::paintEngine () const {
1912 bool absorbed
= false;
1913 int oldtop
= lua_gettop(L
);
1914 lqtL_pushudata(L
, this, "QMessageBox*");
1915 if (lua_getmetatable(L
, -1)) {
1916 lua_getfield(L
, -1, "paintEngine");
1922 if (lua_isfunction(L
, -0-2)) {
1923 lua_pcall(L
, 0+1, 2, 0);
1924 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1928 lua_settop(L
, oldtop
);
1929 return this->QWidget::paintEngine();
1931 QPaintEngine
* ret
= *static_cast<QPaintEngine
**>(lqtL_checkudata(L
, -1, "QPaintEngine*"));
1932 lua_settop(L
, oldtop
);
1935 void LuaBinder
< QMessageBox
>::dragLeaveEvent (QDragLeaveEvent
* arg1
) {
1936 bool absorbed
= false;
1937 int oldtop
= lua_gettop(L
);
1938 lqtL_pushudata(L
, this, "QMessageBox*");
1939 if (lua_getmetatable(L
, -1)) {
1940 lua_getfield(L
, -1, "dragLeaveEvent");
1946 lqtL_pushudata(L
, arg1
, "QDragLeaveEvent*");
1947 if (lua_isfunction(L
, -1-2)) {
1948 lua_pcall(L
, 1+1, 2, 0);
1949 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1953 lua_settop(L
, oldtop
);
1954 this->QWidget::dragLeaveEvent(arg1
);
1956 lua_settop(L
, oldtop
);
1958 void LuaBinder
< QMessageBox
>::mousePressEvent (QMouseEvent
* arg1
) {
1959 bool absorbed
= false;
1960 int oldtop
= lua_gettop(L
);
1961 lqtL_pushudata(L
, this, "QMessageBox*");
1962 if (lua_getmetatable(L
, -1)) {
1963 lua_getfield(L
, -1, "mousePressEvent");
1969 lqtL_pushudata(L
, arg1
, "QMouseEvent*");
1970 if (lua_isfunction(L
, -1-2)) {
1971 lua_pcall(L
, 1+1, 2, 0);
1972 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1976 lua_settop(L
, oldtop
);
1977 this->QWidget::mousePressEvent(arg1
);
1979 lua_settop(L
, oldtop
);
1981 void LuaBinder
< QMessageBox
>::dragEnterEvent (QDragEnterEvent
* arg1
) {
1982 bool absorbed
= false;
1983 int oldtop
= lua_gettop(L
);
1984 lqtL_pushudata(L
, this, "QMessageBox*");
1985 if (lua_getmetatable(L
, -1)) {
1986 lua_getfield(L
, -1, "dragEnterEvent");
1992 lqtL_pushudata(L
, arg1
, "QDragEnterEvent*");
1993 if (lua_isfunction(L
, -1-2)) {
1994 lua_pcall(L
, 1+1, 2, 0);
1995 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1999 lua_settop(L
, oldtop
);
2000 this->QWidget::dragEnterEvent(arg1
);
2002 lua_settop(L
, oldtop
);
2004 void LuaBinder
< QMessageBox
>::closeEvent (QCloseEvent
* arg1
) {
2005 bool absorbed
= false;
2006 int oldtop
= lua_gettop(L
);
2007 lqtL_pushudata(L
, this, "QMessageBox*");
2008 if (lua_getmetatable(L
, -1)) {
2009 lua_getfield(L
, -1, "closeEvent");
2015 lqtL_pushudata(L
, arg1
, "QCloseEvent*");
2016 if (lua_isfunction(L
, -1-2)) {
2017 lua_pcall(L
, 1+1, 2, 0);
2018 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
2022 lua_settop(L
, oldtop
);
2023 this->QMessageBox::closeEvent(arg1
);
2025 lua_settop(L
, oldtop
);
2027 void LuaBinder
< QMessageBox
>::reject () {
2028 bool absorbed
= false;
2029 int oldtop
= lua_gettop(L
);
2030 lqtL_pushudata(L
, this, "QMessageBox*");
2031 if (lua_getmetatable(L
, -1)) {
2032 lua_getfield(L
, -1, "reject");
2038 if (lua_isfunction(L
, -0-2)) {
2039 lua_pcall(L
, 0+1, 2, 0);
2040 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
2044 lua_settop(L
, oldtop
);
2045 this->QDialog::reject();
2047 lua_settop(L
, oldtop
);
2049 void LuaBinder
< QMessageBox
>::accept () {
2050 bool absorbed
= false;
2051 int oldtop
= lua_gettop(L
);
2052 lqtL_pushudata(L
, this, "QMessageBox*");
2053 if (lua_getmetatable(L
, -1)) {
2054 lua_getfield(L
, -1, "accept");
2060 if (lua_isfunction(L
, -0-2)) {
2061 lua_pcall(L
, 0+1, 2, 0);
2062 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
2066 lua_settop(L
, oldtop
);
2067 this->QDialog::accept();
2069 lua_settop(L
, oldtop
);
2071 void LuaBinder
< QMessageBox
>::tabletEvent (QTabletEvent
* arg1
) {
2072 bool absorbed
= false;
2073 int oldtop
= lua_gettop(L
);
2074 lqtL_pushudata(L
, this, "QMessageBox*");
2075 if (lua_getmetatable(L
, -1)) {
2076 lua_getfield(L
, -1, "tabletEvent");
2082 lqtL_pushudata(L
, arg1
, "QTabletEvent*");
2083 if (lua_isfunction(L
, -1-2)) {
2084 lua_pcall(L
, 1+1, 2, 0);
2085 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
2089 lua_settop(L
, oldtop
);
2090 this->QWidget::tabletEvent(arg1
);
2092 lua_settop(L
, oldtop
);
2094 void LuaBinder
< QMessageBox
>::customEvent (QEvent
* arg1
) {
2095 bool absorbed
= false;
2096 int oldtop
= lua_gettop(L
);
2097 lqtL_pushudata(L
, this, "QMessageBox*");
2098 if (lua_getmetatable(L
, -1)) {
2099 lua_getfield(L
, -1, "customEvent");
2105 lqtL_pushudata(L
, arg1
, "QEvent*");
2106 if (lua_isfunction(L
, -1-2)) {
2107 lua_pcall(L
, 1+1, 2, 0);
2108 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
2112 lua_settop(L
, oldtop
);
2113 this->QObject::customEvent(arg1
);
2115 lua_settop(L
, oldtop
);
2117 void LuaBinder
< QMessageBox
>::moveEvent (QMoveEvent
* arg1
) {
2118 bool absorbed
= false;
2119 int oldtop
= lua_gettop(L
);
2120 lqtL_pushudata(L
, this, "QMessageBox*");
2121 if (lua_getmetatable(L
, -1)) {
2122 lua_getfield(L
, -1, "moveEvent");
2128 lqtL_pushudata(L
, arg1
, "QMoveEvent*");
2129 if (lua_isfunction(L
, -1-2)) {
2130 lua_pcall(L
, 1+1, 2, 0);
2131 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
2135 lua_settop(L
, oldtop
);
2136 this->QWidget::moveEvent(arg1
);
2138 lua_settop(L
, oldtop
);
2140 void LuaBinder
< QMessageBox
>::keyReleaseEvent (QKeyEvent
* arg1
) {
2141 bool absorbed
= false;
2142 int oldtop
= lua_gettop(L
);
2143 lqtL_pushudata(L
, this, "QMessageBox*");
2144 if (lua_getmetatable(L
, -1)) {
2145 lua_getfield(L
, -1, "keyReleaseEvent");
2151 lqtL_pushudata(L
, arg1
, "QKeyEvent*");
2152 if (lua_isfunction(L
, -1-2)) {
2153 lua_pcall(L
, 1+1, 2, 0);
2154 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
2158 lua_settop(L
, oldtop
);
2159 this->QWidget::keyReleaseEvent(arg1
);
2161 lua_settop(L
, oldtop
);
2163 QSize LuaBinder
< QMessageBox
>::minimumSizeHint () const {
2164 bool absorbed
= false;
2165 int oldtop
= lua_gettop(L
);
2166 lqtL_pushudata(L
, this, "QMessageBox*");
2167 if (lua_getmetatable(L
, -1)) {
2168 lua_getfield(L
, -1, "minimumSizeHint");
2174 if (lua_isfunction(L
, -0-2)) {
2175 lua_pcall(L
, 0+1, 2, 0);
2176 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
2180 lua_settop(L
, oldtop
);
2181 return this->QDialog::minimumSizeHint();
2183 QSize ret
= **static_cast<QSize
**>(lqtL_checkudata(L
, -1, "QSize*"));
2184 lua_settop(L
, oldtop
);
2187 void LuaBinder
< QMessageBox
>::dropEvent (QDropEvent
* arg1
) {
2188 bool absorbed
= false;
2189 int oldtop
= lua_gettop(L
);
2190 lqtL_pushudata(L
, this, "QMessageBox*");
2191 if (lua_getmetatable(L
, -1)) {
2192 lua_getfield(L
, -1, "dropEvent");
2198 lqtL_pushudata(L
, arg1
, "QDropEvent*");
2199 if (lua_isfunction(L
, -1-2)) {
2200 lua_pcall(L
, 1+1, 2, 0);
2201 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
2205 lua_settop(L
, oldtop
);
2206 this->QWidget::dropEvent(arg1
);
2208 lua_settop(L
, oldtop
);
2210 void LuaBinder
< QMessageBox
>::windowActivationChange (bool arg1
) {
2211 bool absorbed
= false;
2212 int oldtop
= lua_gettop(L
);
2213 lqtL_pushudata(L
, this, "QMessageBox*");
2214 if (lua_getmetatable(L
, -1)) {
2215 lua_getfield(L
, -1, "windowActivationChange");
2221 lua_pushboolean(L
, arg1
);
2222 if (lua_isfunction(L
, -1-2)) {
2223 lua_pcall(L
, 1+1, 2, 0);
2224 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
2228 lua_settop(L
, oldtop
);
2229 this->QWidget::windowActivationChange(arg1
);
2231 lua_settop(L
, oldtop
);
2233 void LuaBinder
< QMessageBox
>::showEvent (QShowEvent
* arg1
) {
2234 bool absorbed
= false;
2235 int oldtop
= lua_gettop(L
);
2236 lqtL_pushudata(L
, this, "QMessageBox*");
2237 if (lua_getmetatable(L
, -1)) {
2238 lua_getfield(L
, -1, "showEvent");
2244 lqtL_pushudata(L
, arg1
, "QShowEvent*");
2245 if (lua_isfunction(L
, -1-2)) {
2246 lua_pcall(L
, 1+1, 2, 0);
2247 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
2251 lua_settop(L
, oldtop
);
2252 this->QMessageBox::showEvent(arg1
);
2254 lua_settop(L
, oldtop
);
2256 const QMetaObject
* LuaBinder
< QMessageBox
>::metaObject () const {
2257 bool absorbed
= false;
2258 int oldtop
= lua_gettop(L
);
2259 lqtL_pushudata(L
, this, "QMessageBox*");
2260 if (lua_getmetatable(L
, -1)) {
2261 lua_getfield(L
, -1, "metaObject");
2267 if (lua_isfunction(L
, -0-2)) {
2268 lua_pcall(L
, 0+1, 2, 0);
2269 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
2273 lua_settop(L
, oldtop
);
2274 return this->QMessageBox::metaObject();
2276 const QMetaObject
* ret
= *static_cast<QMetaObject
**>(lqtL_checkudata(L
, -1, "QMetaObject*"));
2277 lua_settop(L
, oldtop
);
2280 void LuaBinder
< QMessageBox
>::paintEvent (QPaintEvent
* arg1
) {
2281 bool absorbed
= false;
2282 int oldtop
= lua_gettop(L
);
2283 lqtL_pushudata(L
, this, "QMessageBox*");
2284 if (lua_getmetatable(L
, -1)) {
2285 lua_getfield(L
, -1, "paintEvent");
2291 lqtL_pushudata(L
, arg1
, "QPaintEvent*");
2292 if (lua_isfunction(L
, -1-2)) {
2293 lua_pcall(L
, 1+1, 2, 0);
2294 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
2298 lua_settop(L
, oldtop
);
2299 this->QWidget::paintEvent(arg1
);
2301 lua_settop(L
, oldtop
);
2303 void LuaBinder
< QMessageBox
>::done (int arg1
) {
2304 bool absorbed
= false;
2305 int oldtop
= lua_gettop(L
);
2306 lqtL_pushudata(L
, this, "QMessageBox*");
2307 if (lua_getmetatable(L
, -1)) {
2308 lua_getfield(L
, -1, "done");
2314 lua_pushinteger(L
, arg1
);
2315 if (lua_isfunction(L
, -1-2)) {
2316 lua_pcall(L
, 1+1, 2, 0);
2317 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
2321 lua_settop(L
, oldtop
);
2322 this->QDialog::done(arg1
);
2324 lua_settop(L
, oldtop
);
2326 void LuaBinder
< QMessageBox
>::mouseDoubleClickEvent (QMouseEvent
* arg1
) {
2327 bool absorbed
= false;
2328 int oldtop
= lua_gettop(L
);
2329 lqtL_pushudata(L
, this, "QMessageBox*");
2330 if (lua_getmetatable(L
, -1)) {
2331 lua_getfield(L
, -1, "mouseDoubleClickEvent");
2337 lqtL_pushudata(L
, arg1
, "QMouseEvent*");
2338 if (lua_isfunction(L
, -1-2)) {
2339 lua_pcall(L
, 1+1, 2, 0);
2340 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
2344 lua_settop(L
, oldtop
);
2345 this->QWidget::mouseDoubleClickEvent(arg1
);
2347 lua_settop(L
, oldtop
);
2349 void LuaBinder
< QMessageBox
>::enabledChange (bool arg1
) {
2350 bool absorbed
= false;
2351 int oldtop
= lua_gettop(L
);
2352 lqtL_pushudata(L
, this, "QMessageBox*");
2353 if (lua_getmetatable(L
, -1)) {
2354 lua_getfield(L
, -1, "enabledChange");
2360 lua_pushboolean(L
, arg1
);
2361 if (lua_isfunction(L
, -1-2)) {
2362 lua_pcall(L
, 1+1, 2, 0);
2363 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
2367 lua_settop(L
, oldtop
);
2368 this->QWidget::enabledChange(arg1
);
2370 lua_settop(L
, oldtop
);
2372 bool LuaBinder
< QMessageBox
>::focusNextPrevChild (bool arg1
) {
2373 bool absorbed
= false;
2374 int oldtop
= lua_gettop(L
);
2375 lqtL_pushudata(L
, this, "QMessageBox*");
2376 if (lua_getmetatable(L
, -1)) {
2377 lua_getfield(L
, -1, "focusNextPrevChild");
2383 lua_pushboolean(L
, arg1
);
2384 if (lua_isfunction(L
, -1-2)) {
2385 lua_pcall(L
, 1+1, 2, 0);
2386 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
2390 lua_settop(L
, oldtop
);
2391 return this->QWidget::focusNextPrevChild(arg1
);
2393 bool ret
= (bool)lua_toboolean(L
, -1);
2394 lua_settop(L
, oldtop
);
2397 int LuaBinder
< QMessageBox
>::heightForWidth (int arg1
) const {
2398 bool absorbed
= false;
2399 int oldtop
= lua_gettop(L
);
2400 lqtL_pushudata(L
, this, "QMessageBox*");
2401 if (lua_getmetatable(L
, -1)) {
2402 lua_getfield(L
, -1, "heightForWidth");
2408 lua_pushinteger(L
, arg1
);
2409 if (lua_isfunction(L
, -1-2)) {
2410 lua_pcall(L
, 1+1, 2, 0);
2411 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
2415 lua_settop(L
, oldtop
);
2416 return this->QWidget::heightForWidth(arg1
);
2418 int ret
= lua_tointeger(L
, -1);
2419 lua_settop(L
, oldtop
);
2422 void LuaBinder
< QMessageBox
>::fontChange (const QFont
& arg1
) {
2423 bool absorbed
= false;
2424 int oldtop
= lua_gettop(L
);
2425 lqtL_pushudata(L
, this, "QMessageBox*");
2426 if (lua_getmetatable(L
, -1)) {
2427 lua_getfield(L
, -1, "fontChange");
2433 lqtL_pushudata(L
, &(arg1
), "QFont*");
2434 if (lua_isfunction(L
, -1-2)) {
2435 lua_pcall(L
, 1+1, 2, 0);
2436 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
2440 lua_settop(L
, oldtop
);
2441 this->QWidget::fontChange(arg1
);
2443 lua_settop(L
, oldtop
);
2445 void LuaBinder
< QMessageBox
>::timerEvent (QTimerEvent
* arg1
) {
2446 bool absorbed
= false;
2447 int oldtop
= lua_gettop(L
);
2448 lqtL_pushudata(L
, this, "QMessageBox*");
2449 if (lua_getmetatable(L
, -1)) {
2450 lua_getfield(L
, -1, "timerEvent");
2456 lqtL_pushudata(L
, arg1
, "QTimerEvent*");
2457 if (lua_isfunction(L
, -1-2)) {
2458 lua_pcall(L
, 1+1, 2, 0);
2459 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
2463 lua_settop(L
, oldtop
);
2464 this->QObject::timerEvent(arg1
);
2466 lua_settop(L
, oldtop
);
2468 void LuaBinder
< QMessageBox
>::disconnectNotify (const char * arg1
) {
2469 bool absorbed
= false;
2470 int oldtop
= lua_gettop(L
);
2471 lqtL_pushudata(L
, this, "QMessageBox*");
2472 if (lua_getmetatable(L
, -1)) {
2473 lua_getfield(L
, -1, "disconnectNotify");
2479 lua_pushstring(L
, arg1
);
2480 if (lua_isfunction(L
, -1-2)) {
2481 lua_pcall(L
, 1+1, 2, 0);
2482 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
2486 lua_settop(L
, oldtop
);
2487 this->QObject::disconnectNotify(arg1
);
2489 lua_settop(L
, oldtop
);
2491 void LuaBinder
< QMessageBox
>::mouseMoveEvent (QMouseEvent
* arg1
) {
2492 bool absorbed
= false;
2493 int oldtop
= lua_gettop(L
);
2494 lqtL_pushudata(L
, this, "QMessageBox*");
2495 if (lua_getmetatable(L
, -1)) {
2496 lua_getfield(L
, -1, "mouseMoveEvent");
2502 lqtL_pushudata(L
, arg1
, "QMouseEvent*");
2503 if (lua_isfunction(L
, -1-2)) {
2504 lua_pcall(L
, 1+1, 2, 0);
2505 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
2509 lua_settop(L
, oldtop
);
2510 this->QWidget::mouseMoveEvent(arg1
);
2512 lua_settop(L
, oldtop
);
2514 void LuaBinder
< QMessageBox
>::focusOutEvent (QFocusEvent
* arg1
) {
2515 bool absorbed
= false;
2516 int oldtop
= lua_gettop(L
);
2517 lqtL_pushudata(L
, this, "QMessageBox*");
2518 if (lua_getmetatable(L
, -1)) {
2519 lua_getfield(L
, -1, "focusOutEvent");
2525 lqtL_pushudata(L
, arg1
, "QFocusEvent*");
2526 if (lua_isfunction(L
, -1-2)) {
2527 lua_pcall(L
, 1+1, 2, 0);
2528 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
2532 lua_settop(L
, oldtop
);
2533 this->QWidget::focusOutEvent(arg1
);
2535 lua_settop(L
, oldtop
);
2537 void LuaBinder
< QMessageBox
>::childEvent (QChildEvent
* arg1
) {
2538 bool absorbed
= false;
2539 int oldtop
= lua_gettop(L
);
2540 lqtL_pushudata(L
, this, "QMessageBox*");
2541 if (lua_getmetatable(L
, -1)) {
2542 lua_getfield(L
, -1, "childEvent");
2548 lqtL_pushudata(L
, arg1
, "QChildEvent*");
2549 if (lua_isfunction(L
, -1-2)) {
2550 lua_pcall(L
, 1+1, 2, 0);
2551 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
2555 lua_settop(L
, oldtop
);
2556 this->QObject::childEvent(arg1
);
2558 lua_settop(L
, oldtop
);
2560 void LuaBinder
< QMessageBox
>::connectNotify (const char * arg1
) {
2561 bool absorbed
= false;
2562 int oldtop
= lua_gettop(L
);
2563 lqtL_pushudata(L
, this, "QMessageBox*");
2564 if (lua_getmetatable(L
, -1)) {
2565 lua_getfield(L
, -1, "connectNotify");
2571 lua_pushstring(L
, arg1
);
2572 if (lua_isfunction(L
, -1-2)) {
2573 lua_pcall(L
, 1+1, 2, 0);
2574 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
2578 lua_settop(L
, oldtop
);
2579 this->QObject::connectNotify(arg1
);
2581 lua_settop(L
, oldtop
);
2583 void LuaBinder
< QMessageBox
>::mouseReleaseEvent (QMouseEvent
* arg1
) {
2584 bool absorbed
= false;
2585 int oldtop
= lua_gettop(L
);
2586 lqtL_pushudata(L
, this, "QMessageBox*");
2587 if (lua_getmetatable(L
, -1)) {
2588 lua_getfield(L
, -1, "mouseReleaseEvent");
2594 lqtL_pushudata(L
, arg1
, "QMouseEvent*");
2595 if (lua_isfunction(L
, -1-2)) {
2596 lua_pcall(L
, 1+1, 2, 0);
2597 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
2601 lua_settop(L
, oldtop
);
2602 this->QWidget::mouseReleaseEvent(arg1
);
2604 lua_settop(L
, oldtop
);
2606 int LuaBinder
< QMessageBox
>::metric (QPaintDevice::PaintDeviceMetric arg1
) const {
2607 bool absorbed
= false;
2608 int oldtop
= lua_gettop(L
);
2609 lqtL_pushudata(L
, this, "QMessageBox*");
2610 if (lua_getmetatable(L
, -1)) {
2611 lua_getfield(L
, -1, "metric");
2617 lqtL_pushenum(L
, arg1
, "QPaintDevice::PaintDeviceMetric");
2618 if (lua_isfunction(L
, -1-2)) {
2619 lua_pcall(L
, 1+1, 2, 0);
2620 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
2624 lua_settop(L
, oldtop
);
2625 return this->QWidget::metric(arg1
);
2627 int ret
= lua_tointeger(L
, -1);
2628 lua_settop(L
, oldtop
);
2631 bool LuaBinder
< QMessageBox
>::eventFilter (QObject
* arg1
, QEvent
* arg2
) {
2632 bool absorbed
= false;
2633 int oldtop
= lua_gettop(L
);
2634 lqtL_pushudata(L
, this, "QMessageBox*");
2635 if (lua_getmetatable(L
, -1)) {
2636 lua_getfield(L
, -1, "eventFilter");
2642 lqtL_pushudata(L
, arg1
, "QObject*");
2643 lqtL_pushudata(L
, arg2
, "QEvent*");
2644 if (lua_isfunction(L
, -2-2)) {
2645 lua_pcall(L
, 2+1, 2, 0);
2646 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
2650 lua_settop(L
, oldtop
);
2651 return this->QDialog::eventFilter(arg1
, arg2
);
2653 bool ret
= (bool)lua_toboolean(L
, -1);
2654 lua_settop(L
, oldtop
);
2657 void LuaBinder
< QMessageBox
>::inputMethodEvent (QInputMethodEvent
* arg1
) {
2658 bool absorbed
= false;
2659 int oldtop
= lua_gettop(L
);
2660 lqtL_pushudata(L
, this, "QMessageBox*");
2661 if (lua_getmetatable(L
, -1)) {
2662 lua_getfield(L
, -1, "inputMethodEvent");
2668 lqtL_pushudata(L
, arg1
, "QInputMethodEvent*");
2669 if (lua_isfunction(L
, -1-2)) {
2670 lua_pcall(L
, 1+1, 2, 0);
2671 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
2675 lua_settop(L
, oldtop
);
2676 this->QWidget::inputMethodEvent(arg1
);
2678 lua_settop(L
, oldtop
);
2680 void LuaBinder
< QMessageBox
>::wheelEvent (QWheelEvent
* arg1
) {
2681 bool absorbed
= false;
2682 int oldtop
= lua_gettop(L
);
2683 lqtL_pushudata(L
, this, "QMessageBox*");
2684 if (lua_getmetatable(L
, -1)) {
2685 lua_getfield(L
, -1, "wheelEvent");
2691 lqtL_pushudata(L
, arg1
, "QWheelEvent*");
2692 if (lua_isfunction(L
, -1-2)) {
2693 lua_pcall(L
, 1+1, 2, 0);
2694 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
2698 lua_settop(L
, oldtop
);
2699 this->QWidget::wheelEvent(arg1
);
2701 lua_settop(L
, oldtop
);
2703 void LuaBinder
< QMessageBox
>::actionEvent (QActionEvent
* arg1
) {
2704 bool absorbed
= false;
2705 int oldtop
= lua_gettop(L
);
2706 lqtL_pushudata(L
, this, "QMessageBox*");
2707 if (lua_getmetatable(L
, -1)) {
2708 lua_getfield(L
, -1, "actionEvent");
2714 lqtL_pushudata(L
, arg1
, "QActionEvent*");
2715 if (lua_isfunction(L
, -1-2)) {
2716 lua_pcall(L
, 1+1, 2, 0);
2717 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
2721 lua_settop(L
, oldtop
);
2722 this->QWidget::actionEvent(arg1
);
2724 lua_settop(L
, oldtop
);
2726 void LuaBinder
< QMessageBox
>::paletteChange (const QPalette
& arg1
) {
2727 bool absorbed
= false;
2728 int oldtop
= lua_gettop(L
);
2729 lqtL_pushudata(L
, this, "QMessageBox*");
2730 if (lua_getmetatable(L
, -1)) {
2731 lua_getfield(L
, -1, "paletteChange");
2737 lqtL_pushudata(L
, &(arg1
), "QPalette*");
2738 if (lua_isfunction(L
, -1-2)) {
2739 lua_pcall(L
, 1+1, 2, 0);
2740 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
2744 lua_settop(L
, oldtop
);
2745 this->QWidget::paletteChange(arg1
);
2747 lua_settop(L
, oldtop
);
2749 void LuaBinder
< QMessageBox
>::languageChange () {
2750 bool absorbed
= false;
2751 int oldtop
= lua_gettop(L
);
2752 lqtL_pushudata(L
, this, "QMessageBox*");
2753 if (lua_getmetatable(L
, -1)) {
2754 lua_getfield(L
, -1, "languageChange");
2760 if (lua_isfunction(L
, -0-2)) {
2761 lua_pcall(L
, 0+1, 2, 0);
2762 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
2766 lua_settop(L
, oldtop
);
2767 this->QWidget::languageChange();
2769 lua_settop(L
, oldtop
);
2771 bool LuaBinder
< QMessageBox
>::event (QEvent
* arg1
) {
2772 bool absorbed
= false;
2773 int oldtop
= lua_gettop(L
);
2774 lqtL_pushudata(L
, this, "QMessageBox*");
2775 if (lua_getmetatable(L
, -1)) {
2776 lua_getfield(L
, -1, "event");
2782 lqtL_pushudata(L
, arg1
, "QEvent*");
2783 if (lua_isfunction(L
, -1-2)) {
2784 lua_pcall(L
, 1+1, 2, 0);
2785 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
2789 lua_settop(L
, oldtop
);
2790 return this->QMessageBox::event(arg1
);
2792 bool ret
= (bool)lua_toboolean(L
, -1);
2793 lua_settop(L
, oldtop
);
2796 void LuaBinder
< QMessageBox
>::hideEvent (QHideEvent
* arg1
) {
2797 bool absorbed
= false;
2798 int oldtop
= lua_gettop(L
);
2799 lqtL_pushudata(L
, this, "QMessageBox*");
2800 if (lua_getmetatable(L
, -1)) {
2801 lua_getfield(L
, -1, "hideEvent");
2807 lqtL_pushudata(L
, arg1
, "QHideEvent*");
2808 if (lua_isfunction(L
, -1-2)) {
2809 lua_pcall(L
, 1+1, 2, 0);
2810 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
2814 lua_settop(L
, oldtop
);
2815 this->QWidget::hideEvent(arg1
);
2817 lua_settop(L
, oldtop
);
2819 void LuaBinder
< QMessageBox
>::dragMoveEvent (QDragMoveEvent
* arg1
) {
2820 bool absorbed
= false;
2821 int oldtop
= lua_gettop(L
);
2822 lqtL_pushudata(L
, this, "QMessageBox*");
2823 if (lua_getmetatable(L
, -1)) {
2824 lua_getfield(L
, -1, "dragMoveEvent");
2830 lqtL_pushudata(L
, arg1
, "QDragMoveEvent*");
2831 if (lua_isfunction(L
, -1-2)) {
2832 lua_pcall(L
, 1+1, 2, 0);
2833 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
2837 lua_settop(L
, oldtop
);
2838 this->QWidget::dragMoveEvent(arg1
);
2840 lua_settop(L
, oldtop
);
2842 QSize LuaBinder
< QMessageBox
>::sizeHint () const {
2843 bool absorbed
= false;
2844 int oldtop
= lua_gettop(L
);
2845 lqtL_pushudata(L
, this, "QMessageBox*");
2846 if (lua_getmetatable(L
, -1)) {
2847 lua_getfield(L
, -1, "sizeHint");
2853 if (lua_isfunction(L
, -0-2)) {
2854 lua_pcall(L
, 0+1, 2, 0);
2855 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
2859 lua_settop(L
, oldtop
);
2860 return this->QMessageBox::sizeHint();
2862 QSize ret
= **static_cast<QSize
**>(lqtL_checkudata(L
, -1, "QSize*"));
2863 lua_settop(L
, oldtop
);
2866 void LuaBinder
< QMessageBox
>::resizeEvent (QResizeEvent
* arg1
) {
2867 bool absorbed
= false;
2868 int oldtop
= lua_gettop(L
);
2869 lqtL_pushudata(L
, this, "QMessageBox*");
2870 if (lua_getmetatable(L
, -1)) {
2871 lua_getfield(L
, -1, "resizeEvent");
2877 lqtL_pushudata(L
, arg1
, "QResizeEvent*");
2878 if (lua_isfunction(L
, -1-2)) {
2879 lua_pcall(L
, 1+1, 2, 0);
2880 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
2884 lua_settop(L
, oldtop
);
2885 this->QMessageBox::resizeEvent(arg1
);
2887 lua_settop(L
, oldtop
);
2889 void LuaBinder
< QMessageBox
>::leaveEvent (QEvent
* arg1
) {
2890 bool absorbed
= false;
2891 int oldtop
= lua_gettop(L
);
2892 lqtL_pushudata(L
, this, "QMessageBox*");
2893 if (lua_getmetatable(L
, -1)) {
2894 lua_getfield(L
, -1, "leaveEvent");
2900 lqtL_pushudata(L
, arg1
, "QEvent*");
2901 if (lua_isfunction(L
, -1-2)) {
2902 lua_pcall(L
, 1+1, 2, 0);
2903 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
2907 lua_settop(L
, oldtop
);
2908 this->QWidget::leaveEvent(arg1
);
2910 lua_settop(L
, oldtop
);
2912 void LuaBinder
< QMessageBox
>::changeEvent (QEvent
* arg1
) {
2913 bool absorbed
= false;
2914 int oldtop
= lua_gettop(L
);
2915 lqtL_pushudata(L
, this, "QMessageBox*");
2916 if (lua_getmetatable(L
, -1)) {
2917 lua_getfield(L
, -1, "changeEvent");
2923 lqtL_pushudata(L
, arg1
, "QEvent*");
2924 if (lua_isfunction(L
, -1-2)) {
2925 lua_pcall(L
, 1+1, 2, 0);
2926 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
2930 lua_settop(L
, oldtop
);
2931 this->QMessageBox::changeEvent(arg1
);
2933 lua_settop(L
, oldtop
);
2935 void LuaBinder
< QMessageBox
>::enterEvent (QEvent
* arg1
) {
2936 bool absorbed
= false;
2937 int oldtop
= lua_gettop(L
);
2938 lqtL_pushudata(L
, this, "QMessageBox*");
2939 if (lua_getmetatable(L
, -1)) {
2940 lua_getfield(L
, -1, "enterEvent");
2946 lqtL_pushudata(L
, arg1
, "QEvent*");
2947 if (lua_isfunction(L
, -1-2)) {
2948 lua_pcall(L
, 1+1, 2, 0);
2949 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
2953 lua_settop(L
, oldtop
);
2954 this->QWidget::enterEvent(arg1
);
2956 lua_settop(L
, oldtop
);
2958 LuaBinder
< QMessageBox
>:: ~LuaBinder
< QMessageBox
> () {
2959 int oldtop
= lua_gettop(L
);
2960 lqtL_pushudata(L
, this, "QMessageBox*");
2961 lua_getfield(L
, -1, "~QMessageBox");
2963 if (lua_isfunction(L
, -1)) {
2965 lua_pcall(L
, 1, 1, 0);
2968 lua_settop(L
, oldtop
);
2970 int LuaBinder
< QMessageBox
>::lqt_pushenum_Icon (lua_State
*L
) {
2972 lua_getfield(L
, LUA_REGISTRYINDEX
, LQT_ENUMS
);
2973 if (!lua_istable(L
, -1)) {
2976 lua_pushvalue(L
, -1);
2977 lua_setfield(L
, LUA_REGISTRYINDEX
, LQT_ENUMS
);
2980 enum_table
= lua_gettop(L
);
2981 lua_pushstring(L
, "NoIcon");
2982 lua_rawseti(L
, enum_table
, 0);
2983 lua_pushinteger(L
, 0);
2984 lua_setfield(L
, enum_table
, "NoIcon");
2985 lua_pushstring(L
, "Information");
2986 lua_rawseti(L
, enum_table
, 1);
2987 lua_pushinteger(L
, 1);
2988 lua_setfield(L
, enum_table
, "Information");
2989 lua_pushstring(L
, "Warning");
2990 lua_rawseti(L
, enum_table
, 2);
2991 lua_pushinteger(L
, 2);
2992 lua_setfield(L
, enum_table
, "Warning");
2993 lua_pushstring(L
, "Critical");
2994 lua_rawseti(L
, enum_table
, 3);
2995 lua_pushinteger(L
, 3);
2996 lua_setfield(L
, enum_table
, "Critical");
2997 lua_pushstring(L
, "Question");
2998 lua_rawseti(L
, enum_table
, 4);
2999 lua_pushinteger(L
, 4);
3000 lua_setfield(L
, enum_table
, "Question");
3001 lua_pushcfunction(L
, LuaBinder
< QMessageBox
>::lqt_pushenum_Icon_QFLAGS_CREATOR
);
3002 lua_setfield(L
, enum_table
, "QFlags");
3003 lua_pushvalue(L
, -1);
3004 lua_setfield(L
, -3, "QMessageBox::Icon");
3008 int LuaBinder
< QMessageBox
>::lqt_pushenum_Icon_QFLAGS_CREATOR (lua_State
*L
) {
3009 int argn
= lua_gettop(L
);
3011 void *p
= lua_newuserdata(L
, sizeof(QFlags
<QMessageBox::Icon
>*) + sizeof(QFlags
<QMessageBox::Icon
>));
3012 QFlags
<QMessageBox::Icon
> *fl
= static_cast<QFlags
<QMessageBox::Icon
>*>( static_cast<void*>(&static_cast<QFlags
<QMessageBox::Icon
>**>(p
)[1]) );
3014 for (i
=1;i
<=argn
;i
++) {
3015 *fl
|= static_cast<QMessageBox::Icon
>(lqtL_toenum(L
, i
, "QMessageBox::Icon"));
3017 if (luaL_newmetatable(L
, "QFlags<QMessageBox::Icon>*")) {
3018 lua_pushstring(L
, "QFlags<QMessageBox::Icon>*");
3019 lua_setfield(L
, -2, "__qtype");
3021 lua_setmetatable(L
, -2);
3024 int LuaBinder
< QMessageBox
>::lqt_pushenum_ButtonRole (lua_State
*L
) {
3026 lua_getfield(L
, LUA_REGISTRYINDEX
, LQT_ENUMS
);
3027 if (!lua_istable(L
, -1)) {
3030 lua_pushvalue(L
, -1);
3031 lua_setfield(L
, LUA_REGISTRYINDEX
, LQT_ENUMS
);
3034 enum_table
= lua_gettop(L
);
3035 lua_pushstring(L
, "InvalidRole");
3036 lua_rawseti(L
, enum_table
, -1);
3037 lua_pushinteger(L
, -1);
3038 lua_setfield(L
, enum_table
, "InvalidRole");
3039 lua_pushstring(L
, "AcceptRole");
3040 lua_rawseti(L
, enum_table
, 0);
3041 lua_pushinteger(L
, 0);
3042 lua_setfield(L
, enum_table
, "AcceptRole");
3043 lua_pushstring(L
, "RejectRole");
3044 lua_rawseti(L
, enum_table
, 1);
3045 lua_pushinteger(L
, 1);
3046 lua_setfield(L
, enum_table
, "RejectRole");
3047 lua_pushstring(L
, "DestructiveRole");
3048 lua_rawseti(L
, enum_table
, 2);
3049 lua_pushinteger(L
, 2);
3050 lua_setfield(L
, enum_table
, "DestructiveRole");
3051 lua_pushstring(L
, "ActionRole");
3052 lua_rawseti(L
, enum_table
, 3);
3053 lua_pushinteger(L
, 3);
3054 lua_setfield(L
, enum_table
, "ActionRole");
3055 lua_pushstring(L
, "HelpRole");
3056 lua_rawseti(L
, enum_table
, 4);
3057 lua_pushinteger(L
, 4);
3058 lua_setfield(L
, enum_table
, "HelpRole");
3059 lua_pushstring(L
, "YesRole");
3060 lua_rawseti(L
, enum_table
, 5);
3061 lua_pushinteger(L
, 5);
3062 lua_setfield(L
, enum_table
, "YesRole");
3063 lua_pushstring(L
, "NoRole");
3064 lua_rawseti(L
, enum_table
, 6);
3065 lua_pushinteger(L
, 6);
3066 lua_setfield(L
, enum_table
, "NoRole");
3067 lua_pushstring(L
, "ResetRole");
3068 lua_rawseti(L
, enum_table
, 7);
3069 lua_pushinteger(L
, 7);
3070 lua_setfield(L
, enum_table
, "ResetRole");
3071 lua_pushstring(L
, "ApplyRole");
3072 lua_rawseti(L
, enum_table
, 8);
3073 lua_pushinteger(L
, 8);
3074 lua_setfield(L
, enum_table
, "ApplyRole");
3075 lua_pushstring(L
, "NRoles");
3076 lua_rawseti(L
, enum_table
, 9);
3077 lua_pushinteger(L
, 9);
3078 lua_setfield(L
, enum_table
, "NRoles");
3079 lua_pushcfunction(L
, LuaBinder
< QMessageBox
>::lqt_pushenum_ButtonRole_QFLAGS_CREATOR
);
3080 lua_setfield(L
, enum_table
, "QFlags");
3081 lua_pushvalue(L
, -1);
3082 lua_setfield(L
, -3, "QMessageBox::ButtonRole");
3086 int LuaBinder
< QMessageBox
>::lqt_pushenum_ButtonRole_QFLAGS_CREATOR (lua_State
*L
) {
3087 int argn
= lua_gettop(L
);
3089 void *p
= lua_newuserdata(L
, sizeof(QFlags
<QMessageBox::ButtonRole
>*) + sizeof(QFlags
<QMessageBox::ButtonRole
>));
3090 QFlags
<QMessageBox::ButtonRole
> *fl
= static_cast<QFlags
<QMessageBox::ButtonRole
>*>( static_cast<void*>(&static_cast<QFlags
<QMessageBox::ButtonRole
>**>(p
)[1]) );
3092 for (i
=1;i
<=argn
;i
++) {
3093 *fl
|= static_cast<QMessageBox::ButtonRole
>(lqtL_toenum(L
, i
, "QMessageBox::ButtonRole"));
3095 if (luaL_newmetatable(L
, "QFlags<QMessageBox::ButtonRole>*")) {
3096 lua_pushstring(L
, "QFlags<QMessageBox::ButtonRole>*");
3097 lua_setfield(L
, -2, "__qtype");
3099 lua_setmetatable(L
, -2);
3102 int LuaBinder
< QMessageBox
>::lqt_pushenum_StandardButton (lua_State
*L
) {
3104 lua_getfield(L
, LUA_REGISTRYINDEX
, LQT_ENUMS
);
3105 if (!lua_istable(L
, -1)) {
3108 lua_pushvalue(L
, -1);
3109 lua_setfield(L
, LUA_REGISTRYINDEX
, LQT_ENUMS
);
3112 enum_table
= lua_gettop(L
);
3113 lua_pushstring(L
, "NoButton");
3114 lua_rawseti(L
, enum_table
, 0);
3115 lua_pushinteger(L
, 0);
3116 lua_setfield(L
, enum_table
, "NoButton");
3117 lua_pushstring(L
, "Ok");
3118 lua_rawseti(L
, enum_table
, 1024);
3119 lua_pushinteger(L
, 1024);
3120 lua_setfield(L
, enum_table
, "Ok");
3121 lua_pushstring(L
, "Save");
3122 lua_rawseti(L
, enum_table
, 2048);
3123 lua_pushinteger(L
, 2048);
3124 lua_setfield(L
, enum_table
, "Save");
3125 lua_pushstring(L
, "SaveAll");
3126 lua_rawseti(L
, enum_table
, 4096);
3127 lua_pushinteger(L
, 4096);
3128 lua_setfield(L
, enum_table
, "SaveAll");
3129 lua_pushstring(L
, "Open");
3130 lua_rawseti(L
, enum_table
, 8192);
3131 lua_pushinteger(L
, 8192);
3132 lua_setfield(L
, enum_table
, "Open");
3133 lua_pushstring(L
, "Yes");
3134 lua_rawseti(L
, enum_table
, 16384);
3135 lua_pushinteger(L
, 16384);
3136 lua_setfield(L
, enum_table
, "Yes");
3137 lua_pushstring(L
, "YesToAll");
3138 lua_rawseti(L
, enum_table
, 32768);
3139 lua_pushinteger(L
, 32768);
3140 lua_setfield(L
, enum_table
, "YesToAll");
3141 lua_pushstring(L
, "No");
3142 lua_rawseti(L
, enum_table
, 65536);
3143 lua_pushinteger(L
, 65536);
3144 lua_setfield(L
, enum_table
, "No");
3145 lua_pushstring(L
, "NoToAll");
3146 lua_rawseti(L
, enum_table
, 131072);
3147 lua_pushinteger(L
, 131072);
3148 lua_setfield(L
, enum_table
, "NoToAll");
3149 lua_pushstring(L
, "Abort");
3150 lua_rawseti(L
, enum_table
, 262144);
3151 lua_pushinteger(L
, 262144);
3152 lua_setfield(L
, enum_table
, "Abort");
3153 lua_pushstring(L
, "Retry");
3154 lua_rawseti(L
, enum_table
, 524288);
3155 lua_pushinteger(L
, 524288);
3156 lua_setfield(L
, enum_table
, "Retry");
3157 lua_pushstring(L
, "Ignore");
3158 lua_rawseti(L
, enum_table
, 1048576);
3159 lua_pushinteger(L
, 1048576);
3160 lua_setfield(L
, enum_table
, "Ignore");
3161 lua_pushstring(L
, "Close");
3162 lua_rawseti(L
, enum_table
, 2097152);
3163 lua_pushinteger(L
, 2097152);
3164 lua_setfield(L
, enum_table
, "Close");
3165 lua_pushstring(L
, "Cancel");
3166 lua_rawseti(L
, enum_table
, 4194304);
3167 lua_pushinteger(L
, 4194304);
3168 lua_setfield(L
, enum_table
, "Cancel");
3169 lua_pushstring(L
, "Discard");
3170 lua_rawseti(L
, enum_table
, 8388608);
3171 lua_pushinteger(L
, 8388608);
3172 lua_setfield(L
, enum_table
, "Discard");
3173 lua_pushstring(L
, "Help");
3174 lua_rawseti(L
, enum_table
, 16777216);
3175 lua_pushinteger(L
, 16777216);
3176 lua_setfield(L
, enum_table
, "Help");
3177 lua_pushstring(L
, "Apply");
3178 lua_rawseti(L
, enum_table
, 33554432);
3179 lua_pushinteger(L
, 33554432);
3180 lua_setfield(L
, enum_table
, "Apply");
3181 lua_pushstring(L
, "Reset");
3182 lua_rawseti(L
, enum_table
, 67108864);
3183 lua_pushinteger(L
, 67108864);
3184 lua_setfield(L
, enum_table
, "Reset");
3185 lua_pushstring(L
, "RestoreDefaults");
3186 lua_rawseti(L
, enum_table
, 134217728);
3187 lua_pushinteger(L
, 134217728);
3188 lua_setfield(L
, enum_table
, "RestoreDefaults");
3189 lua_pushstring(L
, "FirstButton");
3190 lua_rawseti(L
, enum_table
, 1024);
3191 lua_pushinteger(L
, 1024);
3192 lua_setfield(L
, enum_table
, "FirstButton");
3193 lua_pushstring(L
, "LastButton");
3194 lua_rawseti(L
, enum_table
, 134217728);
3195 lua_pushinteger(L
, 134217728);
3196 lua_setfield(L
, enum_table
, "LastButton");
3197 lua_pushstring(L
, "YesAll");
3198 lua_rawseti(L
, enum_table
, 32768);
3199 lua_pushinteger(L
, 32768);
3200 lua_setfield(L
, enum_table
, "YesAll");
3201 lua_pushstring(L
, "NoAll");
3202 lua_rawseti(L
, enum_table
, 131072);
3203 lua_pushinteger(L
, 131072);
3204 lua_setfield(L
, enum_table
, "NoAll");
3205 lua_pushstring(L
, "Default");
3206 lua_rawseti(L
, enum_table
, 256);
3207 lua_pushinteger(L
, 256);
3208 lua_setfield(L
, enum_table
, "Default");
3209 lua_pushstring(L
, "Escape");
3210 lua_rawseti(L
, enum_table
, 512);
3211 lua_pushinteger(L
, 512);
3212 lua_setfield(L
, enum_table
, "Escape");
3213 lua_pushstring(L
, "FlagMask");
3214 lua_rawseti(L
, enum_table
, 768);
3215 lua_pushinteger(L
, 768);
3216 lua_setfield(L
, enum_table
, "FlagMask");
3217 lua_pushstring(L
, "ButtonMask");
3218 lua_rawseti(L
, enum_table
, -769);
3219 lua_pushinteger(L
, -769);
3220 lua_setfield(L
, enum_table
, "ButtonMask");
3221 lua_pushcfunction(L
, LuaBinder
< QMessageBox
>::lqt_pushenum_StandardButton_QFLAGS_CREATOR
);
3222 lua_setfield(L
, enum_table
, "QFlags");
3223 lua_pushvalue(L
, -1);
3224 lua_setfield(L
, -3, "QMessageBox::StandardButton");
3228 int LuaBinder
< QMessageBox
>::lqt_pushenum_StandardButton_QFLAGS_CREATOR (lua_State
*L
) {
3229 int argn
= lua_gettop(L
);
3231 void *p
= lua_newuserdata(L
, sizeof(QFlags
<QMessageBox::StandardButton
>*) + sizeof(QFlags
<QMessageBox::StandardButton
>));
3232 QFlags
<QMessageBox::StandardButton
> *fl
= static_cast<QFlags
<QMessageBox::StandardButton
>*>( static_cast<void*>(&static_cast<QFlags
<QMessageBox::StandardButton
>**>(p
)[1]) );
3234 for (i
=1;i
<=argn
;i
++) {
3235 *fl
|= static_cast<QMessageBox::StandardButton
>(lqtL_toenum(L
, i
, "QMessageBox::StandardButton"));
3237 if (luaL_newmetatable(L
, "QFlags<QMessageBox::StandardButton>*")) {
3238 lua_pushstring(L
, "QFlags<QMessageBox::StandardButton>*");
3239 lua_setfield(L
, -2, "__qtype");
3241 lua_setmetatable(L
, -2);
3244 int luaopen_QMessageBox (lua_State
*L
) {
3245 if (luaL_newmetatable(L
, "QMessageBox*")) {
3246 lua_pushcfunction(L
, LuaBinder
< QMessageBox
>::__LuaWrapCall__standardButtons
);
3247 lua_setfield(L
, -2, "standardButtons");
3248 lua_pushcfunction(L
, LuaBinder
< QMessageBox
>::__LuaWrapCall__setWindowModality
);
3249 lua_setfield(L
, -2, "setWindowModality");
3250 lua_pushcfunction(L
, LuaBinder
< QMessageBox
>::__LuaWrapCall__sizeHint
);
3251 lua_setfield(L
, -2, "sizeHint");
3252 lua_pushcfunction(L
, LuaBinder
< QMessageBox
>::__LuaWrapCall__defaultButton
);
3253 lua_setfield(L
, -2, "defaultButton");
3254 lua_pushcfunction(L
, LuaBinder
< QMessageBox
>::__LuaWrapCall__setDefaultButton
);
3255 lua_setfield(L
, -2, "setDefaultButton");
3256 lua_pushcfunction(L
, LuaBinder
< QMessageBox
>::__LuaWrapCall__setIcon
);
3257 lua_setfield(L
, -2, "setIcon");
3258 lua_pushcfunction(L
, LuaBinder
< QMessageBox
>::__LuaWrapCall__setStandardButtons
);
3259 lua_setfield(L
, -2, "setStandardButtons");
3260 lua_pushcfunction(L
, LuaBinder
< QMessageBox
>::__LuaWrapCall__button
);
3261 lua_setfield(L
, -2, "button");
3262 lua_pushcfunction(L
, LuaBinder
< QMessageBox
>::__LuaWrapCall__standardIcon
);
3263 lua_setfield(L
, -2, "standardIcon");
3264 lua_pushcfunction(L
, LuaBinder
< QMessageBox
>::__LuaWrapCall__tr
);
3265 lua_setfield(L
, -2, "tr");
3266 lua_pushcfunction(L
, LuaBinder
< QMessageBox
>::__LuaWrapCall__textFormat
);
3267 lua_setfield(L
, -2, "textFormat");
3268 lua_pushcfunction(L
, LuaBinder
< QMessageBox
>::__LuaWrapCall__informativeText
);
3269 lua_setfield(L
, -2, "informativeText");
3270 lua_pushcfunction(L
, LuaBinder
< QMessageBox
>::__LuaWrapCall__removeButton
);
3271 lua_setfield(L
, -2, "removeButton");
3272 lua_pushcfunction(L
, LuaBinder
< QMessageBox
>::__LuaWrapCall__buttonText
);
3273 lua_setfield(L
, -2, "buttonText");
3274 lua_pushcfunction(L
, LuaBinder
< QMessageBox
>::__LuaWrapCall__critical
);
3275 lua_setfield(L
, -2, "critical");
3276 lua_pushcfunction(L
, LuaBinder
< QMessageBox
>::__LuaWrapCall__addButton
);
3277 lua_setfield(L
, -2, "addButton");
3278 lua_pushcfunction(L
, LuaBinder
< QMessageBox
>::__LuaWrapCall__setDetailedText
);
3279 lua_setfield(L
, -2, "setDetailedText");
3280 lua_pushcfunction(L
, LuaBinder
< QMessageBox
>::__LuaWrapCall__about
);
3281 lua_setfield(L
, -2, "about");
3282 lua_pushcfunction(L
, LuaBinder
< QMessageBox
>::__LuaWrapCall__setText
);
3283 lua_setfield(L
, -2, "setText");
3284 lua_pushcfunction(L
, LuaBinder
< QMessageBox
>::__LuaWrapCall__aboutQt
);
3285 lua_setfield(L
, -2, "aboutQt");
3286 lua_pushcfunction(L
, LuaBinder
< QMessageBox
>::__LuaWrapCall__iconPixmap
);
3287 lua_setfield(L
, -2, "iconPixmap");
3288 lua_pushcfunction(L
, LuaBinder
< QMessageBox
>::__LuaWrapCall__setEscapeButton
);
3289 lua_setfield(L
, -2, "setEscapeButton");
3290 lua_pushcfunction(L
, LuaBinder
< QMessageBox
>::__LuaWrapCall__standardButton
);
3291 lua_setfield(L
, -2, "standardButton");
3292 lua_pushcfunction(L
, LuaBinder
< QMessageBox
>::__LuaWrapCall__metaObject
);
3293 lua_setfield(L
, -2, "metaObject");
3294 lua_pushcfunction(L
, LuaBinder
< QMessageBox
>::__LuaWrapCall__new
);
3295 lua_setfield(L
, -2, "new");
3296 lua_pushcfunction(L
, LuaBinder
< QMessageBox
>::__LuaWrapCall__warning
);
3297 lua_setfield(L
, -2, "warning");
3298 lua_pushcfunction(L
, LuaBinder
< QMessageBox
>::__LuaWrapCall__setWindowTitle
);
3299 lua_setfield(L
, -2, "setWindowTitle");
3300 lua_pushcfunction(L
, LuaBinder
< QMessageBox
>::__LuaWrapCall__delete
);
3301 lua_setfield(L
, -2, "delete");
3302 lua_pushcfunction(L
, LuaBinder
< QMessageBox
>::__LuaWrapCall__escapeButton
);
3303 lua_setfield(L
, -2, "escapeButton");
3304 lua_pushcfunction(L
, LuaBinder
< QMessageBox
>::__LuaWrapCall__clickedButton
);
3305 lua_setfield(L
, -2, "clickedButton");
3306 lua_pushcfunction(L
, LuaBinder
< QMessageBox
>::__LuaWrapCall__detailedText
);
3307 lua_setfield(L
, -2, "detailedText");
3308 lua_pushcfunction(L
, LuaBinder
< QMessageBox
>::__LuaWrapCall__text
);
3309 lua_setfield(L
, -2, "text");
3310 lua_pushcfunction(L
, LuaBinder
< QMessageBox
>::__LuaWrapCall__setTextFormat
);
3311 lua_setfield(L
, -2, "setTextFormat");
3312 lua_pushcfunction(L
, LuaBinder
< QMessageBox
>::__LuaWrapCall__trUtf8
);
3313 lua_setfield(L
, -2, "trUtf8");
3314 lua_pushcfunction(L
, LuaBinder
< QMessageBox
>::__LuaWrapCall__setButtonText
);
3315 lua_setfield(L
, -2, "setButtonText");
3316 lua_pushcfunction(L
, LuaBinder
< QMessageBox
>::__LuaWrapCall__question
);
3317 lua_setfield(L
, -2, "question");
3318 lua_pushcfunction(L
, LuaBinder
< QMessageBox
>::__LuaWrapCall__setInformativeText
);
3319 lua_setfield(L
, -2, "setInformativeText");
3320 lua_pushcfunction(L
, LuaBinder
< QMessageBox
>::__LuaWrapCall__setIconPixmap
);
3321 lua_setfield(L
, -2, "setIconPixmap");
3322 lua_pushcfunction(L
, LuaBinder
< QMessageBox
>::__LuaWrapCall__information
);
3323 lua_setfield(L
, -2, "information");
3324 lua_pushcfunction(L
, LuaBinder
< QMessageBox
>::__LuaWrapCall__icon
);
3325 lua_setfield(L
, -2, "icon");
3326 LuaBinder
< QMessageBox
>::lqt_pushenum_Icon(L
);
3327 lua_setfield(L
, -2, "Icon");
3328 LuaBinder
< QMessageBox
>::lqt_pushenum_ButtonRole(L
);
3329 lua_setfield(L
, -2, "ButtonRole");
3330 LuaBinder
< QMessageBox
>::lqt_pushenum_StandardButton(L
);
3331 lua_setfield(L
, -2, "StandardButton");
3333 lua_pushboolean(L
, 1);
3334 lua_setfield(L
, -2, "QDialog*");
3335 lua_pushboolean(L
, 0);
3336 lua_setfield(L
, -2, "QObject*");
3337 lua_pushboolean(L
, 0);
3338 lua_setfield(L
, -2, "QPaintDevice*");
3339 lua_pushboolean(L
, 0);
3340 lua_setfield(L
, -2, "QWidget*");
3341 lua_setfield(L
, -2, "__base");
3342 lua_pushcfunction(L
, lqtL_newindex
);
3343 lua_setfield(L
, -2, "__newindex");
3344 lua_pushcfunction(L
, lqtL_index
);
3345 lua_setfield(L
, -2, "__index");
3346 lua_pushcfunction(L
, lqtL_gc
);
3347 lua_setfield(L
, -2, "__gc");
3348 lua_pushstring(L
, "QMessageBox");
3349 lua_setfield(L
, -2, "__qtype");
3350 lua_setglobal(L
, "QMessageBox");