PythonQtWrapper_QGraphicsGridLayout.cpp
360 lines
| 13.2 KiB
| text/x-c
|
CppLexer
|
r13 | #include "PythonQtWrapper_QGraphicsGridLayout.h" | ||
|
r24 | #include <PythonQtSignalReceiver.h> | ||
#include <PythonQtMethodInfo.h> | ||||
#include <PythonQtConversion.h> | ||||
|
r13 | #include <QVariant> | ||
#include <qcoreevent.h> | ||||
#include <qgraphicsgridlayout.h> | ||||
#include <qgraphicslayoutitem.h> | ||||
#include <qrect.h> | ||||
#include <qsize.h> | ||||
|
r24 | int PythonQtShell_QGraphicsGridLayout::count() const | ||
{ | ||||
if (_wrapper) { | ||||
PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "count"); | ||||
PyErr_Clear(); | ||||
if (obj && !PythonQtSlotFunction_Check(obj)) { | ||||
|
r73 | static const char* argumentList[] ={"int"}; | ||
static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); | ||||
int returnValue; | ||||
|
r24 | void* args[1] = {NULL}; | ||
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) { | ||||
|
r73 | if (args[0]==NULL) { | ||
PythonQt::priv()->handleVirtualOverloadReturnError("count", methodInfo, result); | ||||
} else { | ||||
returnValue = *((int*)args[0]); | ||||
} | ||||
|
r24 | } | ||
} | ||||
if (result) { Py_DECREF(result); } | ||||
Py_DECREF(obj); | ||||
return returnValue; | ||||
} | ||||
} | ||||
return QGraphicsGridLayout::count(); | ||||
} | ||||
void PythonQtShell_QGraphicsGridLayout::getContentsMargins(qreal* left, qreal* top, qreal* right, qreal* bottom) const | ||||
{ | ||||
if (_wrapper) { | ||||
PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "getContentsMargins"); | ||||
PyErr_Clear(); | ||||
if (obj && !PythonQtSlotFunction_Check(obj)) { | ||||
|
r73 | static const char* argumentList[] ={"" , "qreal*" , "qreal*" , "qreal*" , "qreal*"}; | ||
static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(5, argumentList); | ||||
|
r24 | void* args[5] = {NULL, (void*)&left, (void*)&top, (void*)&right, (void*)&bottom}; | ||
PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); | ||||
if (result) { Py_DECREF(result); } | ||||
Py_DECREF(obj); | ||||
return; | ||||
} | ||||
} | ||||
QGraphicsGridLayout::getContentsMargins(left, top, right, bottom); | ||||
} | ||||
void PythonQtShell_QGraphicsGridLayout::invalidate() | ||||
{ | ||||
if (_wrapper) { | ||||
PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "invalidate"); | ||||
PyErr_Clear(); | ||||
if (obj && !PythonQtSlotFunction_Check(obj)) { | ||||
|
r73 | static const char* argumentList[] ={""}; | ||
static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); | ||||
|
r24 | void* args[1] = {NULL}; | ||
PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); | ||||
if (result) { Py_DECREF(result); } | ||||
Py_DECREF(obj); | ||||
return; | ||||
} | ||||
} | ||||
QGraphicsGridLayout::invalidate(); | ||||
} | ||||
QGraphicsLayoutItem* PythonQtShell_QGraphicsGridLayout::itemAt(int index) const | ||||
{ | ||||
if (_wrapper) { | ||||
PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "itemAt"); | ||||
PyErr_Clear(); | ||||
if (obj && !PythonQtSlotFunction_Check(obj)) { | ||||
|
r73 | static const char* argumentList[] ={"QGraphicsLayoutItem*" , "int"}; | ||
static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); | ||||
QGraphicsLayoutItem* returnValue; | ||||
|
r24 | void* args[2] = {NULL, (void*)&index}; | ||
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) { | ||||
|
r73 | if (args[0]==NULL) { | ||
PythonQt::priv()->handleVirtualOverloadReturnError("itemAt", methodInfo, result); | ||||
} else { | ||||
returnValue = *((QGraphicsLayoutItem**)args[0]); | ||||
} | ||||
|
r24 | } | ||
} | ||||
if (result) { Py_DECREF(result); } | ||||
Py_DECREF(obj); | ||||
return returnValue; | ||||
} | ||||
} | ||||
return QGraphicsGridLayout::itemAt(index); | ||||
} | ||||
void PythonQtShell_QGraphicsGridLayout::removeAt(int index) | ||||
{ | ||||
if (_wrapper) { | ||||
PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "removeAt"); | ||||
PyErr_Clear(); | ||||
if (obj && !PythonQtSlotFunction_Check(obj)) { | ||||
|
r73 | static const char* argumentList[] ={"" , "int"}; | ||
static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); | ||||
|
r24 | void* args[2] = {NULL, (void*)&index}; | ||
PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); | ||||
if (result) { Py_DECREF(result); } | ||||
Py_DECREF(obj); | ||||
return; | ||||
} | ||||
} | ||||
QGraphicsGridLayout::removeAt(index); | ||||
} | ||||
void PythonQtShell_QGraphicsGridLayout::widgetEvent(QEvent* e) | ||||
{ | ||||
if (_wrapper) { | ||||
PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "widgetEvent"); | ||||
PyErr_Clear(); | ||||
if (obj && !PythonQtSlotFunction_Check(obj)) { | ||||
|
r73 | static const char* argumentList[] ={"" , "QEvent*"}; | ||
static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); | ||||
|
r24 | void* args[2] = {NULL, (void*)&e}; | ||
PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); | ||||
if (result) { Py_DECREF(result); } | ||||
Py_DECREF(obj); | ||||
return; | ||||
} | ||||
} | ||||
QGraphicsGridLayout::widgetEvent(e); | ||||
} | ||||
|
r13 | QGraphicsGridLayout* PythonQtWrapper_QGraphicsGridLayout::new_QGraphicsGridLayout(QGraphicsLayoutItem* parent) | ||
{ | ||||
|
r24 | return new PythonQtShell_QGraphicsGridLayout(parent); } | ||
|
r13 | |||
|
r28 | QGraphicsLayoutItem* PythonQtWrapper_QGraphicsGridLayout::itemAt(QGraphicsGridLayout* theWrappedObject, int index) const | ||
|
r13 | { | ||
|
r73 | return ( ((PythonQtPublicPromoter_QGraphicsGridLayout*)theWrappedObject)->promoted_itemAt(index)); | ||
|
r13 | } | ||
|
r73 | Qt::Alignment PythonQtWrapper_QGraphicsGridLayout::columnAlignment(QGraphicsGridLayout* theWrappedObject, int column) const | ||
|
r13 | { | ||
|
r73 | return ( theWrappedObject->columnAlignment(column)); | ||
|
r13 | } | ||
|
r28 | qreal PythonQtWrapper_QGraphicsGridLayout::rowMaximumHeight(QGraphicsGridLayout* theWrappedObject, int row) const | ||
|
r13 | { | ||
|
r73 | return ( theWrappedObject->rowMaximumHeight(row)); | ||
|
r13 | } | ||
|
r73 | qreal PythonQtWrapper_QGraphicsGridLayout::horizontalSpacing(QGraphicsGridLayout* theWrappedObject) const | ||
|
r13 | { | ||
|
r73 | return ( theWrappedObject->horizontalSpacing()); | ||
|
r13 | } | ||
|
r73 | int PythonQtWrapper_QGraphicsGridLayout::rowCount(QGraphicsGridLayout* theWrappedObject) const | ||
|
r13 | { | ||
|
r73 | return ( theWrappedObject->rowCount()); | ||
|
r13 | } | ||
|
r73 | qreal PythonQtWrapper_QGraphicsGridLayout::columnMaximumWidth(QGraphicsGridLayout* theWrappedObject, int column) const | ||
|
r13 | { | ||
|
r73 | return ( theWrappedObject->columnMaximumWidth(column)); | ||
|
r13 | } | ||
|
r73 | void PythonQtWrapper_QGraphicsGridLayout::setRowMaximumHeight(QGraphicsGridLayout* theWrappedObject, int row, qreal height) | ||
|
r13 | { | ||
|
r73 | ( theWrappedObject->setRowMaximumHeight(row, height)); | ||
|
r13 | } | ||
|
r73 | qreal PythonQtWrapper_QGraphicsGridLayout::rowMinimumHeight(QGraphicsGridLayout* theWrappedObject, int row) const | ||
|
r13 | { | ||
|
r73 | return ( theWrappedObject->rowMinimumHeight(row)); | ||
|
r13 | } | ||
|
r73 | int PythonQtWrapper_QGraphicsGridLayout::columnCount(QGraphicsGridLayout* theWrappedObject) const | ||
|
r13 | { | ||
|
r73 | return ( theWrappedObject->columnCount()); | ||
|
r13 | } | ||
|
r73 | Qt::Alignment PythonQtWrapper_QGraphicsGridLayout::rowAlignment(QGraphicsGridLayout* theWrappedObject, int row) const | ||
|
r13 | { | ||
|
r73 | return ( theWrappedObject->rowAlignment(row)); | ||
|
r13 | } | ||
|
r28 | void PythonQtWrapper_QGraphicsGridLayout::setColumnMinimumWidth(QGraphicsGridLayout* theWrappedObject, int column, qreal width) | ||
|
r13 | { | ||
|
r73 | ( theWrappedObject->setColumnMinimumWidth(column, width)); | ||
|
r13 | } | ||
|
r28 | void PythonQtWrapper_QGraphicsGridLayout::setVerticalSpacing(QGraphicsGridLayout* theWrappedObject, qreal spacing) | ||
|
r13 | { | ||
|
r73 | ( theWrappedObject->setVerticalSpacing(spacing)); | ||
|
r13 | } | ||
|
r73 | void PythonQtWrapper_QGraphicsGridLayout::setColumnStretchFactor(QGraphicsGridLayout* theWrappedObject, int column, int stretch) | ||
|
r13 | { | ||
|
r73 | ( theWrappedObject->setColumnStretchFactor(column, stretch)); | ||
|
r13 | } | ||
|
r73 | void PythonQtWrapper_QGraphicsGridLayout::setRowSpacing(QGraphicsGridLayout* theWrappedObject, int row, qreal spacing) | ||
|
r13 | { | ||
|
r73 | ( theWrappedObject->setRowSpacing(row, spacing)); | ||
|
r13 | } | ||
|
r73 | void PythonQtWrapper_QGraphicsGridLayout::setColumnPreferredWidth(QGraphicsGridLayout* theWrappedObject, int column, qreal width) | ||
|
r13 | { | ||
|
r73 | ( theWrappedObject->setColumnPreferredWidth(column, width)); | ||
|
r13 | } | ||
|
r73 | void PythonQtWrapper_QGraphicsGridLayout::addItem(QGraphicsGridLayout* theWrappedObject, QGraphicsLayoutItem* item, int row, int column, int rowSpan, int columnSpan, Qt::Alignment alignment) | ||
|
r13 | { | ||
|
r73 | ( theWrappedObject->addItem(item, row, column, rowSpan, columnSpan, alignment)); | ||
|
r13 | } | ||
|
r73 | qreal PythonQtWrapper_QGraphicsGridLayout::columnPreferredWidth(QGraphicsGridLayout* theWrappedObject, int column) const | ||
|
r13 | { | ||
|
r73 | return ( theWrappedObject->columnPreferredWidth(column)); | ||
|
r13 | } | ||
|
r73 | qreal PythonQtWrapper_QGraphicsGridLayout::verticalSpacing(QGraphicsGridLayout* theWrappedObject) const | ||
|
r13 | { | ||
|
r73 | return ( theWrappedObject->verticalSpacing()); | ||
|
r13 | } | ||
|
r73 | int PythonQtWrapper_QGraphicsGridLayout::rowStretchFactor(QGraphicsGridLayout* theWrappedObject, int row) const | ||
|
r13 | { | ||
|
r73 | return ( theWrappedObject->rowStretchFactor(row)); | ||
|
r13 | } | ||
|
r28 | qreal PythonQtWrapper_QGraphicsGridLayout::columnMinimumWidth(QGraphicsGridLayout* theWrappedObject, int column) const | ||
|
r13 | { | ||
|
r73 | return ( theWrappedObject->columnMinimumWidth(column)); | ||
|
r13 | } | ||
|
r28 | void PythonQtWrapper_QGraphicsGridLayout::setRowStretchFactor(QGraphicsGridLayout* theWrappedObject, int row, int stretch) | ||
|
r13 | { | ||
|
r73 | ( theWrappedObject->setRowStretchFactor(row, stretch)); | ||
|
r13 | } | ||
|
r28 | void PythonQtWrapper_QGraphicsGridLayout::setRowFixedHeight(QGraphicsGridLayout* theWrappedObject, int row, qreal height) | ||
|
r13 | { | ||
|
r73 | ( theWrappedObject->setRowFixedHeight(row, height)); | ||
|
r13 | } | ||
|
r73 | void PythonQtWrapper_QGraphicsGridLayout::addItem(QGraphicsGridLayout* theWrappedObject, QGraphicsLayoutItem* item, int row, int column, Qt::Alignment alignment) | ||
|
r13 | { | ||
|
r73 | ( theWrappedObject->addItem(item, row, column, alignment)); | ||
|
r13 | } | ||
|
r73 | int PythonQtWrapper_QGraphicsGridLayout::count(QGraphicsGridLayout* theWrappedObject) const | ||
|
r13 | { | ||
|
r73 | return ( ((PythonQtPublicPromoter_QGraphicsGridLayout*)theWrappedObject)->promoted_count()); | ||
|
r13 | } | ||
|
r73 | void PythonQtWrapper_QGraphicsGridLayout::invalidate(QGraphicsGridLayout* theWrappedObject) | ||
|
r13 | { | ||
|
r73 | ( ((PythonQtPublicPromoter_QGraphicsGridLayout*)theWrappedObject)->promoted_invalidate()); | ||
|
r13 | } | ||
|
r73 | void PythonQtWrapper_QGraphicsGridLayout::setSpacing(QGraphicsGridLayout* theWrappedObject, qreal spacing) | ||
|
r13 | { | ||
|
r73 | ( theWrappedObject->setSpacing(spacing)); | ||
|
r13 | } | ||
|
r73 | void PythonQtWrapper_QGraphicsGridLayout::setRowPreferredHeight(QGraphicsGridLayout* theWrappedObject, int row, qreal height) | ||
|
r13 | { | ||
|
r73 | ( theWrappedObject->setRowPreferredHeight(row, height)); | ||
|
r13 | } | ||
|
r73 | void PythonQtWrapper_QGraphicsGridLayout::setColumnFixedWidth(QGraphicsGridLayout* theWrappedObject, int column, qreal width) | ||
|
r13 | { | ||
|
r73 | ( theWrappedObject->setColumnFixedWidth(column, width)); | ||
|
r13 | } | ||
|
r73 | void PythonQtWrapper_QGraphicsGridLayout::setHorizontalSpacing(QGraphicsGridLayout* theWrappedObject, qreal spacing) | ||
|
r13 | { | ||
|
r73 | ( theWrappedObject->setHorizontalSpacing(spacing)); | ||
|
r13 | } | ||
|
r28 | void PythonQtWrapper_QGraphicsGridLayout::setRowAlignment(QGraphicsGridLayout* theWrappedObject, int row, Qt::Alignment alignment) | ||
|
r13 | { | ||
|
r73 | ( theWrappedObject->setRowAlignment(row, alignment)); | ||
|
r13 | } | ||
|
r73 | qreal PythonQtWrapper_QGraphicsGridLayout::columnSpacing(QGraphicsGridLayout* theWrappedObject, int column) const | ||
|
r13 | { | ||
|
r73 | return ( theWrappedObject->columnSpacing(column)); | ||
|
r13 | } | ||
|
r73 | qreal PythonQtWrapper_QGraphicsGridLayout::rowSpacing(QGraphicsGridLayout* theWrappedObject, int row) const | ||
|
r13 | { | ||
|
r73 | return ( theWrappedObject->rowSpacing(row)); | ||
|
r13 | } | ||
|
r73 | void PythonQtWrapper_QGraphicsGridLayout::setRowMinimumHeight(QGraphicsGridLayout* theWrappedObject, int row, qreal height) | ||
|
r13 | { | ||
|
r73 | ( theWrappedObject->setRowMinimumHeight(row, height)); | ||
|
r13 | } | ||
|
r73 | QGraphicsLayoutItem* PythonQtWrapper_QGraphicsGridLayout::itemAt(QGraphicsGridLayout* theWrappedObject, int row, int column) const | ||
|
r13 | { | ||
|
r73 | return ( theWrappedObject->itemAt(row, column)); | ||
|
r13 | } | ||
|
r73 | Qt::Alignment PythonQtWrapper_QGraphicsGridLayout::alignment(QGraphicsGridLayout* theWrappedObject, QGraphicsLayoutItem* item) const | ||
|
r13 | { | ||
|
r73 | return ( theWrappedObject->alignment(item)); | ||
|
r13 | } | ||
|
r73 | qreal PythonQtWrapper_QGraphicsGridLayout::rowPreferredHeight(QGraphicsGridLayout* theWrappedObject, int row) const | ||
|
r13 | { | ||
|
r73 | return ( theWrappedObject->rowPreferredHeight(row)); | ||
|
r13 | } | ||
|
r73 | int PythonQtWrapper_QGraphicsGridLayout::columnStretchFactor(QGraphicsGridLayout* theWrappedObject, int column) const | ||
|
r13 | { | ||
|
r73 | return ( theWrappedObject->columnStretchFactor(column)); | ||
|
r13 | } | ||
|
r73 | void PythonQtWrapper_QGraphicsGridLayout::setAlignment(QGraphicsGridLayout* theWrappedObject, QGraphicsLayoutItem* item, Qt::Alignment alignment) | ||
|
r13 | { | ||
|
r73 | ( theWrappedObject->setAlignment(item, alignment)); | ||
|
r13 | } | ||
|
r28 | void PythonQtWrapper_QGraphicsGridLayout::removeAt(QGraphicsGridLayout* theWrappedObject, int index) | ||
|
r13 | { | ||
|
r73 | ( ((PythonQtPublicPromoter_QGraphicsGridLayout*)theWrappedObject)->promoted_removeAt(index)); | ||
|
r13 | } | ||
|
r28 | void PythonQtWrapper_QGraphicsGridLayout::setColumnAlignment(QGraphicsGridLayout* theWrappedObject, int column, Qt::Alignment alignment) | ||
|
r13 | { | ||
|
r73 | ( theWrappedObject->setColumnAlignment(column, alignment)); | ||
|
r13 | } | ||
|
r73 | void PythonQtWrapper_QGraphicsGridLayout::setGeometry(QGraphicsGridLayout* theWrappedObject, const QRectF& rect) | ||
|
r13 | { | ||
|
r73 | ( theWrappedObject->setGeometry(rect)); | ||
|
r13 | } | ||
|
r73 | QSizeF PythonQtWrapper_QGraphicsGridLayout::sizeHint(QGraphicsGridLayout* theWrappedObject, Qt::SizeHint which, const QSizeF& constraint) const | ||
{ | ||||
return ( theWrappedObject->sizeHint(which, constraint)); | ||||
} | ||||
void PythonQtWrapper_QGraphicsGridLayout::setColumnMaximumWidth(QGraphicsGridLayout* theWrappedObject, int column, qreal width) | ||||
{ | ||||
( theWrappedObject->setColumnMaximumWidth(column, width)); | ||||
} | ||||
void PythonQtWrapper_QGraphicsGridLayout::setColumnSpacing(QGraphicsGridLayout* theWrappedObject, int column, qreal spacing) | ||||
|
r13 | { | ||
|
r73 | ( theWrappedObject->setColumnSpacing(column, spacing)); | ||
|
r13 | } | ||