|
|
#ifndef PYTHONQTWRAPPER_QGRAPHICSLAYOUT_H
|
|
|
#define PYTHONQTWRAPPER_QGRAPHICSLAYOUT_H
|
|
|
|
|
|
#include <qgraphicslayout.h>
|
|
|
#include <QObject>
|
|
|
|
|
|
#include <PythonQt.h>
|
|
|
|
|
|
#include <QVariant>
|
|
|
#include <qcoreevent.h>
|
|
|
#include <qgraphicslayout.h>
|
|
|
#include <qgraphicslayoutitem.h>
|
|
|
#include <qrect.h>
|
|
|
#include <qsize.h>
|
|
|
#include <qsizepolicy.h>
|
|
|
|
|
|
class PythonQtShell_QGraphicsLayout : public QGraphicsLayout
|
|
|
{
|
|
|
public:
|
|
|
PythonQtShell_QGraphicsLayout(QGraphicsLayoutItem* parent = 0):QGraphicsLayout(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 i) const;
|
|
|
virtual void removeAt(int index);
|
|
|
virtual void setGeometry(const QRectF& rect);
|
|
|
virtual QSizeF sizeHint(Qt::SizeHint which, const QSizeF& constraint) const;
|
|
|
virtual void updateGeometry();
|
|
|
virtual void widgetEvent(QEvent* e);
|
|
|
|
|
|
PythonQtInstanceWrapper* _wrapper;
|
|
|
};
|
|
|
|
|
|
class PythonQtPublicPromoter_QGraphicsLayout : public QGraphicsLayout
|
|
|
{ public:
|
|
|
inline void promoted_invalidate() { QGraphicsLayout::invalidate(); }
|
|
|
inline void promoted_getContentsMargins(qreal* left, qreal* top, qreal* right, qreal* bottom) const { QGraphicsLayout::getContentsMargins(left, top, right, bottom); }
|
|
|
inline void promoted_widgetEvent(QEvent* e) { QGraphicsLayout::widgetEvent(e); }
|
|
|
};
|
|
|
|
|
|
class PythonQtWrapper_QGraphicsLayout : public QObject
|
|
|
{ Q_OBJECT
|
|
|
public:
|
|
|
public slots:
|
|
|
QGraphicsLayout* new_QGraphicsLayout(QGraphicsLayoutItem* parent = 0);
|
|
|
void delete_QGraphicsLayout(QGraphicsLayout* obj) { delete obj; }
|
|
|
bool isActivated(QGraphicsLayout* theWrappedObject) const;
|
|
|
void setContentsMargins(QGraphicsLayout* theWrappedObject, qreal left, qreal top, qreal right, qreal bottom);
|
|
|
void invalidate(QGraphicsLayout* theWrappedObject);
|
|
|
void activate(QGraphicsLayout* theWrappedObject);
|
|
|
void getContentsMargins(QGraphicsLayout* theWrappedObject, qreal* left, qreal* top, qreal* right, qreal* bottom) const;
|
|
|
void widgetEvent(QGraphicsLayout* theWrappedObject, QEvent* e);
|
|
|
};
|
|
|
|
|
|
#endif // PYTHONQTWRAPPER_QGRAPHICSLAYOUT_H
|
|
|
|