PythonQtWrapper_QCoreApplication.cpp
339 lines
| 11.3 KiB
| text/x-c
|
CppLexer
florianlink
|
r13 | #include "PythonQtWrapper_QCoreApplication.h" | ||
florianlink
|
r24 | #include <PythonQtSignalReceiver.h> | ||
#include <PythonQtMethodInfo.h> | ||||
#include <PythonQtConversion.h> | ||||
florianlink
|
r13 | #include <QStringList> | ||
#include <QVariant> | ||||
#include <qbytearray.h> | ||||
#include <qcoreapplication.h> | ||||
#include <qcoreevent.h> | ||||
#include <qlist.h> | ||||
#include <qobject.h> | ||||
#include <qstringlist.h> | ||||
#include <qtranslator.h> | ||||
florianlink
|
r24 | void PythonQtShell_QCoreApplication::childEvent(QChildEvent* arg__1) | ||
{ | ||||
if (_wrapper) { | ||||
PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); | ||||
PyErr_Clear(); | ||||
if (obj && !PythonQtSlotFunction_Check(obj)) { | ||||
static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromMetaObjectAndSignature( | ||||
&PythonQtWrapper_QCoreApplication::staticMetaObject, | ||||
"childEvent(QCoreApplication*,QChildEvent* )"); | ||||
void* args[2] = {NULL, (void*)&arg__1}; | ||||
PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); | ||||
if (result) { Py_DECREF(result); } | ||||
Py_DECREF(obj); | ||||
return; | ||||
} | ||||
} | ||||
QCoreApplication::childEvent(arg__1); | ||||
} | ||||
void PythonQtShell_QCoreApplication::customEvent(QEvent* arg__1) | ||||
{ | ||||
if (_wrapper) { | ||||
PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); | ||||
PyErr_Clear(); | ||||
if (obj && !PythonQtSlotFunction_Check(obj)) { | ||||
static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromMetaObjectAndSignature( | ||||
&PythonQtWrapper_QCoreApplication::staticMetaObject, | ||||
"customEvent(QCoreApplication*,QEvent* )"); | ||||
void* args[2] = {NULL, (void*)&arg__1}; | ||||
PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); | ||||
if (result) { Py_DECREF(result); } | ||||
Py_DECREF(obj); | ||||
return; | ||||
} | ||||
} | ||||
QCoreApplication::customEvent(arg__1); | ||||
} | ||||
bool PythonQtShell_QCoreApplication::event(QEvent* arg__1) | ||||
{ | ||||
if (_wrapper) { | ||||
PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); | ||||
PyErr_Clear(); | ||||
if (obj && !PythonQtSlotFunction_Check(obj)) { | ||||
static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromMetaObjectAndSignature( | ||||
&PythonQtWrapper_QCoreApplication::staticMetaObject, | ||||
"event(QCoreApplication*,QEvent* )"); | ||||
bool returnValue; | ||||
void* args[2] = {NULL, (void*)&arg__1}; | ||||
PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); | ||||
if (result) { | ||||
args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); | ||||
if (args[0]!=&returnValue) { | ||||
returnValue = *((bool *)args[0]); | ||||
} | ||||
} | ||||
if (result) { Py_DECREF(result); } | ||||
Py_DECREF(obj); | ||||
return returnValue; | ||||
} | ||||
} | ||||
return QCoreApplication::event(arg__1); | ||||
} | ||||
bool PythonQtShell_QCoreApplication::eventFilter(QObject* arg__1, QEvent* arg__2) | ||||
{ | ||||
if (_wrapper) { | ||||
PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); | ||||
PyErr_Clear(); | ||||
if (obj && !PythonQtSlotFunction_Check(obj)) { | ||||
static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromMetaObjectAndSignature( | ||||
&PythonQtWrapper_QCoreApplication::staticMetaObject, | ||||
"eventFilter(QCoreApplication*,QObject* ,QEvent* )"); | ||||
bool returnValue; | ||||
void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; | ||||
PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); | ||||
if (result) { | ||||
args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); | ||||
if (args[0]!=&returnValue) { | ||||
returnValue = *((bool *)args[0]); | ||||
} | ||||
} | ||||
if (result) { Py_DECREF(result); } | ||||
Py_DECREF(obj); | ||||
return returnValue; | ||||
} | ||||
} | ||||
return QCoreApplication::eventFilter(arg__1, arg__2); | ||||
} | ||||
bool PythonQtShell_QCoreApplication::notify(QObject* arg__1, QEvent* arg__2) | ||||
{ | ||||
if (_wrapper) { | ||||
PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "notify"); | ||||
PyErr_Clear(); | ||||
if (obj && !PythonQtSlotFunction_Check(obj)) { | ||||
static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromMetaObjectAndSignature( | ||||
&PythonQtWrapper_QCoreApplication::staticMetaObject, | ||||
"notify(QCoreApplication*,QObject* ,QEvent* )"); | ||||
bool returnValue; | ||||
void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; | ||||
PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); | ||||
if (result) { | ||||
args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); | ||||
if (args[0]!=&returnValue) { | ||||
returnValue = *((bool *)args[0]); | ||||
} | ||||
} | ||||
if (result) { Py_DECREF(result); } | ||||
Py_DECREF(obj); | ||||
return returnValue; | ||||
} | ||||
} | ||||
return QCoreApplication::notify(arg__1, arg__2); | ||||
} | ||||
void PythonQtShell_QCoreApplication::timerEvent(QTimerEvent* arg__1) | ||||
{ | ||||
if (_wrapper) { | ||||
PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); | ||||
PyErr_Clear(); | ||||
if (obj && !PythonQtSlotFunction_Check(obj)) { | ||||
static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromMetaObjectAndSignature( | ||||
&PythonQtWrapper_QCoreApplication::staticMetaObject, | ||||
"timerEvent(QCoreApplication*,QTimerEvent* )"); | ||||
void* args[2] = {NULL, (void*)&arg__1}; | ||||
PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); | ||||
if (result) { Py_DECREF(result); } | ||||
Py_DECREF(obj); | ||||
return; | ||||
} | ||||
} | ||||
QCoreApplication::timerEvent(arg__1); | ||||
florianlink
|
r13 | } | ||
florianlink
|
r28 | QString PythonQtWrapper_QCoreApplication::static_QCoreApplication_applicationFilePath() | ||
florianlink
|
r13 | { | ||
florianlink
|
r28 | return QCoreApplication::applicationFilePath(); | ||
florianlink
|
r13 | } | ||
florianlink
|
r28 | void PythonQtWrapper_QCoreApplication::static_QCoreApplication_processEvents(QEventLoop::ProcessEventsFlags flags, int maxtime) | ||
florianlink
|
r13 | { | ||
florianlink
|
r28 | QCoreApplication::processEvents(flags, maxtime); | ||
florianlink
|
r13 | } | ||
florianlink
|
r28 | void PythonQtWrapper_QCoreApplication::static_QCoreApplication_addLibraryPath(const QString& arg__1) | ||
florianlink
|
r13 | { | ||
florianlink
|
r28 | QCoreApplication::addLibraryPath(arg__1); | ||
florianlink
|
r13 | } | ||
florianlink
|
r28 | void PythonQtWrapper_QCoreApplication::static_QCoreApplication_sendPostedEvents(QObject* receiver, int event_type) | ||
florianlink
|
r13 | { | ||
florianlink
|
r28 | QCoreApplication::sendPostedEvents(receiver, event_type); | ||
florianlink
|
r13 | } | ||
florianlink
|
r28 | QStringList PythonQtWrapper_QCoreApplication::static_QCoreApplication_libraryPaths() | ||
florianlink
|
r13 | { | ||
florianlink
|
r28 | return QCoreApplication::libraryPaths(); | ||
florianlink
|
r13 | } | ||
florianlink
|
r28 | QString PythonQtWrapper_QCoreApplication::static_QCoreApplication_translate(const char* context, const char* key, const char* comment, QCoreApplication::Encoding encoding) | ||
florianlink
|
r13 | { | ||
florianlink
|
r28 | return QCoreApplication::translate(context, key, comment, encoding); | ||
florianlink
|
r13 | } | ||
florianlink
|
r28 | void PythonQtWrapper_QCoreApplication::static_QCoreApplication_removeTranslator(QTranslator* messageFile) | ||
florianlink
|
r13 | { | ||
florianlink
|
r28 | QCoreApplication::removeTranslator(messageFile); | ||
florianlink
|
r13 | } | ||
florianlink
|
r28 | void PythonQtWrapper_QCoreApplication::static_QCoreApplication_setApplicationName(const QString& application) | ||
florianlink
|
r13 | { | ||
florianlink
|
r28 | QCoreApplication::setApplicationName(application); | ||
florianlink
|
r13 | } | ||
florianlink
|
r28 | bool PythonQtWrapper_QCoreApplication::notify(QCoreApplication* theWrappedObject, QObject* arg__1, QEvent* arg__2) | ||
florianlink
|
r13 | { | ||
florianlink
|
r28 | return ((PythonQtPublicPromoter_QCoreApplication*)theWrappedObject)->promoted_notify(arg__1, arg__2); | ||
florianlink
|
r13 | } | ||
florianlink
|
r28 | QCoreApplication* PythonQtWrapper_QCoreApplication::static_QCoreApplication_instance() | ||
florianlink
|
r13 | { | ||
florianlink
|
r28 | return QCoreApplication::instance(); | ||
florianlink
|
r13 | } | ||
florianlink
|
r28 | void PythonQtWrapper_QCoreApplication::static_QCoreApplication_setApplicationVersion(const QString& version) | ||
florianlink
|
r13 | { | ||
florianlink
|
r28 | QCoreApplication::setApplicationVersion(version); | ||
florianlink
|
r24 | } | ||
florianlink
|
r28 | QString PythonQtWrapper_QCoreApplication::static_QCoreApplication_applicationName() | ||
florianlink
|
r24 | { | ||
florianlink
|
r28 | return QCoreApplication::applicationName(); | ||
florianlink
|
r24 | } | ||
florianlink
|
r28 | void PythonQtWrapper_QCoreApplication::static_QCoreApplication_exit(int retcode) | ||
florianlink
|
r24 | { | ||
florianlink
|
r28 | QCoreApplication::exit(retcode); | ||
florianlink
|
r24 | } | ||
florianlink
|
r28 | QString PythonQtWrapper_QCoreApplication::static_QCoreApplication_applicationVersion() | ||
florianlink
|
r24 | { | ||
florianlink
|
r28 | return QCoreApplication::applicationVersion(); | ||
florianlink
|
r13 | } | ||
florianlink
|
r28 | bool PythonQtWrapper_QCoreApplication::static_QCoreApplication_closingDown() | ||
florianlink
|
r13 | { | ||
florianlink
|
r28 | return QCoreApplication::closingDown(); | ||
florianlink
|
r13 | } | ||
florianlink
|
r28 | void PythonQtWrapper_QCoreApplication::static_QCoreApplication_postEvent(QObject* receiver, QEvent* event, int priority) | ||
florianlink
|
r13 | { | ||
florianlink
|
r28 | QCoreApplication::postEvent(receiver, event, priority); | ||
florianlink
|
r13 | } | ||
florianlink
|
r28 | void PythonQtWrapper_QCoreApplication::static_QCoreApplication_postEvent(QObject* receiver, QEvent* event) | ||
florianlink
|
r13 | { | ||
florianlink
|
r28 | QCoreApplication::postEvent(receiver, event); | ||
florianlink
|
r13 | } | ||
florianlink
|
r28 | void PythonQtWrapper_QCoreApplication::static_QCoreApplication_removePostedEvents(QObject* receiver) | ||
florianlink
|
r13 | { | ||
florianlink
|
r28 | QCoreApplication::removePostedEvents(receiver); | ||
florianlink
|
r13 | } | ||
florianlink
|
r28 | void PythonQtWrapper_QCoreApplication::static_QCoreApplication_flush() | ||
florianlink
|
r13 | { | ||
florianlink
|
r28 | QCoreApplication::flush(); | ||
florianlink
|
r13 | } | ||
florianlink
|
r28 | void PythonQtWrapper_QCoreApplication::static_QCoreApplication_removePostedEvents(QObject* receiver, int eventType) | ||
florianlink
|
r13 | { | ||
florianlink
|
r28 | QCoreApplication::removePostedEvents(receiver, eventType); | ||
florianlink
|
r13 | } | ||
florianlink
|
r28 | void PythonQtWrapper_QCoreApplication::static_QCoreApplication_installTranslator(QTranslator* messageFile) | ||
florianlink
|
r13 | { | ||
florianlink
|
r28 | QCoreApplication::installTranslator(messageFile); | ||
florianlink
|
r13 | } | ||
florianlink
|
r28 | qint64 PythonQtWrapper_QCoreApplication::static_QCoreApplication_applicationPid() | ||
florianlink
|
r13 | { | ||
florianlink
|
r28 | return QCoreApplication::applicationPid(); | ||
florianlink
|
r13 | } | ||
florianlink
|
r28 | void PythonQtWrapper_QCoreApplication::static_QCoreApplication_removeLibraryPath(const QString& arg__1) | ||
florianlink
|
r13 | { | ||
florianlink
|
r28 | QCoreApplication::removeLibraryPath(arg__1); | ||
florianlink
|
r13 | } | ||
florianlink
|
r28 | bool PythonQtWrapper_QCoreApplication::static_QCoreApplication_sendEvent(QObject* receiver, QEvent* event) | ||
florianlink
|
r13 | { | ||
florianlink
|
r28 | return QCoreApplication::sendEvent(receiver, event); | ||
florianlink
|
r13 | } | ||
florianlink
|
r28 | void PythonQtWrapper_QCoreApplication::static_QCoreApplication_setAttribute(Qt::ApplicationAttribute attribute, bool on) | ||
florianlink
|
r13 | { | ||
florianlink
|
r28 | QCoreApplication::setAttribute(attribute, on); | ||
florianlink
|
r13 | } | ||
florianlink
|
r28 | QString PythonQtWrapper_QCoreApplication::static_QCoreApplication_organizationName() | ||
florianlink
|
r13 | { | ||
florianlink
|
r28 | return QCoreApplication::organizationName(); | ||
florianlink
|
r13 | } | ||
florianlink
|
r28 | bool PythonQtWrapper_QCoreApplication::static_QCoreApplication_hasPendingEvents() | ||
florianlink
|
r13 | { | ||
florianlink
|
r28 | return QCoreApplication::hasPendingEvents(); | ||
florianlink
|
r13 | } | ||
florianlink
|
r28 | bool PythonQtWrapper_QCoreApplication::event(QCoreApplication* theWrappedObject, QEvent* arg__1) | ||
florianlink
|
r13 | { | ||
florianlink
|
r28 | return ((PythonQtPublicPromoter_QCoreApplication*)theWrappedObject)->promoted_event(arg__1); | ||
florianlink
|
r13 | } | ||
florianlink
|
r28 | void PythonQtWrapper_QCoreApplication::static_QCoreApplication_sendPostedEvents() | ||
florianlink
|
r13 | { | ||
florianlink
|
r28 | QCoreApplication::sendPostedEvents(); | ||
florianlink
|
r13 | } | ||
florianlink
|
r28 | void PythonQtWrapper_QCoreApplication::static_QCoreApplication_setOrganizationName(const QString& orgName) | ||
florianlink
|
r13 | { | ||
florianlink
|
r28 | QCoreApplication::setOrganizationName(orgName); | ||
florianlink
|
r13 | } | ||
florianlink
|
r28 | QString PythonQtWrapper_QCoreApplication::static_QCoreApplication_applicationDirPath() | ||
florianlink
|
r13 | { | ||
florianlink
|
r28 | return QCoreApplication::applicationDirPath(); | ||
florianlink
|
r13 | } | ||
florianlink
|
r28 | QString PythonQtWrapper_QCoreApplication::static_QCoreApplication_organizationDomain() | ||
florianlink
|
r13 | { | ||
florianlink
|
r28 | return QCoreApplication::organizationDomain(); | ||
florianlink
|
r13 | } | ||
florianlink
|
r28 | bool PythonQtWrapper_QCoreApplication::static_QCoreApplication_startingUp() | ||
florianlink
|
r13 | { | ||
florianlink
|
r28 | return QCoreApplication::startingUp(); | ||
florianlink
|
r13 | } | ||
florianlink
|
r28 | bool PythonQtWrapper_QCoreApplication::static_QCoreApplication_testAttribute(Qt::ApplicationAttribute attribute) | ||
florianlink
|
r13 | { | ||
florianlink
|
r28 | return QCoreApplication::testAttribute(attribute); | ||
florianlink
|
r13 | } | ||
florianlink
|
r28 | QString PythonQtWrapper_QCoreApplication::static_QCoreApplication_translate(const char* context, const char* key, const char* comment, QCoreApplication::Encoding encoding, int n) | ||
florianlink
|
r13 | { | ||
florianlink
|
r28 | return QCoreApplication::translate(context, key, comment, encoding, n); | ||
florianlink
|
r13 | } | ||
florianlink
|
r28 | void PythonQtWrapper_QCoreApplication::static_QCoreApplication_processEvents(QEventLoop::ProcessEventsFlags flags) | ||
florianlink
|
r13 | { | ||
florianlink
|
r28 | QCoreApplication::processEvents(flags); | ||
florianlink
|
r13 | } | ||
florianlink
|
r28 | int PythonQtWrapper_QCoreApplication::static_QCoreApplication_exec() | ||
florianlink
|
r13 | { | ||
florianlink
|
r28 | return QCoreApplication::exec(); | ||
florianlink
|
r13 | } | ||
florianlink
|
r28 | void PythonQtWrapper_QCoreApplication::static_QCoreApplication_setOrganizationDomain(const QString& orgDomain) | ||
florianlink
|
r13 | { | ||
florianlink
|
r28 | QCoreApplication::setOrganizationDomain(orgDomain); | ||
florianlink
|
r13 | } | ||
florianlink
|
r28 | void PythonQtWrapper_QCoreApplication::static_QCoreApplication_setLibraryPaths(const QStringList& arg__1) | ||
florianlink
|
r13 | { | ||
florianlink
|
r28 | QCoreApplication::setLibraryPaths(arg__1); | ||
florianlink
|
r13 | } | ||