added "install" instruction
[Leditor.git] / src / lqt_bind_QMessageBox.cpp
blobee93ff125d419ac2010cdce2edd3c16bea430daf
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*"));
5 if (__lua__obj==0) {
6 lua_pushstring(L, "trying to reference deleted pointer");
7 lua_error(L);
8 return 0;
10 QFlags<QMessageBox::StandardButton> ret = __lua__obj->QMessageBox::standardButtons();
11 lqtL_passudata(L, new QFlags<QMessageBox::StandardButton>(ret), "QFlags<QMessageBox::StandardButton>*");
12 return 1;
14 int LuaBinder< QMessageBox >::__LuaWrapCall__setWindowModality (lua_State *L) {
15 QMessageBox *& __lua__obj = *static_cast<QMessageBox**>(lqtL_checkudata(L, 1, "QMessageBox*"));
16 if (__lua__obj==0) {
17 lua_pushstring(L, "trying to reference deleted pointer");
18 lua_error(L);
19 return 0;
21 Qt::WindowModality arg1 = static_cast<Qt::WindowModality>(lqtL_toenum(L, 2, "Qt::WindowModality"));
22 __lua__obj->QMessageBox::setWindowModality(arg1);
23 return 0;
25 int LuaBinder< QMessageBox >::__LuaWrapCall__sizeHint (lua_State *L) {
26 QMessageBox *& __lua__obj = *static_cast<QMessageBox**>(lqtL_checkudata(L, 1, "QMessageBox*"));
27 if (__lua__obj==0) {
28 lua_pushstring(L, "trying to reference deleted pointer");
29 lua_error(L);
30 return 0;
32 QSize ret = __lua__obj->QMessageBox::sizeHint();
33 lqtL_passudata(L, new QSize(ret), "QSize*");
34 return 1;
36 int LuaBinder< QMessageBox >::__LuaWrapCall__defaultButton (lua_State *L) {
37 QMessageBox *& __lua__obj = *static_cast<QMessageBox**>(lqtL_checkudata(L, 1, "QMessageBox*"));
38 if (__lua__obj==0) {
39 lua_pushstring(L, "trying to reference deleted pointer");
40 lua_error(L);
41 return 0;
43 QPushButton * ret = __lua__obj->QMessageBox::defaultButton();
44 lqtL_pushudata(L, ret, "QPushButton*");
45 return 1;
47 int LuaBinder< QMessageBox >::__LuaWrapCall__setDefaultButton__OverloadedVersion__1 (lua_State *L) {
48 QMessageBox *& __lua__obj = *static_cast<QMessageBox**>(lqtL_checkudata(L, 1, "QMessageBox*"));
49 if (__lua__obj==0) {
50 lua_pushstring(L, "trying to reference deleted pointer");
51 lua_error(L);
52 return 0;
54 QPushButton * arg1 = *static_cast<QPushButton**>(lqtL_checkudata(L, 2, "QPushButton*"));
55 __lua__obj->QMessageBox::setDefaultButton(arg1);
56 return 0;
58 int LuaBinder< QMessageBox >::__LuaWrapCall__setDefaultButton__OverloadedVersion__2 (lua_State *L) {
59 QMessageBox *& __lua__obj = *static_cast<QMessageBox**>(lqtL_checkudata(L, 1, "QMessageBox*"));
60 if (__lua__obj==0) {
61 lua_pushstring(L, "trying to reference deleted pointer");
62 lua_error(L);
63 return 0;
65 QMessageBox::StandardButton arg1 = static_cast<QMessageBox::StandardButton>(lqtL_toenum(L, 2, "QMessageBox::StandardButton"));
66 __lua__obj->QMessageBox::setDefaultButton(arg1);
67 return 0;
69 int LuaBinder< QMessageBox >::__LuaWrapCall__setDefaultButton (lua_State *L) {
70 int score[3];
71 const int premium = 11+lua_gettop(L);
72 score[1] = 0;
73 score[1] += lqtL_testudata(L, 1, "QMessageBox*")?premium:-premium*premium;
74 if (lqtL_testudata(L, 2, "QPushButton*")) {
75 score[1] += premium;
76 } else if (false) {
77 score[1] += premium-1; // table: 0x1337170;
78 } else {
79 score[1] -= premium*premium;
81 score[2] = 0;
82 score[2] += lqtL_testudata(L, 1, "QMessageBox*")?premium:-premium*premium;
83 if (lqtL_isenum(L, 2, "QMessageBox::StandardButton")) {
84 score[2] += premium;
85 } else if (false) {
86 score[2] += premium-1; // table: 0x1337c20;
87 } else {
88 score[2] -= premium*premium;
90 int best = 1;
91 for (int i=1;i<=2;i++) {
92 if (score[best] < score[i]) { best = i; }
94 switch (best) {
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");
99 lua_error(L);
100 return 0;
102 int LuaBinder< QMessageBox >::__LuaWrapCall__setIcon (lua_State *L) {
103 QMessageBox *& __lua__obj = *static_cast<QMessageBox**>(lqtL_checkudata(L, 1, "QMessageBox*"));
104 if (__lua__obj==0) {
105 lua_pushstring(L, "trying to reference deleted pointer");
106 lua_error(L);
107 return 0;
109 QMessageBox::Icon arg1 = static_cast<QMessageBox::Icon>(lqtL_toenum(L, 2, "QMessageBox::Icon"));
110 __lua__obj->QMessageBox::setIcon(arg1);
111 return 0;
113 int LuaBinder< QMessageBox >::__LuaWrapCall__setStandardButtons (lua_State *L) {
114 QMessageBox *& __lua__obj = *static_cast<QMessageBox**>(lqtL_checkudata(L, 1, "QMessageBox*"));
115 if (__lua__obj==0) {
116 lua_pushstring(L, "trying to reference deleted pointer");
117 lua_error(L);
118 return 0;
120 QFlags<QMessageBox::StandardButton> arg1 = **static_cast<QFlags<QMessageBox::StandardButton>**>(lqtL_checkudata(L, 2, "QFlags<QMessageBox::StandardButton>*"));
121 __lua__obj->QMessageBox::setStandardButtons(arg1);
122 return 0;
124 int LuaBinder< QMessageBox >::__LuaWrapCall__button (lua_State *L) {
125 QMessageBox *& __lua__obj = *static_cast<QMessageBox**>(lqtL_checkudata(L, 1, "QMessageBox*"));
126 if (__lua__obj==0) {
127 lua_pushstring(L, "trying to reference deleted pointer");
128 lua_error(L);
129 return 0;
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*");
134 return 1;
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*");
140 return 1;
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());
147 return 1;
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());
155 return 1;
157 int LuaBinder< QMessageBox >::__LuaWrapCall__tr (lua_State *L) {
158 int score[3];
159 const int premium = 11+lua_gettop(L);
160 score[1] = 0;
161 if ((lua_type(L, 1)==LUA_TSTRING)) {
162 score[1] += premium;
163 } else if (false) {
164 score[1] += premium-1; // table: 0x1328e70;
165 } else {
166 score[1] -= premium*premium;
168 if ((lua_type(L, 2)==LUA_TSTRING)) {
169 score[1] += premium;
170 } else if (true) {
171 score[1] += premium-1; // table: 0x1328bd0;
172 } else {
173 score[1] -= premium*premium;
175 score[2] = 0;
176 if ((lua_type(L, 1)==LUA_TSTRING)) {
177 score[2] += premium;
178 } else if (false) {
179 score[2] += premium-1; // table: 0x132a8b0;
180 } else {
181 score[2] -= premium*premium;
183 if ((lua_type(L, 2)==LUA_TSTRING)) {
184 score[2] += premium;
185 } else if (false) {
186 score[2] += premium-1; // table: 0x132ada0;
187 } else {
188 score[2] -= premium*premium;
190 if (lua_isnumber(L, 3)) {
191 score[2] += premium;
192 } else if (false) {
193 score[2] += premium-1; // table: 0x132b150;
194 } else {
195 score[2] -= premium*premium;
197 int best = 1;
198 for (int i=1;i<=2;i++) {
199 if (score[best] < score[i]) { best = i; }
201 switch (best) {
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");
206 lua_error(L);
207 return 0;
209 int LuaBinder< QMessageBox >::__LuaWrapCall__textFormat (lua_State *L) {
210 QMessageBox *& __lua__obj = *static_cast<QMessageBox**>(lqtL_checkudata(L, 1, "QMessageBox*"));
211 if (__lua__obj==0) {
212 lua_pushstring(L, "trying to reference deleted pointer");
213 lua_error(L);
214 return 0;
216 Qt::TextFormat ret = __lua__obj->QMessageBox::textFormat();
217 lqtL_pushenum(L, ret, "Qt::TextFormat");
218 return 1;
220 int LuaBinder< QMessageBox >::__LuaWrapCall__informativeText (lua_State *L) {
221 QMessageBox *& __lua__obj = *static_cast<QMessageBox**>(lqtL_checkudata(L, 1, "QMessageBox*"));
222 if (__lua__obj==0) {
223 lua_pushstring(L, "trying to reference deleted pointer");
224 lua_error(L);
225 return 0;
227 QString ret = __lua__obj->QMessageBox::informativeText();
228 lua_pushlstring(L, ret.toAscii().data(), ret.toAscii().size());
229 return 1;
231 int LuaBinder< QMessageBox >::__LuaWrapCall__removeButton (lua_State *L) {
232 QMessageBox *& __lua__obj = *static_cast<QMessageBox**>(lqtL_checkudata(L, 1, "QMessageBox*"));
233 if (__lua__obj==0) {
234 lua_pushstring(L, "trying to reference deleted pointer");
235 lua_error(L);
236 return 0;
238 QAbstractButton * arg1 = *static_cast<QAbstractButton**>(lqtL_checkudata(L, 2, "QAbstractButton*"));
239 __lua__obj->QMessageBox::removeButton(arg1);
240 return 0;
242 int LuaBinder< QMessageBox >::__LuaWrapCall__buttonText (lua_State *L) {
243 QMessageBox *& __lua__obj = *static_cast<QMessageBox**>(lqtL_checkudata(L, 1, "QMessageBox*"));
244 if (__lua__obj==0) {
245 lua_pushstring(L, "trying to reference deleted pointer");
246 lua_error(L);
247 return 0;
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());
252 return 1;
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");
262 return 1;
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);
273 return 1;
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);
286 return 1;
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);
296 return 1;
298 int LuaBinder< QMessageBox >::__LuaWrapCall__critical (lua_State *L) {
299 int score[5];
300 const int premium = 11+lua_gettop(L);
301 score[1] = 0;
302 if (lqtL_testudata(L, 1, "QWidget*")) {
303 score[1] += premium;
304 } else if (false) {
305 score[1] += premium-1; // table: 0x13442d0;
306 } else {
307 score[1] -= premium*premium;
309 if ((lua_type(L, 2)==LUA_TSTRING)) {
310 score[1] += premium;
311 } else if (false) {
312 score[1] += premium-1; // table: 0x13434f0;
313 } else {
314 score[1] -= premium*premium;
316 if ((lua_type(L, 3)==LUA_TSTRING)) {
317 score[1] += premium;
318 } else if (false) {
319 score[1] += premium-1; // table: 0x13447f0;
320 } else {
321 score[1] -= premium*premium;
323 if (lqtL_testudata(L, 4, "QFlags<QMessageBox::StandardButton>*")) {
324 score[1] += premium;
325 } else if (true) {
326 score[1] += premium-1; // table: 0x1345050;
327 } else {
328 score[1] -= premium*premium;
330 if (lqtL_isenum(L, 5, "QMessageBox::StandardButton")) {
331 score[1] += premium;
332 } else if (true) {
333 score[1] += premium-1; // table: 0x1345420;
334 } else {
335 score[1] -= premium*premium;
337 score[2] = 0;
338 if (lqtL_testudata(L, 1, "QWidget*")) {
339 score[2] += premium;
340 } else if (false) {
341 score[2] += premium-1; // table: 0x135ca40;
342 } else {
343 score[2] -= premium*premium;
345 if ((lua_type(L, 2)==LUA_TSTRING)) {
346 score[2] += premium;
347 } else if (false) {
348 score[2] += premium-1; // table: 0x135bcd0;
349 } else {
350 score[2] -= premium*premium;
352 if ((lua_type(L, 3)==LUA_TSTRING)) {
353 score[2] += premium;
354 } else if (false) {
355 score[2] += premium-1; // table: 0x135cef0;
356 } else {
357 score[2] -= premium*premium;
359 if (lua_isnumber(L, 4)) {
360 score[2] += premium;
361 } else if (false) {
362 score[2] += premium-1; // table: 0x135d750;
363 } else {
364 score[2] -= premium*premium;
366 if (lua_isnumber(L, 5)) {
367 score[2] += premium;
368 } else if (false) {
369 score[2] += premium-1; // table: 0x135db00;
370 } else {
371 score[2] -= premium*premium;
373 if (lua_isnumber(L, 6)) {
374 score[2] += premium;
375 } else if (true) {
376 score[2] += premium-1; // table: 0x135d6a0;
377 } else {
378 score[2] -= premium*premium;
380 score[3] = 0;
381 if (lqtL_testudata(L, 1, "QWidget*")) {
382 score[3] += premium;
383 } else if (false) {
384 score[3] += premium-1; // table: 0x135e850;
385 } else {
386 score[3] -= premium*premium;
388 if ((lua_type(L, 2)==LUA_TSTRING)) {
389 score[3] += premium;
390 } else if (false) {
391 score[3] += premium-1; // table: 0x135e520;
392 } else {
393 score[3] -= premium*premium;
395 if ((lua_type(L, 3)==LUA_TSTRING)) {
396 score[3] += premium;
397 } else if (false) {
398 score[3] += premium-1; // table: 0x135ed00;
399 } else {
400 score[3] -= premium*premium;
402 if ((lua_type(L, 4)==LUA_TSTRING)) {
403 score[3] += premium;
404 } else if (false) {
405 score[3] += premium-1; // table: 0x135f560;
406 } else {
407 score[3] -= premium*premium;
409 if ((lua_type(L, 5)==LUA_TSTRING)) {
410 score[3] += premium;
411 } else if (true) {
412 score[3] += premium-1; // table: 0x135f920;
413 } else {
414 score[3] -= premium*premium;
416 if ((lua_type(L, 6)==LUA_TSTRING)) {
417 score[3] += premium;
418 } else if (true) {
419 score[3] += premium-1; // table: 0x135f4b0;
420 } else {
421 score[3] -= premium*premium;
423 if (lua_isnumber(L, 7)) {
424 score[3] += premium;
425 } else if (true) {
426 score[3] += premium-1; // table: 0x1360110;
427 } else {
428 score[3] -= premium*premium;
430 if (lua_isnumber(L, 8)) {
431 score[3] += premium;
432 } else if (true) {
433 score[3] += premium-1; // table: 0x13604d0;
434 } else {
435 score[3] -= premium*premium;
437 score[4] = 0;
438 if (lqtL_testudata(L, 1, "QWidget*")) {
439 score[4] += premium;
440 } else if (false) {
441 score[4] += premium-1; // table: 0x1360e00;
442 } else {
443 score[4] -= premium*premium;
445 if ((lua_type(L, 2)==LUA_TSTRING)) {
446 score[4] += premium;
447 } else if (false) {
448 score[4] += premium-1; // table: 0x1360ac0;
449 } else {
450 score[4] -= premium*premium;
452 if ((lua_type(L, 3)==LUA_TSTRING)) {
453 score[4] += premium;
454 } else if (false) {
455 score[4] += premium-1; // table: 0x13612f0;
456 } else {
457 score[4] -= premium*premium;
459 if (lqtL_isenum(L, 4, "QMessageBox::StandardButton")) {
460 score[4] += premium;
461 } else if (false) {
462 score[4] += premium-1; // table: 0x1361b50;
463 } else {
464 score[4] -= premium*premium;
466 if (lqtL_isenum(L, 5, "QMessageBox::StandardButton")) {
467 score[4] += premium;
468 } else if (false) {
469 score[4] += premium-1; // table: 0x1361f00;
470 } else {
471 score[4] -= premium*premium;
473 int best = 1;
474 for (int i=1;i<=4;i++) {
475 if (score[best] < score[i]) { best = i; }
477 switch (best) {
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");
484 lua_error(L);
485 return 0;
487 int LuaBinder< QMessageBox >::__LuaWrapCall__addButton__OverloadedVersion__1 (lua_State *L) {
488 QMessageBox *& __lua__obj = *static_cast<QMessageBox**>(lqtL_checkudata(L, 1, "QMessageBox*"));
489 if (__lua__obj==0) {
490 lua_pushstring(L, "trying to reference deleted pointer");
491 lua_error(L);
492 return 0;
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);
497 return 0;
499 int LuaBinder< QMessageBox >::__LuaWrapCall__addButton__OverloadedVersion__2 (lua_State *L) {
500 QMessageBox *& __lua__obj = *static_cast<QMessageBox**>(lqtL_checkudata(L, 1, "QMessageBox*"));
501 if (__lua__obj==0) {
502 lua_pushstring(L, "trying to reference deleted pointer");
503 lua_error(L);
504 return 0;
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*");
510 return 1;
512 int LuaBinder< QMessageBox >::__LuaWrapCall__addButton__OverloadedVersion__3 (lua_State *L) {
513 QMessageBox *& __lua__obj = *static_cast<QMessageBox**>(lqtL_checkudata(L, 1, "QMessageBox*"));
514 if (__lua__obj==0) {
515 lua_pushstring(L, "trying to reference deleted pointer");
516 lua_error(L);
517 return 0;
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*");
522 return 1;
524 int LuaBinder< QMessageBox >::__LuaWrapCall__addButton (lua_State *L) {
525 int score[4];
526 const int premium = 11+lua_gettop(L);
527 score[1] = 0;
528 score[1] += lqtL_testudata(L, 1, "QMessageBox*")?premium:-premium*premium;
529 if (lqtL_testudata(L, 2, "QAbstractButton*")) {
530 score[1] += premium;
531 } else if (false) {
532 score[1] += premium-1; // table: 0x1330cf0;
533 } else {
534 score[1] -= premium*premium;
536 if (lqtL_isenum(L, 3, "QMessageBox::ButtonRole")) {
537 score[1] += premium;
538 } else if (false) {
539 score[1] += premium-1; // table: 0x1330960;
540 } else {
541 score[1] -= premium*premium;
543 score[2] = 0;
544 score[2] += lqtL_testudata(L, 1, "QMessageBox*")?premium:-premium*premium;
545 if ((lua_type(L, 2)==LUA_TSTRING)) {
546 score[2] += premium;
547 } else if (false) {
548 score[2] += premium-1; // table: 0x1331cd0;
549 } else {
550 score[2] -= premium*premium;
552 if (lqtL_isenum(L, 3, "QMessageBox::ButtonRole")) {
553 score[2] += premium;
554 } else if (false) {
555 score[2] += premium-1; // table: 0x1332250;
556 } else {
557 score[2] -= premium*premium;
559 score[3] = 0;
560 score[3] += lqtL_testudata(L, 1, "QMessageBox*")?premium:-premium*premium;
561 if (lqtL_isenum(L, 2, "QMessageBox::StandardButton")) {
562 score[3] += premium;
563 } else if (false) {
564 score[3] += premium-1; // table: 0x1332b70;
565 } else {
566 score[3] -= premium*premium;
568 int best = 1;
569 for (int i=1;i<=3;i++) {
570 if (score[best] < score[i]) { best = i; }
572 switch (best) {
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");
578 lua_error(L);
579 return 0;
581 int LuaBinder< QMessageBox >::__LuaWrapCall__setDetailedText (lua_State *L) {
582 QMessageBox *& __lua__obj = *static_cast<QMessageBox**>(lqtL_checkudata(L, 1, "QMessageBox*"));
583 if (__lua__obj==0) {
584 lua_pushstring(L, "trying to reference deleted pointer");
585 lua_error(L);
586 return 0;
588 const QString& arg1 = QString::fromAscii(lua_tostring(L, 2), lua_objlen(L, 2));
589 __lua__obj->QMessageBox::setDetailedText(arg1);
590 return 0;
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);
597 return 0;
599 int LuaBinder< QMessageBox >::__LuaWrapCall__setText (lua_State *L) {
600 QMessageBox *& __lua__obj = *static_cast<QMessageBox**>(lqtL_checkudata(L, 1, "QMessageBox*"));
601 if (__lua__obj==0) {
602 lua_pushstring(L, "trying to reference deleted pointer");
603 lua_error(L);
604 return 0;
606 const QString& arg1 = QString::fromAscii(lua_tostring(L, 2), lua_objlen(L, 2));
607 __lua__obj->QMessageBox::setText(arg1);
608 return 0;
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);
614 return 0;
616 int LuaBinder< QMessageBox >::__LuaWrapCall__iconPixmap (lua_State *L) {
617 QMessageBox *& __lua__obj = *static_cast<QMessageBox**>(lqtL_checkudata(L, 1, "QMessageBox*"));
618 if (__lua__obj==0) {
619 lua_pushstring(L, "trying to reference deleted pointer");
620 lua_error(L);
621 return 0;
623 QPixmap ret = __lua__obj->QMessageBox::iconPixmap();
624 lqtL_passudata(L, new QPixmap(ret), "QPixmap*");
625 return 1;
627 int LuaBinder< QMessageBox >::__LuaWrapCall__setEscapeButton__OverloadedVersion__1 (lua_State *L) {
628 QMessageBox *& __lua__obj = *static_cast<QMessageBox**>(lqtL_checkudata(L, 1, "QMessageBox*"));
629 if (__lua__obj==0) {
630 lua_pushstring(L, "trying to reference deleted pointer");
631 lua_error(L);
632 return 0;
634 QAbstractButton * arg1 = *static_cast<QAbstractButton**>(lqtL_checkudata(L, 2, "QAbstractButton*"));
635 __lua__obj->QMessageBox::setEscapeButton(arg1);
636 return 0;
638 int LuaBinder< QMessageBox >::__LuaWrapCall__setEscapeButton__OverloadedVersion__2 (lua_State *L) {
639 QMessageBox *& __lua__obj = *static_cast<QMessageBox**>(lqtL_checkudata(L, 1, "QMessageBox*"));
640 if (__lua__obj==0) {
641 lua_pushstring(L, "trying to reference deleted pointer");
642 lua_error(L);
643 return 0;
645 QMessageBox::StandardButton arg1 = static_cast<QMessageBox::StandardButton>(lqtL_toenum(L, 2, "QMessageBox::StandardButton"));
646 __lua__obj->QMessageBox::setEscapeButton(arg1);
647 return 0;
649 int LuaBinder< QMessageBox >::__LuaWrapCall__setEscapeButton (lua_State *L) {
650 int score[3];
651 const int premium = 11+lua_gettop(L);
652 score[1] = 0;
653 score[1] += lqtL_testudata(L, 1, "QMessageBox*")?premium:-premium*premium;
654 if (lqtL_testudata(L, 2, "QAbstractButton*")) {
655 score[1] += premium;
656 } else if (false) {
657 score[1] += premium-1; // table: 0x1338e60;
658 } else {
659 score[1] -= premium*premium;
661 score[2] = 0;
662 score[2] += lqtL_testudata(L, 1, "QMessageBox*")?premium:-premium*premium;
663 if (lqtL_isenum(L, 2, "QMessageBox::StandardButton")) {
664 score[2] += premium;
665 } else if (false) {
666 score[2] += premium-1; // table: 0x13398e0;
667 } else {
668 score[2] -= premium*premium;
670 int best = 1;
671 for (int i=1;i<=2;i++) {
672 if (score[best] < score[i]) { best = i; }
674 switch (best) {
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");
679 lua_error(L);
680 return 0;
682 int LuaBinder< QMessageBox >::__LuaWrapCall__standardButton (lua_State *L) {
683 QMessageBox *& __lua__obj = *static_cast<QMessageBox**>(lqtL_checkudata(L, 1, "QMessageBox*"));
684 if (__lua__obj==0) {
685 lua_pushstring(L, "trying to reference deleted pointer");
686 lua_error(L);
687 return 0;
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");
692 return 1;
694 int LuaBinder< QMessageBox >::__LuaWrapCall__metaObject (lua_State *L) {
695 QMessageBox *& __lua__obj = *static_cast<QMessageBox**>(lqtL_checkudata(L, 1, "QMessageBox*"));
696 if (__lua__obj==0) {
697 lua_pushstring(L, "trying to reference deleted pointer");
698 lua_error(L);
699 return 0;
701 const QMetaObject * ret = __lua__obj->QMessageBox::metaObject();
702 lqtL_pushudata(L, ret, "QMetaObject*");
703 return 1;
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*");
709 return 1;
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*");
720 return 1;
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*");
733 return 1;
735 int LuaBinder< QMessageBox >::__LuaWrapCall__new (lua_State *L) {
736 int score[4];
737 const int premium = 11+lua_gettop(L);
738 score[1] = 0;
739 if (lqtL_testudata(L, 1, "QWidget*")) {
740 score[1] += premium;
741 } else if (true) {
742 score[1] += premium-1; // table: 0x132db10;
743 } else {
744 score[1] -= premium*premium;
746 score[2] = 0;
747 if (lqtL_isenum(L, 1, "QMessageBox::Icon")) {
748 score[2] += premium;
749 } else if (false) {
750 score[2] += premium-1; // table: 0x132e590;
751 } else {
752 score[2] -= premium*premium;
754 if ((lua_type(L, 2)==LUA_TSTRING)) {
755 score[2] += premium;
756 } else if (false) {
757 score[2] += premium-1; // table: 0x132e020;
758 } else {
759 score[2] -= premium*premium;
761 if ((lua_type(L, 3)==LUA_TSTRING)) {
762 score[2] += premium;
763 } else if (false) {
764 score[2] += premium-1; // table: 0x132eaf0;
765 } else {
766 score[2] -= premium*premium;
768 if (lqtL_testudata(L, 4, "QFlags<QMessageBox::StandardButton>*")) {
769 score[2] += premium;
770 } else if (true) {
771 score[2] += premium-1; // table: 0x132f380;
772 } else {
773 score[2] -= premium*premium;
775 if (lqtL_testudata(L, 5, "QWidget*")) {
776 score[2] += premium;
777 } else if (true) {
778 score[2] += premium-1; // table: 0x132f790;
779 } else {
780 score[2] -= premium*premium;
782 if (lqtL_testudata(L, 6, "QFlags<Qt::WindowType>*")) {
783 score[2] += premium;
784 } else if (true) {
785 score[2] += premium-1; // table: 0x132f2d0;
786 } else {
787 score[2] -= premium*premium;
789 score[3] = 0;
790 if ((lua_type(L, 1)==LUA_TSTRING)) {
791 score[3] += premium;
792 } else if (false) {
793 score[3] += premium-1; // table: 0x1348610;
794 } else {
795 score[3] -= premium*premium;
797 if ((lua_type(L, 2)==LUA_TSTRING)) {
798 score[3] += premium;
799 } else if (false) {
800 score[3] += premium-1; // table: 0x13482e0;
801 } else {
802 score[3] -= premium*premium;
804 if (lqtL_isenum(L, 3, "QMessageBox::Icon")) {
805 score[3] += premium;
806 } else if (false) {
807 score[3] += premium-1; // table: 0x1348b00;
808 } else {
809 score[3] -= premium*premium;
811 if (lua_isnumber(L, 4)) {
812 score[3] += premium;
813 } else if (false) {
814 score[3] += premium-1; // table: 0x1349360;
815 } else {
816 score[3] -= premium*premium;
818 if (lua_isnumber(L, 5)) {
819 score[3] += premium;
820 } else if (false) {
821 score[3] += premium-1; // table: 0x1349770;
822 } else {
823 score[3] -= premium*premium;
825 if (lua_isnumber(L, 6)) {
826 score[3] += premium;
827 } else if (false) {
828 score[3] += premium-1; // table: 0x13492b0;
829 } else {
830 score[3] -= premium*premium;
832 if (lqtL_testudata(L, 7, "QWidget*")) {
833 score[3] += premium;
834 } else if (true) {
835 score[3] += premium-1; // table: 0x134a010;
836 } else {
837 score[3] -= premium*premium;
839 if (lqtL_testudata(L, 8, "QFlags<Qt::WindowType>*")) {
840 score[3] += premium;
841 } else if (true) {
842 score[3] += premium-1; // table: 0x134a410;
843 } else {
844 score[3] -= premium*premium;
846 int best = 1;
847 for (int i=1;i<=3;i++) {
848 if (score[best] < score[i]) { best = i; }
850 switch (best) {
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");
856 lua_error(L);
857 return 0;
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");
867 return 1;
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);
878 return 1;
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);
891 return 1;
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);
901 return 1;
903 int LuaBinder< QMessageBox >::__LuaWrapCall__warning (lua_State *L) {
904 int score[5];
905 const int premium = 11+lua_gettop(L);
906 score[1] = 0;
907 if (lqtL_testudata(L, 1, "QWidget*")) {
908 score[1] += premium;
909 } else if (false) {
910 score[1] += premium-1; // table: 0x13427d0;
911 } else {
912 score[1] -= premium*premium;
914 if ((lua_type(L, 2)==LUA_TSTRING)) {
915 score[1] += premium;
916 } else if (false) {
917 score[1] += premium-1; // table: 0x1341a10;
918 } else {
919 score[1] -= premium*premium;
921 if ((lua_type(L, 3)==LUA_TSTRING)) {
922 score[1] += premium;
923 } else if (false) {
924 score[1] += premium-1; // table: 0x1342cf0;
925 } else {
926 score[1] -= premium*premium;
928 if (lqtL_testudata(L, 4, "QFlags<QMessageBox::StandardButton>*")) {
929 score[1] += premium;
930 } else if (true) {
931 score[1] += premium-1; // table: 0x1343550;
932 } else {
933 score[1] -= premium*premium;
935 if (lqtL_isenum(L, 5, "QMessageBox::StandardButton")) {
936 score[1] += premium;
937 } else if (true) {
938 score[1] += premium-1; // table: 0x1343920;
939 } else {
940 score[1] -= premium*premium;
942 score[2] = 0;
943 if (lqtL_testudata(L, 1, "QWidget*")) {
944 score[2] += premium;
945 } else if (false) {
946 score[2] += premium-1; // table: 0x1356c20;
947 } else {
948 score[2] -= premium*premium;
950 if ((lua_type(L, 2)==LUA_TSTRING)) {
951 score[2] += premium;
952 } else if (false) {
953 score[2] += premium-1; // table: 0x1355e70;
954 } else {
955 score[2] -= premium*premium;
957 if ((lua_type(L, 3)==LUA_TSTRING)) {
958 score[2] += premium;
959 } else if (false) {
960 score[2] += premium-1; // table: 0x13570d0;
961 } else {
962 score[2] -= premium*premium;
964 if (lua_isnumber(L, 4)) {
965 score[2] += premium;
966 } else if (false) {
967 score[2] += premium-1; // table: 0x1357930;
968 } else {
969 score[2] -= premium*premium;
971 if (lua_isnumber(L, 5)) {
972 score[2] += premium;
973 } else if (false) {
974 score[2] += premium-1; // table: 0x1357ce0;
975 } else {
976 score[2] -= premium*premium;
978 if (lua_isnumber(L, 6)) {
979 score[2] += premium;
980 } else if (true) {
981 score[2] += premium-1; // table: 0x1357880;
982 } else {
983 score[2] -= premium*premium;
985 score[3] = 0;
986 if (lqtL_testudata(L, 1, "QWidget*")) {
987 score[3] += premium;
988 } else if (false) {
989 score[3] += premium-1; // table: 0x1358a30;
990 } else {
991 score[3] -= premium*premium;
993 if ((lua_type(L, 2)==LUA_TSTRING)) {
994 score[3] += premium;
995 } else if (false) {
996 score[3] += premium-1; // table: 0x1358700;
997 } else {
998 score[3] -= premium*premium;
1000 if ((lua_type(L, 3)==LUA_TSTRING)) {
1001 score[3] += premium;
1002 } else if (false) {
1003 score[3] += premium-1; // table: 0x1358ee0;
1004 } else {
1005 score[3] -= premium*premium;
1007 if ((lua_type(L, 4)==LUA_TSTRING)) {
1008 score[3] += premium;
1009 } else if (false) {
1010 score[3] += premium-1; // table: 0x1359740;
1011 } else {
1012 score[3] -= premium*premium;
1014 if ((lua_type(L, 5)==LUA_TSTRING)) {
1015 score[3] += premium;
1016 } else if (true) {
1017 score[3] += premium-1; // table: 0x1359b00;
1018 } else {
1019 score[3] -= premium*premium;
1021 if ((lua_type(L, 6)==LUA_TSTRING)) {
1022 score[3] += premium;
1023 } else if (true) {
1024 score[3] += premium-1; // table: 0x1359690;
1025 } else {
1026 score[3] -= premium*premium;
1028 if (lua_isnumber(L, 7)) {
1029 score[3] += premium;
1030 } else if (true) {
1031 score[3] += premium-1; // table: 0x135a2f0;
1032 } else {
1033 score[3] -= premium*premium;
1035 if (lua_isnumber(L, 8)) {
1036 score[3] += premium;
1037 } else if (true) {
1038 score[3] += premium-1; // table: 0x135a6b0;
1039 } else {
1040 score[3] -= premium*premium;
1042 score[4] = 0;
1043 if (lqtL_testudata(L, 1, "QWidget*")) {
1044 score[4] += premium;
1045 } else if (false) {
1046 score[4] += premium-1; // table: 0x135afe0;
1047 } else {
1048 score[4] -= premium*premium;
1050 if ((lua_type(L, 2)==LUA_TSTRING)) {
1051 score[4] += premium;
1052 } else if (false) {
1053 score[4] += premium-1; // table: 0x135aca0;
1054 } else {
1055 score[4] -= premium*premium;
1057 if ((lua_type(L, 3)==LUA_TSTRING)) {
1058 score[4] += premium;
1059 } else if (false) {
1060 score[4] += premium-1; // table: 0x135b4d0;
1061 } else {
1062 score[4] -= premium*premium;
1064 if (lqtL_isenum(L, 4, "QMessageBox::StandardButton")) {
1065 score[4] += premium;
1066 } else if (false) {
1067 score[4] += premium-1; // table: 0x135bd30;
1068 } else {
1069 score[4] -= premium*premium;
1071 if (lqtL_isenum(L, 5, "QMessageBox::StandardButton")) {
1072 score[4] += premium;
1073 } else if (false) {
1074 score[4] += premium-1; // table: 0x135c0e0;
1075 } else {
1076 score[4] -= premium*premium;
1078 int best = 1;
1079 for (int i=1;i<=4;i++) {
1080 if (score[best] < score[i]) { best = i; }
1082 switch (best) {
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");
1089 lua_error(L);
1090 return 0;
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");
1096 lua_error(L);
1097 return 0;
1099 const QString& arg1 = QString::fromAscii(lua_tostring(L, 2), lua_objlen(L, 2));
1100 __lua__obj->QMessageBox::setWindowTitle(arg1);
1101 return 0;
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");
1107 lua_error(L);
1108 return 0;
1110 delete __lua__obj;
1111 __lua__obj = 0;
1112 return 0;
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");
1118 lua_error(L);
1119 return 0;
1121 QAbstractButton * ret = __lua__obj->QMessageBox::escapeButton();
1122 lqtL_pushudata(L, ret, "QAbstractButton*");
1123 return 1;
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");
1129 lua_error(L);
1130 return 0;
1132 QAbstractButton * ret = __lua__obj->QMessageBox::clickedButton();
1133 lqtL_pushudata(L, ret, "QAbstractButton*");
1134 return 1;
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");
1140 lua_error(L);
1141 return 0;
1143 QString ret = __lua__obj->QMessageBox::detailedText();
1144 lua_pushlstring(L, ret.toAscii().data(), ret.toAscii().size());
1145 return 1;
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");
1151 lua_error(L);
1152 return 0;
1154 QString ret = __lua__obj->QMessageBox::text();
1155 lua_pushlstring(L, ret.toAscii().data(), ret.toAscii().size());
1156 return 1;
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");
1162 lua_error(L);
1163 return 0;
1165 Qt::TextFormat arg1 = static_cast<Qt::TextFormat>(lqtL_toenum(L, 2, "Qt::TextFormat"));
1166 __lua__obj->QMessageBox::setTextFormat(arg1);
1167 return 0;
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());
1174 return 1;
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());
1182 return 1;
1184 int LuaBinder< QMessageBox >::__LuaWrapCall__trUtf8 (lua_State *L) {
1185 int score[3];
1186 const int premium = 11+lua_gettop(L);
1187 score[1] = 0;
1188 if ((lua_type(L, 1)==LUA_TSTRING)) {
1189 score[1] += premium;
1190 } else if (false) {
1191 score[1] += premium-1; // table: 0x1329bd0;
1192 } else {
1193 score[1] -= premium*premium;
1195 if ((lua_type(L, 2)==LUA_TSTRING)) {
1196 score[1] += premium;
1197 } else if (true) {
1198 score[1] += premium-1; // table: 0x1329730;
1199 } else {
1200 score[1] -= premium*premium;
1202 score[2] = 0;
1203 if ((lua_type(L, 1)==LUA_TSTRING)) {
1204 score[2] += premium;
1205 } else if (false) {
1206 score[2] += premium-1; // table: 0x132b9c0;
1207 } else {
1208 score[2] -= premium*premium;
1210 if ((lua_type(L, 2)==LUA_TSTRING)) {
1211 score[2] += premium;
1212 } else if (false) {
1213 score[2] += premium-1; // table: 0x132b0f0;
1214 } else {
1215 score[2] -= premium*premium;
1217 if (lua_isnumber(L, 3)) {
1218 score[2] += premium;
1219 } else if (false) {
1220 score[2] += premium-1; // table: 0x132be50;
1221 } else {
1222 score[2] -= premium*premium;
1224 int best = 1;
1225 for (int i=1;i<=2;i++) {
1226 if (score[best] < score[i]) { best = i; }
1228 switch (best) {
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");
1233 lua_error(L);
1234 return 0;
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");
1240 lua_error(L);
1241 return 0;
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);
1246 return 0;
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");
1256 return 1;
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);
1267 return 1;
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);
1280 return 1;
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);
1290 return 1;
1292 int LuaBinder< QMessageBox >::__LuaWrapCall__question (lua_State *L) {
1293 int score[5];
1294 const int premium = 11+lua_gettop(L);
1295 score[1] = 0;
1296 if (lqtL_testudata(L, 1, "QWidget*")) {
1297 score[1] += premium;
1298 } else if (false) {
1299 score[1] += premium-1; // table: 0x1340cf0;
1300 } else {
1301 score[1] -= premium*premium;
1303 if ((lua_type(L, 2)==LUA_TSTRING)) {
1304 score[1] += premium;
1305 } else if (false) {
1306 score[1] += premium-1; // table: 0x133fee0;
1307 } else {
1308 score[1] -= premium*premium;
1310 if ((lua_type(L, 3)==LUA_TSTRING)) {
1311 score[1] += premium;
1312 } else if (false) {
1313 score[1] += premium-1; // table: 0x1341210;
1314 } else {
1315 score[1] -= premium*premium;
1317 if (lqtL_testudata(L, 4, "QFlags<QMessageBox::StandardButton>*")) {
1318 score[1] += premium;
1319 } else if (true) {
1320 score[1] += premium-1; // table: 0x1341a70;
1321 } else {
1322 score[1] -= premium*premium;
1324 if (lqtL_isenum(L, 5, "QMessageBox::StandardButton")) {
1325 score[1] += premium;
1326 } else if (true) {
1327 score[1] += premium-1; // table: 0x1341e40;
1328 } else {
1329 score[1] -= premium*premium;
1331 score[2] = 0;
1332 if (lqtL_testudata(L, 1, "QWidget*")) {
1333 score[2] += premium;
1334 } else if (false) {
1335 score[2] += premium-1; // table: 0x1350de0;
1336 } else {
1337 score[2] -= premium*premium;
1339 if ((lua_type(L, 2)==LUA_TSTRING)) {
1340 score[2] += premium;
1341 } else if (false) {
1342 score[2] += premium-1; // table: 0x1350060;
1343 } else {
1344 score[2] -= premium*premium;
1346 if ((lua_type(L, 3)==LUA_TSTRING)) {
1347 score[2] += premium;
1348 } else if (false) {
1349 score[2] += premium-1; // table: 0x1351290;
1350 } else {
1351 score[2] -= premium*premium;
1353 if (lua_isnumber(L, 4)) {
1354 score[2] += premium;
1355 } else if (false) {
1356 score[2] += premium-1; // table: 0x1351af0;
1357 } else {
1358 score[2] -= premium*premium;
1360 if (lua_isnumber(L, 5)) {
1361 score[2] += premium;
1362 } else if (true) {
1363 score[2] += premium-1; // table: 0x1351eb0;
1364 } else {
1365 score[2] -= premium*premium;
1367 if (lua_isnumber(L, 6)) {
1368 score[2] += premium;
1369 } else if (true) {
1370 score[2] += premium-1; // table: 0x1351a40;
1371 } else {
1372 score[2] -= premium*premium;
1374 score[3] = 0;
1375 if (lqtL_testudata(L, 1, "QWidget*")) {
1376 score[3] += premium;
1377 } else if (false) {
1378 score[3] += premium-1; // table: 0x1352c00;
1379 } else {
1380 score[3] -= premium*premium;
1382 if ((lua_type(L, 2)==LUA_TSTRING)) {
1383 score[3] += premium;
1384 } else if (false) {
1385 score[3] += premium-1; // table: 0x13528d0;
1386 } else {
1387 score[3] -= premium*premium;
1389 if ((lua_type(L, 3)==LUA_TSTRING)) {
1390 score[3] += premium;
1391 } else if (false) {
1392 score[3] += premium-1; // table: 0x13530b0;
1393 } else {
1394 score[3] -= premium*premium;
1396 if ((lua_type(L, 4)==LUA_TSTRING)) {
1397 score[3] += premium;
1398 } else if (false) {
1399 score[3] += premium-1; // table: 0x1353910;
1400 } else {
1401 score[3] -= premium*premium;
1403 if ((lua_type(L, 5)==LUA_TSTRING)) {
1404 score[3] += premium;
1405 } else if (true) {
1406 score[3] += premium-1; // table: 0x1353cd0;
1407 } else {
1408 score[3] -= premium*premium;
1410 if ((lua_type(L, 6)==LUA_TSTRING)) {
1411 score[3] += premium;
1412 } else if (true) {
1413 score[3] += premium-1; // table: 0x1353860;
1414 } else {
1415 score[3] -= premium*premium;
1417 if (lua_isnumber(L, 7)) {
1418 score[3] += premium;
1419 } else if (true) {
1420 score[3] += premium-1; // table: 0x13544c0;
1421 } else {
1422 score[3] -= premium*premium;
1424 if (lua_isnumber(L, 8)) {
1425 score[3] += premium;
1426 } else if (true) {
1427 score[3] += premium-1; // table: 0x1354880;
1428 } else {
1429 score[3] -= premium*premium;
1431 score[4] = 0;
1432 if (lqtL_testudata(L, 1, "QWidget*")) {
1433 score[4] += premium;
1434 } else if (false) {
1435 score[4] += premium-1; // table: 0x13551b0;
1436 } else {
1437 score[4] -= premium*premium;
1439 if ((lua_type(L, 2)==LUA_TSTRING)) {
1440 score[4] += premium;
1441 } else if (false) {
1442 score[4] += premium-1; // table: 0x1354e70;
1443 } else {
1444 score[4] -= premium*premium;
1446 if ((lua_type(L, 3)==LUA_TSTRING)) {
1447 score[4] += premium;
1448 } else if (false) {
1449 score[4] += premium-1; // table: 0x13556a0;
1450 } else {
1451 score[4] -= premium*premium;
1453 if (lqtL_isenum(L, 4, "QMessageBox::StandardButton")) {
1454 score[4] += premium;
1455 } else if (false) {
1456 score[4] += premium-1; // table: 0x1355a60;
1457 } else {
1458 score[4] -= premium*premium;
1460 if (lqtL_isenum(L, 5, "QMessageBox::StandardButton")) {
1461 score[4] += premium;
1462 } else if (false) {
1463 score[4] += premium-1; // table: 0x13562c0;
1464 } else {
1465 score[4] -= premium*premium;
1467 int best = 1;
1468 for (int i=1;i<=4;i++) {
1469 if (score[best] < score[i]) { best = i; }
1471 switch (best) {
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");
1478 lua_error(L);
1479 return 0;
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");
1485 lua_error(L);
1486 return 0;
1488 const QString& arg1 = QString::fromAscii(lua_tostring(L, 2), lua_objlen(L, 2));
1489 __lua__obj->QMessageBox::setInformativeText(arg1);
1490 return 0;
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");
1496 lua_error(L);
1497 return 0;
1499 const QPixmap& arg1 = **static_cast<QPixmap**>(lqtL_checkudata(L, 2, "QPixmap*"));
1500 __lua__obj->QMessageBox::setIconPixmap(arg1);
1501 return 0;
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");
1511 return 1;
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);
1522 return 1;
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);
1535 return 1;
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");
1545 return 1;
1547 int LuaBinder< QMessageBox >::__LuaWrapCall__information (lua_State *L) {
1548 int score[5];
1549 const int premium = 11+lua_gettop(L);
1550 score[1] = 0;
1551 if (lqtL_testudata(L, 1, "QWidget*")) {
1552 score[1] += premium;
1553 } else if (false) {
1554 score[1] += premium-1; // table: 0x133f1a0;
1555 } else {
1556 score[1] -= premium*premium;
1558 if ((lua_type(L, 2)==LUA_TSTRING)) {
1559 score[1] += premium;
1560 } else if (false) {
1561 score[1] += premium-1; // table: 0x133eba0;
1562 } else {
1563 score[1] -= premium*premium;
1565 if ((lua_type(L, 3)==LUA_TSTRING)) {
1566 score[1] += premium;
1567 } else if (false) {
1568 score[1] += premium-1; // table: 0x133f6e0;
1569 } else {
1570 score[1] -= premium*premium;
1572 if (lqtL_testudata(L, 4, "QFlags<QMessageBox::StandardButton>*")) {
1573 score[1] += premium;
1574 } else if (true) {
1575 score[1] += premium-1; // table: 0x133ff40;
1576 } else {
1577 score[1] -= premium*premium;
1579 if (lqtL_isenum(L, 5, "QMessageBox::StandardButton")) {
1580 score[1] += premium;
1581 } else if (true) {
1582 score[1] += premium-1; // table: 0x1340310;
1583 } else {
1584 score[1] -= premium*premium;
1586 score[2] = 0;
1587 if (lqtL_testudata(L, 1, "QWidget*")) {
1588 score[2] += premium;
1589 } else if (false) {
1590 score[2] += premium-1; // table: 0x134ad30;
1591 } else {
1592 score[2] -= premium*premium;
1594 if ((lua_type(L, 2)==LUA_TSTRING)) {
1595 score[2] += premium;
1596 } else if (false) {
1597 score[2] += premium-1; // table: 0x134aa00;
1598 } else {
1599 score[2] -= premium*premium;
1601 if ((lua_type(L, 3)==LUA_TSTRING)) {
1602 score[2] += premium;
1603 } else if (false) {
1604 score[2] += premium-1; // table: 0x134b1e0;
1605 } else {
1606 score[2] -= premium*premium;
1608 if (lua_isnumber(L, 4)) {
1609 score[2] += premium;
1610 } else if (false) {
1611 score[2] += premium-1; // table: 0x134ba40;
1612 } else {
1613 score[2] -= premium*premium;
1615 if (lua_isnumber(L, 5)) {
1616 score[2] += premium;
1617 } else if (true) {
1618 score[2] += premium-1; // table: 0x134be00;
1619 } else {
1620 score[2] -= premium*premium;
1622 if (lua_isnumber(L, 6)) {
1623 score[2] += premium;
1624 } else if (true) {
1625 score[2] += premium-1; // table: 0x134b990;
1626 } else {
1627 score[2] -= premium*premium;
1629 score[3] = 0;
1630 if (lqtL_testudata(L, 1, "QWidget*")) {
1631 score[3] += premium;
1632 } else if (false) {
1633 score[3] += premium-1; // table: 0x134cb50;
1634 } else {
1635 score[3] -= premium*premium;
1637 if ((lua_type(L, 2)==LUA_TSTRING)) {
1638 score[3] += premium;
1639 } else if (false) {
1640 score[3] += premium-1; // table: 0x134c820;
1641 } else {
1642 score[3] -= premium*premium;
1644 if ((lua_type(L, 3)==LUA_TSTRING)) {
1645 score[3] += premium;
1646 } else if (false) {
1647 score[3] += premium-1; // table: 0x134d000;
1648 } else {
1649 score[3] -= premium*premium;
1651 if ((lua_type(L, 4)==LUA_TSTRING)) {
1652 score[3] += premium;
1653 } else if (false) {
1654 score[3] += premium-1; // table: 0x134d860;
1655 } else {
1656 score[3] -= premium*premium;
1658 if ((lua_type(L, 5)==LUA_TSTRING)) {
1659 score[3] += premium;
1660 } else if (true) {
1661 score[3] += premium-1; // table: 0x134dc90;
1662 } else {
1663 score[3] -= premium*premium;
1665 if ((lua_type(L, 6)==LUA_TSTRING)) {
1666 score[3] += premium;
1667 } else if (true) {
1668 score[3] += premium-1; // table: 0x134d7b0;
1669 } else {
1670 score[3] -= premium*premium;
1672 if (lua_isnumber(L, 7)) {
1673 score[3] += premium;
1674 } else if (true) {
1675 score[3] += premium-1; // table: 0x134e560;
1676 } else {
1677 score[3] -= premium*premium;
1679 if (lua_isnumber(L, 8)) {
1680 score[3] += premium;
1681 } else if (true) {
1682 score[3] += premium-1; // table: 0x134e9a0;
1683 } else {
1684 score[3] -= premium*premium;
1686 score[4] = 0;
1687 if (lqtL_testudata(L, 1, "QWidget*")) {
1688 score[4] += premium;
1689 } else if (false) {
1690 score[4] += premium-1; // table: 0x134f370;
1691 } else {
1692 score[4] -= premium*premium;
1694 if ((lua_type(L, 2)==LUA_TSTRING)) {
1695 score[4] += premium;
1696 } else if (false) {
1697 score[4] += premium-1; // table: 0x134edb0;
1698 } else {
1699 score[4] -= premium*premium;
1701 if ((lua_type(L, 3)==LUA_TSTRING)) {
1702 score[4] += premium;
1703 } else if (false) {
1704 score[4] += premium-1; // table: 0x134f860;
1705 } else {
1706 score[4] -= premium*premium;
1708 if (lqtL_isenum(L, 4, "QMessageBox::StandardButton")) {
1709 score[4] += premium;
1710 } else if (false) {
1711 score[4] += premium-1; // table: 0x13500c0;
1712 } else {
1713 score[4] -= premium*premium;
1715 if (lqtL_isenum(L, 5, "QMessageBox::StandardButton")) {
1716 score[4] += premium;
1717 } else if (true) {
1718 score[4] += premium-1; // table: 0x1350480;
1719 } else {
1720 score[4] -= premium*premium;
1722 int best = 1;
1723 for (int i=1;i<=4;i++) {
1724 if (score[best] < score[i]) { best = i; }
1726 switch (best) {
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");
1733 lua_error(L);
1734 return 0;
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");
1740 lua_error(L);
1741 return 0;
1743 QMessageBox::Icon ret = __lua__obj->QMessageBox::icon();
1744 lqtL_pushenum(L, ret, "QMessageBox::Icon");
1745 return 1;
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");
1753 lua_remove(L, -2);
1754 } else {
1755 lua_pushnil(L);
1757 lua_insert(L, -2);
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);
1762 lua_pop(L, 1);
1764 if (!absorbed) {
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");
1776 lua_remove(L, -2);
1777 } else {
1778 lua_pushnil(L);
1780 lua_insert(L, -2);
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);
1785 lua_pop(L, 1);
1787 if (!absorbed) {
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");
1799 lua_remove(L, -2);
1800 } else {
1801 lua_pushnil(L);
1803 lua_insert(L, -2);
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);
1808 lua_pop(L, 1);
1810 if (!absorbed) {
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");
1822 lua_remove(L, -2);
1823 } else {
1824 lua_pushnil(L);
1826 lua_insert(L, -2);
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);
1831 lua_pop(L, 1);
1833 if (!absorbed) {
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");
1845 lua_remove(L, -2);
1846 } else {
1847 lua_pushnil(L);
1849 lua_insert(L, -2);
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);
1853 lua_pop(L, 1);
1855 if (!absorbed) {
1856 lua_settop(L, oldtop);
1857 return this->QWidget::devType();
1859 int ret = lua_tointeger(L, -1);
1860 lua_settop(L, oldtop);
1861 return ret;
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");
1869 lua_remove(L, -2);
1870 } else {
1871 lua_pushnil(L);
1873 lua_insert(L, -2);
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);
1878 lua_pop(L, 1);
1880 if (!absorbed) {
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");
1892 lua_remove(L, -2);
1893 } else {
1894 lua_pushnil(L);
1896 lua_insert(L, -2);
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);
1901 lua_pop(L, 1);
1903 if (!absorbed) {
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);
1909 return ret;
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");
1917 lua_remove(L, -2);
1918 } else {
1919 lua_pushnil(L);
1921 lua_insert(L, -2);
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);
1925 lua_pop(L, 1);
1927 if (!absorbed) {
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);
1933 return ret;
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");
1941 lua_remove(L, -2);
1942 } else {
1943 lua_pushnil(L);
1945 lua_insert(L, -2);
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);
1950 lua_pop(L, 1);
1952 if (!absorbed) {
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");
1964 lua_remove(L, -2);
1965 } else {
1966 lua_pushnil(L);
1968 lua_insert(L, -2);
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);
1973 lua_pop(L, 1);
1975 if (!absorbed) {
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");
1987 lua_remove(L, -2);
1988 } else {
1989 lua_pushnil(L);
1991 lua_insert(L, -2);
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);
1996 lua_pop(L, 1);
1998 if (!absorbed) {
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");
2010 lua_remove(L, -2);
2011 } else {
2012 lua_pushnil(L);
2014 lua_insert(L, -2);
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);
2019 lua_pop(L, 1);
2021 if (!absorbed) {
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");
2033 lua_remove(L, -2);
2034 } else {
2035 lua_pushnil(L);
2037 lua_insert(L, -2);
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);
2041 lua_pop(L, 1);
2043 if (!absorbed) {
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");
2055 lua_remove(L, -2);
2056 } else {
2057 lua_pushnil(L);
2059 lua_insert(L, -2);
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);
2063 lua_pop(L, 1);
2065 if (!absorbed) {
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");
2077 lua_remove(L, -2);
2078 } else {
2079 lua_pushnil(L);
2081 lua_insert(L, -2);
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);
2086 lua_pop(L, 1);
2088 if (!absorbed) {
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");
2100 lua_remove(L, -2);
2101 } else {
2102 lua_pushnil(L);
2104 lua_insert(L, -2);
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);
2109 lua_pop(L, 1);
2111 if (!absorbed) {
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");
2123 lua_remove(L, -2);
2124 } else {
2125 lua_pushnil(L);
2127 lua_insert(L, -2);
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);
2132 lua_pop(L, 1);
2134 if (!absorbed) {
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");
2146 lua_remove(L, -2);
2147 } else {
2148 lua_pushnil(L);
2150 lua_insert(L, -2);
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);
2155 lua_pop(L, 1);
2157 if (!absorbed) {
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");
2169 lua_remove(L, -2);
2170 } else {
2171 lua_pushnil(L);
2173 lua_insert(L, -2);
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);
2177 lua_pop(L, 1);
2179 if (!absorbed) {
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);
2185 return ret;
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");
2193 lua_remove(L, -2);
2194 } else {
2195 lua_pushnil(L);
2197 lua_insert(L, -2);
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);
2202 lua_pop(L, 1);
2204 if (!absorbed) {
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");
2216 lua_remove(L, -2);
2217 } else {
2218 lua_pushnil(L);
2220 lua_insert(L, -2);
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);
2225 lua_pop(L, 1);
2227 if (!absorbed) {
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");
2239 lua_remove(L, -2);
2240 } else {
2241 lua_pushnil(L);
2243 lua_insert(L, -2);
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);
2248 lua_pop(L, 1);
2250 if (!absorbed) {
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");
2262 lua_remove(L, -2);
2263 } else {
2264 lua_pushnil(L);
2266 lua_insert(L, -2);
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);
2270 lua_pop(L, 1);
2272 if (!absorbed) {
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);
2278 return ret;
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");
2286 lua_remove(L, -2);
2287 } else {
2288 lua_pushnil(L);
2290 lua_insert(L, -2);
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);
2295 lua_pop(L, 1);
2297 if (!absorbed) {
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");
2309 lua_remove(L, -2);
2310 } else {
2311 lua_pushnil(L);
2313 lua_insert(L, -2);
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);
2318 lua_pop(L, 1);
2320 if (!absorbed) {
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");
2332 lua_remove(L, -2);
2333 } else {
2334 lua_pushnil(L);
2336 lua_insert(L, -2);
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);
2341 lua_pop(L, 1);
2343 if (!absorbed) {
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");
2355 lua_remove(L, -2);
2356 } else {
2357 lua_pushnil(L);
2359 lua_insert(L, -2);
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);
2364 lua_pop(L, 1);
2366 if (!absorbed) {
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");
2378 lua_remove(L, -2);
2379 } else {
2380 lua_pushnil(L);
2382 lua_insert(L, -2);
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);
2387 lua_pop(L, 1);
2389 if (!absorbed) {
2390 lua_settop(L, oldtop);
2391 return this->QWidget::focusNextPrevChild(arg1);
2393 bool ret = (bool)lua_toboolean(L, -1);
2394 lua_settop(L, oldtop);
2395 return ret;
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");
2403 lua_remove(L, -2);
2404 } else {
2405 lua_pushnil(L);
2407 lua_insert(L, -2);
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);
2412 lua_pop(L, 1);
2414 if (!absorbed) {
2415 lua_settop(L, oldtop);
2416 return this->QWidget::heightForWidth(arg1);
2418 int ret = lua_tointeger(L, -1);
2419 lua_settop(L, oldtop);
2420 return ret;
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");
2428 lua_remove(L, -2);
2429 } else {
2430 lua_pushnil(L);
2432 lua_insert(L, -2);
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);
2437 lua_pop(L, 1);
2439 if (!absorbed) {
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");
2451 lua_remove(L, -2);
2452 } else {
2453 lua_pushnil(L);
2455 lua_insert(L, -2);
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);
2460 lua_pop(L, 1);
2462 if (!absorbed) {
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");
2474 lua_remove(L, -2);
2475 } else {
2476 lua_pushnil(L);
2478 lua_insert(L, -2);
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);
2483 lua_pop(L, 1);
2485 if (!absorbed) {
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");
2497 lua_remove(L, -2);
2498 } else {
2499 lua_pushnil(L);
2501 lua_insert(L, -2);
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);
2506 lua_pop(L, 1);
2508 if (!absorbed) {
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");
2520 lua_remove(L, -2);
2521 } else {
2522 lua_pushnil(L);
2524 lua_insert(L, -2);
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);
2529 lua_pop(L, 1);
2531 if (!absorbed) {
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");
2543 lua_remove(L, -2);
2544 } else {
2545 lua_pushnil(L);
2547 lua_insert(L, -2);
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);
2552 lua_pop(L, 1);
2554 if (!absorbed) {
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");
2566 lua_remove(L, -2);
2567 } else {
2568 lua_pushnil(L);
2570 lua_insert(L, -2);
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);
2575 lua_pop(L, 1);
2577 if (!absorbed) {
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");
2589 lua_remove(L, -2);
2590 } else {
2591 lua_pushnil(L);
2593 lua_insert(L, -2);
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);
2598 lua_pop(L, 1);
2600 if (!absorbed) {
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");
2612 lua_remove(L, -2);
2613 } else {
2614 lua_pushnil(L);
2616 lua_insert(L, -2);
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);
2621 lua_pop(L, 1);
2623 if (!absorbed) {
2624 lua_settop(L, oldtop);
2625 return this->QWidget::metric(arg1);
2627 int ret = lua_tointeger(L, -1);
2628 lua_settop(L, oldtop);
2629 return ret;
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");
2637 lua_remove(L, -2);
2638 } else {
2639 lua_pushnil(L);
2641 lua_insert(L, -2);
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);
2647 lua_pop(L, 1);
2649 if (!absorbed) {
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);
2655 return ret;
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");
2663 lua_remove(L, -2);
2664 } else {
2665 lua_pushnil(L);
2667 lua_insert(L, -2);
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);
2672 lua_pop(L, 1);
2674 if (!absorbed) {
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");
2686 lua_remove(L, -2);
2687 } else {
2688 lua_pushnil(L);
2690 lua_insert(L, -2);
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);
2695 lua_pop(L, 1);
2697 if (!absorbed) {
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");
2709 lua_remove(L, -2);
2710 } else {
2711 lua_pushnil(L);
2713 lua_insert(L, -2);
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);
2718 lua_pop(L, 1);
2720 if (!absorbed) {
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");
2732 lua_remove(L, -2);
2733 } else {
2734 lua_pushnil(L);
2736 lua_insert(L, -2);
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);
2741 lua_pop(L, 1);
2743 if (!absorbed) {
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");
2755 lua_remove(L, -2);
2756 } else {
2757 lua_pushnil(L);
2759 lua_insert(L, -2);
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);
2763 lua_pop(L, 1);
2765 if (!absorbed) {
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");
2777 lua_remove(L, -2);
2778 } else {
2779 lua_pushnil(L);
2781 lua_insert(L, -2);
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);
2786 lua_pop(L, 1);
2788 if (!absorbed) {
2789 lua_settop(L, oldtop);
2790 return this->QMessageBox::event(arg1);
2792 bool ret = (bool)lua_toboolean(L, -1);
2793 lua_settop(L, oldtop);
2794 return ret;
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");
2802 lua_remove(L, -2);
2803 } else {
2804 lua_pushnil(L);
2806 lua_insert(L, -2);
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);
2811 lua_pop(L, 1);
2813 if (!absorbed) {
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");
2825 lua_remove(L, -2);
2826 } else {
2827 lua_pushnil(L);
2829 lua_insert(L, -2);
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);
2834 lua_pop(L, 1);
2836 if (!absorbed) {
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");
2848 lua_remove(L, -2);
2849 } else {
2850 lua_pushnil(L);
2852 lua_insert(L, -2);
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);
2856 lua_pop(L, 1);
2858 if (!absorbed) {
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);
2864 return ret;
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");
2872 lua_remove(L, -2);
2873 } else {
2874 lua_pushnil(L);
2876 lua_insert(L, -2);
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);
2881 lua_pop(L, 1);
2883 if (!absorbed) {
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");
2895 lua_remove(L, -2);
2896 } else {
2897 lua_pushnil(L);
2899 lua_insert(L, -2);
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);
2904 lua_pop(L, 1);
2906 if (!absorbed) {
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");
2918 lua_remove(L, -2);
2919 } else {
2920 lua_pushnil(L);
2922 lua_insert(L, -2);
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);
2927 lua_pop(L, 1);
2929 if (!absorbed) {
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");
2941 lua_remove(L, -2);
2942 } else {
2943 lua_pushnil(L);
2945 lua_insert(L, -2);
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);
2950 lua_pop(L, 1);
2952 if (!absorbed) {
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)) {
2964 lua_insert(L, -2);
2965 lua_pcall(L, 1, 1, 0);
2966 } else {
2968 lua_settop(L, oldtop);
2970 int LuaBinder< QMessageBox >::lqt_pushenum_Icon (lua_State *L) {
2971 int enum_table = 0;
2972 lua_getfield(L, LUA_REGISTRYINDEX, LQT_ENUMS);
2973 if (!lua_istable(L, -1)) {
2974 lua_pop(L, 1);
2975 lua_newtable(L);
2976 lua_pushvalue(L, -1);
2977 lua_setfield(L, LUA_REGISTRYINDEX, LQT_ENUMS);
2979 lua_newtable(L);
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");
3005 lua_remove(L, -2);
3006 return 1;
3008 int LuaBinder< QMessageBox >::lqt_pushenum_Icon_QFLAGS_CREATOR (lua_State *L) {
3009 int argn = lua_gettop(L);
3010 int i = 0;
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]) );
3013 *(void**)p = fl;
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);
3022 return 1;
3024 int LuaBinder< QMessageBox >::lqt_pushenum_ButtonRole (lua_State *L) {
3025 int enum_table = 0;
3026 lua_getfield(L, LUA_REGISTRYINDEX, LQT_ENUMS);
3027 if (!lua_istable(L, -1)) {
3028 lua_pop(L, 1);
3029 lua_newtable(L);
3030 lua_pushvalue(L, -1);
3031 lua_setfield(L, LUA_REGISTRYINDEX, LQT_ENUMS);
3033 lua_newtable(L);
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");
3083 lua_remove(L, -2);
3084 return 1;
3086 int LuaBinder< QMessageBox >::lqt_pushenum_ButtonRole_QFLAGS_CREATOR (lua_State *L) {
3087 int argn = lua_gettop(L);
3088 int i = 0;
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]) );
3091 *(void**)p = fl;
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);
3100 return 1;
3102 int LuaBinder< QMessageBox >::lqt_pushenum_StandardButton (lua_State *L) {
3103 int enum_table = 0;
3104 lua_getfield(L, LUA_REGISTRYINDEX, LQT_ENUMS);
3105 if (!lua_istable(L, -1)) {
3106 lua_pop(L, 1);
3107 lua_newtable(L);
3108 lua_pushvalue(L, -1);
3109 lua_setfield(L, LUA_REGISTRYINDEX, LQT_ENUMS);
3111 lua_newtable(L);
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");
3225 lua_remove(L, -2);
3226 return 1;
3228 int LuaBinder< QMessageBox >::lqt_pushenum_StandardButton_QFLAGS_CREATOR (lua_State *L) {
3229 int argn = lua_gettop(L);
3230 int i = 0;
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]) );
3233 *(void**)p = fl;
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);
3242 return 1;
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");
3332 lua_newtable(L);
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");
3351 } else {
3352 lua_pop(L, 1);
3354 return 0;