#ifndef PYTHONQTWRAPPER_QGRAPHICSGRIDLAYOUT_H #define PYTHONQTWRAPPER_QGRAPHICSGRIDLAYOUT_H #include #include #include #include #include #include #include #include #include class PythonQtShell_QGraphicsGridLayout : public QGraphicsGridLayout { public: PythonQtShell_QGraphicsGridLayout(QGraphicsLayoutItem* parent = 0):QGraphicsGridLayout(parent),_wrapper(NULL) {}; virtual int count() const; virtual void getContentsMargins(qreal* left, qreal* top, qreal* right, qreal* bottom) const; virtual void invalidate(); virtual QGraphicsLayoutItem* itemAt(int index) const; virtual void removeAt(int index); virtual void widgetEvent(QEvent* e); PythonQtInstanceWrapper* _wrapper; }; class PythonQtPublicPromoter_QGraphicsGridLayout : public QGraphicsGridLayout { public: inline QGraphicsLayoutItem* promoted_itemAt(int index) const { return QGraphicsGridLayout::itemAt(index); } inline int promoted_count() const { return QGraphicsGridLayout::count(); } inline void promoted_invalidate() { QGraphicsGridLayout::invalidate(); } inline void promoted_removeAt(int index) { QGraphicsGridLayout::removeAt(index); } }; class PythonQtWrapper_QGraphicsGridLayout : public QObject { Q_OBJECT public: public slots: QGraphicsGridLayout* new_QGraphicsGridLayout(QGraphicsLayoutItem* parent = 0); void delete_QGraphicsGridLayout(QGraphicsGridLayout* obj) { delete obj; } QGraphicsLayoutItem* itemAt(QGraphicsGridLayout* theWrappedObject, int index) const; Qt::Alignment columnAlignment(QGraphicsGridLayout* theWrappedObject, int column) const; qreal rowMaximumHeight(QGraphicsGridLayout* theWrappedObject, int row) const; qreal horizontalSpacing(QGraphicsGridLayout* theWrappedObject) const; int rowCount(QGraphicsGridLayout* theWrappedObject) const; qreal columnMaximumWidth(QGraphicsGridLayout* theWrappedObject, int column) const; void setRowMaximumHeight(QGraphicsGridLayout* theWrappedObject, int row, qreal height); qreal rowMinimumHeight(QGraphicsGridLayout* theWrappedObject, int row) const; int columnCount(QGraphicsGridLayout* theWrappedObject) const; Qt::Alignment rowAlignment(QGraphicsGridLayout* theWrappedObject, int row) const; void setColumnMinimumWidth(QGraphicsGridLayout* theWrappedObject, int column, qreal width); void setVerticalSpacing(QGraphicsGridLayout* theWrappedObject, qreal spacing); void setColumnStretchFactor(QGraphicsGridLayout* theWrappedObject, int column, int stretch); void setRowSpacing(QGraphicsGridLayout* theWrappedObject, int row, qreal spacing); void setColumnPreferredWidth(QGraphicsGridLayout* theWrappedObject, int column, qreal width); void addItem(QGraphicsGridLayout* theWrappedObject, QGraphicsLayoutItem* item, int row, int column, int rowSpan, int columnSpan, Qt::Alignment alignment = 0); qreal columnPreferredWidth(QGraphicsGridLayout* theWrappedObject, int column) const; qreal verticalSpacing(QGraphicsGridLayout* theWrappedObject) const; int rowStretchFactor(QGraphicsGridLayout* theWrappedObject, int row) const; qreal columnMinimumWidth(QGraphicsGridLayout* theWrappedObject, int column) const; void setRowStretchFactor(QGraphicsGridLayout* theWrappedObject, int row, int stretch); void setRowFixedHeight(QGraphicsGridLayout* theWrappedObject, int row, qreal height); void addItem(QGraphicsGridLayout* theWrappedObject, QGraphicsLayoutItem* item, int row, int column, Qt::Alignment alignment = 0); int count(QGraphicsGridLayout* theWrappedObject) const; void invalidate(QGraphicsGridLayout* theWrappedObject); void setSpacing(QGraphicsGridLayout* theWrappedObject, qreal spacing); void setRowPreferredHeight(QGraphicsGridLayout* theWrappedObject, int row, qreal height); void setColumnFixedWidth(QGraphicsGridLayout* theWrappedObject, int column, qreal width); void setHorizontalSpacing(QGraphicsGridLayout* theWrappedObject, qreal spacing); void setRowAlignment(QGraphicsGridLayout* theWrappedObject, int row, Qt::Alignment alignment); qreal columnSpacing(QGraphicsGridLayout* theWrappedObject, int column) const; qreal rowSpacing(QGraphicsGridLayout* theWrappedObject, int row) const; void setRowMinimumHeight(QGraphicsGridLayout* theWrappedObject, int row, qreal height); QGraphicsLayoutItem* itemAt(QGraphicsGridLayout* theWrappedObject, int row, int column) const; Qt::Alignment alignment(QGraphicsGridLayout* theWrappedObject, QGraphicsLayoutItem* item) const; qreal rowPreferredHeight(QGraphicsGridLayout* theWrappedObject, int row) const; int columnStretchFactor(QGraphicsGridLayout* theWrappedObject, int column) const; void setAlignment(QGraphicsGridLayout* theWrappedObject, QGraphicsLayoutItem* item, Qt::Alignment alignment); void removeAt(QGraphicsGridLayout* theWrappedObject, int index); void setColumnAlignment(QGraphicsGridLayout* theWrappedObject, int column, Qt::Alignment alignment); void setGeometry(QGraphicsGridLayout* theWrappedObject, const QRectF& rect); QSizeF sizeHint(QGraphicsGridLayout* theWrappedObject, Qt::SizeHint which, const QSizeF& constraint = QSizeF()) const; void setColumnMaximumWidth(QGraphicsGridLayout* theWrappedObject, int column, qreal width); void setColumnSpacing(QGraphicsGridLayout* theWrappedObject, int column, qreal spacing); }; #endif // PYTHONQTWRAPPER_QGRAPHICSGRIDLAYOUT_H