|
|
#include "PythonQtWrapper_QUndoGroup.h"
|
|
|
|
|
|
#include <PythonQtSignalReceiver.h>
|
|
|
#include <PythonQtMethodInfo.h>
|
|
|
#include <PythonQtConversion.h>
|
|
|
#include <QVariant>
|
|
|
#include <qaction.h>
|
|
|
#include <qbytearray.h>
|
|
|
#include <qcoreevent.h>
|
|
|
#include <qlist.h>
|
|
|
#include <qobject.h>
|
|
|
#include <qundogroup.h>
|
|
|
#include <qundostack.h>
|
|
|
|
|
|
void PythonQtShell_QUndoGroup::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_QUndoGroup::staticMetaObject,
|
|
|
"childEvent(QUndoGroup*,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;
|
|
|
}
|
|
|
}
|
|
|
QUndoGroup::childEvent(arg__1);
|
|
|
}
|
|
|
void PythonQtShell_QUndoGroup::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_QUndoGroup::staticMetaObject,
|
|
|
"customEvent(QUndoGroup*,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;
|
|
|
}
|
|
|
}
|
|
|
QUndoGroup::customEvent(arg__1);
|
|
|
}
|
|
|
bool PythonQtShell_QUndoGroup::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_QUndoGroup::staticMetaObject,
|
|
|
"event(QUndoGroup*,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 QUndoGroup::event(arg__1);
|
|
|
}
|
|
|
bool PythonQtShell_QUndoGroup::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_QUndoGroup::staticMetaObject,
|
|
|
"eventFilter(QUndoGroup*,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 QUndoGroup::eventFilter(arg__1, arg__2);
|
|
|
}
|
|
|
void PythonQtShell_QUndoGroup::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_QUndoGroup::staticMetaObject,
|
|
|
"timerEvent(QUndoGroup*,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;
|
|
|
}
|
|
|
}
|
|
|
QUndoGroup::timerEvent(arg__1);
|
|
|
}
|
|
|
QUndoGroup* PythonQtWrapper_QUndoGroup::new_QUndoGroup(QObject* parent)
|
|
|
{
|
|
|
return new PythonQtShell_QUndoGroup(parent); }
|
|
|
|
|
|
QString PythonQtWrapper_QUndoGroup::undoText(QUndoGroup* theWrappedObject) const
|
|
|
{
|
|
|
return theWrappedObject->undoText();
|
|
|
}
|
|
|
|
|
|
bool PythonQtWrapper_QUndoGroup::isClean(QUndoGroup* theWrappedObject) const
|
|
|
{
|
|
|
return theWrappedObject->isClean();
|
|
|
}
|
|
|
|
|
|
QAction* PythonQtWrapper_QUndoGroup::createUndoAction(QUndoGroup* theWrappedObject, QObject* parent, const QString& prefix) const
|
|
|
{
|
|
|
return theWrappedObject->createUndoAction(parent, prefix);
|
|
|
}
|
|
|
|
|
|
bool PythonQtWrapper_QUndoGroup::canUndo(QUndoGroup* theWrappedObject) const
|
|
|
{
|
|
|
return theWrappedObject->canUndo();
|
|
|
}
|
|
|
|
|
|
QAction* PythonQtWrapper_QUndoGroup::createRedoAction(QUndoGroup* theWrappedObject, QObject* parent, const QString& prefix) const
|
|
|
{
|
|
|
return theWrappedObject->createRedoAction(parent, prefix);
|
|
|
}
|
|
|
|
|
|
void PythonQtWrapper_QUndoGroup::removeStack(QUndoGroup* theWrappedObject, QUndoStack* stack)
|
|
|
{
|
|
|
theWrappedObject->removeStack(stack);
|
|
|
}
|
|
|
|
|
|
QUndoStack* PythonQtWrapper_QUndoGroup::activeStack(QUndoGroup* theWrappedObject) const
|
|
|
{
|
|
|
return theWrappedObject->activeStack();
|
|
|
}
|
|
|
|
|
|
bool PythonQtWrapper_QUndoGroup::canRedo(QUndoGroup* theWrappedObject) const
|
|
|
{
|
|
|
return theWrappedObject->canRedo();
|
|
|
}
|
|
|
|
|
|
QString PythonQtWrapper_QUndoGroup::redoText(QUndoGroup* theWrappedObject) const
|
|
|
{
|
|
|
return theWrappedObject->redoText();
|
|
|
}
|
|
|
|
|
|
QList<QUndoStack* > PythonQtWrapper_QUndoGroup::stacks(QUndoGroup* theWrappedObject) const
|
|
|
{
|
|
|
return theWrappedObject->stacks();
|
|
|
}
|
|
|
|
|
|
void PythonQtWrapper_QUndoGroup::addStack(QUndoGroup* theWrappedObject, QUndoStack* stack)
|
|
|
{
|
|
|
theWrappedObject->addStack(stack);
|
|
|
}
|
|
|
|
|
|
|