##// END OF EJS Templates
Made possible to subclass from python plugin class....
Jeandet Alexis -
r64:fb730b849667 default
parent child
Show More
Add another comment
@@ -0,0 +1,3
1 SocExplorer Icon:
2 By Lolo00 (Own work) [GFDL (http://www.gnu.org/copyleft/fdl.html) or CC-BY-SA-3.0 (http://creativecommons.org/licenses/by-sa/3.0/)], via Wikimedia Commons
3
@@ -0,0 +1,6
1 #!/usr/bin/lppmon -e
2
3 class test(PySocExplorerEngine.socexplorerplugin):
4 def hello(self):
5 print "hello"
6
1 NO CONTENT: new file 100644, binary diff hidden
NO CONTENT: new file 100644, binary diff hidden
@@ -0,0 +1,4
1 #include <QtCore/QObject>
2 #include <QtWidgets/QtWidgets>
3 #include "plugins/socexplorerplugin.h"
4
@@ -0,0 +1,6
1 HEADERS += \
2 $$PWD/PySocExplorerEngine0.h \
3
4 SOURCES += \
5 $$PWD/PySocExplorerEngine0.cpp \
6 $$PWD/PySocExplorerEngine_init.cpp
This diff has been collapsed as it changes many lines, (1328 lines changed) Show them Hide them
@@ -0,0 +1,1328
1 #include "PySocExplorerEngine0.h"
2 #include <PythonQtConversion.h>
3 #include <PythonQtMethodInfo.h>
4 #include <PythonQtSignalReceiver.h>
5 #include <QIconEngine>
6 #include <QVariant>
7 #include <qaction.h>
8 #include <qbitmap.h>
9 #include <qbytearray.h>
10 #include <qcoreevent.h>
11 #include <qcursor.h>
12 #include <qdockwidget.h>
13 #include <qevent.h>
14 #include <qfont.h>
15 #include <qgraphicseffect.h>
16 #include <qgraphicsproxywidget.h>
17 #include <qkeysequence.h>
18 #include <qlayout.h>
19 #include <qlist.h>
20 #include <qlocale.h>
21 #include <qmargins.h>
22 #include <qmenu.h>
23 #include <qobject.h>
24 #include <qpaintdevice.h>
25 #include <qpaintengine.h>
26 #include <qpainter.h>
27 #include <qpalette.h>
28 #include <qpixmap.h>
29 #include <qpoint.h>
30 #include <qrect.h>
31 #include <qregion.h>
32 #include <qsize.h>
33 #include <qsizepolicy.h>
34 #include <qstyle.h>
35 #include <qstyleoption.h>
36 #include <qwidget.h>
37 #include <socexplorerplugin.h>
38
39 PythonQtShell_socexplorerplugin::~PythonQtShell_socexplorerplugin() {
40 PythonQtPrivate* priv = PythonQt::priv();
41 if (priv) { priv->shellClassDeleted(this); }
42 }
43 int PythonQtShell_socexplorerplugin::PID()
44 {
45 if (_wrapper) {
46 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "PID");
47 PyErr_Clear();
48 if (obj && !PythonQtSlotFunction_Check(obj)) {
49 static const char* argumentList[] ={"int"};
50 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList);
51 int returnValue;
52 void* args[1] = {NULL};
53 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
54 if (result) {
55 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
56 if (args[0]!=&returnValue) {
57 if (args[0]==NULL) {
58 PythonQt::priv()->handleVirtualOverloadReturnError("PID", methodInfo, result);
59 } else {
60 returnValue = *((int*)args[0]);
61 }
62 }
63 }
64 if (result) { Py_DECREF(result); }
65 Py_DECREF(obj);
66 return returnValue;
67 }
68 }
69 return socexplorerplugin::PID();
70 }
71 unsigned int PythonQtShell_socexplorerplugin::Read(unsigned int* Value, unsigned int count, unsigned int address)
72 {
73 if (_wrapper) {
74 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "Read");
75 PyErr_Clear();
76 if (obj && !PythonQtSlotFunction_Check(obj)) {
77 static const char* argumentList[] ={"unsigned int" , "unsigned int*" , "unsigned int" , "unsigned int"};
78 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList);
79 unsigned int returnValue;
80 void* args[4] = {NULL, (void*)&Value, (void*)&count, (void*)&address};
81 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
82 if (result) {
83 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
84 if (args[0]!=&returnValue) {
85 if (args[0]==NULL) {
86 PythonQt::priv()->handleVirtualOverloadReturnError("Read", methodInfo, result);
87 } else {
88 returnValue = *((unsigned int*)args[0]);
89 }
90 }
91 }
92 if (result) { Py_DECREF(result); }
93 Py_DECREF(obj);
94 return returnValue;
95 }
96 }
97 return socexplorerplugin::Read(Value, count, address);
98 }
99 int PythonQtShell_socexplorerplugin::VID()
100 {
101 if (_wrapper) {
102 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "VID");
103 PyErr_Clear();
104 if (obj && !PythonQtSlotFunction_Check(obj)) {
105 static const char* argumentList[] ={"int"};
106 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList);
107 int returnValue;
108 void* args[1] = {NULL};
109 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
110 if (result) {
111 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
112 if (args[0]!=&returnValue) {
113 if (args[0]==NULL) {
114 PythonQt::priv()->handleVirtualOverloadReturnError("VID", methodInfo, result);
115 } else {
116 returnValue = *((int*)args[0]);
117 }
118 }
119 }
120 if (result) { Py_DECREF(result); }
121 Py_DECREF(obj);
122 return returnValue;
123 }
124 }
125 return socexplorerplugin::VID();
126 }
127 unsigned int PythonQtShell_socexplorerplugin::Write(unsigned int* Value, unsigned int count, unsigned int address)
128 {
129 if (_wrapper) {
130 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "Write");
131 PyErr_Clear();
132 if (obj && !PythonQtSlotFunction_Check(obj)) {
133 static const char* argumentList[] ={"unsigned int" , "unsigned int*" , "unsigned int" , "unsigned int"};
134 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList);
135 unsigned int returnValue;
136 void* args[4] = {NULL, (void*)&Value, (void*)&count, (void*)&address};
137 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
138 if (result) {
139 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
140 if (args[0]!=&returnValue) {
141 if (args[0]==NULL) {
142 PythonQt::priv()->handleVirtualOverloadReturnError("Write", methodInfo, result);
143 } else {
144 returnValue = *((unsigned int*)args[0]);
145 }
146 }
147 }
148 if (result) { Py_DECREF(result); }
149 Py_DECREF(obj);
150 return returnValue;
151 }
152 }
153 return socexplorerplugin::Write(Value, count, address);
154 }
155 void PythonQtShell_socexplorerplugin::actionEvent(QActionEvent* arg__1)
156 {
157 if (_wrapper) {
158 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "actionEvent");
159 PyErr_Clear();
160 if (obj && !PythonQtSlotFunction_Check(obj)) {
161 static const char* argumentList[] ={"" , "QActionEvent*"};
162 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
163 void* args[2] = {NULL, (void*)&arg__1};
164 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
165 if (result) { Py_DECREF(result); }
166 Py_DECREF(obj);
167 return;
168 }
169 }
170 socexplorerplugin::actionEvent(arg__1);
171 }
172 void PythonQtShell_socexplorerplugin::activate(bool flag)
173 {
174 if (_wrapper) {
175 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "activate");
176 PyErr_Clear();
177 if (obj && !PythonQtSlotFunction_Check(obj)) {
178 static const char* argumentList[] ={"" , "bool"};
179 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
180 void* args[2] = {NULL, (void*)&flag};
181 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
182 if (result) { Py_DECREF(result); }
183 Py_DECREF(obj);
184 return;
185 }
186 }
187 socexplorerplugin::activate(flag);
188 }
189 int PythonQtShell_socexplorerplugin::baseAddress()
190 {
191 if (_wrapper) {
192 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "baseAddress");
193 PyErr_Clear();
194 if (obj && !PythonQtSlotFunction_Check(obj)) {
195 static const char* argumentList[] ={"int"};
196 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList);
197 int returnValue;
198 void* args[1] = {NULL};
199 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
200 if (result) {
201 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
202 if (args[0]!=&returnValue) {
203 if (args[0]==NULL) {
204 PythonQt::priv()->handleVirtualOverloadReturnError("baseAddress", methodInfo, result);
205 } else {
206 returnValue = *((int*)args[0]);
207 }
208 }
209 }
210 if (result) { Py_DECREF(result); }
211 Py_DECREF(obj);
212 return returnValue;
213 }
214 }
215 return socexplorerplugin::baseAddress();
216 }
217 QString PythonQtShell_socexplorerplugin::baseName()
218 {
219 if (_wrapper) {
220 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "baseName");
221 PyErr_Clear();
222 if (obj && !PythonQtSlotFunction_Check(obj)) {
223 static const char* argumentList[] ={"QString"};
224 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList);
225 QString returnValue;
226 void* args[1] = {NULL};
227 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
228 if (result) {
229 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
230 if (args[0]!=&returnValue) {
231 if (args[0]==NULL) {
232 PythonQt::priv()->handleVirtualOverloadReturnError("baseName", methodInfo, result);
233 } else {
234 returnValue = *((QString*)args[0]);
235 }
236 }
237 }
238 if (result) { Py_DECREF(result); }
239 Py_DECREF(obj);
240 return returnValue;
241 }
242 }
243 return socexplorerplugin::baseName();
244 }
245 void PythonQtShell_socexplorerplugin::changeEvent(QEvent* event)
246 {
247 if (_wrapper) {
248 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "changeEvent");
249 PyErr_Clear();
250 if (obj && !PythonQtSlotFunction_Check(obj)) {
251 static const char* argumentList[] ={"" , "QEvent*"};
252 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
253 void* args[2] = {NULL, (void*)&event};
254 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
255 if (result) { Py_DECREF(result); }
256 Py_DECREF(obj);
257 return;
258 }
259 }
260 socexplorerplugin::changeEvent(event);
261 }
262 void PythonQtShell_socexplorerplugin::childEvent(QChildEvent* arg__1)
263 {
264 if (_wrapper) {
265 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent");
266 PyErr_Clear();
267 if (obj && !PythonQtSlotFunction_Check(obj)) {
268 static const char* argumentList[] ={"" , "QChildEvent*"};
269 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
270 void* args[2] = {NULL, (void*)&arg__1};
271 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
272 if (result) { Py_DECREF(result); }
273 Py_DECREF(obj);
274 return;
275 }
276 }
277 socexplorerplugin::childEvent(arg__1);
278 }
279 void PythonQtShell_socexplorerplugin::closeEvent(QCloseEvent* event)
280 {
281 if (_wrapper) {
282 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "closeEvent");
283 PyErr_Clear();
284 if (obj && !PythonQtSlotFunction_Check(obj)) {
285 static const char* argumentList[] ={"" , "QCloseEvent*"};
286 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
287 void* args[2] = {NULL, (void*)&event};
288 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
289 if (result) { Py_DECREF(result); }
290 Py_DECREF(obj);
291 return;
292 }
293 }
294 socexplorerplugin::closeEvent(event);
295 }
296 void PythonQtShell_socexplorerplugin::closeMe()
297 {
298 if (_wrapper) {
299 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "closeMe");
300 PyErr_Clear();
301 if (obj && !PythonQtSlotFunction_Check(obj)) {
302 static const char* argumentList[] ={""};
303 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList);
304 void* args[1] = {NULL};
305 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
306 if (result) { Py_DECREF(result); }
307 Py_DECREF(obj);
308 return;
309 }
310 }
311 socexplorerplugin::closeMe();
312 }
313 void PythonQtShell_socexplorerplugin::contextMenuEvent(QContextMenuEvent* arg__1)
314 {
315 if (_wrapper) {
316 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "contextMenuEvent");
317 PyErr_Clear();
318 if (obj && !PythonQtSlotFunction_Check(obj)) {
319 static const char* argumentList[] ={"" , "QContextMenuEvent*"};
320 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
321 void* args[2] = {NULL, (void*)&arg__1};
322 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
323 if (result) { Py_DECREF(result); }
324 Py_DECREF(obj);
325 return;
326 }
327 }
328 socexplorerplugin::contextMenuEvent(arg__1);
329 }
330 void PythonQtShell_socexplorerplugin::customEvent(QEvent* arg__1)
331 {
332 if (_wrapper) {
333 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent");
334 PyErr_Clear();
335 if (obj && !PythonQtSlotFunction_Check(obj)) {
336 static const char* argumentList[] ={"" , "QEvent*"};
337 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
338 void* args[2] = {NULL, (void*)&arg__1};
339 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
340 if (result) { Py_DECREF(result); }
341 Py_DECREF(obj);
342 return;
343 }
344 }
345 socexplorerplugin::customEvent(arg__1);
346 }
347 int PythonQtShell_socexplorerplugin::devType() const
348 {
349 if (_wrapper) {
350 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "devType");
351 PyErr_Clear();
352 if (obj && !PythonQtSlotFunction_Check(obj)) {
353 static const char* argumentList[] ={"int"};
354 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList);
355 int returnValue;
356 void* args[1] = {NULL};
357 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
358 if (result) {
359 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
360 if (args[0]!=&returnValue) {
361 if (args[0]==NULL) {
362 PythonQt::priv()->handleVirtualOverloadReturnError("devType", methodInfo, result);
363 } else {
364 returnValue = *((int*)args[0]);
365 }
366 }
367 }
368 if (result) { Py_DECREF(result); }
369 Py_DECREF(obj);
370 return returnValue;
371 }
372 }
373 return socexplorerplugin::devType();
374 }
375 void PythonQtShell_socexplorerplugin::dragEnterEvent(QDragEnterEvent* arg__1)
376 {
377 if (_wrapper) {
378 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragEnterEvent");
379 PyErr_Clear();
380 if (obj && !PythonQtSlotFunction_Check(obj)) {
381 static const char* argumentList[] ={"" , "QDragEnterEvent*"};
382 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
383 void* args[2] = {NULL, (void*)&arg__1};
384 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
385 if (result) { Py_DECREF(result); }
386 Py_DECREF(obj);
387 return;
388 }
389 }
390 socexplorerplugin::dragEnterEvent(arg__1);
391 }
392 void PythonQtShell_socexplorerplugin::dragLeaveEvent(QDragLeaveEvent* arg__1)
393 {
394 if (_wrapper) {
395 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragLeaveEvent");
396 PyErr_Clear();
397 if (obj && !PythonQtSlotFunction_Check(obj)) {
398 static const char* argumentList[] ={"" , "QDragLeaveEvent*"};
399 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
400 void* args[2] = {NULL, (void*)&arg__1};
401 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
402 if (result) { Py_DECREF(result); }
403 Py_DECREF(obj);
404 return;
405 }
406 }
407 socexplorerplugin::dragLeaveEvent(arg__1);
408 }
409 void PythonQtShell_socexplorerplugin::dragMoveEvent(QDragMoveEvent* arg__1)
410 {
411 if (_wrapper) {
412 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragMoveEvent");
413 PyErr_Clear();
414 if (obj && !PythonQtSlotFunction_Check(obj)) {
415 static const char* argumentList[] ={"" , "QDragMoveEvent*"};
416 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
417 void* args[2] = {NULL, (void*)&arg__1};
418 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
419 if (result) { Py_DECREF(result); }
420 Py_DECREF(obj);
421 return;
422 }
423 }
424 socexplorerplugin::dragMoveEvent(arg__1);
425 }
426 void PythonQtShell_socexplorerplugin::dropEvent(QDropEvent* arg__1)
427 {
428 if (_wrapper) {
429 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dropEvent");
430 PyErr_Clear();
431 if (obj && !PythonQtSlotFunction_Check(obj)) {
432 static const char* argumentList[] ={"" , "QDropEvent*"};
433 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
434 void* args[2] = {NULL, (void*)&arg__1};
435 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
436 if (result) { Py_DECREF(result); }
437 Py_DECREF(obj);
438 return;
439 }
440 }
441 socexplorerplugin::dropEvent(arg__1);
442 }
443 void PythonQtShell_socexplorerplugin::enterEvent(QEvent* arg__1)
444 {
445 if (_wrapper) {
446 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "enterEvent");
447 PyErr_Clear();
448 if (obj && !PythonQtSlotFunction_Check(obj)) {
449 static const char* argumentList[] ={"" , "QEvent*"};
450 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
451 void* args[2] = {NULL, (void*)&arg__1};
452 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
453 if (result) { Py_DECREF(result); }
454 Py_DECREF(obj);
455 return;
456 }
457 }
458 socexplorerplugin::enterEvent(arg__1);
459 }
460 bool PythonQtShell_socexplorerplugin::event(QEvent* event)
461 {
462 if (_wrapper) {
463 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event");
464 PyErr_Clear();
465 if (obj && !PythonQtSlotFunction_Check(obj)) {
466 static const char* argumentList[] ={"bool" , "QEvent*"};
467 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
468 bool returnValue;
469 void* args[2] = {NULL, (void*)&event};
470 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
471 if (result) {
472 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
473 if (args[0]!=&returnValue) {
474 if (args[0]==NULL) {
475 PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result);
476 } else {
477 returnValue = *((bool*)args[0]);
478 }
479 }
480 }
481 if (result) { Py_DECREF(result); }
482 Py_DECREF(obj);
483 return returnValue;
484 }
485 }
486 return socexplorerplugin::event(event);
487 }
488 bool PythonQtShell_socexplorerplugin::eventFilter(QObject* arg__1, QEvent* arg__2)
489 {
490 if (_wrapper) {
491 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter");
492 PyErr_Clear();
493 if (obj && !PythonQtSlotFunction_Check(obj)) {
494 static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"};
495 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList);
496 bool returnValue;
497 void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2};
498 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
499 if (result) {
500 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
501 if (args[0]!=&returnValue) {
502 if (args[0]==NULL) {
503 PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result);
504 } else {
505 returnValue = *((bool*)args[0]);
506 }
507 }
508 }
509 if (result) { Py_DECREF(result); }
510 Py_DECREF(obj);
511 return returnValue;
512 }
513 }
514 return socexplorerplugin::eventFilter(arg__1, arg__2);
515 }
516 void PythonQtShell_socexplorerplugin::focusInEvent(QFocusEvent* arg__1)
517 {
518 if (_wrapper) {
519 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusInEvent");
520 PyErr_Clear();
521 if (obj && !PythonQtSlotFunction_Check(obj)) {
522 static const char* argumentList[] ={"" , "QFocusEvent*"};
523 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
524 void* args[2] = {NULL, (void*)&arg__1};
525 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
526 if (result) { Py_DECREF(result); }
527 Py_DECREF(obj);
528 return;
529 }
530 }
531 socexplorerplugin::focusInEvent(arg__1);
532 }
533 bool PythonQtShell_socexplorerplugin::focusNextPrevChild(bool next)
534 {
535 if (_wrapper) {
536 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusNextPrevChild");
537 PyErr_Clear();
538 if (obj && !PythonQtSlotFunction_Check(obj)) {
539 static const char* argumentList[] ={"bool" , "bool"};
540 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
541 bool returnValue;
542 void* args[2] = {NULL, (void*)&next};
543 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
544 if (result) {
545 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
546 if (args[0]!=&returnValue) {
547 if (args[0]==NULL) {
548 PythonQt::priv()->handleVirtualOverloadReturnError("focusNextPrevChild", methodInfo, result);
549 } else {
550 returnValue = *((bool*)args[0]);
551 }
552 }
553 }
554 if (result) { Py_DECREF(result); }
555 Py_DECREF(obj);
556 return returnValue;
557 }
558 }
559 return socexplorerplugin::focusNextPrevChild(next);
560 }
561 void PythonQtShell_socexplorerplugin::focusOutEvent(QFocusEvent* arg__1)
562 {
563 if (_wrapper) {
564 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusOutEvent");
565 PyErr_Clear();
566 if (obj && !PythonQtSlotFunction_Check(obj)) {
567 static const char* argumentList[] ={"" , "QFocusEvent*"};
568 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
569 void* args[2] = {NULL, (void*)&arg__1};
570 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
571 if (result) { Py_DECREF(result); }
572 Py_DECREF(obj);
573 return;
574 }
575 }
576 socexplorerplugin::focusOutEvent(arg__1);
577 }
578 bool PythonQtShell_socexplorerplugin::hasHeightForWidth() const
579 {
580 if (_wrapper) {
581 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hasHeightForWidth");
582 PyErr_Clear();
583 if (obj && !PythonQtSlotFunction_Check(obj)) {
584 static const char* argumentList[] ={"bool"};
585 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList);
586 bool returnValue;
587 void* args[1] = {NULL};
588 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
589 if (result) {
590 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
591 if (args[0]!=&returnValue) {
592 if (args[0]==NULL) {
593 PythonQt::priv()->handleVirtualOverloadReturnError("hasHeightForWidth", methodInfo, result);
594 } else {
595 returnValue = *((bool*)args[0]);
596 }
597 }
598 }
599 if (result) { Py_DECREF(result); }
600 Py_DECREF(obj);
601 return returnValue;
602 }
603 }
604 return socexplorerplugin::hasHeightForWidth();
605 }
606 int PythonQtShell_socexplorerplugin::heightForWidth(int arg__1) const
607 {
608 if (_wrapper) {
609 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "heightForWidth");
610 PyErr_Clear();
611 if (obj && !PythonQtSlotFunction_Check(obj)) {
612 static const char* argumentList[] ={"int" , "int"};
613 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
614 int returnValue;
615 void* args[2] = {NULL, (void*)&arg__1};
616 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
617 if (result) {
618 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
619 if (args[0]!=&returnValue) {
620 if (args[0]==NULL) {
621 PythonQt::priv()->handleVirtualOverloadReturnError("heightForWidth", methodInfo, result);
622 } else {
623 returnValue = *((int*)args[0]);
624 }
625 }