added "install" instruction
[Leditor.git] / src / lqt_bind_QFileDialog.cpp
bloba6d3374e8558b75733d5c7029853ea55ac6205e0
1 #include "lqt_bind_QFileDialog.hpp"
3 int LuaBinder< QFileDialog >::__LuaWrapCall__confirmOverwrite (lua_State *L) {
4 QFileDialog *& __lua__obj = *static_cast<QFileDialog**>(lqtL_checkudata(L, 1, "QFileDialog*"));
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->QFileDialog::confirmOverwrite();
11 lua_pushboolean(L, ret);
12 return 1;
14 int LuaBinder< QFileDialog >::__LuaWrapCall__selectFilter (lua_State *L) {
15 QFileDialog *& __lua__obj = *static_cast<QFileDialog**>(lqtL_checkudata(L, 1, "QFileDialog*"));
16 if (__lua__obj==0) {
17 lua_pushstring(L, "trying to reference deleted pointer");
18 lua_error(L);
19 return 0;
21 const QString& arg1 = QString::fromAscii(lua_tostring(L, 2), lua_objlen(L, 2));
22 __lua__obj->QFileDialog::selectFilter(arg1);
23 return 0;
25 int LuaBinder< QFileDialog >::__LuaWrapCall__saveState (lua_State *L) {
26 QFileDialog *& __lua__obj = *static_cast<QFileDialog**>(lqtL_checkudata(L, 1, "QFileDialog*"));
27 if (__lua__obj==0) {
28 lua_pushstring(L, "trying to reference deleted pointer");
29 lua_error(L);
30 return 0;
32 QByteArray ret = __lua__obj->QFileDialog::saveState();
33 lua_pushlstring(L, ret.data(), ret.size());
34 return 1;
36 int LuaBinder< QFileDialog >::__LuaWrapCall__resolveSymlinks (lua_State *L) {
37 QFileDialog *& __lua__obj = *static_cast<QFileDialog**>(lqtL_checkudata(L, 1, "QFileDialog*"));
38 if (__lua__obj==0) {
39 lua_pushstring(L, "trying to reference deleted pointer");
40 lua_error(L);
41 return 0;
43 bool ret = __lua__obj->QFileDialog::resolveSymlinks();
44 lua_pushboolean(L, ret);
45 return 1;
47 int LuaBinder< QFileDialog >::__LuaWrapCall__setAcceptMode (lua_State *L) {
48 QFileDialog *& __lua__obj = *static_cast<QFileDialog**>(lqtL_checkudata(L, 1, "QFileDialog*"));
49 if (__lua__obj==0) {
50 lua_pushstring(L, "trying to reference deleted pointer");
51 lua_error(L);
52 return 0;
54 QFileDialog::AcceptMode arg1 = static_cast<QFileDialog::AcceptMode>(lqtL_toenum(L, 2, "QFileDialog::AcceptMode"));
55 __lua__obj->QFileDialog::setAcceptMode(arg1);
56 return 0;
58 int LuaBinder< QFileDialog >::__LuaWrapCall__setSidebarUrls (lua_State *L) {
59 QFileDialog *& __lua__obj = *static_cast<QFileDialog**>(lqtL_checkudata(L, 1, "QFileDialog*"));
60 if (__lua__obj==0) {
61 lua_pushstring(L, "trying to reference deleted pointer");
62 lua_error(L);
63 return 0;
65 const QList<QUrl>& arg1 = **static_cast<QList<QUrl>**>(lqtL_checkudata(L, 2, "QList<QUrl>*"));
66 __lua__obj->QFileDialog::setSidebarUrls(arg1);
67 return 0;
69 int LuaBinder< QFileDialog >::__LuaWrapCall__trUtf8__OverloadedVersion__1 (lua_State *L) {
70 const char * arg1 = lua_tostring(L, 1);
71 const char * arg2 = (lua_type(L, 2)==LUA_TSTRING)?lua_tostring(L, 2):static_cast< const char * >(0);
72 QString ret = QFileDialog::trUtf8(arg1, arg2);
73 lua_pushlstring(L, ret.toAscii().data(), ret.toAscii().size());
74 return 1;
76 int LuaBinder< QFileDialog >::__LuaWrapCall__trUtf8__OverloadedVersion__2 (lua_State *L) {
77 const char * arg1 = lua_tostring(L, 1);
78 const char * arg2 = lua_tostring(L, 2);
79 int arg3 = lua_tointeger(L, 3);
80 QString ret = QFileDialog::trUtf8(arg1, arg2, arg3);
81 lua_pushlstring(L, ret.toAscii().data(), ret.toAscii().size());
82 return 1;
84 int LuaBinder< QFileDialog >::__LuaWrapCall__trUtf8 (lua_State *L) {
85 int score[3];
86 const int premium = 11+lua_gettop(L);
87 score[1] = 0;
88 if ((lua_type(L, 1)==LUA_TSTRING)) {
89 score[1] += premium;
90 } else if (false) {
91 score[1] += premium-1; // table: 0xea51b0;
92 } else {
93 score[1] -= premium*premium;
95 if ((lua_type(L, 2)==LUA_TSTRING)) {
96 score[1] += premium;
97 } else if (true) {
98 score[1] += premium-1; // table: 0xea4ce0;
99 } else {
100 score[1] -= premium*premium;
102 score[2] = 0;
103 if ((lua_type(L, 1)==LUA_TSTRING)) {
104 score[2] += premium;
105 } else if (false) {
106 score[2] += premium-1; // table: 0xea6fd0;
107 } else {
108 score[2] -= premium*premium;
110 if ((lua_type(L, 2)==LUA_TSTRING)) {
111 score[2] += premium;
112 } else if (false) {
113 score[2] += premium-1; // table: 0xea6700;
114 } else {
115 score[2] -= premium*premium;
117 if (lua_isnumber(L, 3)) {
118 score[2] += premium;
119 } else if (false) {
120 score[2] += premium-1; // table: 0xea7460;
121 } else {
122 score[2] -= premium*premium;
124 int best = 1;
125 for (int i=1;i<=2;i++) {
126 if (score[best] < score[i]) { best = i; }
128 switch (best) {
129 case 1: return __LuaWrapCall__trUtf8__OverloadedVersion__1(L); break;
130 case 2: return __LuaWrapCall__trUtf8__OverloadedVersion__2(L); break;
132 lua_pushstring(L, "no overload of function __LuaWrapCall__trUtf8 matching arguments");
133 lua_error(L);
134 return 0;
136 int LuaBinder< QFileDialog >::__LuaWrapCall__filters (lua_State *L) {
137 QFileDialog *& __lua__obj = *static_cast<QFileDialog**>(lqtL_checkudata(L, 1, "QFileDialog*"));
138 if (__lua__obj==0) {
139 lua_pushstring(L, "trying to reference deleted pointer");
140 lua_error(L);
141 return 0;
143 QStringList ret = __lua__obj->QFileDialog::filters();
144 lqtL_passudata(L, new QStringList(ret), "QStringList*");
145 return 1;
147 int LuaBinder< QFileDialog >::__LuaWrapCall__tr__OverloadedVersion__1 (lua_State *L) {
148 const char * arg1 = lua_tostring(L, 1);
149 const char * arg2 = (lua_type(L, 2)==LUA_TSTRING)?lua_tostring(L, 2):static_cast< const char * >(0);
150 QString ret = QFileDialog::tr(arg1, arg2);
151 lua_pushlstring(L, ret.toAscii().data(), ret.toAscii().size());
152 return 1;
154 int LuaBinder< QFileDialog >::__LuaWrapCall__tr__OverloadedVersion__2 (lua_State *L) {
155 const char * arg1 = lua_tostring(L, 1);
156 const char * arg2 = lua_tostring(L, 2);
157 int arg3 = lua_tointeger(L, 3);
158 QString ret = QFileDialog::tr(arg1, arg2, arg3);
159 lua_pushlstring(L, ret.toAscii().data(), ret.toAscii().size());
160 return 1;
162 int LuaBinder< QFileDialog >::__LuaWrapCall__tr (lua_State *L) {
163 int score[3];
164 const int premium = 11+lua_gettop(L);
165 score[1] = 0;
166 if ((lua_type(L, 1)==LUA_TSTRING)) {
167 score[1] += premium;
168 } else if (false) {
169 score[1] += premium-1; // table: 0xea4410;
170 } else {
171 score[1] -= premium*premium;
173 if ((lua_type(L, 2)==LUA_TSTRING)) {
174 score[1] += premium;
175 } else if (true) {
176 score[1] += premium-1; // table: 0xea4110;
177 } else {
178 score[1] -= premium*premium;
180 score[2] = 0;
181 if ((lua_type(L, 1)==LUA_TSTRING)) {
182 score[2] += premium;
183 } else if (false) {
184 score[2] += premium-1; // table: 0xea5ec0;
185 } else {
186 score[2] -= premium*premium;
188 if ((lua_type(L, 2)==LUA_TSTRING)) {
189 score[2] += premium;
190 } else if (false) {
191 score[2] += premium-1; // table: 0xea63b0;
192 } else {
193 score[2] -= premium*premium;
195 if (lua_isnumber(L, 3)) {
196 score[2] += premium;
197 } else if (false) {
198 score[2] += premium-1; // table: 0xea6760;
199 } else {
200 score[2] -= premium*premium;
202 int best = 1;
203 for (int i=1;i<=2;i++) {
204 if (score[best] < score[i]) { best = i; }
206 switch (best) {
207 case 1: return __LuaWrapCall__tr__OverloadedVersion__1(L); break;
208 case 2: return __LuaWrapCall__tr__OverloadedVersion__2(L); break;
210 lua_pushstring(L, "no overload of function __LuaWrapCall__tr matching arguments");
211 lua_error(L);
212 return 0;
214 int LuaBinder< QFileDialog >::__LuaWrapCall__sidebarUrls (lua_State *L) {
215 QFileDialog *& __lua__obj = *static_cast<QFileDialog**>(lqtL_checkudata(L, 1, "QFileDialog*"));
216 if (__lua__obj==0) {
217 lua_pushstring(L, "trying to reference deleted pointer");
218 lua_error(L);
219 return 0;
221 QList<QUrl> ret = __lua__obj->QFileDialog::sidebarUrls();
222 lqtL_passudata(L, new QList<QUrl>(ret), "QList<QUrl>*");
223 return 1;
225 int LuaBinder< QFileDialog >::__LuaWrapCall__setConfirmOverwrite (lua_State *L) {
226 QFileDialog *& __lua__obj = *static_cast<QFileDialog**>(lqtL_checkudata(L, 1, "QFileDialog*"));
227 if (__lua__obj==0) {
228 lua_pushstring(L, "trying to reference deleted pointer");
229 lua_error(L);
230 return 0;
232 bool arg1 = (bool)lua_toboolean(L, 2);
233 __lua__obj->QFileDialog::setConfirmOverwrite(arg1);
234 return 0;
236 int LuaBinder< QFileDialog >::__LuaWrapCall__setViewMode (lua_State *L) {
237 QFileDialog *& __lua__obj = *static_cast<QFileDialog**>(lqtL_checkudata(L, 1, "QFileDialog*"));
238 if (__lua__obj==0) {
239 lua_pushstring(L, "trying to reference deleted pointer");
240 lua_error(L);
241 return 0;
243 QFileDialog::ViewMode arg1 = static_cast<QFileDialog::ViewMode>(lqtL_toenum(L, 2, "QFileDialog::ViewMode"));
244 __lua__obj->QFileDialog::setViewMode(arg1);
245 return 0;
247 int LuaBinder< QFileDialog >::__LuaWrapCall__acceptMode (lua_State *L) {
248 QFileDialog *& __lua__obj = *static_cast<QFileDialog**>(lqtL_checkudata(L, 1, "QFileDialog*"));
249 if (__lua__obj==0) {
250 lua_pushstring(L, "trying to reference deleted pointer");
251 lua_error(L);
252 return 0;
254 QFileDialog::AcceptMode ret = __lua__obj->QFileDialog::acceptMode();
255 lqtL_pushenum(L, ret, "QFileDialog::AcceptMode");
256 return 1;
258 int LuaBinder< QFileDialog >::__LuaWrapCall__setHistory (lua_State *L) {
259 QFileDialog *& __lua__obj = *static_cast<QFileDialog**>(lqtL_checkudata(L, 1, "QFileDialog*"));
260 if (__lua__obj==0) {
261 lua_pushstring(L, "trying to reference deleted pointer");
262 lua_error(L);
263 return 0;
265 const QStringList& arg1 = **static_cast<QStringList**>(lqtL_checkudata(L, 2, "QStringList*"));
266 __lua__obj->QFileDialog::setHistory(arg1);
267 return 0;
269 int LuaBinder< QFileDialog >::__LuaWrapCall__fileMode (lua_State *L) {
270 QFileDialog *& __lua__obj = *static_cast<QFileDialog**>(lqtL_checkudata(L, 1, "QFileDialog*"));
271 if (__lua__obj==0) {
272 lua_pushstring(L, "trying to reference deleted pointer");
273 lua_error(L);
274 return 0;
276 QFileDialog::FileMode ret = __lua__obj->QFileDialog::fileMode();
277 lqtL_pushenum(L, ret, "QFileDialog::FileMode");
278 return 1;
280 int LuaBinder< QFileDialog >::__LuaWrapCall__setDefaultSuffix (lua_State *L) {
281 QFileDialog *& __lua__obj = *static_cast<QFileDialog**>(lqtL_checkudata(L, 1, "QFileDialog*"));
282 if (__lua__obj==0) {
283 lua_pushstring(L, "trying to reference deleted pointer");
284 lua_error(L);
285 return 0;
287 const QString& arg1 = QString::fromAscii(lua_tostring(L, 2), lua_objlen(L, 2));
288 __lua__obj->QFileDialog::setDefaultSuffix(arg1);
289 return 0;
291 int LuaBinder< QFileDialog >::__LuaWrapCall__getOpenFileName (lua_State *L) {
292 QWidget * arg1 = lqtL_testudata(L, 1, "QWidget*")?*static_cast<QWidget**>(lqtL_checkudata(L, 1, "QWidget*")):static_cast< QWidget * >(0);
293 const QString& arg2 = (lua_type(L, 2)==LUA_TSTRING)?QString::fromAscii(lua_tostring(L, 2), lua_objlen(L, 2)):QString();
294 const QString& arg3 = (lua_type(L, 3)==LUA_TSTRING)?QString::fromAscii(lua_tostring(L, 3), lua_objlen(L, 3)):QString();
295 const QString& arg4 = (lua_type(L, 4)==LUA_TSTRING)?QString::fromAscii(lua_tostring(L, 4), lua_objlen(L, 4)):QString();
296 QString * arg5 = (lua_type(L, 5)==LUA_TSTRING)?static_cast<QString *>(lua_touserdata(L, 5)):static_cast< QString * >(0);
297 QFlags<QFileDialog::Option> arg6 = lqtL_testudata(L, 6, "QFlags<QFileDialog::Option>*")?**static_cast<QFlags<QFileDialog::Option>**>(lqtL_checkudata(L, 6, "QFlags<QFileDialog::Option>*")):static_cast< QFlags<QFileDialog::Option> >(0);
298 QString ret = QFileDialog::getOpenFileName(arg1, arg2, arg3, arg4, arg5, arg6);
299 lua_pushlstring(L, ret.toAscii().data(), ret.toAscii().size());
300 return 1;
302 int LuaBinder< QFileDialog >::__LuaWrapCall__setReadOnly (lua_State *L) {
303 QFileDialog *& __lua__obj = *static_cast<QFileDialog**>(lqtL_checkudata(L, 1, "QFileDialog*"));
304 if (__lua__obj==0) {
305 lua_pushstring(L, "trying to reference deleted pointer");
306 lua_error(L);
307 return 0;
309 bool arg1 = (bool)lua_toboolean(L, 2);
310 __lua__obj->QFileDialog::setReadOnly(arg1);
311 return 0;
313 int LuaBinder< QFileDialog >::__LuaWrapCall__setLabelText (lua_State *L) {
314 QFileDialog *& __lua__obj = *static_cast<QFileDialog**>(lqtL_checkudata(L, 1, "QFileDialog*"));
315 if (__lua__obj==0) {
316 lua_pushstring(L, "trying to reference deleted pointer");
317 lua_error(L);
318 return 0;
320 QFileDialog::DialogLabel arg1 = static_cast<QFileDialog::DialogLabel>(lqtL_toenum(L, 2, "QFileDialog::DialogLabel"));
321 const QString& arg2 = QString::fromAscii(lua_tostring(L, 3), lua_objlen(L, 3));
322 __lua__obj->QFileDialog::setLabelText(arg1, arg2);
323 return 0;
325 int LuaBinder< QFileDialog >::__LuaWrapCall__selectFile (lua_State *L) {
326 QFileDialog *& __lua__obj = *static_cast<QFileDialog**>(lqtL_checkudata(L, 1, "QFileDialog*"));
327 if (__lua__obj==0) {
328 lua_pushstring(L, "trying to reference deleted pointer");
329 lua_error(L);
330 return 0;
332 const QString& arg1 = QString::fromAscii(lua_tostring(L, 2), lua_objlen(L, 2));
333 __lua__obj->QFileDialog::selectFile(arg1);
334 return 0;
336 int LuaBinder< QFileDialog >::__LuaWrapCall__setFilters (lua_State *L) {
337 QFileDialog *& __lua__obj = *static_cast<QFileDialog**>(lqtL_checkudata(L, 1, "QFileDialog*"));
338 if (__lua__obj==0) {
339 lua_pushstring(L, "trying to reference deleted pointer");
340 lua_error(L);
341 return 0;
343 const QStringList& arg1 = **static_cast<QStringList**>(lqtL_checkudata(L, 2, "QStringList*"));
344 __lua__obj->QFileDialog::setFilters(arg1);
345 return 0;
347 int LuaBinder< QFileDialog >::__LuaWrapCall__selectedFiles (lua_State *L) {
348 QFileDialog *& __lua__obj = *static_cast<QFileDialog**>(lqtL_checkudata(L, 1, "QFileDialog*"));
349 if (__lua__obj==0) {
350 lua_pushstring(L, "trying to reference deleted pointer");
351 lua_error(L);
352 return 0;
354 QStringList ret = __lua__obj->QFileDialog::selectedFiles();
355 lqtL_passudata(L, new QStringList(ret), "QStringList*");
356 return 1;
358 int LuaBinder< QFileDialog >::__LuaWrapCall__viewMode (lua_State *L) {
359 QFileDialog *& __lua__obj = *static_cast<QFileDialog**>(lqtL_checkudata(L, 1, "QFileDialog*"));
360 if (__lua__obj==0) {
361 lua_pushstring(L, "trying to reference deleted pointer");
362 lua_error(L);
363 return 0;
365 QFileDialog::ViewMode ret = __lua__obj->QFileDialog::viewMode();
366 lqtL_pushenum(L, ret, "QFileDialog::ViewMode");
367 return 1;
369 int LuaBinder< QFileDialog >::__LuaWrapCall__setFileMode (lua_State *L) {
370 QFileDialog *& __lua__obj = *static_cast<QFileDialog**>(lqtL_checkudata(L, 1, "QFileDialog*"));
371 if (__lua__obj==0) {
372 lua_pushstring(L, "trying to reference deleted pointer");
373 lua_error(L);
374 return 0;
376 QFileDialog::FileMode arg1 = static_cast<QFileDialog::FileMode>(lqtL_toenum(L, 2, "QFileDialog::FileMode"));
377 __lua__obj->QFileDialog::setFileMode(arg1);
378 return 0;
380 int LuaBinder< QFileDialog >::__LuaWrapCall__getExistingDirectory (lua_State *L) {
381 QWidget * arg1 = lqtL_testudata(L, 1, "QWidget*")?*static_cast<QWidget**>(lqtL_checkudata(L, 1, "QWidget*")):static_cast< QWidget * >(0);
382 const QString& arg2 = (lua_type(L, 2)==LUA_TSTRING)?QString::fromAscii(lua_tostring(L, 2), lua_objlen(L, 2)):QString();
383 const QString& arg3 = (lua_type(L, 3)==LUA_TSTRING)?QString::fromAscii(lua_tostring(L, 3), lua_objlen(L, 3)):QString();
384 QFlags<QFileDialog::Option> arg4 = lqtL_testudata(L, 4, "QFlags<QFileDialog::Option>*")?**static_cast<QFlags<QFileDialog::Option>**>(lqtL_checkudata(L, 4, "QFlags<QFileDialog::Option>*")):ShowDirsOnly;
385 QString ret = QFileDialog::getExistingDirectory(arg1, arg2, arg3, arg4);
386 lua_pushlstring(L, ret.toAscii().data(), ret.toAscii().size());
387 return 1;
389 int LuaBinder< QFileDialog >::__LuaWrapCall__delete (lua_State *L) {
390 QFileDialog *& __lua__obj = *static_cast<QFileDialog**>(lqtL_checkudata(L, 1, "QFileDialog*"));
391 if (__lua__obj==0) {
392 lua_pushstring(L, "trying to reference deleted pointer");
393 lua_error(L);
394 return 0;
396 delete __lua__obj;
397 __lua__obj = 0;
398 return 0;
400 int LuaBinder< QFileDialog >::__LuaWrapCall__metaObject (lua_State *L) {
401 QFileDialog *& __lua__obj = *static_cast<QFileDialog**>(lqtL_checkudata(L, 1, "QFileDialog*"));
402 if (__lua__obj==0) {
403 lua_pushstring(L, "trying to reference deleted pointer");
404 lua_error(L);
405 return 0;
407 const QMetaObject * ret = __lua__obj->QFileDialog::metaObject();
408 lqtL_pushudata(L, ret, "QMetaObject*");
409 return 1;
411 int LuaBinder< QFileDialog >::__LuaWrapCall__getSaveFileName (lua_State *L) {
412 QWidget * arg1 = lqtL_testudata(L, 1, "QWidget*")?*static_cast<QWidget**>(lqtL_checkudata(L, 1, "QWidget*")):static_cast< QWidget * >(0);
413 const QString& arg2 = (lua_type(L, 2)==LUA_TSTRING)?QString::fromAscii(lua_tostring(L, 2), lua_objlen(L, 2)):QString();
414 const QString& arg3 = (lua_type(L, 3)==LUA_TSTRING)?QString::fromAscii(lua_tostring(L, 3), lua_objlen(L, 3)):QString();
415 const QString& arg4 = (lua_type(L, 4)==LUA_TSTRING)?QString::fromAscii(lua_tostring(L, 4), lua_objlen(L, 4)):QString();
416 QString * arg5 = (lua_type(L, 5)==LUA_TSTRING)?static_cast<QString *>(lua_touserdata(L, 5)):static_cast< QString * >(0);
417 QFlags<QFileDialog::Option> arg6 = lqtL_testudata(L, 6, "QFlags<QFileDialog::Option>*")?**static_cast<QFlags<QFileDialog::Option>**>(lqtL_checkudata(L, 6, "QFlags<QFileDialog::Option>*")):static_cast< QFlags<QFileDialog::Option> >(0);
418 QString ret = QFileDialog::getSaveFileName(arg1, arg2, arg3, arg4, arg5, arg6);
419 lua_pushlstring(L, ret.toAscii().data(), ret.toAscii().size());
420 return 1;
422 int LuaBinder< QFileDialog >::__LuaWrapCall__setResolveSymlinks (lua_State *L) {
423 QFileDialog *& __lua__obj = *static_cast<QFileDialog**>(lqtL_checkudata(L, 1, "QFileDialog*"));
424 if (__lua__obj==0) {
425 lua_pushstring(L, "trying to reference deleted pointer");
426 lua_error(L);
427 return 0;
429 bool arg1 = (bool)lua_toboolean(L, 2);
430 __lua__obj->QFileDialog::setResolveSymlinks(arg1);
431 return 0;
433 int LuaBinder< QFileDialog >::__LuaWrapCall__new__OverloadedVersion__1 (lua_State *L) {
434 QWidget * arg1 = *static_cast<QWidget**>(lqtL_checkudata(L, 1, "QWidget*"));
435 QFlags<Qt::WindowType> arg2 = **static_cast<QFlags<Qt::WindowType>**>(lqtL_checkudata(L, 2, "QFlags<Qt::WindowType>*"));
436 QFileDialog * ret = new LuaBinder< QFileDialog >(L, arg1, arg2);
437 lqtL_passudata(L, ret, "QFileDialog*");
438 return 1;
440 int LuaBinder< QFileDialog >::__LuaWrapCall__new__OverloadedVersion__2 (lua_State *L) {
441 QWidget * arg1 = lqtL_testudata(L, 1, "QWidget*")?*static_cast<QWidget**>(lqtL_checkudata(L, 1, "QWidget*")):static_cast< QWidget * >(0);
442 const QString& arg2 = (lua_type(L, 2)==LUA_TSTRING)?QString::fromAscii(lua_tostring(L, 2), lua_objlen(L, 2)):QString();
443 const QString& arg3 = (lua_type(L, 3)==LUA_TSTRING)?QString::fromAscii(lua_tostring(L, 3), lua_objlen(L, 3)):QString();
444 const QString& arg4 = (lua_type(L, 4)==LUA_TSTRING)?QString::fromAscii(lua_tostring(L, 4), lua_objlen(L, 4)):QString();
445 QFileDialog * ret = new LuaBinder< QFileDialog >(L, arg1, arg2, arg3, arg4);
446 lqtL_passudata(L, ret, "QFileDialog*");
447 return 1;
449 int LuaBinder< QFileDialog >::__LuaWrapCall__new (lua_State *L) {
450 int score[3];
451 const int premium = 11+lua_gettop(L);
452 score[1] = 0;
453 if (lqtL_testudata(L, 1, "QWidget*")) {
454 score[1] += premium;
455 } else if (false) {
456 score[1] += premium-1; // table: 0xea9180;
457 } else {
458 score[1] -= premium*premium;
460 if (lqtL_testudata(L, 2, "QFlags<Qt::WindowType>*")) {
461 score[1] += premium;
462 } else if (false) {
463 score[1] += premium-1; // table: 0xea96e0;
464 } else {
465 score[1] -= premium*premium;
467 score[2] = 0;
468 if (lqtL_testudata(L, 1, "QWidget*")) {
469 score[2] += premium;
470 } else if (true) {
471 score[2] += premium-1; // table: 0xeaa0a0;
472 } else {
473 score[2] -= premium*premium;
475 if ((lua_type(L, 2)==LUA_TSTRING)) {
476 score[2] += premium;
477 } else if (true) {
478 score[2] += premium-1; // table: 0xeaa5b0;
479 } else {
480 score[2] -= premium*premium;
482 if ((lua_type(L, 3)==LUA_TSTRING)) {
483 score[2] += premium;
484 } else if (true) {
485 score[2] += premium-1; // table: 0xeaa550;
486 } else {
487 score[2] -= premium*premium;
489 if ((lua_type(L, 4)==LUA_TSTRING)) {
490 score[2] += premium;
491 } else if (true) {
492 score[2] += premium-1; // table: 0xeaaef0;
493 } else {
494 score[2] -= premium*premium;
496 int best = 1;
497 for (int i=1;i<=2;i++) {
498 if (score[best] < score[i]) { best = i; }
500 switch (best) {
501 case 1: return __LuaWrapCall__new__OverloadedVersion__1(L); break;
502 case 2: return __LuaWrapCall__new__OverloadedVersion__2(L); break;
504 lua_pushstring(L, "no overload of function __LuaWrapCall__new matching arguments");
505 lua_error(L);
506 return 0;
508 int LuaBinder< QFileDialog >::__LuaWrapCall__selectedFilter (lua_State *L) {
509 QFileDialog *& __lua__obj = *static_cast<QFileDialog**>(lqtL_checkudata(L, 1, "QFileDialog*"));
510 if (__lua__obj==0) {
511 lua_pushstring(L, "trying to reference deleted pointer");
512 lua_error(L);
513 return 0;
515 QString ret = __lua__obj->QFileDialog::selectedFilter();
516 lua_pushlstring(L, ret.toAscii().data(), ret.toAscii().size());
517 return 1;
519 int LuaBinder< QFileDialog >::__LuaWrapCall__directory (lua_State *L) {
520 QFileDialog *& __lua__obj = *static_cast<QFileDialog**>(lqtL_checkudata(L, 1, "QFileDialog*"));
521 if (__lua__obj==0) {
522 lua_pushstring(L, "trying to reference deleted pointer");
523 lua_error(L);
524 return 0;
526 QDir ret = __lua__obj->QFileDialog::directory();
527 lqtL_passudata(L, new QDir(ret), "QDir*");
528 return 1;
530 int LuaBinder< QFileDialog >::__LuaWrapCall__isReadOnly (lua_State *L) {
531 QFileDialog *& __lua__obj = *static_cast<QFileDialog**>(lqtL_checkudata(L, 1, "QFileDialog*"));
532 if (__lua__obj==0) {
533 lua_pushstring(L, "trying to reference deleted pointer");
534 lua_error(L);
535 return 0;
537 bool ret = __lua__obj->QFileDialog::isReadOnly();
538 lua_pushboolean(L, ret);
539 return 1;
541 int LuaBinder< QFileDialog >::__LuaWrapCall__defaultSuffix (lua_State *L) {
542 QFileDialog *& __lua__obj = *static_cast<QFileDialog**>(lqtL_checkudata(L, 1, "QFileDialog*"));
543 if (__lua__obj==0) {
544 lua_pushstring(L, "trying to reference deleted pointer");
545 lua_error(L);
546 return 0;
548 QString ret = __lua__obj->QFileDialog::defaultSuffix();
549 lua_pushlstring(L, ret.toAscii().data(), ret.toAscii().size());
550 return 1;
552 int LuaBinder< QFileDialog >::__LuaWrapCall__setFilter (lua_State *L) {
553 QFileDialog *& __lua__obj = *static_cast<QFileDialog**>(lqtL_checkudata(L, 1, "QFileDialog*"));
554 if (__lua__obj==0) {
555 lua_pushstring(L, "trying to reference deleted pointer");
556 lua_error(L);
557 return 0;
559 const QString& arg1 = QString::fromAscii(lua_tostring(L, 2), lua_objlen(L, 2));
560 __lua__obj->QFileDialog::setFilter(arg1);
561 return 0;
563 int LuaBinder< QFileDialog >::__LuaWrapCall__setDirectory__OverloadedVersion__1 (lua_State *L) {
564 QFileDialog *& __lua__obj = *static_cast<QFileDialog**>(lqtL_checkudata(L, 1, "QFileDialog*"));
565 if (__lua__obj==0) {
566 lua_pushstring(L, "trying to reference deleted pointer");
567 lua_error(L);
568 return 0;
570 const QString& arg1 = QString::fromAscii(lua_tostring(L, 2), lua_objlen(L, 2));
571 __lua__obj->QFileDialog::setDirectory(arg1);
572 return 0;
574 int LuaBinder< QFileDialog >::__LuaWrapCall__setDirectory__OverloadedVersion__2 (lua_State *L) {
575 QFileDialog *& __lua__obj = *static_cast<QFileDialog**>(lqtL_checkudata(L, 1, "QFileDialog*"));
576 if (__lua__obj==0) {
577 lua_pushstring(L, "trying to reference deleted pointer");
578 lua_error(L);
579 return 0;
581 const QDir& arg1 = **static_cast<QDir**>(lqtL_checkudata(L, 2, "QDir*"));
582 __lua__obj->QFileDialog::setDirectory(arg1);
583 return 0;
585 int LuaBinder< QFileDialog >::__LuaWrapCall__setDirectory (lua_State *L) {
586 int score[3];
587 const int premium = 11+lua_gettop(L);
588 score[1] = 0;
589 score[1] += lqtL_testudata(L, 1, "QFileDialog*")?premium:-premium*premium;
590 if ((lua_type(L, 2)==LUA_TSTRING)) {
591 score[1] += premium;
592 } else if (false) {
593 score[1] += premium-1; // table: 0xeabf00;
594 } else {
595 score[1] -= premium*premium;
597 score[2] = 0;
598 score[2] += lqtL_testudata(L, 1, "QFileDialog*")?premium:-premium*premium;
599 if (lqtL_testudata(L, 2, "QDir*")) {
600 score[2] += premium;
601 } else if (false) {
602 score[2] += premium-1; // table: 0xeac980;
603 } else {
604 score[2] -= premium*premium;
606 int best = 1;
607 for (int i=1;i<=2;i++) {
608 if (score[best] < score[i]) { best = i; }
610 switch (best) {
611 case 1: return __LuaWrapCall__setDirectory__OverloadedVersion__1(L); break;
612 case 2: return __LuaWrapCall__setDirectory__OverloadedVersion__2(L); break;
614 lua_pushstring(L, "no overload of function __LuaWrapCall__setDirectory matching arguments");
615 lua_error(L);
616 return 0;
618 int LuaBinder< QFileDialog >::__LuaWrapCall__setItemDelegate (lua_State *L) {
619 QFileDialog *& __lua__obj = *static_cast<QFileDialog**>(lqtL_checkudata(L, 1, "QFileDialog*"));
620 if (__lua__obj==0) {
621 lua_pushstring(L, "trying to reference deleted pointer");
622 lua_error(L);
623 return 0;
625 QAbstractItemDelegate * arg1 = *static_cast<QAbstractItemDelegate**>(lqtL_checkudata(L, 2, "QAbstractItemDelegate*"));
626 __lua__obj->QFileDialog::setItemDelegate(arg1);
627 return 0;
629 int LuaBinder< QFileDialog >::__LuaWrapCall__restoreState (lua_State *L) {
630 QFileDialog *& __lua__obj = *static_cast<QFileDialog**>(lqtL_checkudata(L, 1, "QFileDialog*"));
631 if (__lua__obj==0) {
632 lua_pushstring(L, "trying to reference deleted pointer");
633 lua_error(L);
634 return 0;
636 const QByteArray& arg1 = QByteArray(lua_tostring(L, 2), lua_objlen(L, 2));
637 bool ret = __lua__obj->QFileDialog::restoreState(arg1);
638 lua_pushboolean(L, ret);
639 return 1;
641 int LuaBinder< QFileDialog >::__LuaWrapCall__itemDelegate (lua_State *L) {
642 QFileDialog *& __lua__obj = *static_cast<QFileDialog**>(lqtL_checkudata(L, 1, "QFileDialog*"));
643 if (__lua__obj==0) {
644 lua_pushstring(L, "trying to reference deleted pointer");
645 lua_error(L);
646 return 0;
648 QAbstractItemDelegate * ret = __lua__obj->QFileDialog::itemDelegate();
649 lqtL_pushudata(L, ret, "QAbstractItemDelegate*");
650 return 1;
652 int LuaBinder< QFileDialog >::__LuaWrapCall__history (lua_State *L) {
653 QFileDialog *& __lua__obj = *static_cast<QFileDialog**>(lqtL_checkudata(L, 1, "QFileDialog*"));
654 if (__lua__obj==0) {
655 lua_pushstring(L, "trying to reference deleted pointer");
656 lua_error(L);
657 return 0;
659 QStringList ret = __lua__obj->QFileDialog::history();
660 lqtL_passudata(L, new QStringList(ret), "QStringList*");
661 return 1;
663 int LuaBinder< QFileDialog >::__LuaWrapCall__setIconProvider (lua_State *L) {
664 QFileDialog *& __lua__obj = *static_cast<QFileDialog**>(lqtL_checkudata(L, 1, "QFileDialog*"));
665 if (__lua__obj==0) {
666 lua_pushstring(L, "trying to reference deleted pointer");
667 lua_error(L);
668 return 0;
670 QFileIconProvider * arg1 = *static_cast<QFileIconProvider**>(lqtL_checkudata(L, 2, "QFileIconProvider*"));
671 __lua__obj->QFileDialog::setIconProvider(arg1);
672 return 0;
674 int LuaBinder< QFileDialog >::__LuaWrapCall__iconProvider (lua_State *L) {
675 QFileDialog *& __lua__obj = *static_cast<QFileDialog**>(lqtL_checkudata(L, 1, "QFileDialog*"));
676 if (__lua__obj==0) {
677 lua_pushstring(L, "trying to reference deleted pointer");
678 lua_error(L);
679 return 0;
681 QFileIconProvider * ret = __lua__obj->QFileDialog::iconProvider();
682 lqtL_pushudata(L, ret, "QFileIconProvider*");
683 return 1;
685 int LuaBinder< QFileDialog >::__LuaWrapCall__proxyModel (lua_State *L) {
686 QFileDialog *& __lua__obj = *static_cast<QFileDialog**>(lqtL_checkudata(L, 1, "QFileDialog*"));
687 if (__lua__obj==0) {
688 lua_pushstring(L, "trying to reference deleted pointer");
689 lua_error(L);
690 return 0;
692 QAbstractProxyModel * ret = __lua__obj->QFileDialog::proxyModel();
693 lqtL_pushudata(L, ret, "QAbstractProxyModel*");
694 return 1;
696 int LuaBinder< QFileDialog >::__LuaWrapCall__labelText (lua_State *L) {
697 QFileDialog *& __lua__obj = *static_cast<QFileDialog**>(lqtL_checkudata(L, 1, "QFileDialog*"));
698 if (__lua__obj==0) {
699 lua_pushstring(L, "trying to reference deleted pointer");
700 lua_error(L);
701 return 0;
703 QFileDialog::DialogLabel arg1 = static_cast<QFileDialog::DialogLabel>(lqtL_toenum(L, 2, "QFileDialog::DialogLabel"));
704 QString ret = __lua__obj->QFileDialog::labelText(arg1);
705 lua_pushlstring(L, ret.toAscii().data(), ret.toAscii().size());
706 return 1;
708 int LuaBinder< QFileDialog >::__LuaWrapCall__setProxyModel (lua_State *L) {
709 QFileDialog *& __lua__obj = *static_cast<QFileDialog**>(lqtL_checkudata(L, 1, "QFileDialog*"));
710 if (__lua__obj==0) {
711 lua_pushstring(L, "trying to reference deleted pointer");
712 lua_error(L);
713 return 0;
715 QAbstractProxyModel * arg1 = *static_cast<QAbstractProxyModel**>(lqtL_checkudata(L, 2, "QAbstractProxyModel*"));
716 __lua__obj->QFileDialog::setProxyModel(arg1);
717 return 0;
719 int LuaBinder< QFileDialog >::__LuaWrapCall__getOpenFileNames (lua_State *L) {
720 QWidget * arg1 = lqtL_testudata(L, 1, "QWidget*")?*static_cast<QWidget**>(lqtL_checkudata(L, 1, "QWidget*")):static_cast< QWidget * >(0);
721 const QString& arg2 = (lua_type(L, 2)==LUA_TSTRING)?QString::fromAscii(lua_tostring(L, 2), lua_objlen(L, 2)):QString();
722 const QString& arg3 = (lua_type(L, 3)==LUA_TSTRING)?QString::fromAscii(lua_tostring(L, 3), lua_objlen(L, 3)):QString();
723 const QString& arg4 = (lua_type(L, 4)==LUA_TSTRING)?QString::fromAscii(lua_tostring(L, 4), lua_objlen(L, 4)):QString();
724 QString * arg5 = (lua_type(L, 5)==LUA_TSTRING)?static_cast<QString *>(lua_touserdata(L, 5)):static_cast< QString * >(0);
725 QFlags<QFileDialog::Option> arg6 = lqtL_testudata(L, 6, "QFlags<QFileDialog::Option>*")?**static_cast<QFlags<QFileDialog::Option>**>(lqtL_checkudata(L, 6, "QFlags<QFileDialog::Option>*")):static_cast< QFlags<QFileDialog::Option> >(0);
726 QStringList ret = QFileDialog::getOpenFileNames(arg1, arg2, arg3, arg4, arg5, arg6);
727 lqtL_passudata(L, new QStringList(ret), "QStringList*");
728 return 1;
730 void LuaBinder< QFileDialog >::styleChange (QStyle& arg1) {
731 bool absorbed = false;
732 int oldtop = lua_gettop(L);
733 lqtL_pushudata(L, this, "QFileDialog*");
734 if (lua_getmetatable(L, -1)) {
735 lua_getfield(L, -1, "styleChange");
736 lua_remove(L, -2);
737 } else {
738 lua_pushnil(L);
740 lua_insert(L, -2);
741 lqtL_pushudata(L, &(arg1), "QStyle*");
742 if (lua_isfunction(L, -1-2)) {
743 lua_pcall(L, 1+1, 2, 0);
744 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
745 lua_pop(L, 1);
747 if (!absorbed) {
748 lua_settop(L, oldtop);
749 this->QWidget::styleChange(arg1);
751 lua_settop(L, oldtop);
753 void LuaBinder< QFileDialog >::focusInEvent (QFocusEvent * arg1) {
754 bool absorbed = false;
755 int oldtop = lua_gettop(L);
756 lqtL_pushudata(L, this, "QFileDialog*");
757 if (lua_getmetatable(L, -1)) {
758 lua_getfield(L, -1, "focusInEvent");
759 lua_remove(L, -2);
760 } else {
761 lua_pushnil(L);
763 lua_insert(L, -2);
764 lqtL_pushudata(L, arg1, "QFocusEvent*");
765 if (lua_isfunction(L, -1-2)) {
766 lua_pcall(L, 1+1, 2, 0);
767 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
768 lua_pop(L, 1);
770 if (!absorbed) {
771 lua_settop(L, oldtop);
772 this->QWidget::focusInEvent(arg1);
774 lua_settop(L, oldtop);
776 void LuaBinder< QFileDialog >::keyPressEvent (QKeyEvent * arg1) {
777 bool absorbed = false;
778 int oldtop = lua_gettop(L);
779 lqtL_pushudata(L, this, "QFileDialog*");
780 if (lua_getmetatable(L, -1)) {
781 lua_getfield(L, -1, "keyPressEvent");
782 lua_remove(L, -2);
783 } else {
784 lua_pushnil(L);
786 lua_insert(L, -2);
787 lqtL_pushudata(L, arg1, "QKeyEvent*");
788 if (lua_isfunction(L, -1-2)) {
789 lua_pcall(L, 1+1, 2, 0);
790 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
791 lua_pop(L, 1);
793 if (!absorbed) {
794 lua_settop(L, oldtop);
795 this->QDialog::keyPressEvent(arg1);
797 lua_settop(L, oldtop);
799 const QMetaObject * LuaBinder< QFileDialog >::metaObject () const {
800 bool absorbed = false;
801 int oldtop = lua_gettop(L);
802 lqtL_pushudata(L, this, "QFileDialog*");
803 if (lua_getmetatable(L, -1)) {
804 lua_getfield(L, -1, "metaObject");
805 lua_remove(L, -2);
806 } else {
807 lua_pushnil(L);
809 lua_insert(L, -2);
810 if (lua_isfunction(L, -0-2)) {
811 lua_pcall(L, 0+1, 2, 0);
812 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
813 lua_pop(L, 1);
815 if (!absorbed) {
816 lua_settop(L, oldtop);
817 return this->QFileDialog::metaObject();
819 const QMetaObject * ret = *static_cast<QMetaObject**>(lqtL_checkudata(L, -1, "QMetaObject*"));
820 lua_settop(L, oldtop);
821 return ret;
823 int LuaBinder< QFileDialog >::devType () const {
824 bool absorbed = false;
825 int oldtop = lua_gettop(L);
826 lqtL_pushudata(L, this, "QFileDialog*");
827 if (lua_getmetatable(L, -1)) {
828 lua_getfield(L, -1, "devType");
829 lua_remove(L, -2);
830 } else {
831 lua_pushnil(L);
833 lua_insert(L, -2);
834 if (lua_isfunction(L, -0-2)) {
835 lua_pcall(L, 0+1, 2, 0);
836 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
837 lua_pop(L, 1);
839 if (!absorbed) {
840 lua_settop(L, oldtop);
841 return this->QWidget::devType();
843 int ret = lua_tointeger(L, -1);
844 lua_settop(L, oldtop);
845 return ret;
847 void LuaBinder< QFileDialog >::setVisible (bool arg1) {
848 bool absorbed = false;
849 int oldtop = lua_gettop(L);
850 lqtL_pushudata(L, this, "QFileDialog*");
851 if (lua_getmetatable(L, -1)) {
852 lua_getfield(L, -1, "setVisible");
853 lua_remove(L, -2);
854 } else {
855 lua_pushnil(L);
857 lua_insert(L, -2);
858 lua_pushboolean(L, arg1);
859 if (lua_isfunction(L, -1-2)) {
860 lua_pcall(L, 1+1, 2, 0);
861 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
862 lua_pop(L, 1);
864 if (!absorbed) {
865 lua_settop(L, oldtop);
866 this->QDialog::setVisible(arg1);
868 lua_settop(L, oldtop);
870 void LuaBinder< QFileDialog >::keyReleaseEvent (QKeyEvent * arg1) {
871 bool absorbed = false;
872 int oldtop = lua_gettop(L);
873 lqtL_pushudata(L, this, "QFileDialog*");
874 if (lua_getmetatable(L, -1)) {
875 lua_getfield(L, -1, "keyReleaseEvent");
876 lua_remove(L, -2);
877 } else {
878 lua_pushnil(L);
880 lua_insert(L, -2);
881 lqtL_pushudata(L, arg1, "QKeyEvent*");
882 if (lua_isfunction(L, -1-2)) {
883 lua_pcall(L, 1+1, 2, 0);
884 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
885 lua_pop(L, 1);
887 if (!absorbed) {
888 lua_settop(L, oldtop);
889 this->QWidget::keyReleaseEvent(arg1);
891 lua_settop(L, oldtop);
893 QPaintEngine * LuaBinder< QFileDialog >::paintEngine () const {
894 bool absorbed = false;
895 int oldtop = lua_gettop(L);
896 lqtL_pushudata(L, this, "QFileDialog*");
897 if (lua_getmetatable(L, -1)) {
898 lua_getfield(L, -1, "paintEngine");
899 lua_remove(L, -2);
900 } else {
901 lua_pushnil(L);
903 lua_insert(L, -2);
904 if (lua_isfunction(L, -0-2)) {
905 lua_pcall(L, 0+1, 2, 0);
906 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
907 lua_pop(L, 1);
909 if (!absorbed) {
910 lua_settop(L, oldtop);
911 return this->QWidget::paintEngine();
913 QPaintEngine * ret = *static_cast<QPaintEngine**>(lqtL_checkudata(L, -1, "QPaintEngine*"));
914 lua_settop(L, oldtop);
915 return ret;
917 void LuaBinder< QFileDialog >::dragLeaveEvent (QDragLeaveEvent * arg1) {
918 bool absorbed = false;
919 int oldtop = lua_gettop(L);
920 lqtL_pushudata(L, this, "QFileDialog*");
921 if (lua_getmetatable(L, -1)) {
922 lua_getfield(L, -1, "dragLeaveEvent");
923 lua_remove(L, -2);
924 } else {
925 lua_pushnil(L);
927 lua_insert(L, -2);
928 lqtL_pushudata(L, arg1, "QDragLeaveEvent*");
929 if (lua_isfunction(L, -1-2)) {
930 lua_pcall(L, 1+1, 2, 0);
931 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
932 lua_pop(L, 1);
934 if (!absorbed) {
935 lua_settop(L, oldtop);
936 this->QWidget::dragLeaveEvent(arg1);
938 lua_settop(L, oldtop);
940 void LuaBinder< QFileDialog >::mousePressEvent (QMouseEvent * arg1) {
941 bool absorbed = false;
942 int oldtop = lua_gettop(L);
943 lqtL_pushudata(L, this, "QFileDialog*");
944 if (lua_getmetatable(L, -1)) {
945 lua_getfield(L, -1, "mousePressEvent");
946 lua_remove(L, -2);
947 } else {
948 lua_pushnil(L);
950 lua_insert(L, -2);
951 lqtL_pushudata(L, arg1, "QMouseEvent*");
952 if (lua_isfunction(L, -1-2)) {
953 lua_pcall(L, 1+1, 2, 0);
954 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
955 lua_pop(L, 1);
957 if (!absorbed) {
958 lua_settop(L, oldtop);
959 this->QWidget::mousePressEvent(arg1);
961 lua_settop(L, oldtop);
963 void LuaBinder< QFileDialog >::dragEnterEvent (QDragEnterEvent * arg1) {
964 bool absorbed = false;
965 int oldtop = lua_gettop(L);
966 lqtL_pushudata(L, this, "QFileDialog*");
967 if (lua_getmetatable(L, -1)) {
968 lua_getfield(L, -1, "dragEnterEvent");
969 lua_remove(L, -2);
970 } else {
971 lua_pushnil(L);
973 lua_insert(L, -2);
974 lqtL_pushudata(L, arg1, "QDragEnterEvent*");
975 if (lua_isfunction(L, -1-2)) {
976 lua_pcall(L, 1+1, 2, 0);
977 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
978 lua_pop(L, 1);
980 if (!absorbed) {
981 lua_settop(L, oldtop);
982 this->QWidget::dragEnterEvent(arg1);
984 lua_settop(L, oldtop);
986 void LuaBinder< QFileDialog >::closeEvent (QCloseEvent * arg1) {
987 bool absorbed = false;
988 int oldtop = lua_gettop(L);
989 lqtL_pushudata(L, this, "QFileDialog*");
990 if (lua_getmetatable(L, -1)) {
991 lua_getfield(L, -1, "closeEvent");
992 lua_remove(L, -2);
993 } else {
994 lua_pushnil(L);
996 lua_insert(L, -2);
997 lqtL_pushudata(L, arg1, "QCloseEvent*");
998 if (lua_isfunction(L, -1-2)) {
999 lua_pcall(L, 1+1, 2, 0);
1000 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
1001 lua_pop(L, 1);
1003 if (!absorbed) {
1004 lua_settop(L, oldtop);
1005 this->QDialog::closeEvent(arg1);
1007 lua_settop(L, oldtop);
1009 void LuaBinder< QFileDialog >::enterEvent (QEvent * arg1) {
1010 bool absorbed = false;
1011 int oldtop = lua_gettop(L);
1012 lqtL_pushudata(L, this, "QFileDialog*");
1013 if (lua_getmetatable(L, -1)) {
1014 lua_getfield(L, -1, "enterEvent");
1015 lua_remove(L, -2);
1016 } else {
1017 lua_pushnil(L);
1019 lua_insert(L, -2);
1020 lqtL_pushudata(L, arg1, "QEvent*");
1021 if (lua_isfunction(L, -1-2)) {
1022 lua_pcall(L, 1+1, 2, 0);
1023 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
1024 lua_pop(L, 1);
1026 if (!absorbed) {
1027 lua_settop(L, oldtop);
1028 this->QWidget::enterEvent(arg1);
1030 lua_settop(L, oldtop);
1032 void LuaBinder< QFileDialog >::accept () {
1033 bool absorbed = false;
1034 int oldtop = lua_gettop(L);
1035 lqtL_pushudata(L, this, "QFileDialog*");
1036 if (lua_getmetatable(L, -1)) {
1037 lua_getfield(L, -1, "accept");
1038 lua_remove(L, -2);
1039 } else {
1040 lua_pushnil(L);
1042 lua_insert(L, -2);
1043 if (lua_isfunction(L, -0-2)) {
1044 lua_pcall(L, 0+1, 2, 0);
1045 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
1046 lua_pop(L, 1);
1048 if (!absorbed) {
1049 lua_settop(L, oldtop);
1050 this->QFileDialog::accept();
1052 lua_settop(L, oldtop);
1054 void LuaBinder< QFileDialog >::tabletEvent (QTabletEvent * arg1) {
1055 bool absorbed = false;
1056 int oldtop = lua_gettop(L);
1057 lqtL_pushudata(L, this, "QFileDialog*");
1058 if (lua_getmetatable(L, -1)) {
1059 lua_getfield(L, -1, "tabletEvent");
1060 lua_remove(L, -2);
1061 } else {
1062 lua_pushnil(L);
1064 lua_insert(L, -2);
1065 lqtL_pushudata(L, arg1, "QTabletEvent*");
1066 if (lua_isfunction(L, -1-2)) {
1067 lua_pcall(L, 1+1, 2, 0);
1068 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
1069 lua_pop(L, 1);
1071 if (!absorbed) {
1072 lua_settop(L, oldtop);
1073 this->QWidget::tabletEvent(arg1);
1075 lua_settop(L, oldtop);
1077 void LuaBinder< QFileDialog >::dragMoveEvent (QDragMoveEvent * arg1) {
1078 bool absorbed = false;
1079 int oldtop = lua_gettop(L);
1080 lqtL_pushudata(L, this, "QFileDialog*");
1081 if (lua_getmetatable(L, -1)) {
1082 lua_getfield(L, -1, "dragMoveEvent");
1083 lua_remove(L, -2);
1084 } else {
1085 lua_pushnil(L);
1087 lua_insert(L, -2);
1088 lqtL_pushudata(L, arg1, "QDragMoveEvent*");
1089 if (lua_isfunction(L, -1-2)) {
1090 lua_pcall(L, 1+1, 2, 0);
1091 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
1092 lua_pop(L, 1);
1094 if (!absorbed) {
1095 lua_settop(L, oldtop);
1096 this->QWidget::dragMoveEvent(arg1);
1098 lua_settop(L, oldtop);
1100 void LuaBinder< QFileDialog >::changeEvent (QEvent * arg1) {
1101 bool absorbed = false;
1102 int oldtop = lua_gettop(L);
1103 lqtL_pushudata(L, this, "QFileDialog*");
1104 if (lua_getmetatable(L, -1)) {
1105 lua_getfield(L, -1, "changeEvent");
1106 lua_remove(L, -2);
1107 } else {
1108 lua_pushnil(L);
1110 lua_insert(L, -2);
1111 lqtL_pushudata(L, arg1, "QEvent*");
1112 if (lua_isfunction(L, -1-2)) {
1113 lua_pcall(L, 1+1, 2, 0);
1114 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
1115 lua_pop(L, 1);
1117 if (!absorbed) {
1118 lua_settop(L, oldtop);
1119 this->QFileDialog::changeEvent(arg1);
1121 lua_settop(L, oldtop);
1123 void LuaBinder< QFileDialog >::moveEvent (QMoveEvent * arg1) {
1124 bool absorbed = false;
1125 int oldtop = lua_gettop(L);
1126 lqtL_pushudata(L, this, "QFileDialog*");
1127 if (lua_getmetatable(L, -1)) {
1128 lua_getfield(L, -1, "moveEvent");
1129 lua_remove(L, -2);
1130 } else {
1131 lua_pushnil(L);
1133 lua_insert(L, -2);
1134 lqtL_pushudata(L, arg1, "QMoveEvent*");
1135 if (lua_isfunction(L, -1-2)) {
1136 lua_pcall(L, 1+1, 2, 0);
1137 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
1138 lua_pop(L, 1);
1140 if (!absorbed) {
1141 lua_settop(L, oldtop);
1142 this->QWidget::moveEvent(arg1);
1144 lua_settop(L, oldtop);
1146 void LuaBinder< QFileDialog >::dropEvent (QDropEvent * arg1) {
1147 bool absorbed = false;
1148 int oldtop = lua_gettop(L);
1149 lqtL_pushudata(L, this, "QFileDialog*");
1150 if (lua_getmetatable(L, -1)) {
1151 lua_getfield(L, -1, "dropEvent");
1152 lua_remove(L, -2);
1153 } else {
1154 lua_pushnil(L);
1156 lua_insert(L, -2);
1157 lqtL_pushudata(L, arg1, "QDropEvent*");
1158 if (lua_isfunction(L, -1-2)) {
1159 lua_pcall(L, 1+1, 2, 0);
1160 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
1161 lua_pop(L, 1);
1163 if (!absorbed) {
1164 lua_settop(L, oldtop);
1165 this->QWidget::dropEvent(arg1);
1167 lua_settop(L, oldtop);
1169 QSize LuaBinder< QFileDialog >::sizeHint () const {
1170 bool absorbed = false;
1171 int oldtop = lua_gettop(L);
1172 lqtL_pushudata(L, this, "QFileDialog*");
1173 if (lua_getmetatable(L, -1)) {
1174 lua_getfield(L, -1, "sizeHint");
1175 lua_remove(L, -2);
1176 } else {
1177 lua_pushnil(L);
1179 lua_insert(L, -2);
1180 if (lua_isfunction(L, -0-2)) {
1181 lua_pcall(L, 0+1, 2, 0);
1182 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
1183 lua_pop(L, 1);
1185 if (!absorbed) {
1186 lua_settop(L, oldtop);
1187 return this->QDialog::sizeHint();
1189 QSize ret = **static_cast<QSize**>(lqtL_checkudata(L, -1, "QSize*"));
1190 lua_settop(L, oldtop);
1191 return ret;
1193 QVariant LuaBinder< QFileDialog >::inputMethodQuery (Qt::InputMethodQuery arg1) const {
1194 bool absorbed = false;
1195 int oldtop = lua_gettop(L);
1196 lqtL_pushudata(L, this, "QFileDialog*");
1197 if (lua_getmetatable(L, -1)) {
1198 lua_getfield(L, -1, "inputMethodQuery");
1199 lua_remove(L, -2);
1200 } else {
1201 lua_pushnil(L);
1203 lua_insert(L, -2);
1204 lqtL_pushenum(L, arg1, "Qt::InputMethodQuery");
1205 if (lua_isfunction(L, -1-2)) {
1206 lua_pcall(L, 1+1, 2, 0);
1207 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
1208 lua_pop(L, 1);
1210 if (!absorbed) {
1211 lua_settop(L, oldtop);
1212 return this->QWidget::inputMethodQuery(arg1);
1214 QVariant ret = **static_cast<QVariant**>(lqtL_checkudata(L, -1, "QVariant*"));
1215 lua_settop(L, oldtop);
1216 return ret;
1218 void LuaBinder< QFileDialog >::showEvent (QShowEvent * arg1) {
1219 bool absorbed = false;
1220 int oldtop = lua_gettop(L);
1221 lqtL_pushudata(L, this, "QFileDialog*");
1222 if (lua_getmetatable(L, -1)) {
1223 lua_getfield(L, -1, "showEvent");
1224 lua_remove(L, -2);
1225 } else {
1226 lua_pushnil(L);
1228 lua_insert(L, -2);
1229 lqtL_pushudata(L, arg1, "QShowEvent*");
1230 if (lua_isfunction(L, -1-2)) {
1231 lua_pcall(L, 1+1, 2, 0);
1232 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
1233 lua_pop(L, 1);
1235 if (!absorbed) {
1236 lua_settop(L, oldtop);
1237 this->QDialog::showEvent(arg1);
1239 lua_settop(L, oldtop);
1241 void LuaBinder< QFileDialog >::windowActivationChange (bool arg1) {
1242 bool absorbed = false;
1243 int oldtop = lua_gettop(L);
1244 lqtL_pushudata(L, this, "QFileDialog*");
1245 if (lua_getmetatable(L, -1)) {
1246 lua_getfield(L, -1, "windowActivationChange");
1247 lua_remove(L, -2);
1248 } else {
1249 lua_pushnil(L);
1251 lua_insert(L, -2);
1252 lua_pushboolean(L, arg1);
1253 if (lua_isfunction(L, -1-2)) {
1254 lua_pcall(L, 1+1, 2, 0);
1255 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
1256 lua_pop(L, 1);
1258 if (!absorbed) {
1259 lua_settop(L, oldtop);
1260 this->QWidget::windowActivationChange(arg1);
1262 lua_settop(L, oldtop);
1264 void LuaBinder< QFileDialog >::paintEvent (QPaintEvent * arg1) {
1265 bool absorbed = false;
1266 int oldtop = lua_gettop(L);
1267 lqtL_pushudata(L, this, "QFileDialog*");
1268 if (lua_getmetatable(L, -1)) {
1269 lua_getfield(L, -1, "paintEvent");
1270 lua_remove(L, -2);
1271 } else {
1272 lua_pushnil(L);
1274 lua_insert(L, -2);
1275 lqtL_pushudata(L, arg1, "QPaintEvent*");
1276 if (lua_isfunction(L, -1-2)) {
1277 lua_pcall(L, 1+1, 2, 0);
1278 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
1279 lua_pop(L, 1);
1281 if (!absorbed) {
1282 lua_settop(L, oldtop);
1283 this->QWidget::paintEvent(arg1);
1285 lua_settop(L, oldtop);
1287 void LuaBinder< QFileDialog >::contextMenuEvent (QContextMenuEvent * arg1) {
1288 bool absorbed = false;
1289 int oldtop = lua_gettop(L);
1290 lqtL_pushudata(L, this, "QFileDialog*");
1291 if (lua_getmetatable(L, -1)) {
1292 lua_getfield(L, -1, "contextMenuEvent");
1293 lua_remove(L, -2);
1294 } else {
1295 lua_pushnil(L);
1297 lua_insert(L, -2);
1298 lqtL_pushudata(L, arg1, "QContextMenuEvent*");
1299 if (lua_isfunction(L, -1-2)) {
1300 lua_pcall(L, 1+1, 2, 0);
1301 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
1302 lua_pop(L, 1);
1304 if (!absorbed) {
1305 lua_settop(L, oldtop);
1306 this->QDialog::contextMenuEvent(arg1);
1308 lua_settop(L, oldtop);
1310 void LuaBinder< QFileDialog >::mouseDoubleClickEvent (QMouseEvent * arg1) {
1311 bool absorbed = false;
1312 int oldtop = lua_gettop(L);
1313 lqtL_pushudata(L, this, "QFileDialog*");
1314 if (lua_getmetatable(L, -1)) {
1315 lua_getfield(L, -1, "mouseDoubleClickEvent");
1316 lua_remove(L, -2);
1317 } else {
1318 lua_pushnil(L);
1320 lua_insert(L, -2);
1321 lqtL_pushudata(L, arg1, "QMouseEvent*");
1322 if (lua_isfunction(L, -1-2)) {
1323 lua_pcall(L, 1+1, 2, 0);
1324 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
1325 lua_pop(L, 1);
1327 if (!absorbed) {
1328 lua_settop(L, oldtop);
1329 this->QWidget::mouseDoubleClickEvent(arg1);
1331 lua_settop(L, oldtop);
1333 void LuaBinder< QFileDialog >::enabledChange (bool arg1) {
1334 bool absorbed = false;
1335 int oldtop = lua_gettop(L);
1336 lqtL_pushudata(L, this, "QFileDialog*");
1337 if (lua_getmetatable(L, -1)) {
1338 lua_getfield(L, -1, "enabledChange");
1339 lua_remove(L, -2);
1340 } else {
1341 lua_pushnil(L);
1343 lua_insert(L, -2);
1344 lua_pushboolean(L, arg1);
1345 if (lua_isfunction(L, -1-2)) {
1346 lua_pcall(L, 1+1, 2, 0);
1347 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
1348 lua_pop(L, 1);
1350 if (!absorbed) {
1351 lua_settop(L, oldtop);
1352 this->QWidget::enabledChange(arg1);
1354 lua_settop(L, oldtop);
1356 void LuaBinder< QFileDialog >::disconnectNotify (const char * arg1) {
1357 bool absorbed = false;
1358 int oldtop = lua_gettop(L);
1359 lqtL_pushudata(L, this, "QFileDialog*");
1360 if (lua_getmetatable(L, -1)) {
1361 lua_getfield(L, -1, "disconnectNotify");
1362 lua_remove(L, -2);
1363 } else {
1364 lua_pushnil(L);
1366 lua_insert(L, -2);
1367 lua_pushstring(L, arg1);
1368 if (lua_isfunction(L, -1-2)) {
1369 lua_pcall(L, 1+1, 2, 0);
1370 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
1371 lua_pop(L, 1);
1373 if (!absorbed) {
1374 lua_settop(L, oldtop);
1375 this->QObject::disconnectNotify(arg1);
1377 lua_settop(L, oldtop);
1379 int LuaBinder< QFileDialog >::heightForWidth (int arg1) const {
1380 bool absorbed = false;
1381 int oldtop = lua_gettop(L);
1382 lqtL_pushudata(L, this, "QFileDialog*");
1383 if (lua_getmetatable(L, -1)) {
1384 lua_getfield(L, -1, "heightForWidth");
1385 lua_remove(L, -2);
1386 } else {
1387 lua_pushnil(L);
1389 lua_insert(L, -2);
1390 lua_pushinteger(L, arg1);
1391 if (lua_isfunction(L, -1-2)) {
1392 lua_pcall(L, 1+1, 2, 0);
1393 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
1394 lua_pop(L, 1);
1396 if (!absorbed) {
1397 lua_settop(L, oldtop);
1398 return this->QWidget::heightForWidth(arg1);
1400 int ret = lua_tointeger(L, -1);
1401 lua_settop(L, oldtop);
1402 return ret;
1404 void LuaBinder< QFileDialog >::fontChange (const QFont& arg1) {
1405 bool absorbed = false;
1406 int oldtop = lua_gettop(L);
1407 lqtL_pushudata(L, this, "QFileDialog*");
1408 if (lua_getmetatable(L, -1)) {
1409 lua_getfield(L, -1, "fontChange");
1410 lua_remove(L, -2);
1411 } else {
1412 lua_pushnil(L);
1414 lua_insert(L, -2);
1415 lqtL_pushudata(L, &(arg1), "QFont*");
1416 if (lua_isfunction(L, -1-2)) {
1417 lua_pcall(L, 1+1, 2, 0);
1418 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
1419 lua_pop(L, 1);
1421 if (!absorbed) {
1422 lua_settop(L, oldtop);
1423 this->QWidget::fontChange(arg1);
1425 lua_settop(L, oldtop);
1427 void LuaBinder< QFileDialog >::actionEvent (QActionEvent * arg1) {
1428 bool absorbed = false;
1429 int oldtop = lua_gettop(L);
1430 lqtL_pushudata(L, this, "QFileDialog*");
1431 if (lua_getmetatable(L, -1)) {
1432 lua_getfield(L, -1, "actionEvent");
1433 lua_remove(L, -2);
1434 } else {
1435 lua_pushnil(L);
1437 lua_insert(L, -2);
1438 lqtL_pushudata(L, arg1, "QActionEvent*");
1439 if (lua_isfunction(L, -1-2)) {
1440 lua_pcall(L, 1+1, 2, 0);
1441 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
1442 lua_pop(L, 1);
1444 if (!absorbed) {
1445 lua_settop(L, oldtop);
1446 this->QWidget::actionEvent(arg1);
1448 lua_settop(L, oldtop);
1450 void LuaBinder< QFileDialog >::timerEvent (QTimerEvent * arg1) {
1451 bool absorbed = false;
1452 int oldtop = lua_gettop(L);
1453 lqtL_pushudata(L, this, "QFileDialog*");
1454 if (lua_getmetatable(L, -1)) {
1455 lua_getfield(L, -1, "timerEvent");
1456 lua_remove(L, -2);
1457 } else {
1458 lua_pushnil(L);
1460 lua_insert(L, -2);
1461 lqtL_pushudata(L, arg1, "QTimerEvent*");
1462 if (lua_isfunction(L, -1-2)) {
1463 lua_pcall(L, 1+1, 2, 0);
1464 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
1465 lua_pop(L, 1);
1467 if (!absorbed) {
1468 lua_settop(L, oldtop);
1469 this->QObject::timerEvent(arg1);
1471 lua_settop(L, oldtop);
1473 void LuaBinder< QFileDialog >::mouseMoveEvent (QMouseEvent * arg1) {
1474 bool absorbed = false;
1475 int oldtop = lua_gettop(L);
1476 lqtL_pushudata(L, this, "QFileDialog*");
1477 if (lua_getmetatable(L, -1)) {
1478 lua_getfield(L, -1, "mouseMoveEvent");
1479 lua_remove(L, -2);
1480 } else {
1481 lua_pushnil(L);
1483 lua_insert(L, -2);
1484 lqtL_pushudata(L, arg1, "QMouseEvent*");
1485 if (lua_isfunction(L, -1-2)) {
1486 lua_pcall(L, 1+1, 2, 0);
1487 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
1488 lua_pop(L, 1);
1490 if (!absorbed) {
1491 lua_settop(L, oldtop);
1492 this->QWidget::mouseMoveEvent(arg1);
1494 lua_settop(L, oldtop);
1496 int LuaBinder< QFileDialog >::metric (QPaintDevice::PaintDeviceMetric arg1) const {
1497 bool absorbed = false;
1498 int oldtop = lua_gettop(L);
1499 lqtL_pushudata(L, this, "QFileDialog*");
1500 if (lua_getmetatable(L, -1)) {
1501 lua_getfield(L, -1, "metric");
1502 lua_remove(L, -2);
1503 } else {
1504 lua_pushnil(L);
1506 lua_insert(L, -2);
1507 lqtL_pushenum(L, arg1, "QPaintDevice::PaintDeviceMetric");
1508 if (lua_isfunction(L, -1-2)) {
1509 lua_pcall(L, 1+1, 2, 0);
1510 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
1511 lua_pop(L, 1);
1513 if (!absorbed) {
1514 lua_settop(L, oldtop);
1515 return this->QWidget::metric(arg1);
1517 int ret = lua_tointeger(L, -1);
1518 lua_settop(L, oldtop);
1519 return ret;
1521 void LuaBinder< QFileDialog >::childEvent (QChildEvent * arg1) {
1522 bool absorbed = false;
1523 int oldtop = lua_gettop(L);
1524 lqtL_pushudata(L, this, "QFileDialog*");
1525 if (lua_getmetatable(L, -1)) {
1526 lua_getfield(L, -1, "childEvent");
1527 lua_remove(L, -2);
1528 } else {
1529 lua_pushnil(L);
1531 lua_insert(L, -2);
1532 lqtL_pushudata(L, arg1, "QChildEvent*");
1533 if (lua_isfunction(L, -1-2)) {
1534 lua_pcall(L, 1+1, 2, 0);
1535 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
1536 lua_pop(L, 1);
1538 if (!absorbed) {
1539 lua_settop(L, oldtop);
1540 this->QObject::childEvent(arg1);
1542 lua_settop(L, oldtop);
1544 void LuaBinder< QFileDialog >::connectNotify (const char * arg1) {
1545 bool absorbed = false;
1546 int oldtop = lua_gettop(L);
1547 lqtL_pushudata(L, this, "QFileDialog*");
1548 if (lua_getmetatable(L, -1)) {
1549 lua_getfield(L, -1, "connectNotify");
1550 lua_remove(L, -2);
1551 } else {
1552 lua_pushnil(L);
1554 lua_insert(L, -2);
1555 lua_pushstring(L, arg1);
1556 if (lua_isfunction(L, -1-2)) {
1557 lua_pcall(L, 1+1, 2, 0);
1558 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
1559 lua_pop(L, 1);
1561 if (!absorbed) {
1562 lua_settop(L, oldtop);
1563 this->QObject::connectNotify(arg1);
1565 lua_settop(L, oldtop);
1567 void LuaBinder< QFileDialog >::mouseReleaseEvent (QMouseEvent * arg1) {
1568 bool absorbed = false;
1569 int oldtop = lua_gettop(L);
1570 lqtL_pushudata(L, this, "QFileDialog*");
1571 if (lua_getmetatable(L, -1)) {
1572 lua_getfield(L, -1, "mouseReleaseEvent");
1573 lua_remove(L, -2);
1574 } else {
1575 lua_pushnil(L);
1577 lua_insert(L, -2);
1578 lqtL_pushudata(L, arg1, "QMouseEvent*");
1579 if (lua_isfunction(L, -1-2)) {
1580 lua_pcall(L, 1+1, 2, 0);
1581 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
1582 lua_pop(L, 1);
1584 if (!absorbed) {
1585 lua_settop(L, oldtop);
1586 this->QWidget::mouseReleaseEvent(arg1);
1588 lua_settop(L, oldtop);
1590 void LuaBinder< QFileDialog >::focusOutEvent (QFocusEvent * arg1) {
1591 bool absorbed = false;
1592 int oldtop = lua_gettop(L);
1593 lqtL_pushudata(L, this, "QFileDialog*");
1594 if (lua_getmetatable(L, -1)) {
1595 lua_getfield(L, -1, "focusOutEvent");
1596 lua_remove(L, -2);
1597 } else {
1598 lua_pushnil(L);
1600 lua_insert(L, -2);
1601 lqtL_pushudata(L, arg1, "QFocusEvent*");
1602 if (lua_isfunction(L, -1-2)) {
1603 lua_pcall(L, 1+1, 2, 0);
1604 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
1605 lua_pop(L, 1);
1607 if (!absorbed) {
1608 lua_settop(L, oldtop);
1609 this->QWidget::focusOutEvent(arg1);
1611 lua_settop(L, oldtop);
1613 bool LuaBinder< QFileDialog >::eventFilter (QObject * arg1, QEvent * arg2) {
1614 bool absorbed = false;
1615 int oldtop = lua_gettop(L);
1616 lqtL_pushudata(L, this, "QFileDialog*");
1617 if (lua_getmetatable(L, -1)) {
1618 lua_getfield(L, -1, "eventFilter");
1619 lua_remove(L, -2);
1620 } else {
1621 lua_pushnil(L);
1623 lua_insert(L, -2);
1624 lqtL_pushudata(L, arg1, "QObject*");
1625 lqtL_pushudata(L, arg2, "QEvent*");
1626 if (lua_isfunction(L, -2-2)) {
1627 lua_pcall(L, 2+1, 2, 0);
1628 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
1629 lua_pop(L, 1);
1631 if (!absorbed) {
1632 lua_settop(L, oldtop);
1633 return this->QDialog::eventFilter(arg1, arg2);
1635 bool ret = (bool)lua_toboolean(L, -1);
1636 lua_settop(L, oldtop);
1637 return ret;
1639 void LuaBinder< QFileDialog >::inputMethodEvent (QInputMethodEvent * arg1) {
1640 bool absorbed = false;
1641 int oldtop = lua_gettop(L);
1642 lqtL_pushudata(L, this, "QFileDialog*");
1643 if (lua_getmetatable(L, -1)) {
1644 lua_getfield(L, -1, "inputMethodEvent");
1645 lua_remove(L, -2);
1646 } else {
1647 lua_pushnil(L);
1649 lua_insert(L, -2);
1650 lqtL_pushudata(L, arg1, "QInputMethodEvent*");
1651 if (lua_isfunction(L, -1-2)) {
1652 lua_pcall(L, 1+1, 2, 0);
1653 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
1654 lua_pop(L, 1);
1656 if (!absorbed) {
1657 lua_settop(L, oldtop);
1658 this->QWidget::inputMethodEvent(arg1);
1660 lua_settop(L, oldtop);
1662 void LuaBinder< QFileDialog >::wheelEvent (QWheelEvent * arg1) {
1663 bool absorbed = false;
1664 int oldtop = lua_gettop(L);
1665 lqtL_pushudata(L, this, "QFileDialog*");
1666 if (lua_getmetatable(L, -1)) {
1667 lua_getfield(L, -1, "wheelEvent");
1668 lua_remove(L, -2);
1669 } else {
1670 lua_pushnil(L);
1672 lua_insert(L, -2);
1673 lqtL_pushudata(L, arg1, "QWheelEvent*");
1674 if (lua_isfunction(L, -1-2)) {
1675 lua_pcall(L, 1+1, 2, 0);
1676 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
1677 lua_pop(L, 1);
1679 if (!absorbed) {
1680 lua_settop(L, oldtop);
1681 this->QWidget::wheelEvent(arg1);
1683 lua_settop(L, oldtop);
1685 void LuaBinder< QFileDialog >::resizeEvent (QResizeEvent * arg1) {
1686 bool absorbed = false;
1687 int oldtop = lua_gettop(L);
1688 lqtL_pushudata(L, this, "QFileDialog*");
1689 if (lua_getmetatable(L, -1)) {
1690 lua_getfield(L, -1, "resizeEvent");
1691 lua_remove(L, -2);
1692 } else {
1693 lua_pushnil(L);
1695 lua_insert(L, -2);
1696 lqtL_pushudata(L, arg1, "QResizeEvent*");
1697 if (lua_isfunction(L, -1-2)) {
1698 lua_pcall(L, 1+1, 2, 0);
1699 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
1700 lua_pop(L, 1);
1702 if (!absorbed) {
1703 lua_settop(L, oldtop);
1704 this->QDialog::resizeEvent(arg1);
1706 lua_settop(L, oldtop);
1708 void LuaBinder< QFileDialog >::paletteChange (const QPalette& arg1) {
1709 bool absorbed = false;
1710 int oldtop = lua_gettop(L);
1711 lqtL_pushudata(L, this, "QFileDialog*");
1712 if (lua_getmetatable(L, -1)) {
1713 lua_getfield(L, -1, "paletteChange");
1714 lua_remove(L, -2);
1715 } else {
1716 lua_pushnil(L);
1718 lua_insert(L, -2);
1719 lqtL_pushudata(L, &(arg1), "QPalette*");
1720 if (lua_isfunction(L, -1-2)) {
1721 lua_pcall(L, 1+1, 2, 0);
1722 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
1723 lua_pop(L, 1);
1725 if (!absorbed) {
1726 lua_settop(L, oldtop);
1727 this->QWidget::paletteChange(arg1);
1729 lua_settop(L, oldtop);
1731 void LuaBinder< QFileDialog >::languageChange () {
1732 bool absorbed = false;
1733 int oldtop = lua_gettop(L);
1734 lqtL_pushudata(L, this, "QFileDialog*");
1735 if (lua_getmetatable(L, -1)) {
1736 lua_getfield(L, -1, "languageChange");
1737 lua_remove(L, -2);
1738 } else {
1739 lua_pushnil(L);
1741 lua_insert(L, -2);
1742 if (lua_isfunction(L, -0-2)) {
1743 lua_pcall(L, 0+1, 2, 0);
1744 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
1745 lua_pop(L, 1);
1747 if (!absorbed) {
1748 lua_settop(L, oldtop);
1749 this->QWidget::languageChange();
1751 lua_settop(L, oldtop);
1753 bool LuaBinder< QFileDialog >::event (QEvent * arg1) {
1754 bool absorbed = false;
1755 int oldtop = lua_gettop(L);
1756 lqtL_pushudata(L, this, "QFileDialog*");
1757 if (lua_getmetatable(L, -1)) {
1758 lua_getfield(L, -1, "event");
1759 lua_remove(L, -2);
1760 } else {
1761 lua_pushnil(L);
1763 lua_insert(L, -2);
1764 lqtL_pushudata(L, arg1, "QEvent*");
1765 if (lua_isfunction(L, -1-2)) {
1766 lua_pcall(L, 1+1, 2, 0);
1767 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
1768 lua_pop(L, 1);
1770 if (!absorbed) {
1771 lua_settop(L, oldtop);
1772 return this->QWidget::event(arg1);
1774 bool ret = (bool)lua_toboolean(L, -1);
1775 lua_settop(L, oldtop);
1776 return ret;
1778 void LuaBinder< QFileDialog >::hideEvent (QHideEvent * arg1) {
1779 bool absorbed = false;
1780 int oldtop = lua_gettop(L);
1781 lqtL_pushudata(L, this, "QFileDialog*");
1782 if (lua_getmetatable(L, -1)) {
1783 lua_getfield(L, -1, "hideEvent");
1784 lua_remove(L, -2);
1785 } else {
1786 lua_pushnil(L);
1788 lua_insert(L, -2);
1789 lqtL_pushudata(L, arg1, "QHideEvent*");
1790 if (lua_isfunction(L, -1-2)) {
1791 lua_pcall(L, 1+1, 2, 0);
1792 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
1793 lua_pop(L, 1);
1795 if (!absorbed) {
1796 lua_settop(L, oldtop);
1797 this->QWidget::hideEvent(arg1);
1799 lua_settop(L, oldtop);
1801 bool LuaBinder< QFileDialog >::focusNextPrevChild (bool arg1) {
1802 bool absorbed = false;
1803 int oldtop = lua_gettop(L);
1804 lqtL_pushudata(L, this, "QFileDialog*");
1805 if (lua_getmetatable(L, -1)) {
1806 lua_getfield(L, -1, "focusNextPrevChild");
1807 lua_remove(L, -2);
1808 } else {
1809 lua_pushnil(L);
1811 lua_insert(L, -2);
1812 lua_pushboolean(L, arg1);
1813 if (lua_isfunction(L, -1-2)) {
1814 lua_pcall(L, 1+1, 2, 0);
1815 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
1816 lua_pop(L, 1);
1818 if (!absorbed) {
1819 lua_settop(L, oldtop);
1820 return this->QWidget::focusNextPrevChild(arg1);
1822 bool ret = (bool)lua_toboolean(L, -1);
1823 lua_settop(L, oldtop);
1824 return ret;
1826 void LuaBinder< QFileDialog >::done (int arg1) {
1827 bool absorbed = false;
1828 int oldtop = lua_gettop(L);
1829 lqtL_pushudata(L, this, "QFileDialog*");
1830 if (lua_getmetatable(L, -1)) {
1831 lua_getfield(L, -1, "done");
1832 lua_remove(L, -2);
1833 } else {
1834 lua_pushnil(L);
1836 lua_insert(L, -2);
1837 lua_pushinteger(L, arg1);
1838 if (lua_isfunction(L, -1-2)) {
1839 lua_pcall(L, 1+1, 2, 0);
1840 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
1841 lua_pop(L, 1);
1843 if (!absorbed) {
1844 lua_settop(L, oldtop);
1845 this->QFileDialog::done(arg1);
1847 lua_settop(L, oldtop);
1849 QSize LuaBinder< QFileDialog >::minimumSizeHint () const {
1850 bool absorbed = false;
1851 int oldtop = lua_gettop(L);
1852 lqtL_pushudata(L, this, "QFileDialog*");
1853 if (lua_getmetatable(L, -1)) {
1854 lua_getfield(L, -1, "minimumSizeHint");
1855 lua_remove(L, -2);
1856 } else {
1857 lua_pushnil(L);
1859 lua_insert(L, -2);
1860 if (lua_isfunction(L, -0-2)) {
1861 lua_pcall(L, 0+1, 2, 0);
1862 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
1863 lua_pop(L, 1);
1865 if (!absorbed) {
1866 lua_settop(L, oldtop);
1867 return this->QDialog::minimumSizeHint();
1869 QSize ret = **static_cast<QSize**>(lqtL_checkudata(L, -1, "QSize*"));
1870 lua_settop(L, oldtop);
1871 return ret;
1873 void LuaBinder< QFileDialog >::leaveEvent (QEvent * arg1) {
1874 bool absorbed = false;
1875 int oldtop = lua_gettop(L);
1876 lqtL_pushudata(L, this, "QFileDialog*");
1877 if (lua_getmetatable(L, -1)) {
1878 lua_getfield(L, -1, "leaveEvent");
1879 lua_remove(L, -2);
1880 } else {
1881 lua_pushnil(L);
1883 lua_insert(L, -2);
1884 lqtL_pushudata(L, arg1, "QEvent*");
1885 if (lua_isfunction(L, -1-2)) {
1886 lua_pcall(L, 1+1, 2, 0);
1887 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
1888 lua_pop(L, 1);
1890 if (!absorbed) {
1891 lua_settop(L, oldtop);
1892 this->QWidget::leaveEvent(arg1);
1894 lua_settop(L, oldtop);
1896 void LuaBinder< QFileDialog >::customEvent (QEvent * arg1) {
1897 bool absorbed = false;
1898 int oldtop = lua_gettop(L);
1899 lqtL_pushudata(L, this, "QFileDialog*");
1900 if (lua_getmetatable(L, -1)) {
1901 lua_getfield(L, -1, "customEvent");
1902 lua_remove(L, -2);
1903 } else {
1904 lua_pushnil(L);
1906 lua_insert(L, -2);
1907 lqtL_pushudata(L, arg1, "QEvent*");
1908 if (lua_isfunction(L, -1-2)) {
1909 lua_pcall(L, 1+1, 2, 0);
1910 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
1911 lua_pop(L, 1);
1913 if (!absorbed) {
1914 lua_settop(L, oldtop);
1915 this->QObject::customEvent(arg1);
1917 lua_settop(L, oldtop);
1919 void LuaBinder< QFileDialog >::reject () {
1920 bool absorbed = false;
1921 int oldtop = lua_gettop(L);
1922 lqtL_pushudata(L, this, "QFileDialog*");
1923 if (lua_getmetatable(L, -1)) {
1924 lua_getfield(L, -1, "reject");
1925 lua_remove(L, -2);
1926 } else {
1927 lua_pushnil(L);
1929 lua_insert(L, -2);
1930 if (lua_isfunction(L, -0-2)) {
1931 lua_pcall(L, 0+1, 2, 0);
1932 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
1933 lua_pop(L, 1);
1935 if (!absorbed) {
1936 lua_settop(L, oldtop);
1937 this->QDialog::reject();
1939 lua_settop(L, oldtop);
1941 LuaBinder< QFileDialog >:: ~LuaBinder< QFileDialog > () {
1942 int oldtop = lua_gettop(L);
1943 lqtL_pushudata(L, this, "QFileDialog*");
1944 lua_getfield(L, -1, "~QFileDialog");
1946 if (lua_isfunction(L, -1)) {
1947 lua_insert(L, -2);
1948 lua_pcall(L, 1, 1, 0);
1949 } else {
1951 lua_settop(L, oldtop);
1953 int LuaBinder< QFileDialog >::lqt_pushenum_ViewMode (lua_State *L) {
1954 int enum_table = 0;
1955 lua_getfield(L, LUA_REGISTRYINDEX, LQT_ENUMS);
1956 if (!lua_istable(L, -1)) {
1957 lua_pop(L, 1);
1958 lua_newtable(L);
1959 lua_pushvalue(L, -1);
1960 lua_setfield(L, LUA_REGISTRYINDEX, LQT_ENUMS);
1962 lua_newtable(L);
1963 enum_table = lua_gettop(L);
1964 lua_pushstring(L, "Detail");
1965 lua_rawseti(L, enum_table, 0);
1966 lua_pushinteger(L, 0);
1967 lua_setfield(L, enum_table, "Detail");
1968 lua_pushstring(L, "List");
1969 lua_rawseti(L, enum_table, 1);
1970 lua_pushinteger(L, 1);
1971 lua_setfield(L, enum_table, "List");
1972 lua_pushcfunction(L, LuaBinder< QFileDialog >::lqt_pushenum_ViewMode_QFLAGS_CREATOR);
1973 lua_setfield(L, enum_table, "QFlags");
1974 lua_pushvalue(L, -1);
1975 lua_setfield(L, -3, "QFileDialog::ViewMode");
1976 lua_remove(L, -2);
1977 return 1;
1979 int LuaBinder< QFileDialog >::lqt_pushenum_ViewMode_QFLAGS_CREATOR (lua_State *L) {
1980 int argn = lua_gettop(L);
1981 int i = 0;
1982 void *p = lua_newuserdata(L, sizeof(QFlags<QFileDialog::ViewMode>*) + sizeof(QFlags<QFileDialog::ViewMode>));
1983 QFlags<QFileDialog::ViewMode> *fl = static_cast<QFlags<QFileDialog::ViewMode>*>( static_cast<void*>(&static_cast<QFlags<QFileDialog::ViewMode>**>(p)[1]) );
1984 *(void**)p = fl;
1985 for (i=1;i<=argn;i++) {
1986 *fl |= static_cast<QFileDialog::ViewMode>(lqtL_toenum(L, i, "QFileDialog::ViewMode"));
1988 if (luaL_newmetatable(L, "QFlags<QFileDialog::ViewMode>*")) {
1989 lua_pushstring(L, "QFlags<QFileDialog::ViewMode>*");
1990 lua_setfield(L, -2, "__qtype");
1992 lua_setmetatable(L, -2);
1993 return 1;
1995 int LuaBinder< QFileDialog >::lqt_pushenum_FileMode (lua_State *L) {
1996 int enum_table = 0;
1997 lua_getfield(L, LUA_REGISTRYINDEX, LQT_ENUMS);
1998 if (!lua_istable(L, -1)) {
1999 lua_pop(L, 1);
2000 lua_newtable(L);
2001 lua_pushvalue(L, -1);
2002 lua_setfield(L, LUA_REGISTRYINDEX, LQT_ENUMS);
2004 lua_newtable(L);
2005 enum_table = lua_gettop(L);
2006 lua_pushstring(L, "AnyFile");
2007 lua_rawseti(L, enum_table, 0);
2008 lua_pushinteger(L, 0);
2009 lua_setfield(L, enum_table, "AnyFile");
2010 lua_pushstring(L, "ExistingFile");
2011 lua_rawseti(L, enum_table, 1);
2012 lua_pushinteger(L, 1);
2013 lua_setfield(L, enum_table, "ExistingFile");
2014 lua_pushstring(L, "Directory");
2015 lua_rawseti(L, enum_table, 2);
2016 lua_pushinteger(L, 2);
2017 lua_setfield(L, enum_table, "Directory");
2018 lua_pushstring(L, "ExistingFiles");
2019 lua_rawseti(L, enum_table, 3);
2020 lua_pushinteger(L, 3);
2021 lua_setfield(L, enum_table, "ExistingFiles");
2022 lua_pushstring(L, "DirectoryOnly");
2023 lua_rawseti(L, enum_table, 4);
2024 lua_pushinteger(L, 4);
2025 lua_setfield(L, enum_table, "DirectoryOnly");
2026 lua_pushcfunction(L, LuaBinder< QFileDialog >::lqt_pushenum_FileMode_QFLAGS_CREATOR);
2027 lua_setfield(L, enum_table, "QFlags");
2028 lua_pushvalue(L, -1);
2029 lua_setfield(L, -3, "QFileDialog::FileMode");
2030 lua_remove(L, -2);
2031 return 1;
2033 int LuaBinder< QFileDialog >::lqt_pushenum_FileMode_QFLAGS_CREATOR (lua_State *L) {
2034 int argn = lua_gettop(L);
2035 int i = 0;
2036 void *p = lua_newuserdata(L, sizeof(QFlags<QFileDialog::FileMode>*) + sizeof(QFlags<QFileDialog::FileMode>));
2037 QFlags<QFileDialog::FileMode> *fl = static_cast<QFlags<QFileDialog::FileMode>*>( static_cast<void*>(&static_cast<QFlags<QFileDialog::FileMode>**>(p)[1]) );
2038 *(void**)p = fl;
2039 for (i=1;i<=argn;i++) {
2040 *fl |= static_cast<QFileDialog::FileMode>(lqtL_toenum(L, i, "QFileDialog::FileMode"));
2042 if (luaL_newmetatable(L, "QFlags<QFileDialog::FileMode>*")) {
2043 lua_pushstring(L, "QFlags<QFileDialog::FileMode>*");
2044 lua_setfield(L, -2, "__qtype");
2046 lua_setmetatable(L, -2);
2047 return 1;
2049 int LuaBinder< QFileDialog >::lqt_pushenum_AcceptMode (lua_State *L) {
2050 int enum_table = 0;
2051 lua_getfield(L, LUA_REGISTRYINDEX, LQT_ENUMS);
2052 if (!lua_istable(L, -1)) {
2053 lua_pop(L, 1);
2054 lua_newtable(L);
2055 lua_pushvalue(L, -1);
2056 lua_setfield(L, LUA_REGISTRYINDEX, LQT_ENUMS);
2058 lua_newtable(L);
2059 enum_table = lua_gettop(L);
2060 lua_pushstring(L, "AcceptOpen");
2061 lua_rawseti(L, enum_table, 0);
2062 lua_pushinteger(L, 0);
2063 lua_setfield(L, enum_table, "AcceptOpen");
2064 lua_pushstring(L, "AcceptSave");
2065 lua_rawseti(L, enum_table, 1);
2066 lua_pushinteger(L, 1);
2067 lua_setfield(L, enum_table, "AcceptSave");
2068 lua_pushcfunction(L, LuaBinder< QFileDialog >::lqt_pushenum_AcceptMode_QFLAGS_CREATOR);
2069 lua_setfield(L, enum_table, "QFlags");
2070 lua_pushvalue(L, -1);
2071 lua_setfield(L, -3, "QFileDialog::AcceptMode");
2072 lua_remove(L, -2);
2073 return 1;
2075 int LuaBinder< QFileDialog >::lqt_pushenum_AcceptMode_QFLAGS_CREATOR (lua_State *L) {
2076 int argn = lua_gettop(L);
2077 int i = 0;
2078 void *p = lua_newuserdata(L, sizeof(QFlags<QFileDialog::AcceptMode>*) + sizeof(QFlags<QFileDialog::AcceptMode>));
2079 QFlags<QFileDialog::AcceptMode> *fl = static_cast<QFlags<QFileDialog::AcceptMode>*>( static_cast<void*>(&static_cast<QFlags<QFileDialog::AcceptMode>**>(p)[1]) );
2080 *(void**)p = fl;
2081 for (i=1;i<=argn;i++) {
2082 *fl |= static_cast<QFileDialog::AcceptMode>(lqtL_toenum(L, i, "QFileDialog::AcceptMode"));
2084 if (luaL_newmetatable(L, "QFlags<QFileDialog::AcceptMode>*")) {
2085 lua_pushstring(L, "QFlags<QFileDialog::AcceptMode>*");
2086 lua_setfield(L, -2, "__qtype");
2088 lua_setmetatable(L, -2);
2089 return 1;
2091 int LuaBinder< QFileDialog >::lqt_pushenum_DialogLabel (lua_State *L) {
2092 int enum_table = 0;
2093 lua_getfield(L, LUA_REGISTRYINDEX, LQT_ENUMS);
2094 if (!lua_istable(L, -1)) {
2095 lua_pop(L, 1);
2096 lua_newtable(L);
2097 lua_pushvalue(L, -1);
2098 lua_setfield(L, LUA_REGISTRYINDEX, LQT_ENUMS);
2100 lua_newtable(L);
2101 enum_table = lua_gettop(L);
2102 lua_pushstring(L, "LookIn");
2103 lua_rawseti(L, enum_table, 0);
2104 lua_pushinteger(L, 0);
2105 lua_setfield(L, enum_table, "LookIn");
2106 lua_pushstring(L, "FileName");
2107 lua_rawseti(L, enum_table, 1);
2108 lua_pushinteger(L, 1);
2109 lua_setfield(L, enum_table, "FileName");
2110 lua_pushstring(L, "FileType");
2111 lua_rawseti(L, enum_table, 2);
2112 lua_pushinteger(L, 2);
2113 lua_setfield(L, enum_table, "FileType");
2114 lua_pushstring(L, "Accept");
2115 lua_rawseti(L, enum_table, 3);
2116 lua_pushinteger(L, 3);
2117 lua_setfield(L, enum_table, "Accept");
2118 lua_pushstring(L, "Reject");
2119 lua_rawseti(L, enum_table, 4);
2120 lua_pushinteger(L, 4);
2121 lua_setfield(L, enum_table, "Reject");
2122 lua_pushcfunction(L, LuaBinder< QFileDialog >::lqt_pushenum_DialogLabel_QFLAGS_CREATOR);
2123 lua_setfield(L, enum_table, "QFlags");
2124 lua_pushvalue(L, -1);
2125 lua_setfield(L, -3, "QFileDialog::DialogLabel");
2126 lua_remove(L, -2);
2127 return 1;
2129 int LuaBinder< QFileDialog >::lqt_pushenum_DialogLabel_QFLAGS_CREATOR (lua_State *L) {
2130 int argn = lua_gettop(L);
2131 int i = 0;
2132 void *p = lua_newuserdata(L, sizeof(QFlags<QFileDialog::DialogLabel>*) + sizeof(QFlags<QFileDialog::DialogLabel>));
2133 QFlags<QFileDialog::DialogLabel> *fl = static_cast<QFlags<QFileDialog::DialogLabel>*>( static_cast<void*>(&static_cast<QFlags<QFileDialog::DialogLabel>**>(p)[1]) );
2134 *(void**)p = fl;
2135 for (i=1;i<=argn;i++) {
2136 *fl |= static_cast<QFileDialog::DialogLabel>(lqtL_toenum(L, i, "QFileDialog::DialogLabel"));
2138 if (luaL_newmetatable(L, "QFlags<QFileDialog::DialogLabel>*")) {
2139 lua_pushstring(L, "QFlags<QFileDialog::DialogLabel>*");
2140 lua_setfield(L, -2, "__qtype");
2142 lua_setmetatable(L, -2);
2143 return 1;
2145 int LuaBinder< QFileDialog >::lqt_pushenum_Option (lua_State *L) {
2146 int enum_table = 0;
2147 lua_getfield(L, LUA_REGISTRYINDEX, LQT_ENUMS);
2148 if (!lua_istable(L, -1)) {
2149 lua_pop(L, 1);
2150 lua_newtable(L);
2151 lua_pushvalue(L, -1);
2152 lua_setfield(L, LUA_REGISTRYINDEX, LQT_ENUMS);
2154 lua_newtable(L);
2155 enum_table = lua_gettop(L);
2156 lua_pushstring(L, "ShowDirsOnly");
2157 lua_rawseti(L, enum_table, 1);
2158 lua_pushinteger(L, 1);
2159 lua_setfield(L, enum_table, "ShowDirsOnly");
2160 lua_pushstring(L, "DontResolveSymlinks");
2161 lua_rawseti(L, enum_table, 2);
2162 lua_pushinteger(L, 2);
2163 lua_setfield(L, enum_table, "DontResolveSymlinks");
2164 lua_pushstring(L, "DontConfirmOverwrite");
2165 lua_rawseti(L, enum_table, 4);
2166 lua_pushinteger(L, 4);
2167 lua_setfield(L, enum_table, "DontConfirmOverwrite");
2168 lua_pushstring(L, "DontUseSheet");
2169 lua_rawseti(L, enum_table, 8);
2170 lua_pushinteger(L, 8);
2171 lua_setfield(L, enum_table, "DontUseSheet");
2172 lua_pushstring(L, "DontUseNativeDialog");
2173 lua_rawseti(L, enum_table, 16);
2174 lua_pushinteger(L, 16);
2175 lua_setfield(L, enum_table, "DontUseNativeDialog");
2176 lua_pushcfunction(L, LuaBinder< QFileDialog >::lqt_pushenum_Option_QFLAGS_CREATOR);
2177 lua_setfield(L, enum_table, "QFlags");
2178 lua_pushvalue(L, -1);
2179 lua_setfield(L, -3, "QFileDialog::Option");
2180 lua_remove(L, -2);
2181 return 1;
2183 int LuaBinder< QFileDialog >::lqt_pushenum_Option_QFLAGS_CREATOR (lua_State *L) {
2184 int argn = lua_gettop(L);
2185 int i = 0;
2186 void *p = lua_newuserdata(L, sizeof(QFlags<QFileDialog::Option>*) + sizeof(QFlags<QFileDialog::Option>));
2187 QFlags<QFileDialog::Option> *fl = static_cast<QFlags<QFileDialog::Option>*>( static_cast<void*>(&static_cast<QFlags<QFileDialog::Option>**>(p)[1]) );
2188 *(void**)p = fl;
2189 for (i=1;i<=argn;i++) {
2190 *fl |= static_cast<QFileDialog::Option>(lqtL_toenum(L, i, "QFileDialog::Option"));
2192 if (luaL_newmetatable(L, "QFlags<QFileDialog::Option>*")) {
2193 lua_pushstring(L, "QFlags<QFileDialog::Option>*");
2194 lua_setfield(L, -2, "__qtype");
2196 lua_setmetatable(L, -2);
2197 return 1;
2199 int luaopen_QFileDialog (lua_State *L) {
2200 if (luaL_newmetatable(L, "QFileDialog*")) {
2201 lua_pushcfunction(L, LuaBinder< QFileDialog >::__LuaWrapCall__confirmOverwrite);
2202 lua_setfield(L, -2, "confirmOverwrite");
2203 lua_pushcfunction(L, LuaBinder< QFileDialog >::__LuaWrapCall__selectFilter);
2204 lua_setfield(L, -2, "selectFilter");
2205 lua_pushcfunction(L, LuaBinder< QFileDialog >::__LuaWrapCall__saveState);
2206 lua_setfield(L, -2, "saveState");
2207 lua_pushcfunction(L, LuaBinder< QFileDialog >::__LuaWrapCall__resolveSymlinks);
2208 lua_setfield(L, -2, "resolveSymlinks");
2209 lua_pushcfunction(L, LuaBinder< QFileDialog >::__LuaWrapCall__setAcceptMode);
2210 lua_setfield(L, -2, "setAcceptMode");
2211 lua_pushcfunction(L, LuaBinder< QFileDialog >::__LuaWrapCall__setSidebarUrls);
2212 lua_setfield(L, -2, "setSidebarUrls");
2213 lua_pushcfunction(L, LuaBinder< QFileDialog >::__LuaWrapCall__trUtf8);
2214 lua_setfield(L, -2, "trUtf8");
2215 lua_pushcfunction(L, LuaBinder< QFileDialog >::__LuaWrapCall__filters);
2216 lua_setfield(L, -2, "filters");
2217 lua_pushcfunction(L, LuaBinder< QFileDialog >::__LuaWrapCall__tr);
2218 lua_setfield(L, -2, "tr");
2219 lua_pushcfunction(L, LuaBinder< QFileDialog >::__LuaWrapCall__sidebarUrls);
2220 lua_setfield(L, -2, "sidebarUrls");
2221 lua_pushcfunction(L, LuaBinder< QFileDialog >::__LuaWrapCall__setConfirmOverwrite);
2222 lua_setfield(L, -2, "setConfirmOverwrite");
2223 lua_pushcfunction(L, LuaBinder< QFileDialog >::__LuaWrapCall__setViewMode);
2224 lua_setfield(L, -2, "setViewMode");
2225 lua_pushcfunction(L, LuaBinder< QFileDialog >::__LuaWrapCall__acceptMode);
2226 lua_setfield(L, -2, "acceptMode");
2227 lua_pushcfunction(L, LuaBinder< QFileDialog >::__LuaWrapCall__setHistory);
2228 lua_setfield(L, -2, "setHistory");
2229 lua_pushcfunction(L, LuaBinder< QFileDialog >::__LuaWrapCall__fileMode);
2230 lua_setfield(L, -2, "fileMode");
2231 lua_pushcfunction(L, LuaBinder< QFileDialog >::__LuaWrapCall__setDefaultSuffix);
2232 lua_setfield(L, -2, "setDefaultSuffix");
2233 lua_pushcfunction(L, LuaBinder< QFileDialog >::__LuaWrapCall__getOpenFileName);
2234 lua_setfield(L, -2, "getOpenFileName");
2235 lua_pushcfunction(L, LuaBinder< QFileDialog >::__LuaWrapCall__setReadOnly);
2236 lua_setfield(L, -2, "setReadOnly");
2237 lua_pushcfunction(L, LuaBinder< QFileDialog >::__LuaWrapCall__setLabelText);
2238 lua_setfield(L, -2, "setLabelText");
2239 lua_pushcfunction(L, LuaBinder< QFileDialog >::__LuaWrapCall__selectFile);
2240 lua_setfield(L, -2, "selectFile");
2241 lua_pushcfunction(L, LuaBinder< QFileDialog >::__LuaWrapCall__setFilters);
2242 lua_setfield(L, -2, "setFilters");
2243 lua_pushcfunction(L, LuaBinder< QFileDialog >::__LuaWrapCall__selectedFiles);
2244 lua_setfield(L, -2, "selectedFiles");
2245 lua_pushcfunction(L, LuaBinder< QFileDialog >::__LuaWrapCall__viewMode);
2246 lua_setfield(L, -2, "viewMode");
2247 lua_pushcfunction(L, LuaBinder< QFileDialog >::__LuaWrapCall__setFileMode);
2248 lua_setfield(L, -2, "setFileMode");
2249 lua_pushcfunction(L, LuaBinder< QFileDialog >::__LuaWrapCall__getExistingDirectory);
2250 lua_setfield(L, -2, "getExistingDirectory");
2251 lua_pushcfunction(L, LuaBinder< QFileDialog >::__LuaWrapCall__delete);
2252 lua_setfield(L, -2, "delete");
2253 lua_pushcfunction(L, LuaBinder< QFileDialog >::__LuaWrapCall__metaObject);
2254 lua_setfield(L, -2, "metaObject");
2255 lua_pushcfunction(L, LuaBinder< QFileDialog >::__LuaWrapCall__getSaveFileName);
2256 lua_setfield(L, -2, "getSaveFileName");
2257 lua_pushcfunction(L, LuaBinder< QFileDialog >::__LuaWrapCall__setResolveSymlinks);
2258 lua_setfield(L, -2, "setResolveSymlinks");
2259 lua_pushcfunction(L, LuaBinder< QFileDialog >::__LuaWrapCall__new);
2260 lua_setfield(L, -2, "new");
2261 lua_pushcfunction(L, LuaBinder< QFileDialog >::__LuaWrapCall__selectedFilter);
2262 lua_setfield(L, -2, "selectedFilter");
2263 lua_pushcfunction(L, LuaBinder< QFileDialog >::__LuaWrapCall__directory);
2264 lua_setfield(L, -2, "directory");
2265 lua_pushcfunction(L, LuaBinder< QFileDialog >::__LuaWrapCall__isReadOnly);
2266 lua_setfield(L, -2, "isReadOnly");
2267 lua_pushcfunction(L, LuaBinder< QFileDialog >::__LuaWrapCall__defaultSuffix);
2268 lua_setfield(L, -2, "defaultSuffix");
2269 lua_pushcfunction(L, LuaBinder< QFileDialog >::__LuaWrapCall__setFilter);
2270 lua_setfield(L, -2, "setFilter");
2271 lua_pushcfunction(L, LuaBinder< QFileDialog >::__LuaWrapCall__setDirectory);
2272 lua_setfield(L, -2, "setDirectory");
2273 lua_pushcfunction(L, LuaBinder< QFileDialog >::__LuaWrapCall__setItemDelegate);
2274 lua_setfield(L, -2, "setItemDelegate");
2275 lua_pushcfunction(L, LuaBinder< QFileDialog >::__LuaWrapCall__restoreState);
2276 lua_setfield(L, -2, "restoreState");
2277 lua_pushcfunction(L, LuaBinder< QFileDialog >::__LuaWrapCall__itemDelegate);
2278 lua_setfield(L, -2, "itemDelegate");
2279 lua_pushcfunction(L, LuaBinder< QFileDialog >::__LuaWrapCall__history);
2280 lua_setfield(L, -2, "history");
2281 lua_pushcfunction(L, LuaBinder< QFileDialog >::__LuaWrapCall__setIconProvider);
2282 lua_setfield(L, -2, "setIconProvider");
2283 lua_pushcfunction(L, LuaBinder< QFileDialog >::__LuaWrapCall__iconProvider);
2284 lua_setfield(L, -2, "iconProvider");
2285 lua_pushcfunction(L, LuaBinder< QFileDialog >::__LuaWrapCall__proxyModel);
2286 lua_setfield(L, -2, "proxyModel");
2287 lua_pushcfunction(L, LuaBinder< QFileDialog >::__LuaWrapCall__labelText);
2288 lua_setfield(L, -2, "labelText");
2289 lua_pushcfunction(L, LuaBinder< QFileDialog >::__LuaWrapCall__setProxyModel);
2290 lua_setfield(L, -2, "setProxyModel");
2291 lua_pushcfunction(L, LuaBinder< QFileDialog >::__LuaWrapCall__getOpenFileNames);
2292 lua_setfield(L, -2, "getOpenFileNames");
2293 LuaBinder< QFileDialog >::lqt_pushenum_ViewMode(L);
2294 lua_setfield(L, -2, "ViewMode");
2295 LuaBinder< QFileDialog >::lqt_pushenum_FileMode(L);
2296 lua_setfield(L, -2, "FileMode");
2297 LuaBinder< QFileDialog >::lqt_pushenum_AcceptMode(L);
2298 lua_setfield(L, -2, "AcceptMode");
2299 LuaBinder< QFileDialog >::lqt_pushenum_DialogLabel(L);
2300 lua_setfield(L, -2, "DialogLabel");
2301 LuaBinder< QFileDialog >::lqt_pushenum_Option(L);
2302 lua_setfield(L, -2, "Option");
2303 lua_newtable(L);
2304 lua_pushboolean(L, 1);
2305 lua_setfield(L, -2, "QDialog*");
2306 lua_pushboolean(L, 0);
2307 lua_setfield(L, -2, "QObject*");
2308 lua_pushboolean(L, 0);
2309 lua_setfield(L, -2, "QPaintDevice*");
2310 lua_pushboolean(L, 0);
2311 lua_setfield(L, -2, "QWidget*");
2312 lua_setfield(L, -2, "__base");
2313 lua_pushcfunction(L, lqtL_newindex);
2314 lua_setfield(L, -2, "__newindex");
2315 lua_pushcfunction(L, lqtL_index);
2316 lua_setfield(L, -2, "__index");
2317 lua_pushcfunction(L, lqtL_gc);
2318 lua_setfield(L, -2, "__gc");
2319 lua_pushstring(L, "QFileDialog");
2320 lua_setfield(L, -2, "__qtype");
2321 lua_setglobal(L, "QFileDialog");
2322 } else {
2323 lua_pop(L, 1);
2325 return 0;