Initial commit
[Leditor.git] / src / lqt_bind_QLineEdit.cpp
blobce764634e733a1d269adb4a83307a1504d5a004d
1 #include "lqt_bind_QLineEdit.hpp"
3 int LuaBinder< QLineEdit >::__LuaWrapCall__setValidator (lua_State *L) {
4 QLineEdit *& __lua__obj = *static_cast<QLineEdit**>(lqtL_checkudata(L, 1, "QLineEdit*"));
5 if (__lua__obj==0) {
6 lua_pushstring(L, "trying to reference deleted pointer");
7 lua_error(L);
8 return 0;
10 const QValidator * arg1 = *static_cast<QValidator**>(lqtL_checkudata(L, 2, "QValidator*"));
11 __lua__obj->QLineEdit::setValidator(arg1);
12 return 0;
14 int LuaBinder< QLineEdit >::__LuaWrapCall__inputMask (lua_State *L) {
15 QLineEdit *& __lua__obj = *static_cast<QLineEdit**>(lqtL_checkudata(L, 1, "QLineEdit*"));
16 if (__lua__obj==0) {
17 lua_pushstring(L, "trying to reference deleted pointer");
18 lua_error(L);
19 return 0;
21 QString ret = __lua__obj->QLineEdit::inputMask();
22 lua_pushlstring(L, ret.toAscii().data(), ret.toAscii().size());
23 return 1;
25 int LuaBinder< QLineEdit >::__LuaWrapCall__createStandardContextMenu (lua_State *L) {
26 QLineEdit *& __lua__obj = *static_cast<QLineEdit**>(lqtL_checkudata(L, 1, "QLineEdit*"));
27 if (__lua__obj==0) {
28 lua_pushstring(L, "trying to reference deleted pointer");
29 lua_error(L);
30 return 0;
32 QMenu * ret = __lua__obj->QLineEdit::createStandardContextMenu();
33 lqtL_pushudata(L, ret, "QMenu*");
34 return 1;
36 int LuaBinder< QLineEdit >::__LuaWrapCall__sizeHint (lua_State *L) {
37 QLineEdit *& __lua__obj = *static_cast<QLineEdit**>(lqtL_checkudata(L, 1, "QLineEdit*"));
38 if (__lua__obj==0) {
39 lua_pushstring(L, "trying to reference deleted pointer");
40 lua_error(L);
41 return 0;
43 QSize ret = __lua__obj->QLineEdit::sizeHint();
44 lqtL_passudata(L, new QSize(ret), "QSize*");
45 return 1;
47 int LuaBinder< QLineEdit >::__LuaWrapCall__validator (lua_State *L) {
48 QLineEdit *& __lua__obj = *static_cast<QLineEdit**>(lqtL_checkudata(L, 1, "QLineEdit*"));
49 if (__lua__obj==0) {
50 lua_pushstring(L, "trying to reference deleted pointer");
51 lua_error(L);
52 return 0;
54 const QValidator * ret = __lua__obj->QLineEdit::validator();
55 lqtL_pushudata(L, ret, "QValidator*");
56 return 1;
58 int LuaBinder< QLineEdit >::__LuaWrapCall__cursorWordBackward (lua_State *L) {
59 QLineEdit *& __lua__obj = *static_cast<QLineEdit**>(lqtL_checkudata(L, 1, "QLineEdit*"));
60 if (__lua__obj==0) {
61 lua_pushstring(L, "trying to reference deleted pointer");
62 lua_error(L);
63 return 0;
65 bool arg1 = (bool)lua_toboolean(L, 2);
66 __lua__obj->QLineEdit::cursorWordBackward(arg1);
67 return 0;
69 int LuaBinder< QLineEdit >::__LuaWrapCall__cut (lua_State *L) {
70 QLineEdit *& __lua__obj = *static_cast<QLineEdit**>(lqtL_checkudata(L, 1, "QLineEdit*"));
71 if (__lua__obj==0) {
72 lua_pushstring(L, "trying to reference deleted pointer");
73 lua_error(L);
74 return 0;
76 __lua__obj->QLineEdit::cut();
77 return 0;
79 int LuaBinder< QLineEdit >::__LuaWrapCall__hasSelectedText (lua_State *L) {
80 QLineEdit *& __lua__obj = *static_cast<QLineEdit**>(lqtL_checkudata(L, 1, "QLineEdit*"));
81 if (__lua__obj==0) {
82 lua_pushstring(L, "trying to reference deleted pointer");
83 lua_error(L);
84 return 0;
86 bool ret = __lua__obj->QLineEdit::hasSelectedText();
87 lua_pushboolean(L, ret);
88 return 1;
90 int LuaBinder< QLineEdit >::__LuaWrapCall__copy (lua_State *L) {
91 QLineEdit *& __lua__obj = *static_cast<QLineEdit**>(lqtL_checkudata(L, 1, "QLineEdit*"));
92 if (__lua__obj==0) {
93 lua_pushstring(L, "trying to reference deleted pointer");
94 lua_error(L);
95 return 0;
97 __lua__obj->QLineEdit::copy();
98 return 0;
100 int LuaBinder< QLineEdit >::__LuaWrapCall__home (lua_State *L) {
101 QLineEdit *& __lua__obj = *static_cast<QLineEdit**>(lqtL_checkudata(L, 1, "QLineEdit*"));
102 if (__lua__obj==0) {
103 lua_pushstring(L, "trying to reference deleted pointer");
104 lua_error(L);
105 return 0;
107 bool arg1 = (bool)lua_toboolean(L, 2);
108 __lua__obj->QLineEdit::home(arg1);
109 return 0;
111 int LuaBinder< QLineEdit >::__LuaWrapCall__trUtf8__OverloadedVersion__1 (lua_State *L) {
112 const char * arg1 = lua_tostring(L, 1);
113 const char * arg2 = (lua_type(L, 2)==LUA_TSTRING)?lua_tostring(L, 2):static_cast< const char * >(0);
114 QString ret = QLineEdit::trUtf8(arg1, arg2);
115 lua_pushlstring(L, ret.toAscii().data(), ret.toAscii().size());
116 return 1;
118 int LuaBinder< QLineEdit >::__LuaWrapCall__trUtf8__OverloadedVersion__2 (lua_State *L) {
119 const char * arg1 = lua_tostring(L, 1);
120 const char * arg2 = lua_tostring(L, 2);
121 int arg3 = lua_tointeger(L, 3);
122 QString ret = QLineEdit::trUtf8(arg1, arg2, arg3);
123 lua_pushlstring(L, ret.toAscii().data(), ret.toAscii().size());
124 return 1;
126 int LuaBinder< QLineEdit >::__LuaWrapCall__trUtf8 (lua_State *L) {
127 int score[2];
128 const int premium = 11+lua_gettop(L);
129 score[1] = 0;
130 if ((lua_type(L, 1)==LUA_TSTRING)) {
131 score[1] += premium;
132 } else if (false) {
133 score[1] += premium-1; // table: 0x8afd40;
134 } else {
135 score[1] -= premium*premium;
137 if ((lua_type(L, 2)==LUA_TSTRING)) {
138 score[1] += premium;
139 } else if (true) {
140 score[1] += premium-1; // table: 0x203eb20;
141 } else {
142 score[1] -= premium*premium;
144 score[2] = 0;
145 if ((lua_type(L, 1)==LUA_TSTRING)) {
146 score[2] += premium;
147 } else if (false) {
148 score[2] += premium-1; // table: 0xfdf7d0;
149 } else {
150 score[2] -= premium*premium;
152 if ((lua_type(L, 2)==LUA_TSTRING)) {
153 score[2] += premium;
154 } else if (false) {
155 score[2] += premium-1; // table: 0xfdf380;
156 } else {
157 score[2] -= premium*premium;
159 if (lua_isnumber(L, 3)) {
160 score[2] += premium;
161 } else if (false) {
162 score[2] += premium-1; // table: 0x2149f30;
163 } else {
164 score[2] -= premium*premium;
166 int best = 1;
167 for (int i=1;i<=2;i++) {
168 if (score[best] < score[i]) { best = i; }
170 switch (best) {
171 case 1: return __LuaWrapCall__trUtf8__OverloadedVersion__1(L); break;
172 case 2: return __LuaWrapCall__trUtf8__OverloadedVersion__2(L); break;
174 return -1;
176 int LuaBinder< QLineEdit >::__LuaWrapCall__cursorWordForward (lua_State *L) {
177 QLineEdit *& __lua__obj = *static_cast<QLineEdit**>(lqtL_checkudata(L, 1, "QLineEdit*"));
178 if (__lua__obj==0) {
179 lua_pushstring(L, "trying to reference deleted pointer");
180 lua_error(L);
181 return 0;
183 bool arg1 = (bool)lua_toboolean(L, 2);
184 __lua__obj->QLineEdit::cursorWordForward(arg1);
185 return 0;
187 int LuaBinder< QLineEdit >::__LuaWrapCall__tr__OverloadedVersion__1 (lua_State *L) {
188 const char * arg1 = lua_tostring(L, 1);
189 const char * arg2 = (lua_type(L, 2)==LUA_TSTRING)?lua_tostring(L, 2):static_cast< const char * >(0);
190 QString ret = QLineEdit::tr(arg1, arg2);
191 lua_pushlstring(L, ret.toAscii().data(), ret.toAscii().size());
192 return 1;
194 int LuaBinder< QLineEdit >::__LuaWrapCall__tr__OverloadedVersion__2 (lua_State *L) {
195 const char * arg1 = lua_tostring(L, 1);
196 const char * arg2 = lua_tostring(L, 2);
197 int arg3 = lua_tointeger(L, 3);
198 QString ret = QLineEdit::tr(arg1, arg2, arg3);
199 lua_pushlstring(L, ret.toAscii().data(), ret.toAscii().size());
200 return 1;
202 int LuaBinder< QLineEdit >::__LuaWrapCall__tr (lua_State *L) {
203 int score[2];
204 const int premium = 11+lua_gettop(L);
205 score[1] = 0;
206 if ((lua_type(L, 1)==LUA_TSTRING)) {
207 score[1] += premium;
208 } else if (false) {
209 score[1] += premium-1; // table: 0x203e7d0;
210 } else {
211 score[1] -= premium*premium;
213 if ((lua_type(L, 2)==LUA_TSTRING)) {
214 score[1] += premium;
215 } else if (true) {
216 score[1] += premium-1; // table: 0x6ea380;
217 } else {
218 score[1] -= premium*premium;
220 score[2] = 0;
221 if ((lua_type(L, 1)==LUA_TSTRING)) {
222 score[2] += premium;
223 } else if (false) {
224 score[2] += premium-1; // table: 0x1743c70;
225 } else {
226 score[2] -= premium*premium;
228 if ((lua_type(L, 2)==LUA_TSTRING)) {
229 score[2] += premium;
230 } else if (false) {
231 score[2] += premium-1; // table: 0x1743ec0;
232 } else {
233 score[2] -= premium*premium;
235 if (lua_isnumber(L, 3)) {
236 score[2] += premium;
237 } else if (false) {
238 score[2] += premium-1; // table: 0x1f21400;
239 } else {
240 score[2] -= premium*premium;
242 int best = 1;
243 for (int i=1;i<=2;i++) {
244 if (score[best] < score[i]) { best = i; }
246 switch (best) {
247 case 1: return __LuaWrapCall__tr__OverloadedVersion__1(L); break;
248 case 2: return __LuaWrapCall__tr__OverloadedVersion__2(L); break;
250 return -1;
252 int LuaBinder< QLineEdit >::__LuaWrapCall__cursorPositionAt (lua_State *L) {
253 QLineEdit *& __lua__obj = *static_cast<QLineEdit**>(lqtL_checkudata(L, 1, "QLineEdit*"));
254 if (__lua__obj==0) {
255 lua_pushstring(L, "trying to reference deleted pointer");
256 lua_error(L);
257 return 0;
259 const QPoint& arg1 = **static_cast<QPoint**>(lqtL_checkudata(L, 2, "QPoint*"));
260 int ret = __lua__obj->QLineEdit::cursorPositionAt(arg1);
261 lua_pushinteger(L, ret);
262 return 1;
264 int LuaBinder< QLineEdit >::__LuaWrapCall__isReadOnly (lua_State *L) {
265 QLineEdit *& __lua__obj = *static_cast<QLineEdit**>(lqtL_checkudata(L, 1, "QLineEdit*"));
266 if (__lua__obj==0) {
267 lua_pushstring(L, "trying to reference deleted pointer");
268 lua_error(L);
269 return 0;
271 bool ret = __lua__obj->QLineEdit::isReadOnly();
272 lua_pushboolean(L, ret);
273 return 1;
275 int LuaBinder< QLineEdit >::__LuaWrapCall__insert (lua_State *L) {
276 QLineEdit *& __lua__obj = *static_cast<QLineEdit**>(lqtL_checkudata(L, 1, "QLineEdit*"));
277 if (__lua__obj==0) {
278 lua_pushstring(L, "trying to reference deleted pointer");
279 lua_error(L);
280 return 0;
282 const QString& arg1 = QString::fromAscii(lua_tostring(L, 2), lua_objlen(L, 2));
283 __lua__obj->QLineEdit::insert(arg1);
284 return 0;
286 int LuaBinder< QLineEdit >::__LuaWrapCall__setMaxLength (lua_State *L) {
287 QLineEdit *& __lua__obj = *static_cast<QLineEdit**>(lqtL_checkudata(L, 1, "QLineEdit*"));
288 if (__lua__obj==0) {
289 lua_pushstring(L, "trying to reference deleted pointer");
290 lua_error(L);
291 return 0;
293 int arg1 = lua_tointeger(L, 2);
294 __lua__obj->QLineEdit::setMaxLength(arg1);
295 return 0;
297 int LuaBinder< QLineEdit >::__LuaWrapCall__text (lua_State *L) {
298 QLineEdit *& __lua__obj = *static_cast<QLineEdit**>(lqtL_checkudata(L, 1, "QLineEdit*"));
299 if (__lua__obj==0) {
300 lua_pushstring(L, "trying to reference deleted pointer");
301 lua_error(L);
302 return 0;
304 QString ret = __lua__obj->QLineEdit::text();
305 lua_pushlstring(L, ret.toAscii().data(), ret.toAscii().size());
306 return 1;
308 int LuaBinder< QLineEdit >::__LuaWrapCall__event (lua_State *L) {
309 QLineEdit *& __lua__obj = *static_cast<QLineEdit**>(lqtL_checkudata(L, 1, "QLineEdit*"));
310 if (__lua__obj==0) {
311 lua_pushstring(L, "trying to reference deleted pointer");
312 lua_error(L);
313 return 0;
315 QEvent * arg1 = *static_cast<QEvent**>(lqtL_checkudata(L, 2, "QEvent*"));
316 bool ret = __lua__obj->QLineEdit::event(arg1);
317 lua_pushboolean(L, ret);
318 return 1;
320 int LuaBinder< QLineEdit >::__LuaWrapCall__isModified (lua_State *L) {
321 QLineEdit *& __lua__obj = *static_cast<QLineEdit**>(lqtL_checkudata(L, 1, "QLineEdit*"));
322 if (__lua__obj==0) {
323 lua_pushstring(L, "trying to reference deleted pointer");
324 lua_error(L);
325 return 0;
327 bool ret = __lua__obj->QLineEdit::isModified();
328 lua_pushboolean(L, ret);
329 return 1;
331 int LuaBinder< QLineEdit >::__LuaWrapCall__hasFrame (lua_State *L) {
332 QLineEdit *& __lua__obj = *static_cast<QLineEdit**>(lqtL_checkudata(L, 1, "QLineEdit*"));
333 if (__lua__obj==0) {
334 lua_pushstring(L, "trying to reference deleted pointer");
335 lua_error(L);
336 return 0;
338 bool ret = __lua__obj->QLineEdit::hasFrame();
339 lua_pushboolean(L, ret);
340 return 1;
342 int LuaBinder< QLineEdit >::__LuaWrapCall__setCursorPosition (lua_State *L) {
343 QLineEdit *& __lua__obj = *static_cast<QLineEdit**>(lqtL_checkudata(L, 1, "QLineEdit*"));
344 if (__lua__obj==0) {
345 lua_pushstring(L, "trying to reference deleted pointer");
346 lua_error(L);
347 return 0;
349 int arg1 = lua_tointeger(L, 2);
350 __lua__obj->QLineEdit::setCursorPosition(arg1);
351 return 0;
353 int LuaBinder< QLineEdit >::__LuaWrapCall__echoMode (lua_State *L) {
354 QLineEdit *& __lua__obj = *static_cast<QLineEdit**>(lqtL_checkudata(L, 1, "QLineEdit*"));
355 if (__lua__obj==0) {
356 lua_pushstring(L, "trying to reference deleted pointer");
357 lua_error(L);
358 return 0;
360 QLineEdit::EchoMode ret = __lua__obj->QLineEdit::echoMode();
361 lqtL_pushenum(L, ret, "QLineEdit::EchoMode");
362 return 1;
364 int LuaBinder< QLineEdit >::__LuaWrapCall__isUndoAvailable (lua_State *L) {
365 QLineEdit *& __lua__obj = *static_cast<QLineEdit**>(lqtL_checkudata(L, 1, "QLineEdit*"));
366 if (__lua__obj==0) {
367 lua_pushstring(L, "trying to reference deleted pointer");
368 lua_error(L);
369 return 0;
371 bool ret = __lua__obj->QLineEdit::isUndoAvailable();
372 lua_pushboolean(L, ret);
373 return 1;
375 int LuaBinder< QLineEdit >::__LuaWrapCall__cursorBackward (lua_State *L) {
376 QLineEdit *& __lua__obj = *static_cast<QLineEdit**>(lqtL_checkudata(L, 1, "QLineEdit*"));
377 if (__lua__obj==0) {
378 lua_pushstring(L, "trying to reference deleted pointer");
379 lua_error(L);
380 return 0;
382 bool arg1 = (bool)lua_toboolean(L, 2);
383 int arg2 = lua_isnumber(L, 3)?lua_tointeger(L, 3):static_cast< int >(1);
384 __lua__obj->QLineEdit::cursorBackward(arg1, arg2);
385 return 0;
387 int LuaBinder< QLineEdit >::__LuaWrapCall__setSelection (lua_State *L) {
388 QLineEdit *& __lua__obj = *static_cast<QLineEdit**>(lqtL_checkudata(L, 1, "QLineEdit*"));
389 if (__lua__obj==0) {
390 lua_pushstring(L, "trying to reference deleted pointer");
391 lua_error(L);
392 return 0;
394 int arg1 = lua_tointeger(L, 2);
395 int arg2 = lua_tointeger(L, 3);
396 __lua__obj->QLineEdit::setSelection(arg1, arg2);
397 return 0;
399 int LuaBinder< QLineEdit >::__LuaWrapCall__setReadOnly (lua_State *L) {
400 QLineEdit *& __lua__obj = *static_cast<QLineEdit**>(lqtL_checkudata(L, 1, "QLineEdit*"));
401 if (__lua__obj==0) {
402 lua_pushstring(L, "trying to reference deleted pointer");
403 lua_error(L);
404 return 0;
406 bool arg1 = (bool)lua_toboolean(L, 2);
407 __lua__obj->QLineEdit::setReadOnly(arg1);
408 return 0;
410 int LuaBinder< QLineEdit >::__LuaWrapCall__setModified (lua_State *L) {
411 QLineEdit *& __lua__obj = *static_cast<QLineEdit**>(lqtL_checkudata(L, 1, "QLineEdit*"));
412 if (__lua__obj==0) {
413 lua_pushstring(L, "trying to reference deleted pointer");
414 lua_error(L);
415 return 0;
417 bool arg1 = (bool)lua_toboolean(L, 2);
418 __lua__obj->QLineEdit::setModified(arg1);
419 return 0;
421 int LuaBinder< QLineEdit >::__LuaWrapCall__setDragEnabled (lua_State *L) {
422 QLineEdit *& __lua__obj = *static_cast<QLineEdit**>(lqtL_checkudata(L, 1, "QLineEdit*"));
423 if (__lua__obj==0) {
424 lua_pushstring(L, "trying to reference deleted pointer");
425 lua_error(L);
426 return 0;
428 bool arg1 = (bool)lua_toboolean(L, 2);
429 __lua__obj->QLineEdit::setDragEnabled(arg1);
430 return 0;
432 int LuaBinder< QLineEdit >::__LuaWrapCall__cursorPosition (lua_State *L) {
433 QLineEdit *& __lua__obj = *static_cast<QLineEdit**>(lqtL_checkudata(L, 1, "QLineEdit*"));
434 if (__lua__obj==0) {
435 lua_pushstring(L, "trying to reference deleted pointer");
436 lua_error(L);
437 return 0;
439 int ret = __lua__obj->QLineEdit::cursorPosition();
440 lua_pushinteger(L, ret);
441 return 1;
443 int LuaBinder< QLineEdit >::__LuaWrapCall__isRedoAvailable (lua_State *L) {
444 QLineEdit *& __lua__obj = *static_cast<QLineEdit**>(lqtL_checkudata(L, 1, "QLineEdit*"));
445 if (__lua__obj==0) {
446 lua_pushstring(L, "trying to reference deleted pointer");
447 lua_error(L);
448 return 0;
450 bool ret = __lua__obj->QLineEdit::isRedoAvailable();
451 lua_pushboolean(L, ret);
452 return 1;
454 int LuaBinder< QLineEdit >::__LuaWrapCall__del (lua_State *L) {
455 QLineEdit *& __lua__obj = *static_cast<QLineEdit**>(lqtL_checkudata(L, 1, "QLineEdit*"));
456 if (__lua__obj==0) {
457 lua_pushstring(L, "trying to reference deleted pointer");
458 lua_error(L);
459 return 0;
461 __lua__obj->QLineEdit::del();
462 return 0;
464 int LuaBinder< QLineEdit >::__LuaWrapCall__displayText (lua_State *L) {
465 QLineEdit *& __lua__obj = *static_cast<QLineEdit**>(lqtL_checkudata(L, 1, "QLineEdit*"));
466 if (__lua__obj==0) {
467 lua_pushstring(L, "trying to reference deleted pointer");
468 lua_error(L);
469 return 0;
471 QString ret = __lua__obj->QLineEdit::displayText();
472 lua_pushlstring(L, ret.toAscii().data(), ret.toAscii().size());
473 return 1;
475 int LuaBinder< QLineEdit >::__LuaWrapCall__setText (lua_State *L) {
476 QLineEdit *& __lua__obj = *static_cast<QLineEdit**>(lqtL_checkudata(L, 1, "QLineEdit*"));
477 if (__lua__obj==0) {
478 lua_pushstring(L, "trying to reference deleted pointer");
479 lua_error(L);
480 return 0;
482 const QString& arg1 = QString::fromAscii(lua_tostring(L, 2), lua_objlen(L, 2));
483 __lua__obj->QLineEdit::setText(arg1);
484 return 0;
486 int LuaBinder< QLineEdit >::__LuaWrapCall__minimumSizeHint (lua_State *L) {
487 QLineEdit *& __lua__obj = *static_cast<QLineEdit**>(lqtL_checkudata(L, 1, "QLineEdit*"));
488 if (__lua__obj==0) {
489 lua_pushstring(L, "trying to reference deleted pointer");
490 lua_error(L);
491 return 0;
493 QSize ret = __lua__obj->QLineEdit::minimumSizeHint();
494 lqtL_passudata(L, new QSize(ret), "QSize*");
495 return 1;
497 int LuaBinder< QLineEdit >::__LuaWrapCall__hasAcceptableInput (lua_State *L) {
498 QLineEdit *& __lua__obj = *static_cast<QLineEdit**>(lqtL_checkudata(L, 1, "QLineEdit*"));
499 if (__lua__obj==0) {
500 lua_pushstring(L, "trying to reference deleted pointer");
501 lua_error(L);
502 return 0;
504 bool ret = __lua__obj->QLineEdit::hasAcceptableInput();
505 lua_pushboolean(L, ret);
506 return 1;
508 int LuaBinder< QLineEdit >::__LuaWrapCall__selectionStart (lua_State *L) {
509 QLineEdit *& __lua__obj = *static_cast<QLineEdit**>(lqtL_checkudata(L, 1, "QLineEdit*"));
510 if (__lua__obj==0) {
511 lua_pushstring(L, "trying to reference deleted pointer");
512 lua_error(L);
513 return 0;
515 int ret = __lua__obj->QLineEdit::selectionStart();
516 lua_pushinteger(L, ret);
517 return 1;
519 int LuaBinder< QLineEdit >::__LuaWrapCall__backspace (lua_State *L) {
520 QLineEdit *& __lua__obj = *static_cast<QLineEdit**>(lqtL_checkudata(L, 1, "QLineEdit*"));
521 if (__lua__obj==0) {
522 lua_pushstring(L, "trying to reference deleted pointer");
523 lua_error(L);
524 return 0;
526 __lua__obj->QLineEdit::backspace();
527 return 0;
529 int LuaBinder< QLineEdit >::__LuaWrapCall__setEchoMode (lua_State *L) {
530 QLineEdit *& __lua__obj = *static_cast<QLineEdit**>(lqtL_checkudata(L, 1, "QLineEdit*"));
531 if (__lua__obj==0) {
532 lua_pushstring(L, "trying to reference deleted pointer");
533 lua_error(L);
534 return 0;
536 QLineEdit::EchoMode arg1 = static_cast<QLineEdit::EchoMode>(lqtL_toenum(L, 2, "QLineEdit::EchoMode"));
537 __lua__obj->QLineEdit::setEchoMode(arg1);
538 return 0;
540 int LuaBinder< QLineEdit >::__LuaWrapCall__end (lua_State *L) {
541 QLineEdit *& __lua__obj = *static_cast<QLineEdit**>(lqtL_checkudata(L, 1, "QLineEdit*"));
542 if (__lua__obj==0) {
543 lua_pushstring(L, "trying to reference deleted pointer");
544 lua_error(L);
545 return 0;
547 bool arg1 = (bool)lua_toboolean(L, 2);
548 __lua__obj->QLineEdit::end(arg1);
549 return 0;
551 int LuaBinder< QLineEdit >::__LuaWrapCall__selectedText (lua_State *L) {
552 QLineEdit *& __lua__obj = *static_cast<QLineEdit**>(lqtL_checkudata(L, 1, "QLineEdit*"));
553 if (__lua__obj==0) {
554 lua_pushstring(L, "trying to reference deleted pointer");
555 lua_error(L);
556 return 0;
558 QString ret = __lua__obj->QLineEdit::selectedText();
559 lua_pushlstring(L, ret.toAscii().data(), ret.toAscii().size());
560 return 1;
562 int LuaBinder< QLineEdit >::__LuaWrapCall__setCompleter (lua_State *L) {
563 QLineEdit *& __lua__obj = *static_cast<QLineEdit**>(lqtL_checkudata(L, 1, "QLineEdit*"));
564 if (__lua__obj==0) {
565 lua_pushstring(L, "trying to reference deleted pointer");
566 lua_error(L);
567 return 0;
569 QCompleter * arg1 = *static_cast<QCompleter**>(lqtL_checkudata(L, 2, "QCompleter*"));
570 __lua__obj->QLineEdit::setCompleter(arg1);
571 return 0;
573 int LuaBinder< QLineEdit >::__LuaWrapCall__metaObject (lua_State *L) {
574 QLineEdit *& __lua__obj = *static_cast<QLineEdit**>(lqtL_checkudata(L, 1, "QLineEdit*"));
575 if (__lua__obj==0) {
576 lua_pushstring(L, "trying to reference deleted pointer");
577 lua_error(L);
578 return 0;
580 const QMetaObject * ret = __lua__obj->QLineEdit::metaObject();
581 lqtL_pushudata(L, ret, "QMetaObject*");
582 return 1;
584 int LuaBinder< QLineEdit >::__LuaWrapCall__new__OverloadedVersion__1 (lua_State *L) {
585 QWidget * arg1 = lqtL_testudata(L, 1, "QWidget*")?*static_cast<QWidget**>(lqtL_checkudata(L, 1, "QWidget*")):static_cast< QWidget * >(0);
586 QLineEdit * ret = new LuaBinder< QLineEdit >(L, arg1);
587 lqtL_pushudata(L, ret, "QLineEdit*");
588 return 1;
590 int LuaBinder< QLineEdit >::__LuaWrapCall__new__OverloadedVersion__2 (lua_State *L) {
591 const QString& arg1 = QString::fromAscii(lua_tostring(L, 1), lua_objlen(L, 1));
592 QWidget * arg2 = lqtL_testudata(L, 2, "QWidget*")?*static_cast<QWidget**>(lqtL_checkudata(L, 2, "QWidget*")):static_cast< QWidget * >(0);
593 QLineEdit * ret = new LuaBinder< QLineEdit >(L, arg1, arg2);
594 lqtL_pushudata(L, ret, "QLineEdit*");
595 return 1;
597 int LuaBinder< QLineEdit >::__LuaWrapCall__new (lua_State *L) {
598 int score[2];
599 const int premium = 11+lua_gettop(L);
600 score[1] = 0;
601 if (lqtL_testudata(L, 1, "QWidget*")) {
602 score[1] += premium;
603 } else if (true) {
604 score[1] += premium-1; // table: 0x1bc6070;
605 } else {
606 score[1] -= premium*premium;
608 score[2] = 0;
609 if ((lua_type(L, 1)==LUA_TSTRING)) {
610 score[2] += premium;
611 } else if (false) {
612 score[2] += premium-1; // table: 0x1b05c80;
613 } else {
614 score[2] -= premium*premium;
616 if (lqtL_testudata(L, 2, "QWidget*")) {
617 score[2] += premium;
618 } else if (true) {
619 score[2] += premium-1; // table: 0x186b5d0;
620 } else {
621 score[2] -= premium*premium;
623 int best = 1;
624 for (int i=1;i<=2;i++) {
625 if (score[best] < score[i]) { best = i; }
627 switch (best) {
628 case 1: return __LuaWrapCall__new__OverloadedVersion__1(L); break;
629 case 2: return __LuaWrapCall__new__OverloadedVersion__2(L); break;
631 return -1;
633 int LuaBinder< QLineEdit >::__LuaWrapCall__inputMethodQuery (lua_State *L) {
634 QLineEdit *& __lua__obj = *static_cast<QLineEdit**>(lqtL_checkudata(L, 1, "QLineEdit*"));
635 if (__lua__obj==0) {
636 lua_pushstring(L, "trying to reference deleted pointer");
637 lua_error(L);
638 return 0;
640 Qt::InputMethodQuery arg1 = static_cast<Qt::InputMethodQuery>(lqtL_toenum(L, 2, "Qt::InputMethodQuery"));
641 QVariant ret = __lua__obj->QLineEdit::inputMethodQuery(arg1);
642 lqtL_passudata(L, new QVariant(ret), "QVariant*");
643 return 1;
645 int LuaBinder< QLineEdit >::__LuaWrapCall__delete (lua_State *L) {
646 QLineEdit *& __lua__obj = *static_cast<QLineEdit**>(lqtL_checkudata(L, 1, "QLineEdit*"));
647 if (__lua__obj==0) {
648 lua_pushstring(L, "trying to reference deleted pointer");
649 lua_error(L);
650 return 0;
652 delete __lua__obj;
653 __lua__obj = 0;
654 return 0;
656 int LuaBinder< QLineEdit >::__LuaWrapCall__redo (lua_State *L) {
657 QLineEdit *& __lua__obj = *static_cast<QLineEdit**>(lqtL_checkudata(L, 1, "QLineEdit*"));
658 if (__lua__obj==0) {
659 lua_pushstring(L, "trying to reference deleted pointer");
660 lua_error(L);
661 return 0;
663 __lua__obj->QLineEdit::redo();
664 return 0;
666 int LuaBinder< QLineEdit >::__LuaWrapCall__deselect (lua_State *L) {
667 QLineEdit *& __lua__obj = *static_cast<QLineEdit**>(lqtL_checkudata(L, 1, "QLineEdit*"));
668 if (__lua__obj==0) {
669 lua_pushstring(L, "trying to reference deleted pointer");
670 lua_error(L);
671 return 0;
673 __lua__obj->QLineEdit::deselect();
674 return 0;
676 int LuaBinder< QLineEdit >::__LuaWrapCall__completer (lua_State *L) {
677 QLineEdit *& __lua__obj = *static_cast<QLineEdit**>(lqtL_checkudata(L, 1, "QLineEdit*"));
678 if (__lua__obj==0) {
679 lua_pushstring(L, "trying to reference deleted pointer");
680 lua_error(L);
681 return 0;
683 QCompleter * ret = __lua__obj->QLineEdit::completer();
684 lqtL_pushudata(L, ret, "QCompleter*");
685 return 1;
687 int LuaBinder< QLineEdit >::__LuaWrapCall__setInputMask (lua_State *L) {
688 QLineEdit *& __lua__obj = *static_cast<QLineEdit**>(lqtL_checkudata(L, 1, "QLineEdit*"));
689 if (__lua__obj==0) {
690 lua_pushstring(L, "trying to reference deleted pointer");
691 lua_error(L);
692 return 0;
694 const QString& arg1 = QString::fromAscii(lua_tostring(L, 2), lua_objlen(L, 2));
695 __lua__obj->QLineEdit::setInputMask(arg1);
696 return 0;
698 int LuaBinder< QLineEdit >::__LuaWrapCall__clear (lua_State *L) {
699 QLineEdit *& __lua__obj = *static_cast<QLineEdit**>(lqtL_checkudata(L, 1, "QLineEdit*"));
700 if (__lua__obj==0) {
701 lua_pushstring(L, "trying to reference deleted pointer");
702 lua_error(L);
703 return 0;
705 __lua__obj->QLineEdit::clear();
706 return 0;
708 int LuaBinder< QLineEdit >::__LuaWrapCall__maxLength (lua_State *L) {
709 QLineEdit *& __lua__obj = *static_cast<QLineEdit**>(lqtL_checkudata(L, 1, "QLineEdit*"));
710 if (__lua__obj==0) {
711 lua_pushstring(L, "trying to reference deleted pointer");
712 lua_error(L);
713 return 0;
715 int ret = __lua__obj->QLineEdit::maxLength();
716 lua_pushinteger(L, ret);
717 return 1;
719 int LuaBinder< QLineEdit >::__LuaWrapCall__setFrame (lua_State *L) {
720 QLineEdit *& __lua__obj = *static_cast<QLineEdit**>(lqtL_checkudata(L, 1, "QLineEdit*"));
721 if (__lua__obj==0) {
722 lua_pushstring(L, "trying to reference deleted pointer");
723 lua_error(L);
724 return 0;
726 bool arg1 = (bool)lua_toboolean(L, 2);
727 __lua__obj->QLineEdit::setFrame(arg1);
728 return 0;
730 int LuaBinder< QLineEdit >::__LuaWrapCall__selectAll (lua_State *L) {
731 QLineEdit *& __lua__obj = *static_cast<QLineEdit**>(lqtL_checkudata(L, 1, "QLineEdit*"));
732 if (__lua__obj==0) {
733 lua_pushstring(L, "trying to reference deleted pointer");
734 lua_error(L);
735 return 0;
737 __lua__obj->QLineEdit::selectAll();
738 return 0;
740 int LuaBinder< QLineEdit >::__LuaWrapCall__alignment (lua_State *L) {
741 QLineEdit *& __lua__obj = *static_cast<QLineEdit**>(lqtL_checkudata(L, 1, "QLineEdit*"));
742 if (__lua__obj==0) {
743 lua_pushstring(L, "trying to reference deleted pointer");
744 lua_error(L);
745 return 0;
747 QFlags<Qt::AlignmentFlag> ret = __lua__obj->QLineEdit::alignment();
748 lqtL_passudata(L, new QFlags<Qt::AlignmentFlag>(ret), "QFlags<Qt::AlignmentFlag>*");
749 return 1;
751 int LuaBinder< QLineEdit >::__LuaWrapCall__cursorForward (lua_State *L) {
752 QLineEdit *& __lua__obj = *static_cast<QLineEdit**>(lqtL_checkudata(L, 1, "QLineEdit*"));
753 if (__lua__obj==0) {
754 lua_pushstring(L, "trying to reference deleted pointer");
755 lua_error(L);
756 return 0;
758 bool arg1 = (bool)lua_toboolean(L, 2);
759 int arg2 = lua_isnumber(L, 3)?lua_tointeger(L, 3):static_cast< int >(1);
760 __lua__obj->QLineEdit::cursorForward(arg1, arg2);
761 return 0;
763 int LuaBinder< QLineEdit >::__LuaWrapCall__undo (lua_State *L) {
764 QLineEdit *& __lua__obj = *static_cast<QLineEdit**>(lqtL_checkudata(L, 1, "QLineEdit*"));
765 if (__lua__obj==0) {
766 lua_pushstring(L, "trying to reference deleted pointer");
767 lua_error(L);
768 return 0;
770 __lua__obj->QLineEdit::undo();
771 return 0;
773 int LuaBinder< QLineEdit >::__LuaWrapCall__paste (lua_State *L) {
774 QLineEdit *& __lua__obj = *static_cast<QLineEdit**>(lqtL_checkudata(L, 1, "QLineEdit*"));
775 if (__lua__obj==0) {
776 lua_pushstring(L, "trying to reference deleted pointer");
777 lua_error(L);
778 return 0;
780 __lua__obj->QLineEdit::paste();
781 return 0;
783 int LuaBinder< QLineEdit >::__LuaWrapCall__dragEnabled (lua_State *L) {
784 QLineEdit *& __lua__obj = *static_cast<QLineEdit**>(lqtL_checkudata(L, 1, "QLineEdit*"));
785 if (__lua__obj==0) {
786 lua_pushstring(L, "trying to reference deleted pointer");
787 lua_error(L);
788 return 0;
790 bool ret = __lua__obj->QLineEdit::dragEnabled();
791 lua_pushboolean(L, ret);
792 return 1;
794 int LuaBinder< QLineEdit >::__LuaWrapCall__setAlignment (lua_State *L) {
795 QLineEdit *& __lua__obj = *static_cast<QLineEdit**>(lqtL_checkudata(L, 1, "QLineEdit*"));
796 if (__lua__obj==0) {
797 lua_pushstring(L, "trying to reference deleted pointer");
798 lua_error(L);
799 return 0;
801 QFlags<Qt::AlignmentFlag> arg1 = **static_cast<QFlags<Qt::AlignmentFlag>**>(lqtL_checkudata(L, 2, "QFlags<Qt::AlignmentFlag>*"));
802 __lua__obj->QLineEdit::setAlignment(arg1);
803 return 0;
805 void LuaBinder< QLineEdit >::styleChange (QStyle& arg1) {
806 bool absorbed = false;
807 int oldtop = lua_gettop(L);
808 lqtL_pushudata(L, this, "QLineEdit*");
809 if (lua_getmetatable(L, -1)) {
810 lua_getfield(L, -1, "styleChange");
811 lua_remove(L, -2);
812 } else {
813 lua_pushnil(L);
815 lua_insert(L, -2);
816 lqtL_pushudata(L, &(arg1), "QStyle*");
817 if (lua_isfunction(L, -1-2)) {
818 lua_pcall(L, 1+1, 2, 0);
819 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
820 lua_pop(L, 1);
822 if (!absorbed) {
823 lua_settop(L, oldtop);
824 this->QWidget::styleChange(arg1);
826 lua_settop(L, oldtop);
828 void LuaBinder< QLineEdit >::mouseReleaseEvent (QMouseEvent * arg1) {
829 bool absorbed = false;
830 int oldtop = lua_gettop(L);
831 lqtL_pushudata(L, this, "QLineEdit*");
832 if (lua_getmetatable(L, -1)) {
833 lua_getfield(L, -1, "mouseReleaseEvent");
834 lua_remove(L, -2);
835 } else {
836 lua_pushnil(L);
838 lua_insert(L, -2);
839 lqtL_pushudata(L, arg1, "QMouseEvent*");
840 if (lua_isfunction(L, -1-2)) {
841 lua_pcall(L, 1+1, 2, 0);
842 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
843 lua_pop(L, 1);
845 if (!absorbed) {
846 lua_settop(L, oldtop);
847 this->QLineEdit::mouseReleaseEvent(arg1);
849 lua_settop(L, oldtop);
851 void LuaBinder< QLineEdit >::keyPressEvent (QKeyEvent * arg1) {
852 bool absorbed = false;
853 int oldtop = lua_gettop(L);
854 lqtL_pushudata(L, this, "QLineEdit*");
855 if (lua_getmetatable(L, -1)) {
856 lua_getfield(L, -1, "keyPressEvent");
857 lua_remove(L, -2);
858 } else {
859 lua_pushnil(L);
861 lua_insert(L, -2);
862 lqtL_pushudata(L, arg1, "QKeyEvent*");
863 if (lua_isfunction(L, -1-2)) {
864 lua_pcall(L, 1+1, 2, 0);
865 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
866 lua_pop(L, 1);
868 if (!absorbed) {
869 lua_settop(L, oldtop);
870 this->QLineEdit::keyPressEvent(arg1);
872 lua_settop(L, oldtop);
874 void LuaBinder< QLineEdit >::contextMenuEvent (QContextMenuEvent * arg1) {
875 bool absorbed = false;
876 int oldtop = lua_gettop(L);
877 lqtL_pushudata(L, this, "QLineEdit*");
878 if (lua_getmetatable(L, -1)) {
879 lua_getfield(L, -1, "contextMenuEvent");
880 lua_remove(L, -2);
881 } else {
882 lua_pushnil(L);
884 lua_insert(L, -2);
885 lqtL_pushudata(L, arg1, "QContextMenuEvent*");
886 if (lua_isfunction(L, -1-2)) {
887 lua_pcall(L, 1+1, 2, 0);
888 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
889 lua_pop(L, 1);
891 if (!absorbed) {
892 lua_settop(L, oldtop);
893 this->QLineEdit::contextMenuEvent(arg1);
895 lua_settop(L, oldtop);
897 int LuaBinder< QLineEdit >::devType () const {
898 bool absorbed = false;
899 int oldtop = lua_gettop(L);
900 lqtL_pushudata(L, this, "QLineEdit*");
901 if (lua_getmetatable(L, -1)) {
902 lua_getfield(L, -1, "devType");
903 lua_remove(L, -2);
904 } else {
905 lua_pushnil(L);
907 lua_insert(L, -2);
908 if (lua_isfunction(L, -0-2)) {
909 lua_pcall(L, 0+1, 2, 0);
910 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
911 lua_pop(L, 1);
913 if (!absorbed) {
914 lua_settop(L, oldtop);
915 return this->QWidget::devType();
917 int ret = lua_tointeger(L, -1);
918 lua_settop(L, oldtop);
919 return ret;
921 void LuaBinder< QLineEdit >::setVisible (bool arg1) {
922 bool absorbed = false;
923 int oldtop = lua_gettop(L);
924 lqtL_pushudata(L, this, "QLineEdit*");
925 if (lua_getmetatable(L, -1)) {
926 lua_getfield(L, -1, "setVisible");
927 lua_remove(L, -2);
928 } else {
929 lua_pushnil(L);
931 lua_insert(L, -2);
932 lua_pushboolean(L, arg1);
933 if (lua_isfunction(L, -1-2)) {
934 lua_pcall(L, 1+1, 2, 0);
935 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
936 lua_pop(L, 1);
938 if (!absorbed) {
939 lua_settop(L, oldtop);
940 this->QWidget::setVisible(arg1);
942 lua_settop(L, oldtop);
944 QVariant LuaBinder< QLineEdit >::inputMethodQuery (Qt::InputMethodQuery arg1) const {
945 bool absorbed = false;
946 int oldtop = lua_gettop(L);
947 lqtL_pushudata(L, this, "QLineEdit*");
948 if (lua_getmetatable(L, -1)) {
949 lua_getfield(L, -1, "inputMethodQuery");
950 lua_remove(L, -2);
951 } else {
952 lua_pushnil(L);
954 lua_insert(L, -2);
955 lqtL_pushenum(L, arg1, "Qt::InputMethodQuery");
956 if (lua_isfunction(L, -1-2)) {
957 lua_pcall(L, 1+1, 2, 0);
958 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
959 lua_pop(L, 1);
961 if (!absorbed) {
962 lua_settop(L, oldtop);
963 return this->QLineEdit::inputMethodQuery(arg1);
965 QVariant ret = **static_cast<QVariant**>(lqtL_checkudata(L, -1, "QVariant*"));
966 lua_settop(L, oldtop);
967 return ret;
969 QPaintEngine * LuaBinder< QLineEdit >::paintEngine () const {
970 bool absorbed = false;
971 int oldtop = lua_gettop(L);
972 lqtL_pushudata(L, this, "QLineEdit*");
973 if (lua_getmetatable(L, -1)) {
974 lua_getfield(L, -1, "paintEngine");
975 lua_remove(L, -2);
976 } else {
977 lua_pushnil(L);
979 lua_insert(L, -2);
980 if (lua_isfunction(L, -0-2)) {
981 lua_pcall(L, 0+1, 2, 0);
982 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
983 lua_pop(L, 1);
985 if (!absorbed) {
986 lua_settop(L, oldtop);
987 return this->QWidget::paintEngine();
989 QPaintEngine * ret = *static_cast<QPaintEngine**>(lqtL_checkudata(L, -1, "QPaintEngine*"));
990 lua_settop(L, oldtop);
991 return ret;
993 void LuaBinder< QLineEdit >::dragLeaveEvent (QDragLeaveEvent * arg1) {
994 bool absorbed = false;
995 int oldtop = lua_gettop(L);
996 lqtL_pushudata(L, this, "QLineEdit*");
997 if (lua_getmetatable(L, -1)) {
998 lua_getfield(L, -1, "dragLeaveEvent");
999 lua_remove(L, -2);
1000 } else {
1001 lua_pushnil(L);
1003 lua_insert(L, -2);
1004 lqtL_pushudata(L, arg1, "QDragLeaveEvent*");
1005 if (lua_isfunction(L, -1-2)) {
1006 lua_pcall(L, 1+1, 2, 0);
1007 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
1008 lua_pop(L, 1);
1010 if (!absorbed) {
1011 lua_settop(L, oldtop);
1012 this->QLineEdit::dragLeaveEvent(arg1);
1014 lua_settop(L, oldtop);
1016 void LuaBinder< QLineEdit >::mousePressEvent (QMouseEvent * arg1) {
1017 bool absorbed = false;
1018 int oldtop = lua_gettop(L);
1019 lqtL_pushudata(L, this, "QLineEdit*");
1020 if (lua_getmetatable(L, -1)) {
1021 lua_getfield(L, -1, "mousePressEvent");
1022 lua_remove(L, -2);
1023 } else {
1024 lua_pushnil(L);
1026 lua_insert(L, -2);
1027 lqtL_pushudata(L, arg1, "QMouseEvent*");
1028 if (lua_isfunction(L, -1-2)) {
1029 lua_pcall(L, 1+1, 2, 0);
1030 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
1031 lua_pop(L, 1);
1033 if (!absorbed) {
1034 lua_settop(L, oldtop);
1035 this->QLineEdit::mousePressEvent(arg1);
1037 lua_settop(L, oldtop);
1039 QSize LuaBinder< QLineEdit >::sizeHint () const {
1040 bool absorbed = false;
1041 int oldtop = lua_gettop(L);
1042 lqtL_pushudata(L, this, "QLineEdit*");
1043 if (lua_getmetatable(L, -1)) {
1044 lua_getfield(L, -1, "sizeHint");
1045 lua_remove(L, -2);
1046 } else {
1047 lua_pushnil(L);
1049 lua_insert(L, -2);
1050 if (lua_isfunction(L, -0-2)) {
1051 lua_pcall(L, 0+1, 2, 0);
1052 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
1053 lua_pop(L, 1);
1055 if (!absorbed) {
1056 lua_settop(L, oldtop);
1057 return this->QLineEdit::sizeHint();
1059 QSize ret = **static_cast<QSize**>(lqtL_checkudata(L, -1, "QSize*"));
1060 lua_settop(L, oldtop);
1061 return ret;
1063 void LuaBinder< QLineEdit >::changeEvent (QEvent * arg1) {
1064 bool absorbed = false;
1065 int oldtop = lua_gettop(L);
1066 lqtL_pushudata(L, this, "QLineEdit*");
1067 if (lua_getmetatable(L, -1)) {
1068 lua_getfield(L, -1, "changeEvent");
1069 lua_remove(L, -2);
1070 } else {
1071 lua_pushnil(L);
1073 lua_insert(L, -2);
1074 lqtL_pushudata(L, arg1, "QEvent*");
1075 if (lua_isfunction(L, -1-2)) {
1076 lua_pcall(L, 1+1, 2, 0);
1077 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
1078 lua_pop(L, 1);
1080 if (!absorbed) {
1081 lua_settop(L, oldtop);
1082 this->QLineEdit::changeEvent(arg1);
1084 lua_settop(L, oldtop);
1086 void LuaBinder< QLineEdit >::tabletEvent (QTabletEvent * arg1) {
1087 bool absorbed = false;
1088 int oldtop = lua_gettop(L);
1089 lqtL_pushudata(L, this, "QLineEdit*");
1090 if (lua_getmetatable(L, -1)) {
1091 lua_getfield(L, -1, "tabletEvent");
1092 lua_remove(L, -2);
1093 } else {
1094 lua_pushnil(L);
1096 lua_insert(L, -2);
1097 lqtL_pushudata(L, arg1, "QTabletEvent*");
1098 if (lua_isfunction(L, -1-2)) {
1099 lua_pcall(L, 1+1, 2, 0);
1100 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
1101 lua_pop(L, 1);
1103 if (!absorbed) {
1104 lua_settop(L, oldtop);
1105 this->QWidget::tabletEvent(arg1);
1107 lua_settop(L, oldtop);
1109 void LuaBinder< QLineEdit >::enterEvent (QEvent * arg1) {
1110 bool absorbed = false;
1111 int oldtop = lua_gettop(L);
1112 lqtL_pushudata(L, this, "QLineEdit*");
1113 if (lua_getmetatable(L, -1)) {
1114 lua_getfield(L, -1, "enterEvent");
1115 lua_remove(L, -2);
1116 } else {
1117 lua_pushnil(L);
1119 lua_insert(L, -2);
1120 lqtL_pushudata(L, arg1, "QEvent*");
1121 if (lua_isfunction(L, -1-2)) {
1122 lua_pcall(L, 1+1, 2, 0);
1123 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
1124 lua_pop(L, 1);
1126 if (!absorbed) {
1127 lua_settop(L, oldtop);
1128 this->QWidget::enterEvent(arg1);
1130 lua_settop(L, oldtop);
1132 void LuaBinder< QLineEdit >::closeEvent (QCloseEvent * arg1) {
1133 bool absorbed = false;
1134 int oldtop = lua_gettop(L);
1135 lqtL_pushudata(L, this, "QLineEdit*");
1136 if (lua_getmetatable(L, -1)) {
1137 lua_getfield(L, -1, "closeEvent");
1138 lua_remove(L, -2);
1139 } else {
1140 lua_pushnil(L);
1142 lua_insert(L, -2);
1143 lqtL_pushudata(L, arg1, "QCloseEvent*");
1144 if (lua_isfunction(L, -1-2)) {
1145 lua_pcall(L, 1+1, 2, 0);
1146 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
1147 lua_pop(L, 1);
1149 if (!absorbed) {
1150 lua_settop(L, oldtop);
1151 this->QWidget::closeEvent(arg1);
1153 lua_settop(L, oldtop);
1155 QSize LuaBinder< QLineEdit >::minimumSizeHint () const {
1156 bool absorbed = false;
1157 int oldtop = lua_gettop(L);
1158 lqtL_pushudata(L, this, "QLineEdit*");
1159 if (lua_getmetatable(L, -1)) {
1160 lua_getfield(L, -1, "minimumSizeHint");
1161 lua_remove(L, -2);
1162 } else {
1163 lua_pushnil(L);
1165 lua_insert(L, -2);
1166 if (lua_isfunction(L, -0-2)) {
1167 lua_pcall(L, 0+1, 2, 0);
1168 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
1169 lua_pop(L, 1);
1171 if (!absorbed) {
1172 lua_settop(L, oldtop);
1173 return this->QLineEdit::minimumSizeHint();
1175 QSize ret = **static_cast<QSize**>(lqtL_checkudata(L, -1, "QSize*"));
1176 lua_settop(L, oldtop);
1177 return ret;
1179 void LuaBinder< QLineEdit >::dragEnterEvent (QDragEnterEvent * arg1) {
1180 bool absorbed = false;
1181 int oldtop = lua_gettop(L);
1182 lqtL_pushudata(L, this, "QLineEdit*");
1183 if (lua_getmetatable(L, -1)) {
1184 lua_getfield(L, -1, "dragEnterEvent");
1185 lua_remove(L, -2);
1186 } else {
1187 lua_pushnil(L);
1189 lua_insert(L, -2);
1190 lqtL_pushudata(L, arg1, "QDragEnterEvent*");
1191 if (lua_isfunction(L, -1-2)) {
1192 lua_pcall(L, 1+1, 2, 0);
1193 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
1194 lua_pop(L, 1);
1196 if (!absorbed) {
1197 lua_settop(L, oldtop);
1198 this->QLineEdit::dragEnterEvent(arg1);
1200 lua_settop(L, oldtop);
1202 void LuaBinder< QLineEdit >::actionEvent (QActionEvent * arg1) {
1203 bool absorbed = false;
1204 int oldtop = lua_gettop(L);
1205 lqtL_pushudata(L, this, "QLineEdit*");
1206 if (lua_getmetatable(L, -1)) {
1207 lua_getfield(L, -1, "actionEvent");
1208 lua_remove(L, -2);
1209 } else {
1210 lua_pushnil(L);
1212 lua_insert(L, -2);
1213 lqtL_pushudata(L, arg1, "QActionEvent*");
1214 if (lua_isfunction(L, -1-2)) {
1215 lua_pcall(L, 1+1, 2, 0);
1216 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
1217 lua_pop(L, 1);
1219 if (!absorbed) {
1220 lua_settop(L, oldtop);
1221 this->QWidget::actionEvent(arg1);
1223 lua_settop(L, oldtop);
1225 void LuaBinder< QLineEdit >::showEvent (QShowEvent * arg1) {
1226 bool absorbed = false;
1227 int oldtop = lua_gettop(L);
1228 lqtL_pushudata(L, this, "QLineEdit*");
1229 if (lua_getmetatable(L, -1)) {
1230 lua_getfield(L, -1, "showEvent");
1231 lua_remove(L, -2);
1232 } else {
1233 lua_pushnil(L);
1235 lua_insert(L, -2);
1236 lqtL_pushudata(L, arg1, "QShowEvent*");
1237 if (lua_isfunction(L, -1-2)) {
1238 lua_pcall(L, 1+1, 2, 0);
1239 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
1240 lua_pop(L, 1);
1242 if (!absorbed) {
1243 lua_settop(L, oldtop);
1244 this->QWidget::showEvent(arg1);
1246 lua_settop(L, oldtop);
1248 const QMetaObject * LuaBinder< QLineEdit >::metaObject () const {
1249 bool absorbed = false;
1250 int oldtop = lua_gettop(L);
1251 lqtL_pushudata(L, this, "QLineEdit*");
1252 if (lua_getmetatable(L, -1)) {
1253 lua_getfield(L, -1, "metaObject");
1254 lua_remove(L, -2);
1255 } else {
1256 lua_pushnil(L);
1258 lua_insert(L, -2);
1259 if (lua_isfunction(L, -0-2)) {
1260 lua_pcall(L, 0+1, 2, 0);
1261 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
1262 lua_pop(L, 1);
1264 if (!absorbed) {
1265 lua_settop(L, oldtop);
1266 return this->QLineEdit::metaObject();
1268 const QMetaObject * ret = *static_cast<QMetaObject**>(lqtL_checkudata(L, -1, "QMetaObject*"));
1269 lua_settop(L, oldtop);
1270 return ret;
1272 void LuaBinder< QLineEdit >::paintEvent (QPaintEvent * arg1) {
1273 bool absorbed = false;
1274 int oldtop = lua_gettop(L);
1275 lqtL_pushudata(L, this, "QLineEdit*");
1276 if (lua_getmetatable(L, -1)) {
1277 lua_getfield(L, -1, "paintEvent");
1278 lua_remove(L, -2);
1279 } else {
1280 lua_pushnil(L);
1282 lua_insert(L, -2);
1283 lqtL_pushudata(L, arg1, "QPaintEvent*");
1284 if (lua_isfunction(L, -1-2)) {
1285 lua_pcall(L, 1+1, 2, 0);
1286 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
1287 lua_pop(L, 1);
1289 if (!absorbed) {
1290 lua_settop(L, oldtop);
1291 this->QLineEdit::paintEvent(arg1);
1293 lua_settop(L, oldtop);
1295 void LuaBinder< QLineEdit >::dragMoveEvent (QDragMoveEvent * arg1) {
1296 bool absorbed = false;
1297 int oldtop = lua_gettop(L);
1298 lqtL_pushudata(L, this, "QLineEdit*");
1299 if (lua_getmetatable(L, -1)) {
1300 lua_getfield(L, -1, "dragMoveEvent");
1301 lua_remove(L, -2);
1302 } else {
1303 lua_pushnil(L);
1305 lua_insert(L, -2);
1306 lqtL_pushudata(L, arg1, "QDragMoveEvent*");
1307 if (lua_isfunction(L, -1-2)) {
1308 lua_pcall(L, 1+1, 2, 0);
1309 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
1310 lua_pop(L, 1);
1312 if (!absorbed) {
1313 lua_settop(L, oldtop);
1314 this->QLineEdit::dragMoveEvent(arg1);
1316 lua_settop(L, oldtop);
1318 void LuaBinder< QLineEdit >::focusInEvent (QFocusEvent * arg1) {
1319 bool absorbed = false;
1320 int oldtop = lua_gettop(L);
1321 lqtL_pushudata(L, this, "QLineEdit*");
1322 if (lua_getmetatable(L, -1)) {
1323 lua_getfield(L, -1, "focusInEvent");
1324 lua_remove(L, -2);
1325 } else {
1326 lua_pushnil(L);
1328 lua_insert(L, -2);
1329 lqtL_pushudata(L, arg1, "QFocusEvent*");
1330 if (lua_isfunction(L, -1-2)) {
1331 lua_pcall(L, 1+1, 2, 0);
1332 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
1333 lua_pop(L, 1);
1335 if (!absorbed) {
1336 lua_settop(L, oldtop);
1337 this->QLineEdit::focusInEvent(arg1);
1339 lua_settop(L, oldtop);
1341 void LuaBinder< QLineEdit >::enabledChange (bool arg1) {
1342 bool absorbed = false;
1343 int oldtop = lua_gettop(L);
1344 lqtL_pushudata(L, this, "QLineEdit*");
1345 if (lua_getmetatable(L, -1)) {
1346 lua_getfield(L, -1, "enabledChange");
1347 lua_remove(L, -2);
1348 } else {
1349 lua_pushnil(L);
1351 lua_insert(L, -2);
1352 lua_pushboolean(L, arg1);
1353 if (lua_isfunction(L, -1-2)) {
1354 lua_pcall(L, 1+1, 2, 0);
1355 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
1356 lua_pop(L, 1);
1358 if (!absorbed) {
1359 lua_settop(L, oldtop);
1360 this->QWidget::enabledChange(arg1);
1362 lua_settop(L, oldtop);
1364 void LuaBinder< QLineEdit >::windowActivationChange (bool arg1) {
1365 bool absorbed = false;
1366 int oldtop = lua_gettop(L);
1367 lqtL_pushudata(L, this, "QLineEdit*");
1368 if (lua_getmetatable(L, -1)) {
1369 lua_getfield(L, -1, "windowActivationChange");
1370 lua_remove(L, -2);
1371 } else {
1372 lua_pushnil(L);
1374 lua_insert(L, -2);
1375 lua_pushboolean(L, arg1);
1376 if (lua_isfunction(L, -1-2)) {
1377 lua_pcall(L, 1+1, 2, 0);
1378 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
1379 lua_pop(L, 1);
1381 if (!absorbed) {
1382 lua_settop(L, oldtop);
1383 this->QWidget::windowActivationChange(arg1);
1385 lua_settop(L, oldtop);
1387 int LuaBinder< QLineEdit >::heightForWidth (int arg1) const {
1388 bool absorbed = false;
1389 int oldtop = lua_gettop(L);
1390 lqtL_pushudata(L, this, "QLineEdit*");
1391 if (lua_getmetatable(L, -1)) {
1392 lua_getfield(L, -1, "heightForWidth");
1393 lua_remove(L, -2);
1394 } else {
1395 lua_pushnil(L);
1397 lua_insert(L, -2);
1398 lua_pushinteger(L, arg1);
1399 if (lua_isfunction(L, -1-2)) {
1400 lua_pcall(L, 1+1, 2, 0);
1401 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
1402 lua_pop(L, 1);
1404 if (!absorbed) {
1405 lua_settop(L, oldtop);
1406 return this->QWidget::heightForWidth(arg1);
1408 int ret = lua_tointeger(L, -1);
1409 lua_settop(L, oldtop);
1410 return ret;
1412 void LuaBinder< QLineEdit >::mouseDoubleClickEvent (QMouseEvent * arg1) {
1413 bool absorbed = false;
1414 int oldtop = lua_gettop(L);
1415 lqtL_pushudata(L, this, "QLineEdit*");
1416 if (lua_getmetatable(L, -1)) {
1417 lua_getfield(L, -1, "mouseDoubleClickEvent");
1418 lua_remove(L, -2);
1419 } else {
1420 lua_pushnil(L);
1422 lua_insert(L, -2);
1423 lqtL_pushudata(L, arg1, "QMouseEvent*");
1424 if (lua_isfunction(L, -1-2)) {
1425 lua_pcall(L, 1+1, 2, 0);
1426 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
1427 lua_pop(L, 1);
1429 if (!absorbed) {
1430 lua_settop(L, oldtop);
1431 this->QLineEdit::mouseDoubleClickEvent(arg1);
1433 lua_settop(L, oldtop);
1435 void LuaBinder< QLineEdit >::fontChange (const QFont& arg1) {
1436 bool absorbed = false;
1437 int oldtop = lua_gettop(L);
1438 lqtL_pushudata(L, this, "QLineEdit*");
1439 if (lua_getmetatable(L, -1)) {
1440 lua_getfield(L, -1, "fontChange");
1441 lua_remove(L, -2);
1442 } else {
1443 lua_pushnil(L);
1445 lua_insert(L, -2);
1446 lqtL_pushudata(L, &(arg1), "QFont*");
1447 if (lua_isfunction(L, -1-2)) {
1448 lua_pcall(L, 1+1, 2, 0);
1449 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
1450 lua_pop(L, 1);
1452 if (!absorbed) {
1453 lua_settop(L, oldtop);
1454 this->QWidget::fontChange(arg1);
1456 lua_settop(L, oldtop);
1458 void LuaBinder< QLineEdit >::timerEvent (QTimerEvent * arg1) {
1459 bool absorbed = false;
1460 int oldtop = lua_gettop(L);
1461 lqtL_pushudata(L, this, "QLineEdit*");
1462 if (lua_getmetatable(L, -1)) {
1463 lua_getfield(L, -1, "timerEvent");
1464 lua_remove(L, -2);
1465 } else {
1466 lua_pushnil(L);
1468 lua_insert(L, -2);
1469 lqtL_pushudata(L, arg1, "QTimerEvent*");
1470 if (lua_isfunction(L, -1-2)) {
1471 lua_pcall(L, 1+1, 2, 0);
1472 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
1473 lua_pop(L, 1);
1475 if (!absorbed) {
1476 lua_settop(L, oldtop);
1477 this->QObject::timerEvent(arg1);
1479 lua_settop(L, oldtop);
1481 void LuaBinder< QLineEdit >::mouseMoveEvent (QMouseEvent * arg1) {
1482 bool absorbed = false;
1483 int oldtop = lua_gettop(L);
1484 lqtL_pushudata(L, this, "QLineEdit*");
1485 if (lua_getmetatable(L, -1)) {
1486 lua_getfield(L, -1, "mouseMoveEvent");
1487 lua_remove(L, -2);
1488 } else {
1489 lua_pushnil(L);
1491 lua_insert(L, -2);
1492 lqtL_pushudata(L, arg1, "QMouseEvent*");
1493 if (lua_isfunction(L, -1-2)) {
1494 lua_pcall(L, 1+1, 2, 0);
1495 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
1496 lua_pop(L, 1);
1498 if (!absorbed) {
1499 lua_settop(L, oldtop);
1500 this->QLineEdit::mouseMoveEvent(arg1);
1502 lua_settop(L, oldtop);
1504 void LuaBinder< QLineEdit >::disconnectNotify (const char * arg1) {
1505 bool absorbed = false;
1506 int oldtop = lua_gettop(L);
1507 lqtL_pushudata(L, this, "QLineEdit*");
1508 if (lua_getmetatable(L, -1)) {
1509 lua_getfield(L, -1, "disconnectNotify");
1510 lua_remove(L, -2);
1511 } else {
1512 lua_pushnil(L);
1514 lua_insert(L, -2);
1515 lua_pushstring(L, arg1);
1516 if (lua_isfunction(L, -1-2)) {
1517 lua_pcall(L, 1+1, 2, 0);
1518 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
1519 lua_pop(L, 1);
1521 if (!absorbed) {
1522 lua_settop(L, oldtop);
1523 this->QObject::disconnectNotify(arg1);
1525 lua_settop(L, oldtop);
1527 void LuaBinder< QLineEdit >::childEvent (QChildEvent * arg1) {
1528 bool absorbed = false;
1529 int oldtop = lua_gettop(L);
1530 lqtL_pushudata(L, this, "QLineEdit*");
1531 if (lua_getmetatable(L, -1)) {
1532 lua_getfield(L, -1, "childEvent");
1533 lua_remove(L, -2);
1534 } else {
1535 lua_pushnil(L);
1537 lua_insert(L, -2);
1538 lqtL_pushudata(L, arg1, "QChildEvent*");
1539 if (lua_isfunction(L, -1-2)) {
1540 lua_pcall(L, 1+1, 2, 0);
1541 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
1542 lua_pop(L, 1);
1544 if (!absorbed) {
1545 lua_settop(L, oldtop);
1546 this->QObject::childEvent(arg1);
1548 lua_settop(L, oldtop);
1550 void LuaBinder< QLineEdit >::focusOutEvent (QFocusEvent * arg1) {
1551 bool absorbed = false;
1552 int oldtop = lua_gettop(L);
1553 lqtL_pushudata(L, this, "QLineEdit*");
1554 if (lua_getmetatable(L, -1)) {
1555 lua_getfield(L, -1, "focusOutEvent");
1556 lua_remove(L, -2);
1557 } else {
1558 lua_pushnil(L);
1560 lua_insert(L, -2);
1561 lqtL_pushudata(L, arg1, "QFocusEvent*");
1562 if (lua_isfunction(L, -1-2)) {
1563 lua_pcall(L, 1+1, 2, 0);
1564 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
1565 lua_pop(L, 1);
1567 if (!absorbed) {
1568 lua_settop(L, oldtop);
1569 this->QLineEdit::focusOutEvent(arg1);
1571 lua_settop(L, oldtop);
1573 int LuaBinder< QLineEdit >::metric (QPaintDevice::PaintDeviceMetric arg1) const {
1574 bool absorbed = false;
1575 int oldtop = lua_gettop(L);
1576 lqtL_pushudata(L, this, "QLineEdit*");
1577 if (lua_getmetatable(L, -1)) {
1578 lua_getfield(L, -1, "metric");
1579 lua_remove(L, -2);
1580 } else {
1581 lua_pushnil(L);
1583 lua_insert(L, -2);
1584 lqtL_pushenum(L, arg1, "QPaintDevice::PaintDeviceMetric");
1585 if (lua_isfunction(L, -1-2)) {
1586 lua_pcall(L, 1+1, 2, 0);
1587 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
1588 lua_pop(L, 1);
1590 if (!absorbed) {
1591 lua_settop(L, oldtop);
1592 return this->QWidget::metric(arg1);
1594 int ret = lua_tointeger(L, -1);
1595 lua_settop(L, oldtop);
1596 return ret;
1598 bool LuaBinder< QLineEdit >::focusNextPrevChild (bool arg1) {
1599 bool absorbed = false;
1600 int oldtop = lua_gettop(L);
1601 lqtL_pushudata(L, this, "QLineEdit*");
1602 if (lua_getmetatable(L, -1)) {
1603 lua_getfield(L, -1, "focusNextPrevChild");
1604 lua_remove(L, -2);
1605 } else {
1606 lua_pushnil(L);
1608 lua_insert(L, -2);
1609 lua_pushboolean(L, arg1);
1610 if (lua_isfunction(L, -1-2)) {
1611 lua_pcall(L, 1+1, 2, 0);
1612 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
1613 lua_pop(L, 1);
1615 if (!absorbed) {
1616 lua_settop(L, oldtop);
1617 return this->QWidget::focusNextPrevChild(arg1);
1619 bool ret = (bool)lua_toboolean(L, -1);
1620 lua_settop(L, oldtop);
1621 return ret;
1623 bool LuaBinder< QLineEdit >::eventFilter (QObject * arg1, QEvent * arg2) {
1624 bool absorbed = false;
1625 int oldtop = lua_gettop(L);
1626 lqtL_pushudata(L, this, "QLineEdit*");
1627 if (lua_getmetatable(L, -1)) {
1628 lua_getfield(L, -1, "eventFilter");
1629 lua_remove(L, -2);
1630 } else {
1631 lua_pushnil(L);
1633 lua_insert(L, -2);
1634 lqtL_pushudata(L, arg1, "QObject*");
1635 lqtL_pushudata(L, arg2, "QEvent*");
1636 if (lua_isfunction(L, -2-2)) {
1637 lua_pcall(L, 2+1, 2, 0);
1638 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
1639 lua_pop(L, 1);
1641 if (!absorbed) {
1642 lua_settop(L, oldtop);
1643 return this->QObject::eventFilter(arg1, arg2);
1645 bool ret = (bool)lua_toboolean(L, -1);
1646 lua_settop(L, oldtop);
1647 return ret;
1649 void LuaBinder< QLineEdit >::inputMethodEvent (QInputMethodEvent * arg1) {
1650 bool absorbed = false;
1651 int oldtop = lua_gettop(L);
1652 lqtL_pushudata(L, this, "QLineEdit*");
1653 if (lua_getmetatable(L, -1)) {
1654 lua_getfield(L, -1, "inputMethodEvent");
1655 lua_remove(L, -2);
1656 } else {
1657 lua_pushnil(L);
1659 lua_insert(L, -2);
1660 lqtL_pushudata(L, arg1, "QInputMethodEvent*");
1661 if (lua_isfunction(L, -1-2)) {
1662 lua_pcall(L, 1+1, 2, 0);
1663 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
1664 lua_pop(L, 1);
1666 if (!absorbed) {
1667 lua_settop(L, oldtop);
1668 this->QLineEdit::inputMethodEvent(arg1);
1670 lua_settop(L, oldtop);
1672 void LuaBinder< QLineEdit >::wheelEvent (QWheelEvent * arg1) {
1673 bool absorbed = false;
1674 int oldtop = lua_gettop(L);
1675 lqtL_pushudata(L, this, "QLineEdit*");
1676 if (lua_getmetatable(L, -1)) {
1677 lua_getfield(L, -1, "wheelEvent");
1678 lua_remove(L, -2);
1679 } else {
1680 lua_pushnil(L);
1682 lua_insert(L, -2);
1683 lqtL_pushudata(L, arg1, "QWheelEvent*");
1684 if (lua_isfunction(L, -1-2)) {
1685 lua_pcall(L, 1+1, 2, 0);
1686 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
1687 lua_pop(L, 1);
1689 if (!absorbed) {
1690 lua_settop(L, oldtop);
1691 this->QWidget::wheelEvent(arg1);
1693 lua_settop(L, oldtop);
1695 void LuaBinder< QLineEdit >::resizeEvent (QResizeEvent * arg1) {
1696 bool absorbed = false;
1697 int oldtop = lua_gettop(L);
1698 lqtL_pushudata(L, this, "QLineEdit*");
1699 if (lua_getmetatable(L, -1)) {
1700 lua_getfield(L, -1, "resizeEvent");
1701 lua_remove(L, -2);
1702 } else {
1703 lua_pushnil(L);
1705 lua_insert(L, -2);
1706 lqtL_pushudata(L, arg1, "QResizeEvent*");
1707 if (lua_isfunction(L, -1-2)) {
1708 lua_pcall(L, 1+1, 2, 0);
1709 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
1710 lua_pop(L, 1);
1712 if (!absorbed) {
1713 lua_settop(L, oldtop);
1714 this->QWidget::resizeEvent(arg1);
1716 lua_settop(L, oldtop);
1718 void LuaBinder< QLineEdit >::paletteChange (const QPalette& arg1) {
1719 bool absorbed = false;
1720 int oldtop = lua_gettop(L);
1721 lqtL_pushudata(L, this, "QLineEdit*");
1722 if (lua_getmetatable(L, -1)) {
1723 lua_getfield(L, -1, "paletteChange");
1724 lua_remove(L, -2);
1725 } else {
1726 lua_pushnil(L);
1728 lua_insert(L, -2);
1729 lqtL_pushudata(L, &(arg1), "QPalette*");
1730 if (lua_isfunction(L, -1-2)) {
1731 lua_pcall(L, 1+1, 2, 0);
1732 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
1733 lua_pop(L, 1);
1735 if (!absorbed) {
1736 lua_settop(L, oldtop);
1737 this->QWidget::paletteChange(arg1);
1739 lua_settop(L, oldtop);
1741 void LuaBinder< QLineEdit >::languageChange () {
1742 bool absorbed = false;
1743 int oldtop = lua_gettop(L);
1744 lqtL_pushudata(L, this, "QLineEdit*");
1745 if (lua_getmetatable(L, -1)) {
1746 lua_getfield(L, -1, "languageChange");
1747 lua_remove(L, -2);
1748 } else {
1749 lua_pushnil(L);
1751 lua_insert(L, -2);
1752 if (lua_isfunction(L, -0-2)) {
1753 lua_pcall(L, 0+1, 2, 0);
1754 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
1755 lua_pop(L, 1);
1757 if (!absorbed) {
1758 lua_settop(L, oldtop);
1759 this->QWidget::languageChange();
1761 lua_settop(L, oldtop);
1763 bool LuaBinder< QLineEdit >::event (QEvent * arg1) {
1764 bool absorbed = false;
1765 int oldtop = lua_gettop(L);
1766 lqtL_pushudata(L, this, "QLineEdit*");
1767 if (lua_getmetatable(L, -1)) {
1768 lua_getfield(L, -1, "event");
1769 lua_remove(L, -2);
1770 } else {
1771 lua_pushnil(L);
1773 lua_insert(L, -2);
1774 lqtL_pushudata(L, arg1, "QEvent*");
1775 if (lua_isfunction(L, -1-2)) {
1776 lua_pcall(L, 1+1, 2, 0);
1777 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
1778 lua_pop(L, 1);
1780 if (!absorbed) {
1781 lua_settop(L, oldtop);
1782 return this->QLineEdit::event(arg1);
1784 bool ret = (bool)lua_toboolean(L, -1);
1785 lua_settop(L, oldtop);
1786 return ret;
1788 void LuaBinder< QLineEdit >::hideEvent (QHideEvent * arg1) {
1789 bool absorbed = false;
1790 int oldtop = lua_gettop(L);
1791 lqtL_pushudata(L, this, "QLineEdit*");
1792 if (lua_getmetatable(L, -1)) {
1793 lua_getfield(L, -1, "hideEvent");
1794 lua_remove(L, -2);
1795 } else {
1796 lua_pushnil(L);
1798 lua_insert(L, -2);
1799 lqtL_pushudata(L, arg1, "QHideEvent*");
1800 if (lua_isfunction(L, -1-2)) {
1801 lua_pcall(L, 1+1, 2, 0);
1802 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
1803 lua_pop(L, 1);
1805 if (!absorbed) {
1806 lua_settop(L, oldtop);
1807 this->QWidget::hideEvent(arg1);
1809 lua_settop(L, oldtop);
1811 void LuaBinder< QLineEdit >::connectNotify (const char * arg1) {
1812 bool absorbed = false;
1813 int oldtop = lua_gettop(L);
1814 lqtL_pushudata(L, this, "QLineEdit*");
1815 if (lua_getmetatable(L, -1)) {
1816 lua_getfield(L, -1, "connectNotify");
1817 lua_remove(L, -2);
1818 } else {
1819 lua_pushnil(L);
1821 lua_insert(L, -2);
1822 lua_pushstring(L, arg1);
1823 if (lua_isfunction(L, -1-2)) {
1824 lua_pcall(L, 1+1, 2, 0);
1825 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
1826 lua_pop(L, 1);
1828 if (!absorbed) {
1829 lua_settop(L, oldtop);
1830 this->QObject::connectNotify(arg1);
1832 lua_settop(L, oldtop);
1834 void LuaBinder< QLineEdit >::moveEvent (QMoveEvent * arg1) {
1835 bool absorbed = false;
1836 int oldtop = lua_gettop(L);
1837 lqtL_pushudata(L, this, "QLineEdit*");
1838 if (lua_getmetatable(L, -1)) {
1839 lua_getfield(L, -1, "moveEvent");
1840 lua_remove(L, -2);
1841 } else {
1842 lua_pushnil(L);
1844 lua_insert(L, -2);
1845 lqtL_pushudata(L, arg1, "QMoveEvent*");
1846 if (lua_isfunction(L, -1-2)) {
1847 lua_pcall(L, 1+1, 2, 0);
1848 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
1849 lua_pop(L, 1);
1851 if (!absorbed) {
1852 lua_settop(L, oldtop);
1853 this->QWidget::moveEvent(arg1);
1855 lua_settop(L, oldtop);
1857 void LuaBinder< QLineEdit >::keyReleaseEvent (QKeyEvent * arg1) {
1858 bool absorbed = false;
1859 int oldtop = lua_gettop(L);
1860 lqtL_pushudata(L, this, "QLineEdit*");
1861 if (lua_getmetatable(L, -1)) {
1862 lua_getfield(L, -1, "keyReleaseEvent");
1863 lua_remove(L, -2);
1864 } else {
1865 lua_pushnil(L);
1867 lua_insert(L, -2);
1868 lqtL_pushudata(L, arg1, "QKeyEvent*");
1869 if (lua_isfunction(L, -1-2)) {
1870 lua_pcall(L, 1+1, 2, 0);
1871 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
1872 lua_pop(L, 1);
1874 if (!absorbed) {
1875 lua_settop(L, oldtop);
1876 this->QWidget::keyReleaseEvent(arg1);
1878 lua_settop(L, oldtop);
1880 void LuaBinder< QLineEdit >::leaveEvent (QEvent * arg1) {
1881 bool absorbed = false;
1882 int oldtop = lua_gettop(L);
1883 lqtL_pushudata(L, this, "QLineEdit*");
1884 if (lua_getmetatable(L, -1)) {
1885 lua_getfield(L, -1, "leaveEvent");
1886 lua_remove(L, -2);
1887 } else {
1888 lua_pushnil(L);
1890 lua_insert(L, -2);
1891 lqtL_pushudata(L, arg1, "QEvent*");
1892 if (lua_isfunction(L, -1-2)) {
1893 lua_pcall(L, 1+1, 2, 0);
1894 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
1895 lua_pop(L, 1);
1897 if (!absorbed) {
1898 lua_settop(L, oldtop);
1899 this->QWidget::leaveEvent(arg1);
1901 lua_settop(L, oldtop);
1903 void LuaBinder< QLineEdit >::dropEvent (QDropEvent * arg1) {
1904 bool absorbed = false;
1905 int oldtop = lua_gettop(L);
1906 lqtL_pushudata(L, this, "QLineEdit*");
1907 if (lua_getmetatable(L, -1)) {
1908 lua_getfield(L, -1, "dropEvent");
1909 lua_remove(L, -2);
1910 } else {
1911 lua_pushnil(L);
1913 lua_insert(L, -2);
1914 lqtL_pushudata(L, arg1, "QDropEvent*");
1915 if (lua_isfunction(L, -1-2)) {
1916 lua_pcall(L, 1+1, 2, 0);
1917 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
1918 lua_pop(L, 1);
1920 if (!absorbed) {
1921 lua_settop(L, oldtop);
1922 this->QLineEdit::dropEvent(arg1);
1924 lua_settop(L, oldtop);
1926 void LuaBinder< QLineEdit >::customEvent (QEvent * arg1) {
1927 bool absorbed = false;
1928 int oldtop = lua_gettop(L);
1929 lqtL_pushudata(L, this, "QLineEdit*");
1930 if (lua_getmetatable(L, -1)) {
1931 lua_getfield(L, -1, "customEvent");
1932 lua_remove(L, -2);
1933 } else {
1934 lua_pushnil(L);
1936 lua_insert(L, -2);
1937 lqtL_pushudata(L, arg1, "QEvent*");
1938 if (lua_isfunction(L, -1-2)) {
1939 lua_pcall(L, 1+1, 2, 0);
1940 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
1941 lua_pop(L, 1);
1943 if (!absorbed) {
1944 lua_settop(L, oldtop);
1945 this->QObject::customEvent(arg1);
1947 lua_settop(L, oldtop);
1949 LuaBinder< QLineEdit >:: ~LuaBinder< QLineEdit > () {
1950 int oldtop = lua_gettop(L);
1951 lqtL_pushudata(L, this, "QLineEdit*");
1952 lua_getfield(L, -1, "~QLineEdit");
1954 if (lua_isfunction(L, -1)) {
1955 lua_insert(L, -2);
1956 lua_pcall(L, 1, 1, 0);
1957 } else {
1959 lua_settop(L, oldtop);
1961 int LuaBinder< QLineEdit >::lqt_pushenum_EchoMode (lua_State *L) {
1962 int enum_table = 0;
1963 lua_getfield(L, LUA_REGISTRYINDEX, LQT_ENUMS);
1964 if (!lua_istable(L, -1)) {
1965 lua_pop(L, 1);
1966 lua_newtable(L);
1967 lua_pushvalue(L, -1);
1968 lua_setfield(L, LUA_REGISTRYINDEX, LQT_ENUMS);
1970 lua_newtable(L);
1971 enum_table = lua_gettop(L);
1972 lua_pushstring(L, "Normal");
1973 lua_rawseti(L, enum_table, 0);
1974 lua_pushinteger(L, 0);
1975 lua_setfield(L, enum_table, "Normal");
1976 lua_pushstring(L, "NoEcho");
1977 lua_rawseti(L, enum_table, 1);
1978 lua_pushinteger(L, 1);
1979 lua_setfield(L, enum_table, "NoEcho");
1980 lua_pushstring(L, "Password");
1981 lua_rawseti(L, enum_table, 2);
1982 lua_pushinteger(L, 2);
1983 lua_setfield(L, enum_table, "Password");
1984 lua_pushstring(L, "PasswordEchoOnEdit");
1985 lua_rawseti(L, enum_table, 3);
1986 lua_pushinteger(L, 3);
1987 lua_setfield(L, enum_table, "PasswordEchoOnEdit");
1988 lua_pushvalue(L, -1);
1989 lua_setfield(L, -3, "QLineEdit::EchoMode");
1990 lua_remove(L, -2);
1991 return 1;
1993 int luaopen_QLineEdit (lua_State *L) {
1994 if (luaL_newmetatable(L, "QLineEdit*")) {
1995 lua_pushcfunction(L, LuaBinder< QLineEdit >::__LuaWrapCall__setValidator);
1996 lua_setfield(L, -2, "setValidator");
1997 lua_pushcfunction(L, LuaBinder< QLineEdit >::__LuaWrapCall__inputMask);
1998 lua_setfield(L, -2, "inputMask");
1999 lua_pushcfunction(L, LuaBinder< QLineEdit >::__LuaWrapCall__createStandardContextMenu);
2000 lua_setfield(L, -2, "createStandardContextMenu");
2001 lua_pushcfunction(L, LuaBinder< QLineEdit >::__LuaWrapCall__sizeHint);
2002 lua_setfield(L, -2, "sizeHint");
2003 lua_pushcfunction(L, LuaBinder< QLineEdit >::__LuaWrapCall__validator);
2004 lua_setfield(L, -2, "validator");
2005 lua_pushcfunction(L, LuaBinder< QLineEdit >::__LuaWrapCall__cursorWordBackward);
2006 lua_setfield(L, -2, "cursorWordBackward");
2007 lua_pushcfunction(L, LuaBinder< QLineEdit >::__LuaWrapCall__cut);
2008 lua_setfield(L, -2, "cut");
2009 lua_pushcfunction(L, LuaBinder< QLineEdit >::__LuaWrapCall__hasSelectedText);
2010 lua_setfield(L, -2, "hasSelectedText");
2011 lua_pushcfunction(L, LuaBinder< QLineEdit >::__LuaWrapCall__copy);
2012 lua_setfield(L, -2, "copy");
2013 lua_pushcfunction(L, LuaBinder< QLineEdit >::__LuaWrapCall__home);
2014 lua_setfield(L, -2, "home");
2015 lua_pushcfunction(L, LuaBinder< QLineEdit >::__LuaWrapCall__trUtf8);
2016 lua_setfield(L, -2, "trUtf8");
2017 lua_pushcfunction(L, LuaBinder< QLineEdit >::__LuaWrapCall__cursorWordForward);
2018 lua_setfield(L, -2, "cursorWordForward");
2019 lua_pushcfunction(L, LuaBinder< QLineEdit >::__LuaWrapCall__tr);
2020 lua_setfield(L, -2, "tr");
2021 lua_pushcfunction(L, LuaBinder< QLineEdit >::__LuaWrapCall__cursorPositionAt);
2022 lua_setfield(L, -2, "cursorPositionAt");
2023 lua_pushcfunction(L, LuaBinder< QLineEdit >::__LuaWrapCall__isReadOnly);
2024 lua_setfield(L, -2, "isReadOnly");
2025 lua_pushcfunction(L, LuaBinder< QLineEdit >::__LuaWrapCall__insert);
2026 lua_setfield(L, -2, "insert");
2027 lua_pushcfunction(L, LuaBinder< QLineEdit >::__LuaWrapCall__setMaxLength);
2028 lua_setfield(L, -2, "setMaxLength");
2029 lua_pushcfunction(L, LuaBinder< QLineEdit >::__LuaWrapCall__text);
2030 lua_setfield(L, -2, "text");
2031 lua_pushcfunction(L, LuaBinder< QLineEdit >::__LuaWrapCall__event);
2032 lua_setfield(L, -2, "event");
2033 lua_pushcfunction(L, LuaBinder< QLineEdit >::__LuaWrapCall__isModified);
2034 lua_setfield(L, -2, "isModified");
2035 lua_pushcfunction(L, LuaBinder< QLineEdit >::__LuaWrapCall__hasFrame);
2036 lua_setfield(L, -2, "hasFrame");
2037 lua_pushcfunction(L, LuaBinder< QLineEdit >::__LuaWrapCall__setCursorPosition);
2038 lua_setfield(L, -2, "setCursorPosition");
2039 lua_pushcfunction(L, LuaBinder< QLineEdit >::__LuaWrapCall__echoMode);
2040 lua_setfield(L, -2, "echoMode");
2041 lua_pushcfunction(L, LuaBinder< QLineEdit >::__LuaWrapCall__isUndoAvailable);
2042 lua_setfield(L, -2, "isUndoAvailable");
2043 lua_pushcfunction(L, LuaBinder< QLineEdit >::__LuaWrapCall__cursorBackward);
2044 lua_setfield(L, -2, "cursorBackward");
2045 lua_pushcfunction(L, LuaBinder< QLineEdit >::__LuaWrapCall__setSelection);
2046 lua_setfield(L, -2, "setSelection");
2047 lua_pushcfunction(L, LuaBinder< QLineEdit >::__LuaWrapCall__setReadOnly);
2048 lua_setfield(L, -2, "setReadOnly");
2049 lua_pushcfunction(L, LuaBinder< QLineEdit >::__LuaWrapCall__setModified);
2050 lua_setfield(L, -2, "setModified");
2051 lua_pushcfunction(L, LuaBinder< QLineEdit >::__LuaWrapCall__setDragEnabled);
2052 lua_setfield(L, -2, "setDragEnabled");
2053 lua_pushcfunction(L, LuaBinder< QLineEdit >::__LuaWrapCall__cursorPosition);
2054 lua_setfield(L, -2, "cursorPosition");
2055 lua_pushcfunction(L, LuaBinder< QLineEdit >::__LuaWrapCall__isRedoAvailable);
2056 lua_setfield(L, -2, "isRedoAvailable");
2057 lua_pushcfunction(L, LuaBinder< QLineEdit >::__LuaWrapCall__del);
2058 lua_setfield(L, -2, "del");
2059 lua_pushcfunction(L, LuaBinder< QLineEdit >::__LuaWrapCall__displayText);
2060 lua_setfield(L, -2, "displayText");
2061 lua_pushcfunction(L, LuaBinder< QLineEdit >::__LuaWrapCall__setText);
2062 lua_setfield(L, -2, "setText");
2063 lua_pushcfunction(L, LuaBinder< QLineEdit >::__LuaWrapCall__minimumSizeHint);
2064 lua_setfield(L, -2, "minimumSizeHint");
2065 lua_pushcfunction(L, LuaBinder< QLineEdit >::__LuaWrapCall__hasAcceptableInput);
2066 lua_setfield(L, -2, "hasAcceptableInput");
2067 lua_pushcfunction(L, LuaBinder< QLineEdit >::__LuaWrapCall__selectionStart);
2068 lua_setfield(L, -2, "selectionStart");
2069 lua_pushcfunction(L, LuaBinder< QLineEdit >::__LuaWrapCall__backspace);
2070 lua_setfield(L, -2, "backspace");
2071 lua_pushcfunction(L, LuaBinder< QLineEdit >::__LuaWrapCall__setEchoMode);
2072 lua_setfield(L, -2, "setEchoMode");
2073 lua_pushcfunction(L, LuaBinder< QLineEdit >::__LuaWrapCall__end);
2074 lua_setfield(L, -2, "end");
2075 lua_pushcfunction(L, LuaBinder< QLineEdit >::__LuaWrapCall__selectedText);
2076 lua_setfield(L, -2, "selectedText");
2077 lua_pushcfunction(L, LuaBinder< QLineEdit >::__LuaWrapCall__setCompleter);
2078 lua_setfield(L, -2, "setCompleter");
2079 lua_pushcfunction(L, LuaBinder< QLineEdit >::__LuaWrapCall__metaObject);
2080 lua_setfield(L, -2, "metaObject");
2081 lua_pushcfunction(L, LuaBinder< QLineEdit >::__LuaWrapCall__new);
2082 lua_setfield(L, -2, "new");
2083 lua_pushcfunction(L, LuaBinder< QLineEdit >::__LuaWrapCall__inputMethodQuery);
2084 lua_setfield(L, -2, "inputMethodQuery");
2085 lua_pushcfunction(L, LuaBinder< QLineEdit >::__LuaWrapCall__delete);
2086 lua_setfield(L, -2, "delete");
2087 lua_pushcfunction(L, LuaBinder< QLineEdit >::__LuaWrapCall__redo);
2088 lua_setfield(L, -2, "redo");
2089 lua_pushcfunction(L, LuaBinder< QLineEdit >::__LuaWrapCall__deselect);
2090 lua_setfield(L, -2, "deselect");
2091 lua_pushcfunction(L, LuaBinder< QLineEdit >::__LuaWrapCall__completer);
2092 lua_setfield(L, -2, "completer");
2093 lua_pushcfunction(L, LuaBinder< QLineEdit >::__LuaWrapCall__setInputMask);
2094 lua_setfield(L, -2, "setInputMask");
2095 lua_pushcfunction(L, LuaBinder< QLineEdit >::__LuaWrapCall__clear);
2096 lua_setfield(L, -2, "clear");
2097 lua_pushcfunction(L, LuaBinder< QLineEdit >::__LuaWrapCall__maxLength);
2098 lua_setfield(L, -2, "maxLength");
2099 lua_pushcfunction(L, LuaBinder< QLineEdit >::__LuaWrapCall__setFrame);
2100 lua_setfield(L, -2, "setFrame");
2101 lua_pushcfunction(L, LuaBinder< QLineEdit >::__LuaWrapCall__selectAll);
2102 lua_setfield(L, -2, "selectAll");
2103 lua_pushcfunction(L, LuaBinder< QLineEdit >::__LuaWrapCall__alignment);
2104 lua_setfield(L, -2, "alignment");
2105 lua_pushcfunction(L, LuaBinder< QLineEdit >::__LuaWrapCall__cursorForward);
2106 lua_setfield(L, -2, "cursorForward");
2107 lua_pushcfunction(L, LuaBinder< QLineEdit >::__LuaWrapCall__undo);
2108 lua_setfield(L, -2, "undo");
2109 lua_pushcfunction(L, LuaBinder< QLineEdit >::__LuaWrapCall__paste);
2110 lua_setfield(L, -2, "paste");
2111 lua_pushcfunction(L, LuaBinder< QLineEdit >::__LuaWrapCall__dragEnabled);
2112 lua_setfield(L, -2, "dragEnabled");
2113 lua_pushcfunction(L, LuaBinder< QLineEdit >::__LuaWrapCall__setAlignment);
2114 lua_setfield(L, -2, "setAlignment");
2115 LuaBinder< QLineEdit >::lqt_pushenum_EchoMode(L);
2116 lua_pop(L, 1);
2117 lua_newtable(L);
2118 lua_pushboolean(L, 1);
2119 lua_setfield(L, -2, "QWidget*");
2120 lua_pushboolean(L, 0);
2121 lua_setfield(L, -2, "QObject*");
2122 lua_pushboolean(L, 0);
2123 lua_setfield(L, -2, "QPaintDevice*");
2124 lua_setfield(L, -2, "__base");
2125 lua_pushcfunction(L, lqtL_newindex);
2126 lua_setfield(L, -2, "__newindex");
2127 lua_pushcfunction(L, lqtL_index);
2128 lua_setfield(L, -2, "__index");
2129 lua_pushcfunction(L, lqtL_gc);
2130 lua_setfield(L, -2, "__gc");
2131 lua_pushstring(L, "QLineEdit");
2132 lua_setfield(L, -2, "__qtype");
2134 lua_pop(L, 1);
2135 return 0;