PythonQtWrapper_QCoreApplication.cpp
345 lines
| 11.7 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)) { | ||||
florianlink
|
r73 | static const char* argumentList[] ={"" , "QChildEvent*"}; | ||
static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); | ||||
florianlink
|
r24 | 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)) { | ||||
florianlink
|
r73 | static const char* argumentList[] ={"" , "QEvent*"}; | ||
static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); | ||||
florianlink
|
r24 | 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)) { | ||||
florianlink
|
r73 | static const char* argumentList[] ={"bool" , "QEvent*"}; | ||
static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); | ||||
bool returnValue; | ||||
florianlink
|
r24 | 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) { | ||||
florianlink
|
r73 | if (args[0]==NULL) { | ||
PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); | ||||
} else { | ||||
returnValue = *((bool*)args[0]); | ||||
} | ||||
florianlink
|
r24 | } | ||
} | ||||
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)) { | ||||
florianlink
|
r73 | static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; | ||
static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); | ||||
bool returnValue; | ||||
florianlink
|
r24 | 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) { | ||||
florianlink
|
r73 | if (args[0]==NULL) { | ||
PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); | ||||
} else { | ||||
returnValue = *((bool*)args[0]); | ||||
} | ||||
florianlink
|
r24 | } | ||
} | ||||
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)) { | ||||
florianlink
|
r73 | static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; | ||
static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); | ||||
bool returnValue; | ||||
florianlink
|
r24 | 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) { | ||||
florianlink
|
r73 | if (args[0]==NULL) { | ||
PythonQt::priv()->handleVirtualOverloadReturnError("notify", methodInfo, result); | ||||
} else { | ||||
returnValue = *((bool*)args[0]); | ||||
} | ||||
florianlink
|
r24 | } | ||
} | ||||
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)) { | ||||
florianlink
|
r73 | static const char* argumentList[] ={"" , "QTimerEvent*"}; | ||
static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); | ||||
florianlink
|
r24 | 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
|
r73 | void PythonQtWrapper_QCoreApplication::static_QCoreApplication_removePostedEvents(QObject* receiver) | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | (QCoreApplication::removePostedEvents(receiver)); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | QString PythonQtWrapper_QCoreApplication::static_QCoreApplication_organizationName() | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return (QCoreApplication::organizationName()); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | void PythonQtWrapper_QCoreApplication::static_QCoreApplication_postEvent(QObject* receiver, QEvent* event) | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | (QCoreApplication::postEvent(receiver, event)); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | void PythonQtWrapper_QCoreApplication::static_QCoreApplication_exit(int retcode) | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | (QCoreApplication::exit(retcode)); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | void PythonQtWrapper_QCoreApplication::static_QCoreApplication_removePostedEvents(QObject* receiver, int eventType) | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | (QCoreApplication::removePostedEvents(receiver, eventType)); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | bool PythonQtWrapper_QCoreApplication::static_QCoreApplication_hasPendingEvents() | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return (QCoreApplication::hasPendingEvents()); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | void PythonQtWrapper_QCoreApplication::static_QCoreApplication_processEvents(QEventLoop::ProcessEventsFlags flags) | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | (QCoreApplication::processEvents(flags)); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | QCoreApplication* PythonQtWrapper_QCoreApplication::static_QCoreApplication_instance() | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return (QCoreApplication::instance()); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | void PythonQtWrapper_QCoreApplication::static_QCoreApplication_setApplicationName(const QString& application) | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | (QCoreApplication::setApplicationName(application)); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | void PythonQtWrapper_QCoreApplication::static_QCoreApplication_setLibraryPaths(const QStringList& arg__1) | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | (QCoreApplication::setLibraryPaths(arg__1)); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | void PythonQtWrapper_QCoreApplication::static_QCoreApplication_processEvents(QEventLoop::ProcessEventsFlags flags, int maxtime) | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | (QCoreApplication::processEvents(flags, maxtime)); | ||
florianlink
|
r24 | } | ||
florianlink
|
r73 | void PythonQtWrapper_QCoreApplication::static_QCoreApplication_sendPostedEvents() | ||
florianlink
|
r24 | { | ||
florianlink
|
r73 | (QCoreApplication::sendPostedEvents()); | ||
florianlink
|
r24 | } | ||
florianlink
|
r73 | void PythonQtWrapper_QCoreApplication::static_QCoreApplication_addLibraryPath(const QString& arg__1) | ||
florianlink
|
r24 | { | ||
florianlink
|
r73 | (QCoreApplication::addLibraryPath(arg__1)); | ||
florianlink
|
r24 | } | ||
florianlink
|
r73 | void PythonQtWrapper_QCoreApplication::static_QCoreApplication_flush() | ||
florianlink
|
r24 | { | ||
florianlink
|
r73 | (QCoreApplication::flush()); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | void PythonQtWrapper_QCoreApplication::static_QCoreApplication_removeLibraryPath(const QString& arg__1) | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | (QCoreApplication::removeLibraryPath(arg__1)); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | bool PythonQtWrapper_QCoreApplication::static_QCoreApplication_startingUp() | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return (QCoreApplication::startingUp()); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | void PythonQtWrapper_QCoreApplication::static_QCoreApplication_setOrganizationDomain(const QString& orgDomain) | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | (QCoreApplication::setOrganizationDomain(orgDomain)); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | QString PythonQtWrapper_QCoreApplication::static_QCoreApplication_applicationVersion() | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return (QCoreApplication::applicationVersion()); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | void PythonQtWrapper_QCoreApplication::static_QCoreApplication_sendPostedEvents(QObject* receiver, int event_type) | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | (QCoreApplication::sendPostedEvents(receiver, event_type)); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | bool PythonQtWrapper_QCoreApplication::static_QCoreApplication_testAttribute(Qt::ApplicationAttribute attribute) | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return (QCoreApplication::testAttribute(attribute)); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | QString PythonQtWrapper_QCoreApplication::static_QCoreApplication_organizationDomain() | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return (QCoreApplication::organizationDomain()); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | void PythonQtWrapper_QCoreApplication::static_QCoreApplication_postEvent(QObject* receiver, QEvent* event, int priority) | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | (QCoreApplication::postEvent(receiver, event, priority)); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | void PythonQtWrapper_QCoreApplication::static_QCoreApplication_setOrganizationName(const QString& orgName) | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | (QCoreApplication::setOrganizationName(orgName)); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | qint64 PythonQtWrapper_QCoreApplication::static_QCoreApplication_applicationPid() | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return (QCoreApplication::applicationPid()); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | bool PythonQtWrapper_QCoreApplication::static_QCoreApplication_sendEvent(QObject* receiver, QEvent* event) | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return (QCoreApplication::sendEvent(receiver, event)); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | bool PythonQtWrapper_QCoreApplication::event(QCoreApplication* theWrappedObject, QEvent* arg__1) | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( ((PythonQtPublicPromoter_QCoreApplication*)theWrappedObject)->promoted_event(arg__1)); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | bool PythonQtWrapper_QCoreApplication::static_QCoreApplication_closingDown() | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return (QCoreApplication::closingDown()); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | void PythonQtWrapper_QCoreApplication::static_QCoreApplication_setAttribute(Qt::ApplicationAttribute attribute, bool on) | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | (QCoreApplication::setAttribute(attribute, on)); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | QStringList PythonQtWrapper_QCoreApplication::static_QCoreApplication_libraryPaths() | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return (QCoreApplication::libraryPaths()); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | QString PythonQtWrapper_QCoreApplication::static_QCoreApplication_applicationName() | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return (QCoreApplication::applicationName()); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | void PythonQtWrapper_QCoreApplication::static_QCoreApplication_setApplicationVersion(const QString& version) | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | (QCoreApplication::setApplicationVersion(version)); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | int PythonQtWrapper_QCoreApplication::static_QCoreApplication_exec() | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return (QCoreApplication::exec()); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | bool PythonQtWrapper_QCoreApplication::notify(QCoreApplication* theWrappedObject, QObject* arg__1, QEvent* arg__2) | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( ((PythonQtPublicPromoter_QCoreApplication*)theWrappedObject)->promoted_notify(arg__1, arg__2)); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | void PythonQtWrapper_QCoreApplication::static_QCoreApplication_removeTranslator(QTranslator* messageFile) | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | (QCoreApplication::removeTranslator(messageFile)); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | void PythonQtWrapper_QCoreApplication::static_QCoreApplication_installTranslator(QTranslator* messageFile) | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | (QCoreApplication::installTranslator(messageFile)); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | QString PythonQtWrapper_QCoreApplication::static_QCoreApplication_applicationDirPath() | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return (QCoreApplication::applicationDirPath()); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | QString PythonQtWrapper_QCoreApplication::static_QCoreApplication_applicationFilePath() | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return (QCoreApplication::applicationFilePath()); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | QString PythonQtWrapper_QCoreApplication::static_QCoreApplication_translate(const char* context, const char* key, const char* comment, QCoreApplication::Encoding encoding) | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return (QCoreApplication::translate(context, key, comment, encoding)); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | QString PythonQtWrapper_QCoreApplication::static_QCoreApplication_translate(const char* context, const char* key, const char* comment, QCoreApplication::Encoding encoding, int n) | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return (QCoreApplication::translate(context, key, comment, encoding, n)); | ||
florianlink
|
r13 | } | ||