added "install" instruction
[Leditor.git] / src / lqt_bind_QToolBar.cpp
blobdc08312887beee84d361c2ff8fb55a3c87cdfcfc
1 #include "lqt_bind_QToolBar.hpp"
3 int LuaBinder< QToolBar >::__LuaWrapCall__isFloating (lua_State *L) {
4 QToolBar *& __lua__obj = *static_cast<QToolBar**>(lqtL_checkudata(L, 1, "QToolBar*"));
5 if (__lua__obj==0) {
6 lua_pushstring(L, "trying to reference deleted pointer");
7 lua_error(L);
8 return 0;
10 bool ret = __lua__obj->QToolBar::isFloating();
11 lua_pushboolean(L, ret);
12 return 1;
14 int LuaBinder< QToolBar >::__LuaWrapCall__isMovable (lua_State *L) {
15 QToolBar *& __lua__obj = *static_cast<QToolBar**>(lqtL_checkudata(L, 1, "QToolBar*"));
16 if (__lua__obj==0) {
17 lua_pushstring(L, "trying to reference deleted pointer");
18 lua_error(L);
19 return 0;
21 bool ret = __lua__obj->QToolBar::isMovable();
22 lua_pushboolean(L, ret);
23 return 1;
25 int LuaBinder< QToolBar >::__LuaWrapCall__addSeparator (lua_State *L) {
26 QToolBar *& __lua__obj = *static_cast<QToolBar**>(lqtL_checkudata(L, 1, "QToolBar*"));
27 if (__lua__obj==0) {
28 lua_pushstring(L, "trying to reference deleted pointer");
29 lua_error(L);
30 return 0;
32 QAction * ret = __lua__obj->QToolBar::addSeparator();
33 lqtL_pushudata(L, ret, "QAction*");
34 return 1;
36 int LuaBinder< QToolBar >::__LuaWrapCall__delete (lua_State *L) {
37 QToolBar *& __lua__obj = *static_cast<QToolBar**>(lqtL_checkudata(L, 1, "QToolBar*"));
38 if (__lua__obj==0) {
39 lua_pushstring(L, "trying to reference deleted pointer");
40 lua_error(L);
41 return 0;
43 delete __lua__obj;
44 __lua__obj = 0;
45 return 0;
47 int LuaBinder< QToolBar >::__LuaWrapCall__insertSeparator (lua_State *L) {
48 QToolBar *& __lua__obj = *static_cast<QToolBar**>(lqtL_checkudata(L, 1, "QToolBar*"));
49 if (__lua__obj==0) {
50 lua_pushstring(L, "trying to reference deleted pointer");
51 lua_error(L);
52 return 0;
54 QAction * arg1 = *static_cast<QAction**>(lqtL_checkudata(L, 2, "QAction*"));
55 QAction * ret = __lua__obj->QToolBar::insertSeparator(arg1);
56 lqtL_pushudata(L, ret, "QAction*");
57 return 1;
59 int LuaBinder< QToolBar >::__LuaWrapCall__setOrientation (lua_State *L) {
60 QToolBar *& __lua__obj = *static_cast<QToolBar**>(lqtL_checkudata(L, 1, "QToolBar*"));
61 if (__lua__obj==0) {
62 lua_pushstring(L, "trying to reference deleted pointer");
63 lua_error(L);
64 return 0;
66 Qt::Orientation arg1 = static_cast<Qt::Orientation>(lqtL_toenum(L, 2, "Qt::Orientation"));
67 __lua__obj->QToolBar::setOrientation(arg1);
68 return 0;
70 int LuaBinder< QToolBar >::__LuaWrapCall__setToolButtonStyle (lua_State *L) {
71 QToolBar *& __lua__obj = *static_cast<QToolBar**>(lqtL_checkudata(L, 1, "QToolBar*"));
72 if (__lua__obj==0) {
73 lua_pushstring(L, "trying to reference deleted pointer");
74 lua_error(L);
75 return 0;
77 Qt::ToolButtonStyle arg1 = static_cast<Qt::ToolButtonStyle>(lqtL_toenum(L, 2, "Qt::ToolButtonStyle"));
78 __lua__obj->QToolBar::setToolButtonStyle(arg1);
79 return 0;
81 int LuaBinder< QToolBar >::__LuaWrapCall__insertWidget (lua_State *L) {
82 QToolBar *& __lua__obj = *static_cast<QToolBar**>(lqtL_checkudata(L, 1, "QToolBar*"));
83 if (__lua__obj==0) {
84 lua_pushstring(L, "trying to reference deleted pointer");
85 lua_error(L);
86 return 0;
88 QAction * arg1 = *static_cast<QAction**>(lqtL_checkudata(L, 2, "QAction*"));
89 QWidget * arg2 = *static_cast<QWidget**>(lqtL_checkudata(L, 3, "QWidget*"));
90 QAction * ret = __lua__obj->QToolBar::insertWidget(arg1, arg2);
91 lqtL_pushudata(L, ret, "QAction*");
92 return 1;
94 int LuaBinder< QToolBar >::__LuaWrapCall__setIconSize (lua_State *L) {
95 QToolBar *& __lua__obj = *static_cast<QToolBar**>(lqtL_checkudata(L, 1, "QToolBar*"));
96 if (__lua__obj==0) {
97 lua_pushstring(L, "trying to reference deleted pointer");
98 lua_error(L);
99 return 0;
101 const QSize& arg1 = **static_cast<QSize**>(lqtL_checkudata(L, 2, "QSize*"));
102 __lua__obj->QToolBar::setIconSize(arg1);
103 return 0;
105 int LuaBinder< QToolBar >::__LuaWrapCall__trUtf8__OverloadedVersion__1 (lua_State *L) {
106 const char * arg1 = lua_tostring(L, 1);
107 const char * arg2 = (lua_type(L, 2)==LUA_TSTRING)?lua_tostring(L, 2):static_cast< const char * >(0);
108 QString ret = QToolBar::trUtf8(arg1, arg2);
109 lua_pushlstring(L, ret.toAscii().data(), ret.toAscii().size());
110 return 1;
112 int LuaBinder< QToolBar >::__LuaWrapCall__trUtf8__OverloadedVersion__2 (lua_State *L) {
113 const char * arg1 = lua_tostring(L, 1);
114 const char * arg2 = lua_tostring(L, 2);
115 int arg3 = lua_tointeger(L, 3);
116 QString ret = QToolBar::trUtf8(arg1, arg2, arg3);
117 lua_pushlstring(L, ret.toAscii().data(), ret.toAscii().size());
118 return 1;
120 int LuaBinder< QToolBar >::__LuaWrapCall__trUtf8 (lua_State *L) {
121 int score[3];
122 const int premium = 11+lua_gettop(L);
123 score[1] = 0;
124 if ((lua_type(L, 1)==LUA_TSTRING)) {
125 score[1] += premium;
126 } else if (false) {
127 score[1] += premium-1; // table: 0x12d0c00;
128 } else {
129 score[1] -= premium*premium;
131 if ((lua_type(L, 2)==LUA_TSTRING)) {
132 score[1] += premium;
133 } else if (true) {
134 score[1] += premium-1; // table: 0x12d0760;
135 } else {
136 score[1] -= premium*premium;
138 score[2] = 0;
139 if ((lua_type(L, 1)==LUA_TSTRING)) {
140 score[2] += premium;
141 } else if (false) {
142 score[2] += premium-1; // table: 0x12d29f0;
143 } else {
144 score[2] -= premium*premium;
146 if ((lua_type(L, 2)==LUA_TSTRING)) {
147 score[2] += premium;
148 } else if (false) {
149 score[2] += premium-1; // table: 0x12d2120;
150 } else {
151 score[2] -= premium*premium;
153 if (lua_isnumber(L, 3)) {
154 score[2] += premium;
155 } else if (false) {
156 score[2] += premium-1; // table: 0x12d2e80;
157 } else {
158 score[2] -= premium*premium;
160 int best = 1;
161 for (int i=1;i<=2;i++) {
162 if (score[best] < score[i]) { best = i; }
164 switch (best) {
165 case 1: return __LuaWrapCall__trUtf8__OverloadedVersion__1(L); break;
166 case 2: return __LuaWrapCall__trUtf8__OverloadedVersion__2(L); break;
168 lua_pushstring(L, "no overload of function __LuaWrapCall__trUtf8 matching arguments");
169 lua_error(L);
170 return 0;
172 int LuaBinder< QToolBar >::__LuaWrapCall__actionAt__OverloadedVersion__1 (lua_State *L) {
173 QToolBar *& __lua__obj = *static_cast<QToolBar**>(lqtL_checkudata(L, 1, "QToolBar*"));
174 if (__lua__obj==0) {
175 lua_pushstring(L, "trying to reference deleted pointer");
176 lua_error(L);
177 return 0;
179 const QPoint& arg1 = **static_cast<QPoint**>(lqtL_checkudata(L, 2, "QPoint*"));
180 QAction * ret = __lua__obj->QToolBar::actionAt(arg1);
181 lqtL_pushudata(L, ret, "QAction*");
182 return 1;
184 int LuaBinder< QToolBar >::__LuaWrapCall__actionAt__OverloadedVersion__2 (lua_State *L) {
185 QToolBar *& __lua__obj = *static_cast<QToolBar**>(lqtL_checkudata(L, 1, "QToolBar*"));
186 if (__lua__obj==0) {
187 lua_pushstring(L, "trying to reference deleted pointer");
188 lua_error(L);
189 return 0;
191 int arg1 = lua_tointeger(L, 2);
192 int arg2 = lua_tointeger(L, 3);
193 QAction * ret = __lua__obj->QToolBar::actionAt(arg1, arg2);
194 lqtL_pushudata(L, ret, "QAction*");
195 return 1;
197 int LuaBinder< QToolBar >::__LuaWrapCall__actionAt (lua_State *L) {
198 int score[3];
199 const int premium = 11+lua_gettop(L);
200 score[1] = 0;
201 score[1] += lqtL_testudata(L, 1, "QToolBar*")?premium:-premium*premium;
202 if (lqtL_testudata(L, 2, "QPoint*")) {
203 score[1] += premium;
204 } else if (false) {
205 score[1] += premium-1; // table: 0x12e28a0;
206 } else {
207 score[1] -= premium*premium;
209 score[2] = 0;
210 score[2] += lqtL_testudata(L, 1, "QToolBar*")?premium:-premium*premium;
211 if (lua_isnumber(L, 2)) {
212 score[2] += premium;
213 } else if (false) {
214 score[2] += premium-1; // table: 0x12e3310;
215 } else {
216 score[2] -= premium*premium;
218 if (lua_isnumber(L, 3)) {
219 score[2] += premium;
220 } else if (false) {
221 score[2] += premium-1; // table: 0x12e3820;
222 } else {
223 score[2] -= premium*premium;
225 int best = 1;
226 for (int i=1;i<=2;i++) {
227 if (score[best] < score[i]) { best = i; }
229 switch (best) {
230 case 1: return __LuaWrapCall__actionAt__OverloadedVersion__1(L); break;
231 case 2: return __LuaWrapCall__actionAt__OverloadedVersion__2(L); break;
233 lua_pushstring(L, "no overload of function __LuaWrapCall__actionAt matching arguments");
234 lua_error(L);
235 return 0;
237 int LuaBinder< QToolBar >::__LuaWrapCall__metaObject (lua_State *L) {
238 QToolBar *& __lua__obj = *static_cast<QToolBar**>(lqtL_checkudata(L, 1, "QToolBar*"));
239 if (__lua__obj==0) {
240 lua_pushstring(L, "trying to reference deleted pointer");
241 lua_error(L);
242 return 0;
244 const QMetaObject * ret = __lua__obj->QToolBar::metaObject();
245 lqtL_pushudata(L, ret, "QMetaObject*");
246 return 1;
248 int LuaBinder< QToolBar >::__LuaWrapCall__new__OverloadedVersion__1 (lua_State *L) {
249 const QString& arg1 = QString::fromAscii(lua_tostring(L, 1), lua_objlen(L, 1));
250 QWidget * arg2 = lqtL_testudata(L, 2, "QWidget*")?*static_cast<QWidget**>(lqtL_checkudata(L, 2, "QWidget*")):static_cast< QWidget * >(0);
251 QToolBar * ret = new LuaBinder< QToolBar >(L, arg1, arg2);
252 lqtL_passudata(L, ret, "QToolBar*");
253 return 1;
255 int LuaBinder< QToolBar >::__LuaWrapCall__new__OverloadedVersion__2 (lua_State *L) {
256 QWidget * arg1 = lqtL_testudata(L, 1, "QWidget*")?*static_cast<QWidget**>(lqtL_checkudata(L, 1, "QWidget*")):static_cast< QWidget * >(0);
257 QToolBar * ret = new LuaBinder< QToolBar >(L, arg1);
258 lqtL_passudata(L, ret, "QToolBar*");
259 return 1;
261 int LuaBinder< QToolBar >::__LuaWrapCall__new (lua_State *L) {
262 int score[3];
263 const int premium = 11+lua_gettop(L);
264 score[1] = 0;
265 if ((lua_type(L, 1)==LUA_TSTRING)) {
266 score[1] += premium;
267 } else if (false) {
268 score[1] += premium-1; // table: 0x12d4ab0;
269 } else {
270 score[1] -= premium*premium;
272 if (lqtL_testudata(L, 2, "QWidget*")) {
273 score[1] += premium;
274 } else if (true) {
275 score[1] += premium-1; // table: 0x12d47e0;
276 } else {
277 score[1] -= premium*premium;
279 score[2] = 0;
280 if (lqtL_testudata(L, 1, "QWidget*")) {
281 score[2] += premium;
282 } else if (true) {
283 score[2] += premium-1; // table: 0x12d5920;
284 } else {
285 score[2] -= premium*premium;
287 int best = 1;
288 for (int i=1;i<=2;i++) {
289 if (score[best] < score[i]) { best = i; }
291 switch (best) {
292 case 1: return __LuaWrapCall__new__OverloadedVersion__1(L); break;
293 case 2: return __LuaWrapCall__new__OverloadedVersion__2(L); break;
295 lua_pushstring(L, "no overload of function __LuaWrapCall__new matching arguments");
296 lua_error(L);
297 return 0;
299 int LuaBinder< QToolBar >::__LuaWrapCall__clear (lua_State *L) {
300 QToolBar *& __lua__obj = *static_cast<QToolBar**>(lqtL_checkudata(L, 1, "QToolBar*"));
301 if (__lua__obj==0) {
302 lua_pushstring(L, "trying to reference deleted pointer");
303 lua_error(L);
304 return 0;
306 __lua__obj->QToolBar::clear();
307 return 0;
309 int LuaBinder< QToolBar >::__LuaWrapCall__isAreaAllowed (lua_State *L) {
310 QToolBar *& __lua__obj = *static_cast<QToolBar**>(lqtL_checkudata(L, 1, "QToolBar*"));
311 if (__lua__obj==0) {
312 lua_pushstring(L, "trying to reference deleted pointer");
313 lua_error(L);
314 return 0;
316 Qt::ToolBarArea arg1 = static_cast<Qt::ToolBarArea>(lqtL_toenum(L, 2, "Qt::ToolBarArea"));
317 bool ret = __lua__obj->QToolBar::isAreaAllowed(arg1);
318 lua_pushboolean(L, ret);
319 return 1;
321 int LuaBinder< QToolBar >::__LuaWrapCall__widgetForAction (lua_State *L) {
322 QToolBar *& __lua__obj = *static_cast<QToolBar**>(lqtL_checkudata(L, 1, "QToolBar*"));
323 if (__lua__obj==0) {
324 lua_pushstring(L, "trying to reference deleted pointer");
325 lua_error(L);
326 return 0;
328 QAction * arg1 = *static_cast<QAction**>(lqtL_checkudata(L, 2, "QAction*"));
329 QWidget * ret = __lua__obj->QToolBar::widgetForAction(arg1);
330 lqtL_pushudata(L, ret, "QWidget*");
331 return 1;
333 int LuaBinder< QToolBar >::__LuaWrapCall__tr__OverloadedVersion__1 (lua_State *L) {
334 const char * arg1 = lua_tostring(L, 1);
335 const char * arg2 = (lua_type(L, 2)==LUA_TSTRING)?lua_tostring(L, 2):static_cast< const char * >(0);
336 QString ret = QToolBar::tr(arg1, arg2);
337 lua_pushlstring(L, ret.toAscii().data(), ret.toAscii().size());
338 return 1;
340 int LuaBinder< QToolBar >::__LuaWrapCall__tr__OverloadedVersion__2 (lua_State *L) {
341 const char * arg1 = lua_tostring(L, 1);
342 const char * arg2 = lua_tostring(L, 2);
343 int arg3 = lua_tointeger(L, 3);
344 QString ret = QToolBar::tr(arg1, arg2, arg3);
345 lua_pushlstring(L, ret.toAscii().data(), ret.toAscii().size());
346 return 1;
348 int LuaBinder< QToolBar >::__LuaWrapCall__tr (lua_State *L) {
349 int score[3];
350 const int premium = 11+lua_gettop(L);
351 score[1] = 0;
352 if ((lua_type(L, 1)==LUA_TSTRING)) {
353 score[1] += premium;
354 } else if (false) {
355 score[1] += premium-1; // table: 0x12cfea0;
356 } else {
357 score[1] -= premium*premium;
359 if ((lua_type(L, 2)==LUA_TSTRING)) {
360 score[1] += premium;
361 } else if (true) {
362 score[1] += premium-1; // table: 0x12cfc00;
363 } else {
364 score[1] -= premium*premium;
366 score[2] = 0;
367 if ((lua_type(L, 1)==LUA_TSTRING)) {
368 score[2] += premium;
369 } else if (false) {
370 score[2] += premium-1; // table: 0x12d18e0;
371 } else {
372 score[2] -= premium*premium;
374 if ((lua_type(L, 2)==LUA_TSTRING)) {
375 score[2] += premium;
376 } else if (false) {
377 score[2] += premium-1; // table: 0x12d1dd0;
378 } else {
379 score[2] -= premium*premium;
381 if (lua_isnumber(L, 3)) {
382 score[2] += premium;
383 } else if (false) {
384 score[2] += premium-1; // table: 0x12d2180;
385 } else {
386 score[2] -= premium*premium;
388 int best = 1;
389 for (int i=1;i<=2;i++) {
390 if (score[best] < score[i]) { best = i; }
392 switch (best) {
393 case 1: return __LuaWrapCall__tr__OverloadedVersion__1(L); break;
394 case 2: return __LuaWrapCall__tr__OverloadedVersion__2(L); break;
396 lua_pushstring(L, "no overload of function __LuaWrapCall__tr matching arguments");
397 lua_error(L);
398 return 0;
400 int LuaBinder< QToolBar >::__LuaWrapCall__setAllowedAreas (lua_State *L) {
401 QToolBar *& __lua__obj = *static_cast<QToolBar**>(lqtL_checkudata(L, 1, "QToolBar*"));
402 if (__lua__obj==0) {
403 lua_pushstring(L, "trying to reference deleted pointer");
404 lua_error(L);
405 return 0;
407 QFlags<Qt::ToolBarArea> arg1 = **static_cast<QFlags<Qt::ToolBarArea>**>(lqtL_checkudata(L, 2, "QFlags<Qt::ToolBarArea>*"));
408 __lua__obj->QToolBar::setAllowedAreas(arg1);
409 return 0;
411 int LuaBinder< QToolBar >::__LuaWrapCall__setMovable (lua_State *L) {
412 QToolBar *& __lua__obj = *static_cast<QToolBar**>(lqtL_checkudata(L, 1, "QToolBar*"));
413 if (__lua__obj==0) {
414 lua_pushstring(L, "trying to reference deleted pointer");
415 lua_error(L);
416 return 0;
418 bool arg1 = (bool)lua_toboolean(L, 2);
419 __lua__obj->QToolBar::setMovable(arg1);
420 return 0;
422 int LuaBinder< QToolBar >::__LuaWrapCall__allowedAreas (lua_State *L) {
423 QToolBar *& __lua__obj = *static_cast<QToolBar**>(lqtL_checkudata(L, 1, "QToolBar*"));
424 if (__lua__obj==0) {
425 lua_pushstring(L, "trying to reference deleted pointer");
426 lua_error(L);
427 return 0;
429 QFlags<Qt::ToolBarArea> ret = __lua__obj->QToolBar::allowedAreas();
430 lqtL_passudata(L, new QFlags<Qt::ToolBarArea>(ret), "QFlags<Qt::ToolBarArea>*");
431 return 1;
433 int LuaBinder< QToolBar >::__LuaWrapCall__isFloatable (lua_State *L) {
434 QToolBar *& __lua__obj = *static_cast<QToolBar**>(lqtL_checkudata(L, 1, "QToolBar*"));
435 if (__lua__obj==0) {
436 lua_pushstring(L, "trying to reference deleted pointer");
437 lua_error(L);
438 return 0;
440 bool ret = __lua__obj->QToolBar::isFloatable();
441 lua_pushboolean(L, ret);
442 return 1;
444 int LuaBinder< QToolBar >::__LuaWrapCall__toolButtonStyle (lua_State *L) {
445 QToolBar *& __lua__obj = *static_cast<QToolBar**>(lqtL_checkudata(L, 1, "QToolBar*"));
446 if (__lua__obj==0) {
447 lua_pushstring(L, "trying to reference deleted pointer");
448 lua_error(L);
449 return 0;
451 Qt::ToolButtonStyle ret = __lua__obj->QToolBar::toolButtonStyle();
452 lqtL_pushenum(L, ret, "Qt::ToolButtonStyle");
453 return 1;
455 int LuaBinder< QToolBar >::__LuaWrapCall__addAction__OverloadedVersion__1 (lua_State *L) {
456 QToolBar *& __lua__obj = *static_cast<QToolBar**>(lqtL_checkudata(L, 1, "QToolBar*"));
457 if (__lua__obj==0) {
458 lua_pushstring(L, "trying to reference deleted pointer");
459 lua_error(L);
460 return 0;
462 const QString& arg1 = QString::fromAscii(lua_tostring(L, 2), lua_objlen(L, 2));
463 QAction * ret = __lua__obj->QToolBar::addAction(arg1);
464 lqtL_pushudata(L, ret, "QAction*");
465 return 1;
467 int LuaBinder< QToolBar >::__LuaWrapCall__addAction__OverloadedVersion__2 (lua_State *L) {
468 QToolBar *& __lua__obj = *static_cast<QToolBar**>(lqtL_checkudata(L, 1, "QToolBar*"));
469 if (__lua__obj==0) {
470 lua_pushstring(L, "trying to reference deleted pointer");
471 lua_error(L);
472 return 0;
474 const QIcon& arg1 = **static_cast<QIcon**>(lqtL_checkudata(L, 2, "QIcon*"));
475 const QString& arg2 = QString::fromAscii(lua_tostring(L, 3), lua_objlen(L, 3));
476 QAction * ret = __lua__obj->QToolBar::addAction(arg1, arg2);
477 lqtL_pushudata(L, ret, "QAction*");
478 return 1;
480 int LuaBinder< QToolBar >::__LuaWrapCall__addAction__OverloadedVersion__3 (lua_State *L) {
481 QToolBar *& __lua__obj = *static_cast<QToolBar**>(lqtL_checkudata(L, 1, "QToolBar*"));
482 if (__lua__obj==0) {
483 lua_pushstring(L, "trying to reference deleted pointer");
484 lua_error(L);
485 return 0;
487 const QString& arg1 = QString::fromAscii(lua_tostring(L, 2), lua_objlen(L, 2));
488 const QObject * arg2 = *static_cast<QObject**>(lqtL_checkudata(L, 3, "QObject*"));
489 const char * arg3 = lua_tostring(L, 4);
490 QAction * ret = __lua__obj->QToolBar::addAction(arg1, arg2, arg3);
491 lqtL_pushudata(L, ret, "QAction*");
492 return 1;
494 int LuaBinder< QToolBar >::__LuaWrapCall__addAction__OverloadedVersion__4 (lua_State *L) {
495 QToolBar *& __lua__obj = *static_cast<QToolBar**>(lqtL_checkudata(L, 1, "QToolBar*"));
496 if (__lua__obj==0) {
497 lua_pushstring(L, "trying to reference deleted pointer");
498 lua_error(L);
499 return 0;
501 const QIcon& arg1 = **static_cast<QIcon**>(lqtL_checkudata(L, 2, "QIcon*"));
502 const QString& arg2 = QString::fromAscii(lua_tostring(L, 3), lua_objlen(L, 3));
503 const QObject * arg3 = *static_cast<QObject**>(lqtL_checkudata(L, 4, "QObject*"));
504 const char * arg4 = lua_tostring(L, 5);
505 QAction * ret = __lua__obj->QToolBar::addAction(arg1, arg2, arg3, arg4);
506 lqtL_pushudata(L, ret, "QAction*");
507 return 1;
509 int LuaBinder< QToolBar >::__LuaWrapCall__addAction (lua_State *L) {
510 int score[5];
511 const int premium = 11+lua_gettop(L);
512 score[1] = 0;
513 score[1] += lqtL_testudata(L, 1, "QToolBar*")?premium:-premium*premium;
514 if ((lua_type(L, 2)==LUA_TSTRING)) {
515 score[1] += premium;
516 } else if (false) {
517 score[1] += premium-1; // table: 0x12db440;
518 } else {
519 score[1] -= premium*premium;
521 score[2] = 0;
522 score[2] += lqtL_testudata(L, 1, "QToolBar*")?premium:-premium*premium;
523 if (lqtL_testudata(L, 2, "QIcon*")) {
524 score[2] += premium;
525 } else if (false) {
526 score[2] += premium-1; // table: 0x12dbe70;
527 } else {
528 score[2] -= premium*premium;
530 if ((lua_type(L, 3)==LUA_TSTRING)) {
531 score[2] += premium;
532 } else if (false) {
533 score[2] += premium-1; // table: 0x12db960;
534 } else {
535 score[2] -= premium*premium;
537 score[3] = 0;
538 score[3] += lqtL_testudata(L, 1, "QToolBar*")?premium:-premium*premium;
539 if ((lua_type(L, 2)==LUA_TSTRING)) {
540 score[3] += premium;
541 } else if (false) {
542 score[3] += premium-1; // table: 0x12dccb0;
543 } else {
544 score[3] -= premium*premium;
546 if (lqtL_testudata(L, 3, "QObject*")) {
547 score[3] += premium;
548 } else if (false) {
549 score[3] += premium-1; // table: 0x12dc740;
550 } else {
551 score[3] -= premium*premium;
553 if ((lua_type(L, 4)==LUA_TSTRING)) {
554 score[3] += premium;
555 } else if (false) {
556 score[3] += premium-1; // table: 0x12dd160;
557 } else {
558 score[3] -= premium*premium;
560 score[4] = 0;
561 score[4] += lqtL_testudata(L, 1, "QToolBar*")?premium:-premium*premium;
562 if (lqtL_testudata(L, 2, "QIcon*")) {
563 score[4] += premium;
564 } else if (false) {
565 score[4] += premium-1; // table: 0x12ddf00;
566 } else {
567 score[4] -= premium*premium;
569 if ((lua_type(L, 3)==LUA_TSTRING)) {
570 score[4] += premium;
571 } else if (false) {
572 score[4] += premium-1; // table: 0x12dd520;
573 } else {
574 score[4] -= premium*premium;
576 if (lqtL_testudata(L, 4, "QObject*")) {
577 score[4] += premium;
578 } else if (false) {
579 score[4] += premium-1; // table: 0x12de3b0;
580 } else {
581 score[4] -= premium*premium;
583 if ((lua_type(L, 5)==LUA_TSTRING)) {
584 score[4] += premium;
585 } else if (false) {
586 score[4] += premium-1; // table: 0x12dec10;
587 } else {
588 score[4] -= premium*premium;
590 int best = 1;
591 for (int i=1;i<=4;i++) {
592 if (score[best] < score[i]) { best = i; }
594 switch (best) {
595 case 1: return __LuaWrapCall__addAction__OverloadedVersion__1(L); break;
596 case 2: return __LuaWrapCall__addAction__OverloadedVersion__2(L); break;
597 case 3: return __LuaWrapCall__addAction__OverloadedVersion__3(L); break;
598 case 4: return __LuaWrapCall__addAction__OverloadedVersion__4(L); break;
600 lua_pushstring(L, "no overload of function __LuaWrapCall__addAction matching arguments");
601 lua_error(L);
602 return 0;
604 int LuaBinder< QToolBar >::__LuaWrapCall__iconSize (lua_State *L) {
605 QToolBar *& __lua__obj = *static_cast<QToolBar**>(lqtL_checkudata(L, 1, "QToolBar*"));
606 if (__lua__obj==0) {
607 lua_pushstring(L, "trying to reference deleted pointer");
608 lua_error(L);
609 return 0;
611 QSize ret = __lua__obj->QToolBar::iconSize();
612 lqtL_passudata(L, new QSize(ret), "QSize*");
613 return 1;
615 int LuaBinder< QToolBar >::__LuaWrapCall__addWidget (lua_State *L) {
616 QToolBar *& __lua__obj = *static_cast<QToolBar**>(lqtL_checkudata(L, 1, "QToolBar*"));
617 if (__lua__obj==0) {
618 lua_pushstring(L, "trying to reference deleted pointer");
619 lua_error(L);
620 return 0;
622 QWidget * arg1 = *static_cast<QWidget**>(lqtL_checkudata(L, 2, "QWidget*"));
623 QAction * ret = __lua__obj->QToolBar::addWidget(arg1);
624 lqtL_pushudata(L, ret, "QAction*");
625 return 1;
627 int LuaBinder< QToolBar >::__LuaWrapCall__orientation (lua_State *L) {
628 QToolBar *& __lua__obj = *static_cast<QToolBar**>(lqtL_checkudata(L, 1, "QToolBar*"));
629 if (__lua__obj==0) {
630 lua_pushstring(L, "trying to reference deleted pointer");
631 lua_error(L);
632 return 0;
634 Qt::Orientation ret = __lua__obj->QToolBar::orientation();
635 lqtL_pushenum(L, ret, "Qt::Orientation");
636 return 1;
638 int LuaBinder< QToolBar >::__LuaWrapCall__toggleViewAction (lua_State *L) {
639 QToolBar *& __lua__obj = *static_cast<QToolBar**>(lqtL_checkudata(L, 1, "QToolBar*"));
640 if (__lua__obj==0) {
641 lua_pushstring(L, "trying to reference deleted pointer");
642 lua_error(L);
643 return 0;
645 QAction * ret = __lua__obj->QToolBar::toggleViewAction();
646 lqtL_pushudata(L, ret, "QAction*");
647 return 1;
649 int LuaBinder< QToolBar >::__LuaWrapCall__actionGeometry (lua_State *L) {
650 QToolBar *& __lua__obj = *static_cast<QToolBar**>(lqtL_checkudata(L, 1, "QToolBar*"));
651 if (__lua__obj==0) {
652 lua_pushstring(L, "trying to reference deleted pointer");
653 lua_error(L);
654 return 0;
656 QAction * arg1 = *static_cast<QAction**>(lqtL_checkudata(L, 2, "QAction*"));
657 QRect ret = __lua__obj->QToolBar::actionGeometry(arg1);
658 lqtL_passudata(L, new QRect(ret), "QRect*");
659 return 1;
661 int LuaBinder< QToolBar >::__LuaWrapCall__setFloatable (lua_State *L) {
662 QToolBar *& __lua__obj = *static_cast<QToolBar**>(lqtL_checkudata(L, 1, "QToolBar*"));
663 if (__lua__obj==0) {
664 lua_pushstring(L, "trying to reference deleted pointer");
665 lua_error(L);
666 return 0;
668 bool arg1 = (bool)lua_toboolean(L, 2);
669 __lua__obj->QToolBar::setFloatable(arg1);
670 return 0;
672 void LuaBinder< QToolBar >::styleChange (QStyle& arg1) {
673 bool absorbed = false;
674 int oldtop = lua_gettop(L);
675 lqtL_pushudata(L, this, "QToolBar*");
676 if (lua_getmetatable(L, -1)) {
677 lua_getfield(L, -1, "styleChange");
678 lua_remove(L, -2);
679 } else {
680 lua_pushnil(L);
682 lua_insert(L, -2);
683 lqtL_pushudata(L, &(arg1), "QStyle*");
684 if (lua_isfunction(L, -1-2)) {
685 lua_pcall(L, 1+1, 2, 0);
686 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
687 lua_pop(L, 1);
689 if (!absorbed) {
690 lua_settop(L, oldtop);
691 this->QWidget::styleChange(arg1);
693 lua_settop(L, oldtop);
695 void LuaBinder< QToolBar >::focusInEvent (QFocusEvent * arg1) {
696 bool absorbed = false;
697 int oldtop = lua_gettop(L);
698 lqtL_pushudata(L, this, "QToolBar*");
699 if (lua_getmetatable(L, -1)) {
700 lua_getfield(L, -1, "focusInEvent");
701 lua_remove(L, -2);
702 } else {
703 lua_pushnil(L);
705 lua_insert(L, -2);
706 lqtL_pushudata(L, arg1, "QFocusEvent*");
707 if (lua_isfunction(L, -1-2)) {
708 lua_pcall(L, 1+1, 2, 0);
709 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
710 lua_pop(L, 1);
712 if (!absorbed) {
713 lua_settop(L, oldtop);
714 this->QWidget::focusInEvent(arg1);
716 lua_settop(L, oldtop);
718 void LuaBinder< QToolBar >::keyPressEvent (QKeyEvent * arg1) {
719 bool absorbed = false;
720 int oldtop = lua_gettop(L);
721 lqtL_pushudata(L, this, "QToolBar*");
722 if (lua_getmetatable(L, -1)) {
723 lua_getfield(L, -1, "keyPressEvent");
724 lua_remove(L, -2);
725 } else {
726 lua_pushnil(L);
728 lua_insert(L, -2);
729 lqtL_pushudata(L, arg1, "QKeyEvent*");
730 if (lua_isfunction(L, -1-2)) {
731 lua_pcall(L, 1+1, 2, 0);
732 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
733 lua_pop(L, 1);
735 if (!absorbed) {
736 lua_settop(L, oldtop);
737 this->QWidget::keyPressEvent(arg1);
739 lua_settop(L, oldtop);
741 const QMetaObject * LuaBinder< QToolBar >::metaObject () const {
742 bool absorbed = false;
743 int oldtop = lua_gettop(L);
744 lqtL_pushudata(L, this, "QToolBar*");
745 if (lua_getmetatable(L, -1)) {
746 lua_getfield(L, -1, "metaObject");
747 lua_remove(L, -2);
748 } else {
749 lua_pushnil(L);
751 lua_insert(L, -2);
752 if (lua_isfunction(L, -0-2)) {
753 lua_pcall(L, 0+1, 2, 0);
754 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
755 lua_pop(L, 1);
757 if (!absorbed) {
758 lua_settop(L, oldtop);
759 return this->QToolBar::metaObject();
761 const QMetaObject * ret = *static_cast<QMetaObject**>(lqtL_checkudata(L, -1, "QMetaObject*"));
762 lua_settop(L, oldtop);
763 return ret;
765 int LuaBinder< QToolBar >::devType () const {
766 bool absorbed = false;
767 int oldtop = lua_gettop(L);
768 lqtL_pushudata(L, this, "QToolBar*");
769 if (lua_getmetatable(L, -1)) {
770 lua_getfield(L, -1, "devType");
771 lua_remove(L, -2);
772 } else {
773 lua_pushnil(L);
775 lua_insert(L, -2);
776 if (lua_isfunction(L, -0-2)) {
777 lua_pcall(L, 0+1, 2, 0);
778 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
779 lua_pop(L, 1);
781 if (!absorbed) {
782 lua_settop(L, oldtop);
783 return this->QWidget::devType();
785 int ret = lua_tointeger(L, -1);
786 lua_settop(L, oldtop);
787 return ret;
789 void LuaBinder< QToolBar >::setVisible (bool arg1) {
790 bool absorbed = false;
791 int oldtop = lua_gettop(L);
792 lqtL_pushudata(L, this, "QToolBar*");
793 if (lua_getmetatable(L, -1)) {
794 lua_getfield(L, -1, "setVisible");
795 lua_remove(L, -2);
796 } else {
797 lua_pushnil(L);
799 lua_insert(L, -2);
800 lua_pushboolean(L, arg1);
801 if (lua_isfunction(L, -1-2)) {
802 lua_pcall(L, 1+1, 2, 0);
803 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
804 lua_pop(L, 1);
806 if (!absorbed) {
807 lua_settop(L, oldtop);
808 this->QWidget::setVisible(arg1);
810 lua_settop(L, oldtop);
812 QVariant LuaBinder< QToolBar >::inputMethodQuery (Qt::InputMethodQuery arg1) const {
813 bool absorbed = false;
814 int oldtop = lua_gettop(L);
815 lqtL_pushudata(L, this, "QToolBar*");
816 if (lua_getmetatable(L, -1)) {
817 lua_getfield(L, -1, "inputMethodQuery");
818 lua_remove(L, -2);
819 } else {
820 lua_pushnil(L);
822 lua_insert(L, -2);
823 lqtL_pushenum(L, arg1, "Qt::InputMethodQuery");
824 if (lua_isfunction(L, -1-2)) {
825 lua_pcall(L, 1+1, 2, 0);
826 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
827 lua_pop(L, 1);
829 if (!absorbed) {
830 lua_settop(L, oldtop);
831 return this->QWidget::inputMethodQuery(arg1);
833 QVariant ret = **static_cast<QVariant**>(lqtL_checkudata(L, -1, "QVariant*"));
834 lua_settop(L, oldtop);
835 return ret;
837 QPaintEngine * LuaBinder< QToolBar >::paintEngine () const {
838 bool absorbed = false;
839 int oldtop = lua_gettop(L);
840 lqtL_pushudata(L, this, "QToolBar*");
841 if (lua_getmetatable(L, -1)) {
842 lua_getfield(L, -1, "paintEngine");
843 lua_remove(L, -2);
844 } else {
845 lua_pushnil(L);
847 lua_insert(L, -2);
848 if (lua_isfunction(L, -0-2)) {
849 lua_pcall(L, 0+1, 2, 0);
850 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
851 lua_pop(L, 1);
853 if (!absorbed) {
854 lua_settop(L, oldtop);
855 return this->QWidget::paintEngine();
857 QPaintEngine * ret = *static_cast<QPaintEngine**>(lqtL_checkudata(L, -1, "QPaintEngine*"));
858 lua_settop(L, oldtop);
859 return ret;
861 void LuaBinder< QToolBar >::dragLeaveEvent (QDragLeaveEvent * arg1) {
862 bool absorbed = false;
863 int oldtop = lua_gettop(L);
864 lqtL_pushudata(L, this, "QToolBar*");
865 if (lua_getmetatable(L, -1)) {
866 lua_getfield(L, -1, "dragLeaveEvent");
867 lua_remove(L, -2);
868 } else {
869 lua_pushnil(L);
871 lua_insert(L, -2);
872 lqtL_pushudata(L, arg1, "QDragLeaveEvent*");
873 if (lua_isfunction(L, -1-2)) {
874 lua_pcall(L, 1+1, 2, 0);
875 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
876 lua_pop(L, 1);
878 if (!absorbed) {
879 lua_settop(L, oldtop);
880 this->QWidget::dragLeaveEvent(arg1);
882 lua_settop(L, oldtop);
884 void LuaBinder< QToolBar >::mousePressEvent (QMouseEvent * arg1) {
885 bool absorbed = false;
886 int oldtop = lua_gettop(L);
887 lqtL_pushudata(L, this, "QToolBar*");
888 if (lua_getmetatable(L, -1)) {
889 lua_getfield(L, -1, "mousePressEvent");
890 lua_remove(L, -2);
891 } else {
892 lua_pushnil(L);
894 lua_insert(L, -2);
895 lqtL_pushudata(L, arg1, "QMouseEvent*");
896 if (lua_isfunction(L, -1-2)) {
897 lua_pcall(L, 1+1, 2, 0);
898 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
899 lua_pop(L, 1);
901 if (!absorbed) {
902 lua_settop(L, oldtop);
903 this->QWidget::mousePressEvent(arg1);
905 lua_settop(L, oldtop);
907 QSize LuaBinder< QToolBar >::sizeHint () const {
908 bool absorbed = false;
909 int oldtop = lua_gettop(L);
910 lqtL_pushudata(L, this, "QToolBar*");
911 if (lua_getmetatable(L, -1)) {
912 lua_getfield(L, -1, "sizeHint");
913 lua_remove(L, -2);
914 } else {
915 lua_pushnil(L);
917 lua_insert(L, -2);
918 if (lua_isfunction(L, -0-2)) {
919 lua_pcall(L, 0+1, 2, 0);
920 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
921 lua_pop(L, 1);
923 if (!absorbed) {
924 lua_settop(L, oldtop);
925 return this->QWidget::sizeHint();
927 QSize ret = **static_cast<QSize**>(lqtL_checkudata(L, -1, "QSize*"));
928 lua_settop(L, oldtop);
929 return ret;
931 void LuaBinder< QToolBar >::moveEvent (QMoveEvent * arg1) {
932 bool absorbed = false;
933 int oldtop = lua_gettop(L);
934 lqtL_pushudata(L, this, "QToolBar*");
935 if (lua_getmetatable(L, -1)) {
936 lua_getfield(L, -1, "moveEvent");
937 lua_remove(L, -2);
938 } else {
939 lua_pushnil(L);
941 lua_insert(L, -2);
942 lqtL_pushudata(L, arg1, "QMoveEvent*");
943 if (lua_isfunction(L, -1-2)) {
944 lua_pcall(L, 1+1, 2, 0);
945 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
946 lua_pop(L, 1);
948 if (!absorbed) {
949 lua_settop(L, oldtop);
950 this->QWidget::moveEvent(arg1);
952 lua_settop(L, oldtop);
954 void LuaBinder< QToolBar >::tabletEvent (QTabletEvent * arg1) {
955 bool absorbed = false;
956 int oldtop = lua_gettop(L);
957 lqtL_pushudata(L, this, "QToolBar*");
958 if (lua_getmetatable(L, -1)) {
959 lua_getfield(L, -1, "tabletEvent");
960 lua_remove(L, -2);
961 } else {
962 lua_pushnil(L);
964 lua_insert(L, -2);
965 lqtL_pushudata(L, arg1, "QTabletEvent*");
966 if (lua_isfunction(L, -1-2)) {
967 lua_pcall(L, 1+1, 2, 0);
968 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
969 lua_pop(L, 1);
971 if (!absorbed) {
972 lua_settop(L, oldtop);
973 this->QWidget::tabletEvent(arg1);
975 lua_settop(L, oldtop);
977 void LuaBinder< QToolBar >::enterEvent (QEvent * arg1) {
978 bool absorbed = false;
979 int oldtop = lua_gettop(L);
980 lqtL_pushudata(L, this, "QToolBar*");
981 if (lua_getmetatable(L, -1)) {
982 lua_getfield(L, -1, "enterEvent");
983 lua_remove(L, -2);
984 } else {
985 lua_pushnil(L);
987 lua_insert(L, -2);
988 lqtL_pushudata(L, arg1, "QEvent*");
989 if (lua_isfunction(L, -1-2)) {
990 lua_pcall(L, 1+1, 2, 0);
991 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
992 lua_pop(L, 1);
994 if (!absorbed) {
995 lua_settop(L, oldtop);
996 this->QWidget::enterEvent(arg1);
998 lua_settop(L, oldtop);
1000 void LuaBinder< QToolBar >::closeEvent (QCloseEvent * arg1) {
1001 bool absorbed = false;
1002 int oldtop = lua_gettop(L);
1003 lqtL_pushudata(L, this, "QToolBar*");
1004 if (lua_getmetatable(L, -1)) {
1005 lua_getfield(L, -1, "closeEvent");
1006 lua_remove(L, -2);
1007 } else {
1008 lua_pushnil(L);
1010 lua_insert(L, -2);
1011 lqtL_pushudata(L, arg1, "QCloseEvent*");
1012 if (lua_isfunction(L, -1-2)) {
1013 lua_pcall(L, 1+1, 2, 0);
1014 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
1015 lua_pop(L, 1);
1017 if (!absorbed) {
1018 lua_settop(L, oldtop);
1019 this->QWidget::closeEvent(arg1);
1021 lua_settop(L, oldtop);
1023 QSize LuaBinder< QToolBar >::minimumSizeHint () const {
1024 bool absorbed = false;
1025 int oldtop = lua_gettop(L);
1026 lqtL_pushudata(L, this, "QToolBar*");
1027 if (lua_getmetatable(L, -1)) {
1028 lua_getfield(L, -1, "minimumSizeHint");
1029 lua_remove(L, -2);
1030 } else {
1031 lua_pushnil(L);
1033 lua_insert(L, -2);
1034 if (lua_isfunction(L, -0-2)) {
1035 lua_pcall(L, 0+1, 2, 0);
1036 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
1037 lua_pop(L, 1);
1039 if (!absorbed) {
1040 lua_settop(L, oldtop);
1041 return this->QWidget::minimumSizeHint();
1043 QSize ret = **static_cast<QSize**>(lqtL_checkudata(L, -1, "QSize*"));
1044 lua_settop(L, oldtop);
1045 return ret;
1047 void LuaBinder< QToolBar >::actionEvent (QActionEvent * arg1) {
1048 bool absorbed = false;
1049 int oldtop = lua_gettop(L);
1050 lqtL_pushudata(L, this, "QToolBar*");
1051 if (lua_getmetatable(L, -1)) {
1052 lua_getfield(L, -1, "actionEvent");
1053 lua_remove(L, -2);
1054 } else {
1055 lua_pushnil(L);
1057 lua_insert(L, -2);
1058 lqtL_pushudata(L, arg1, "QActionEvent*");
1059 if (lua_isfunction(L, -1-2)) {
1060 lua_pcall(L, 1+1, 2, 0);
1061 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
1062 lua_pop(L, 1);
1064 if (!absorbed) {
1065 lua_settop(L, oldtop);
1066 this->QToolBar::actionEvent(arg1);
1068 lua_settop(L, oldtop);
1070 void LuaBinder< QToolBar >::dragEnterEvent (QDragEnterEvent * arg1) {
1071 bool absorbed = false;
1072 int oldtop = lua_gettop(L);
1073 lqtL_pushudata(L, this, "QToolBar*");
1074 if (lua_getmetatable(L, -1)) {
1075 lua_getfield(L, -1, "dragEnterEvent");
1076 lua_remove(L, -2);
1077 } else {
1078 lua_pushnil(L);
1080 lua_insert(L, -2);
1081 lqtL_pushudata(L, arg1, "QDragEnterEvent*");
1082 if (lua_isfunction(L, -1-2)) {
1083 lua_pcall(L, 1+1, 2, 0);
1084 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
1085 lua_pop(L, 1);
1087 if (!absorbed) {
1088 lua_settop(L, oldtop);
1089 this->QWidget::dragEnterEvent(arg1);
1091 lua_settop(L, oldtop);
1093 void LuaBinder< QToolBar >::showEvent (QShowEvent * arg1) {
1094 bool absorbed = false;
1095 int oldtop = lua_gettop(L);
1096 lqtL_pushudata(L, this, "QToolBar*");
1097 if (lua_getmetatable(L, -1)) {
1098 lua_getfield(L, -1, "showEvent");
1099 lua_remove(L, -2);
1100 } else {
1101 lua_pushnil(L);
1103 lua_insert(L, -2);
1104 lqtL_pushudata(L, arg1, "QShowEvent*");
1105 if (lua_isfunction(L, -1-2)) {
1106 lua_pcall(L, 1+1, 2, 0);
1107 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
1108 lua_pop(L, 1);
1110 if (!absorbed) {
1111 lua_settop(L, oldtop);
1112 this->QWidget::showEvent(arg1);
1114 lua_settop(L, oldtop);
1116 void LuaBinder< QToolBar >::dragMoveEvent (QDragMoveEvent * arg1) {
1117 bool absorbed = false;
1118 int oldtop = lua_gettop(L);
1119 lqtL_pushudata(L, this, "QToolBar*");
1120 if (lua_getmetatable(L, -1)) {
1121 lua_getfield(L, -1, "dragMoveEvent");
1122 lua_remove(L, -2);
1123 } else {
1124 lua_pushnil(L);
1126 lua_insert(L, -2);
1127 lqtL_pushudata(L, arg1, "QDragMoveEvent*");
1128 if (lua_isfunction(L, -1-2)) {
1129 lua_pcall(L, 1+1, 2, 0);
1130 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
1131 lua_pop(L, 1);
1133 if (!absorbed) {
1134 lua_settop(L, oldtop);
1135 this->QWidget::dragMoveEvent(arg1);
1137 lua_settop(L, oldtop);
1139 void LuaBinder< QToolBar >::paintEvent (QPaintEvent * arg1) {
1140 bool absorbed = false;
1141 int oldtop = lua_gettop(L);
1142 lqtL_pushudata(L, this, "QToolBar*");
1143 if (lua_getmetatable(L, -1)) {
1144 lua_getfield(L, -1, "paintEvent");
1145 lua_remove(L, -2);
1146 } else {
1147 lua_pushnil(L);
1149 lua_insert(L, -2);
1150 lqtL_pushudata(L, arg1, "QPaintEvent*");
1151 if (lua_isfunction(L, -1-2)) {
1152 lua_pcall(L, 1+1, 2, 0);
1153 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
1154 lua_pop(L, 1);
1156 if (!absorbed) {
1157 lua_settop(L, oldtop);
1158 this->QToolBar::paintEvent(arg1);
1160 lua_settop(L, oldtop);
1162 void LuaBinder< QToolBar >::windowActivationChange (bool arg1) {
1163 bool absorbed = false;
1164 int oldtop = lua_gettop(L);
1165 lqtL_pushudata(L, this, "QToolBar*");
1166 if (lua_getmetatable(L, -1)) {
1167 lua_getfield(L, -1, "windowActivationChange");
1168 lua_remove(L, -2);
1169 } else {
1170 lua_pushnil(L);
1172 lua_insert(L, -2);
1173 lua_pushboolean(L, arg1);
1174 if (lua_isfunction(L, -1-2)) {
1175 lua_pcall(L, 1+1, 2, 0);
1176 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
1177 lua_pop(L, 1);
1179 if (!absorbed) {
1180 lua_settop(L, oldtop);
1181 this->QWidget::windowActivationChange(arg1);
1183 lua_settop(L, oldtop);
1185 void LuaBinder< QToolBar >::fontChange (const QFont& arg1) {
1186 bool absorbed = false;
1187 int oldtop = lua_gettop(L);
1188 lqtL_pushudata(L, this, "QToolBar*");
1189 if (lua_getmetatable(L, -1)) {
1190 lua_getfield(L, -1, "fontChange");
1191 lua_remove(L, -2);
1192 } else {
1193 lua_pushnil(L);
1195 lua_insert(L, -2);
1196 lqtL_pushudata(L, &(arg1), "QFont*");
1197 if (lua_isfunction(L, -1-2)) {
1198 lua_pcall(L, 1+1, 2, 0);
1199 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
1200 lua_pop(L, 1);
1202 if (!absorbed) {
1203 lua_settop(L, oldtop);
1204 this->QWidget::fontChange(arg1);
1206 lua_settop(L, oldtop);
1208 void LuaBinder< QToolBar >::enabledChange (bool arg1) {
1209 bool absorbed = false;
1210 int oldtop = lua_gettop(L);
1211 lqtL_pushudata(L, this, "QToolBar*");
1212 if (lua_getmetatable(L, -1)) {
1213 lua_getfield(L, -1, "enabledChange");
1214 lua_remove(L, -2);
1215 } else {
1216 lua_pushnil(L);
1218 lua_insert(L, -2);
1219 lua_pushboolean(L, arg1);
1220 if (lua_isfunction(L, -1-2)) {
1221 lua_pcall(L, 1+1, 2, 0);
1222 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
1223 lua_pop(L, 1);
1225 if (!absorbed) {
1226 lua_settop(L, oldtop);
1227 this->QWidget::enabledChange(arg1);
1229 lua_settop(L, oldtop);
1231 void LuaBinder< QToolBar >::disconnectNotify (const char * arg1) {
1232 bool absorbed = false;
1233 int oldtop = lua_gettop(L);
1234 lqtL_pushudata(L, this, "QToolBar*");
1235 if (lua_getmetatable(L, -1)) {
1236 lua_getfield(L, -1, "disconnectNotify");
1237 lua_remove(L, -2);
1238 } else {
1239 lua_pushnil(L);
1241 lua_insert(L, -2);
1242 lua_pushstring(L, arg1);
1243 if (lua_isfunction(L, -1-2)) {
1244 lua_pcall(L, 1+1, 2, 0);
1245 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
1246 lua_pop(L, 1);
1248 if (!absorbed) {
1249 lua_settop(L, oldtop);
1250 this->QObject::disconnectNotify(arg1);
1252 lua_settop(L, oldtop);
1254 int LuaBinder< QToolBar >::heightForWidth (int arg1) const {
1255 bool absorbed = false;
1256 int oldtop = lua_gettop(L);
1257 lqtL_pushudata(L, this, "QToolBar*");
1258 if (lua_getmetatable(L, -1)) {
1259 lua_getfield(L, -1, "heightForWidth");
1260 lua_remove(L, -2);
1261 } else {
1262 lua_pushnil(L);
1264 lua_insert(L, -2);
1265 lua_pushinteger(L, arg1);
1266 if (lua_isfunction(L, -1-2)) {
1267 lua_pcall(L, 1+1, 2, 0);
1268 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
1269 lua_pop(L, 1);
1271 if (!absorbed) {
1272 lua_settop(L, oldtop);
1273 return this->QWidget::heightForWidth(arg1);
1275 int ret = lua_tointeger(L, -1);
1276 lua_settop(L, oldtop);
1277 return ret;
1279 void LuaBinder< QToolBar >::mouseDoubleClickEvent (QMouseEvent * arg1) {
1280 bool absorbed = false;
1281 int oldtop = lua_gettop(L);
1282 lqtL_pushudata(L, this, "QToolBar*");
1283 if (lua_getmetatable(L, -1)) {
1284 lua_getfield(L, -1, "mouseDoubleClickEvent");
1285 lua_remove(L, -2);
1286 } else {
1287 lua_pushnil(L);
1289 lua_insert(L, -2);
1290 lqtL_pushudata(L, arg1, "QMouseEvent*");
1291 if (lua_isfunction(L, -1-2)) {
1292 lua_pcall(L, 1+1, 2, 0);
1293 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
1294 lua_pop(L, 1);
1296 if (!absorbed) {
1297 lua_settop(L, oldtop);
1298 this->QWidget::mouseDoubleClickEvent(arg1);
1300 lua_settop(L, oldtop);
1302 bool LuaBinder< QToolBar >::focusNextPrevChild (bool arg1) {
1303 bool absorbed = false;
1304 int oldtop = lua_gettop(L);
1305 lqtL_pushudata(L, this, "QToolBar*");
1306 if (lua_getmetatable(L, -1)) {
1307 lua_getfield(L, -1, "focusNextPrevChild");
1308 lua_remove(L, -2);
1309 } else {
1310 lua_pushnil(L);
1312 lua_insert(L, -2);
1313 lua_pushboolean(L, arg1);
1314 if (lua_isfunction(L, -1-2)) {
1315 lua_pcall(L, 1+1, 2, 0);
1316 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
1317 lua_pop(L, 1);
1319 if (!absorbed) {
1320 lua_settop(L, oldtop);
1321 return this->QWidget::focusNextPrevChild(arg1);
1323 bool ret = (bool)lua_toboolean(L, -1);
1324 lua_settop(L, oldtop);
1325 return ret;
1327 void LuaBinder< QToolBar >::timerEvent (QTimerEvent * arg1) {
1328 bool absorbed = false;
1329 int oldtop = lua_gettop(L);
1330 lqtL_pushudata(L, this, "QToolBar*");
1331 if (lua_getmetatable(L, -1)) {
1332 lua_getfield(L, -1, "timerEvent");
1333 lua_remove(L, -2);
1334 } else {
1335 lua_pushnil(L);
1337 lua_insert(L, -2);
1338 lqtL_pushudata(L, arg1, "QTimerEvent*");
1339 if (lua_isfunction(L, -1-2)) {
1340 lua_pcall(L, 1+1, 2, 0);
1341 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
1342 lua_pop(L, 1);
1344 if (!absorbed) {
1345 lua_settop(L, oldtop);
1346 this->QObject::timerEvent(arg1);
1348 lua_settop(L, oldtop);
1350 void LuaBinder< QToolBar >::mouseMoveEvent (QMouseEvent * arg1) {
1351 bool absorbed = false;
1352 int oldtop = lua_gettop(L);
1353 lqtL_pushudata(L, this, "QToolBar*");
1354 if (lua_getmetatable(L, -1)) {
1355 lua_getfield(L, -1, "mouseMoveEvent");
1356 lua_remove(L, -2);
1357 } else {
1358 lua_pushnil(L);
1360 lua_insert(L, -2);
1361 lqtL_pushudata(L, arg1, "QMouseEvent*");
1362 if (lua_isfunction(L, -1-2)) {
1363 lua_pcall(L, 1+1, 2, 0);
1364 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
1365 lua_pop(L, 1);
1367 if (!absorbed) {
1368 lua_settop(L, oldtop);
1369 this->QWidget::mouseMoveEvent(arg1);
1371 lua_settop(L, oldtop);
1373 void LuaBinder< QToolBar >::focusOutEvent (QFocusEvent * arg1) {
1374 bool absorbed = false;
1375 int oldtop = lua_gettop(L);
1376 lqtL_pushudata(L, this, "QToolBar*");
1377 if (lua_getmetatable(L, -1)) {
1378 lua_getfield(L, -1, "focusOutEvent");
1379 lua_remove(L, -2);
1380 } else {
1381 lua_pushnil(L);
1383 lua_insert(L, -2);
1384 lqtL_pushudata(L, arg1, "QFocusEvent*");
1385 if (lua_isfunction(L, -1-2)) {
1386 lua_pcall(L, 1+1, 2, 0);
1387 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
1388 lua_pop(L, 1);
1390 if (!absorbed) {
1391 lua_settop(L, oldtop);
1392 this->QWidget::focusOutEvent(arg1);
1394 lua_settop(L, oldtop);
1396 void LuaBinder< QToolBar >::childEvent (QChildEvent * arg1) {
1397 bool absorbed = false;
1398 int oldtop = lua_gettop(L);
1399 lqtL_pushudata(L, this, "QToolBar*");
1400 if (lua_getmetatable(L, -1)) {
1401 lua_getfield(L, -1, "childEvent");
1402 lua_remove(L, -2);
1403 } else {
1404 lua_pushnil(L);
1406 lua_insert(L, -2);
1407 lqtL_pushudata(L, arg1, "QChildEvent*");
1408 if (lua_isfunction(L, -1-2)) {
1409 lua_pcall(L, 1+1, 2, 0);
1410 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
1411 lua_pop(L, 1);
1413 if (!absorbed) {
1414 lua_settop(L, oldtop);
1415 this->QToolBar::childEvent(arg1);
1417 lua_settop(L, oldtop);
1419 void LuaBinder< QToolBar >::connectNotify (const char * arg1) {
1420 bool absorbed = false;
1421 int oldtop = lua_gettop(L);
1422 lqtL_pushudata(L, this, "QToolBar*");
1423 if (lua_getmetatable(L, -1)) {
1424 lua_getfield(L, -1, "connectNotify");
1425 lua_remove(L, -2);
1426 } else {
1427 lua_pushnil(L);
1429 lua_insert(L, -2);
1430 lua_pushstring(L, arg1);
1431 if (lua_isfunction(L, -1-2)) {
1432 lua_pcall(L, 1+1, 2, 0);
1433 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
1434 lua_pop(L, 1);
1436 if (!absorbed) {
1437 lua_settop(L, oldtop);
1438 this->QObject::connectNotify(arg1);
1440 lua_settop(L, oldtop);
1442 void LuaBinder< QToolBar >::mouseReleaseEvent (QMouseEvent * arg1) {
1443 bool absorbed = false;
1444 int oldtop = lua_gettop(L);
1445 lqtL_pushudata(L, this, "QToolBar*");
1446 if (lua_getmetatable(L, -1)) {
1447 lua_getfield(L, -1, "mouseReleaseEvent");
1448 lua_remove(L, -2);
1449 } else {
1450 lua_pushnil(L);
1452 lua_insert(L, -2);
1453 lqtL_pushudata(L, arg1, "QMouseEvent*");
1454 if (lua_isfunction(L, -1-2)) {
1455 lua_pcall(L, 1+1, 2, 0);
1456 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
1457 lua_pop(L, 1);
1459 if (!absorbed) {
1460 lua_settop(L, oldtop);
1461 this->QWidget::mouseReleaseEvent(arg1);
1463 lua_settop(L, oldtop);
1465 int LuaBinder< QToolBar >::metric (QPaintDevice::PaintDeviceMetric arg1) const {
1466 bool absorbed = false;
1467 int oldtop = lua_gettop(L);
1468 lqtL_pushudata(L, this, "QToolBar*");
1469 if (lua_getmetatable(L, -1)) {
1470 lua_getfield(L, -1, "metric");
1471 lua_remove(L, -2);
1472 } else {
1473 lua_pushnil(L);
1475 lua_insert(L, -2);
1476 lqtL_pushenum(L, arg1, "QPaintDevice::PaintDeviceMetric");
1477 if (lua_isfunction(L, -1-2)) {
1478 lua_pcall(L, 1+1, 2, 0);
1479 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
1480 lua_pop(L, 1);
1482 if (!absorbed) {
1483 lua_settop(L, oldtop);
1484 return this->QWidget::metric(arg1);
1486 int ret = lua_tointeger(L, -1);
1487 lua_settop(L, oldtop);
1488 return ret;
1490 bool LuaBinder< QToolBar >::eventFilter (QObject * arg1, QEvent * arg2) {
1491 bool absorbed = false;
1492 int oldtop = lua_gettop(L);
1493 lqtL_pushudata(L, this, "QToolBar*");
1494 if (lua_getmetatable(L, -1)) {
1495 lua_getfield(L, -1, "eventFilter");
1496 lua_remove(L, -2);
1497 } else {
1498 lua_pushnil(L);
1500 lua_insert(L, -2);
1501 lqtL_pushudata(L, arg1, "QObject*");
1502 lqtL_pushudata(L, arg2, "QEvent*");
1503 if (lua_isfunction(L, -2-2)) {
1504 lua_pcall(L, 2+1, 2, 0);
1505 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
1506 lua_pop(L, 1);
1508 if (!absorbed) {
1509 lua_settop(L, oldtop);
1510 return this->QObject::eventFilter(arg1, arg2);
1512 bool ret = (bool)lua_toboolean(L, -1);
1513 lua_settop(L, oldtop);
1514 return ret;
1516 void LuaBinder< QToolBar >::inputMethodEvent (QInputMethodEvent * arg1) {
1517 bool absorbed = false;
1518 int oldtop = lua_gettop(L);
1519 lqtL_pushudata(L, this, "QToolBar*");
1520 if (lua_getmetatable(L, -1)) {
1521 lua_getfield(L, -1, "inputMethodEvent");
1522 lua_remove(L, -2);
1523 } else {
1524 lua_pushnil(L);
1526 lua_insert(L, -2);
1527 lqtL_pushudata(L, arg1, "QInputMethodEvent*");
1528 if (lua_isfunction(L, -1-2)) {
1529 lua_pcall(L, 1+1, 2, 0);
1530 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
1531 lua_pop(L, 1);
1533 if (!absorbed) {
1534 lua_settop(L, oldtop);
1535 this->QWidget::inputMethodEvent(arg1);
1537 lua_settop(L, oldtop);
1539 void LuaBinder< QToolBar >::wheelEvent (QWheelEvent * arg1) {
1540 bool absorbed = false;
1541 int oldtop = lua_gettop(L);
1542 lqtL_pushudata(L, this, "QToolBar*");
1543 if (lua_getmetatable(L, -1)) {
1544 lua_getfield(L, -1, "wheelEvent");
1545 lua_remove(L, -2);
1546 } else {
1547 lua_pushnil(L);
1549 lua_insert(L, -2);
1550 lqtL_pushudata(L, arg1, "QWheelEvent*");
1551 if (lua_isfunction(L, -1-2)) {
1552 lua_pcall(L, 1+1, 2, 0);
1553 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
1554 lua_pop(L, 1);
1556 if (!absorbed) {
1557 lua_settop(L, oldtop);
1558 this->QWidget::wheelEvent(arg1);
1560 lua_settop(L, oldtop);
1562 void LuaBinder< QToolBar >::resizeEvent (QResizeEvent * arg1) {
1563 bool absorbed = false;
1564 int oldtop = lua_gettop(L);
1565 lqtL_pushudata(L, this, "QToolBar*");
1566 if (lua_getmetatable(L, -1)) {
1567 lua_getfield(L, -1, "resizeEvent");
1568 lua_remove(L, -2);
1569 } else {
1570 lua_pushnil(L);
1572 lua_insert(L, -2);
1573 lqtL_pushudata(L, arg1, "QResizeEvent*");
1574 if (lua_isfunction(L, -1-2)) {
1575 lua_pcall(L, 1+1, 2, 0);
1576 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
1577 lua_pop(L, 1);
1579 if (!absorbed) {
1580 lua_settop(L, oldtop);
1581 this->QToolBar::resizeEvent(arg1);
1583 lua_settop(L, oldtop);
1585 void LuaBinder< QToolBar >::paletteChange (const QPalette& arg1) {
1586 bool absorbed = false;
1587 int oldtop = lua_gettop(L);
1588 lqtL_pushudata(L, this, "QToolBar*");
1589 if (lua_getmetatable(L, -1)) {
1590 lua_getfield(L, -1, "paletteChange");
1591 lua_remove(L, -2);
1592 } else {
1593 lua_pushnil(L);
1595 lua_insert(L, -2);
1596 lqtL_pushudata(L, &(arg1), "QPalette*");
1597 if (lua_isfunction(L, -1-2)) {
1598 lua_pcall(L, 1+1, 2, 0);
1599 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
1600 lua_pop(L, 1);
1602 if (!absorbed) {
1603 lua_settop(L, oldtop);
1604 this->QWidget::paletteChange(arg1);
1606 lua_settop(L, oldtop);
1608 void LuaBinder< QToolBar >::languageChange () {
1609 bool absorbed = false;
1610 int oldtop = lua_gettop(L);
1611 lqtL_pushudata(L, this, "QToolBar*");
1612 if (lua_getmetatable(L, -1)) {
1613 lua_getfield(L, -1, "languageChange");
1614 lua_remove(L, -2);
1615 } else {
1616 lua_pushnil(L);
1618 lua_insert(L, -2);
1619 if (lua_isfunction(L, -0-2)) {
1620 lua_pcall(L, 0+1, 2, 0);
1621 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
1622 lua_pop(L, 1);
1624 if (!absorbed) {
1625 lua_settop(L, oldtop);
1626 this->QWidget::languageChange();
1628 lua_settop(L, oldtop);
1630 bool LuaBinder< QToolBar >::event (QEvent * arg1) {
1631 bool absorbed = false;
1632 int oldtop = lua_gettop(L);
1633 lqtL_pushudata(L, this, "QToolBar*");
1634 if (lua_getmetatable(L, -1)) {
1635 lua_getfield(L, -1, "event");
1636 lua_remove(L, -2);
1637 } else {
1638 lua_pushnil(L);
1640 lua_insert(L, -2);
1641 lqtL_pushudata(L, arg1, "QEvent*");
1642 if (lua_isfunction(L, -1-2)) {
1643 lua_pcall(L, 1+1, 2, 0);
1644 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
1645 lua_pop(L, 1);
1647 if (!absorbed) {
1648 lua_settop(L, oldtop);
1649 return this->QToolBar::event(arg1);
1651 bool ret = (bool)lua_toboolean(L, -1);
1652 lua_settop(L, oldtop);
1653 return ret;
1655 void LuaBinder< QToolBar >::hideEvent (QHideEvent * arg1) {
1656 bool absorbed = false;
1657 int oldtop = lua_gettop(L);
1658 lqtL_pushudata(L, this, "QToolBar*");
1659 if (lua_getmetatable(L, -1)) {
1660 lua_getfield(L, -1, "hideEvent");
1661 lua_remove(L, -2);
1662 } else {
1663 lua_pushnil(L);
1665 lua_insert(L, -2);
1666 lqtL_pushudata(L, arg1, "QHideEvent*");
1667 if (lua_isfunction(L, -1-2)) {
1668 lua_pcall(L, 1+1, 2, 0);
1669 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
1670 lua_pop(L, 1);
1672 if (!absorbed) {
1673 lua_settop(L, oldtop);
1674 this->QWidget::hideEvent(arg1);
1676 lua_settop(L, oldtop);
1678 void LuaBinder< QToolBar >::contextMenuEvent (QContextMenuEvent * arg1) {
1679 bool absorbed = false;
1680 int oldtop = lua_gettop(L);
1681 lqtL_pushudata(L, this, "QToolBar*");
1682 if (lua_getmetatable(L, -1)) {
1683 lua_getfield(L, -1, "contextMenuEvent");
1684 lua_remove(L, -2);
1685 } else {
1686 lua_pushnil(L);
1688 lua_insert(L, -2);
1689 lqtL_pushudata(L, arg1, "QContextMenuEvent*");
1690 if (lua_isfunction(L, -1-2)) {
1691 lua_pcall(L, 1+1, 2, 0);
1692 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
1693 lua_pop(L, 1);
1695 if (!absorbed) {
1696 lua_settop(L, oldtop);
1697 this->QWidget::contextMenuEvent(arg1);
1699 lua_settop(L, oldtop);
1701 void LuaBinder< QToolBar >::keyReleaseEvent (QKeyEvent * arg1) {
1702 bool absorbed = false;
1703 int oldtop = lua_gettop(L);
1704 lqtL_pushudata(L, this, "QToolBar*");
1705 if (lua_getmetatable(L, -1)) {
1706 lua_getfield(L, -1, "keyReleaseEvent");
1707 lua_remove(L, -2);
1708 } else {
1709 lua_pushnil(L);
1711 lua_insert(L, -2);
1712 lqtL_pushudata(L, arg1, "QKeyEvent*");
1713 if (lua_isfunction(L, -1-2)) {
1714 lua_pcall(L, 1+1, 2, 0);
1715 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
1716 lua_pop(L, 1);
1718 if (!absorbed) {
1719 lua_settop(L, oldtop);
1720 this->QWidget::keyReleaseEvent(arg1);
1722 lua_settop(L, oldtop);
1724 void LuaBinder< QToolBar >::dropEvent (QDropEvent * arg1) {
1725 bool absorbed = false;
1726 int oldtop = lua_gettop(L);
1727 lqtL_pushudata(L, this, "QToolBar*");
1728 if (lua_getmetatable(L, -1)) {
1729 lua_getfield(L, -1, "dropEvent");
1730 lua_remove(L, -2);
1731 } else {
1732 lua_pushnil(L);
1734 lua_insert(L, -2);
1735 lqtL_pushudata(L, arg1, "QDropEvent*");
1736 if (lua_isfunction(L, -1-2)) {
1737 lua_pcall(L, 1+1, 2, 0);
1738 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
1739 lua_pop(L, 1);
1741 if (!absorbed) {
1742 lua_settop(L, oldtop);
1743 this->QWidget::dropEvent(arg1);
1745 lua_settop(L, oldtop);
1747 void LuaBinder< QToolBar >::leaveEvent (QEvent * arg1) {
1748 bool absorbed = false;
1749 int oldtop = lua_gettop(L);
1750 lqtL_pushudata(L, this, "QToolBar*");
1751 if (lua_getmetatable(L, -1)) {
1752 lua_getfield(L, -1, "leaveEvent");
1753 lua_remove(L, -2);
1754 } else {
1755 lua_pushnil(L);
1757 lua_insert(L, -2);
1758 lqtL_pushudata(L, arg1, "QEvent*");
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::leaveEvent(arg1);
1768 lua_settop(L, oldtop);
1770 void LuaBinder< QToolBar >::changeEvent (QEvent * arg1) {
1771 bool absorbed = false;
1772 int oldtop = lua_gettop(L);
1773 lqtL_pushudata(L, this, "QToolBar*");
1774 if (lua_getmetatable(L, -1)) {
1775 lua_getfield(L, -1, "changeEvent");
1776 lua_remove(L, -2);
1777 } else {
1778 lua_pushnil(L);
1780 lua_insert(L, -2);
1781 lqtL_pushudata(L, arg1, "QEvent*");
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->QToolBar::changeEvent(arg1);
1791 lua_settop(L, oldtop);
1793 void LuaBinder< QToolBar >::customEvent (QEvent * arg1) {
1794 bool absorbed = false;
1795 int oldtop = lua_gettop(L);
1796 lqtL_pushudata(L, this, "QToolBar*");
1797 if (lua_getmetatable(L, -1)) {
1798 lua_getfield(L, -1, "customEvent");
1799 lua_remove(L, -2);
1800 } else {
1801 lua_pushnil(L);
1803 lua_insert(L, -2);
1804 lqtL_pushudata(L, arg1, "QEvent*");
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->QObject::customEvent(arg1);
1814 lua_settop(L, oldtop);
1816 LuaBinder< QToolBar >:: ~LuaBinder< QToolBar > () {
1817 int oldtop = lua_gettop(L);
1818 lqtL_pushudata(L, this, "QToolBar*");
1819 lua_getfield(L, -1, "~QToolBar");
1821 if (lua_isfunction(L, -1)) {
1822 lua_insert(L, -2);
1823 lua_pcall(L, 1, 1, 0);
1824 } else {
1826 lua_settop(L, oldtop);
1828 int luaopen_QToolBar (lua_State *L) {
1829 if (luaL_newmetatable(L, "QToolBar*")) {
1830 lua_pushcfunction(L, LuaBinder< QToolBar >::__LuaWrapCall__isFloating);
1831 lua_setfield(L, -2, "isFloating");
1832 lua_pushcfunction(L, LuaBinder< QToolBar >::__LuaWrapCall__isMovable);
1833 lua_setfield(L, -2, "isMovable");
1834 lua_pushcfunction(L, LuaBinder< QToolBar >::__LuaWrapCall__addSeparator);
1835 lua_setfield(L, -2, "addSeparator");
1836 lua_pushcfunction(L, LuaBinder< QToolBar >::__LuaWrapCall__delete);
1837 lua_setfield(L, -2, "delete");
1838 lua_pushcfunction(L, LuaBinder< QToolBar >::__LuaWrapCall__insertSeparator);
1839 lua_setfield(L, -2, "insertSeparator");
1840 lua_pushcfunction(L, LuaBinder< QToolBar >::__LuaWrapCall__setOrientation);
1841 lua_setfield(L, -2, "setOrientation");
1842 lua_pushcfunction(L, LuaBinder< QToolBar >::__LuaWrapCall__setToolButtonStyle);
1843 lua_setfield(L, -2, "setToolButtonStyle");
1844 lua_pushcfunction(L, LuaBinder< QToolBar >::__LuaWrapCall__insertWidget);
1845 lua_setfield(L, -2, "insertWidget");
1846 lua_pushcfunction(L, LuaBinder< QToolBar >::__LuaWrapCall__setIconSize);
1847 lua_setfield(L, -2, "setIconSize");
1848 lua_pushcfunction(L, LuaBinder< QToolBar >::__LuaWrapCall__trUtf8);
1849 lua_setfield(L, -2, "trUtf8");
1850 lua_pushcfunction(L, LuaBinder< QToolBar >::__LuaWrapCall__actionAt);
1851 lua_setfield(L, -2, "actionAt");
1852 lua_pushcfunction(L, LuaBinder< QToolBar >::__LuaWrapCall__metaObject);
1853 lua_setfield(L, -2, "metaObject");
1854 lua_pushcfunction(L, LuaBinder< QToolBar >::__LuaWrapCall__new);
1855 lua_setfield(L, -2, "new");
1856 lua_pushcfunction(L, LuaBinder< QToolBar >::__LuaWrapCall__clear);
1857 lua_setfield(L, -2, "clear");
1858 lua_pushcfunction(L, LuaBinder< QToolBar >::__LuaWrapCall__isAreaAllowed);
1859 lua_setfield(L, -2, "isAreaAllowed");
1860 lua_pushcfunction(L, LuaBinder< QToolBar >::__LuaWrapCall__widgetForAction);
1861 lua_setfield(L, -2, "widgetForAction");
1862 lua_pushcfunction(L, LuaBinder< QToolBar >::__LuaWrapCall__tr);
1863 lua_setfield(L, -2, "tr");
1864 lua_pushcfunction(L, LuaBinder< QToolBar >::__LuaWrapCall__setAllowedAreas);
1865 lua_setfield(L, -2, "setAllowedAreas");
1866 lua_pushcfunction(L, LuaBinder< QToolBar >::__LuaWrapCall__setMovable);
1867 lua_setfield(L, -2, "setMovable");
1868 lua_pushcfunction(L, LuaBinder< QToolBar >::__LuaWrapCall__allowedAreas);
1869 lua_setfield(L, -2, "allowedAreas");
1870 lua_pushcfunction(L, LuaBinder< QToolBar >::__LuaWrapCall__isFloatable);
1871 lua_setfield(L, -2, "isFloatable");
1872 lua_pushcfunction(L, LuaBinder< QToolBar >::__LuaWrapCall__toolButtonStyle);
1873 lua_setfield(L, -2, "toolButtonStyle");
1874 lua_pushcfunction(L, LuaBinder< QToolBar >::__LuaWrapCall__addAction);
1875 lua_setfield(L, -2, "addAction");
1876 lua_pushcfunction(L, LuaBinder< QToolBar >::__LuaWrapCall__iconSize);
1877 lua_setfield(L, -2, "iconSize");
1878 lua_pushcfunction(L, LuaBinder< QToolBar >::__LuaWrapCall__addWidget);
1879 lua_setfield(L, -2, "addWidget");
1880 lua_pushcfunction(L, LuaBinder< QToolBar >::__LuaWrapCall__orientation);
1881 lua_setfield(L, -2, "orientation");
1882 lua_pushcfunction(L, LuaBinder< QToolBar >::__LuaWrapCall__toggleViewAction);
1883 lua_setfield(L, -2, "toggleViewAction");
1884 lua_pushcfunction(L, LuaBinder< QToolBar >::__LuaWrapCall__actionGeometry);
1885 lua_setfield(L, -2, "actionGeometry");
1886 lua_pushcfunction(L, LuaBinder< QToolBar >::__LuaWrapCall__setFloatable);
1887 lua_setfield(L, -2, "setFloatable");
1888 lua_newtable(L);
1889 lua_pushboolean(L, 1);
1890 lua_setfield(L, -2, "QWidget*");
1891 lua_pushboolean(L, 0);
1892 lua_setfield(L, -2, "QObject*");
1893 lua_pushboolean(L, 0);
1894 lua_setfield(L, -2, "QPaintDevice*");
1895 lua_setfield(L, -2, "__base");
1896 lua_pushcfunction(L, lqtL_newindex);
1897 lua_setfield(L, -2, "__newindex");
1898 lua_pushcfunction(L, lqtL_index);
1899 lua_setfield(L, -2, "__index");
1900 lua_pushcfunction(L, lqtL_gc);
1901 lua_setfield(L, -2, "__gc");
1902 lua_pushstring(L, "QToolBar");
1903 lua_setfield(L, -2, "__qtype");
1904 lua_setglobal(L, "QToolBar");
1905 } else {
1906 lua_pop(L, 1);
1908 return 0;