##// END OF EJS Templates
added alphabetic sorting...
added alphabetic sorting git-svn-id: svn://svn.code.sf.net/p/pythonqt/code/trunk@132 ea8d5007-eb21-0410-b261-ccb3ea6e24a9

File last commit:

r73:40dc86970256
r96:3170eb771a99
Show More
PythonQtWrapper_QGraphicsView.h
248 lines | 15.9 KiB | text/x-c | CLexer
florianlink
added initial generated wrappers for Qt 4.4.3...
r13 #ifndef PYTHONQTWRAPPER_QGRAPHICSVIEW_H
#define PYTHONQTWRAPPER_QGRAPHICSVIEW_H
#include <qgraphicsview.h>
#include <QObject>
florianlink
- added support for deriving CPP classes in Python and to override all public and protected virtual functions from PythonQt...
r24 #include <PythonQt.h>
florianlink
added initial generated wrappers for Qt 4.4.3...
r13 #include <QPainterPath>
#include <QVarLengthArray>
#include <QVariant>
#include <qaction.h>
#include <qbitmap.h>
#include <qbrush.h>
#include <qbytearray.h>
#include <qcoreevent.h>
#include <qcursor.h>
#include <qevent.h>
#include <qfont.h>
#include <qgraphicsitem.h>
#include <qgraphicsscene.h>
#include <qgraphicsview.h>
#include <qicon.h>
#include <qinputcontext.h>
#include <qkeysequence.h>
#include <qlayout.h>
#include <qlist.h>
#include <qlocale.h>
#include <qmatrix.h>
#include <qobject.h>
#include <qpaintengine.h>
#include <qpainter.h>
#include <qpainterpath.h>
#include <qpalette.h>
#include <qpoint.h>
#include <qpolygon.h>
#include <qrect.h>
#include <qregion.h>
#include <qscrollbar.h>
#include <qsize.h>
#include <qsizepolicy.h>
#include <qstyle.h>
#include <qstyleoption.h>
#include <qtransform.h>
#include <qwidget.h>
florianlink
- added support for deriving CPP classes in Python and to override all public and protected virtual functions from PythonQt...
r24 class PythonQtShell_QGraphicsView : public QGraphicsView
{
public:
PythonQtShell_QGraphicsView(QGraphicsScene* scene, QWidget* parent = 0):QGraphicsView(scene, parent),_wrapper(NULL) {};
PythonQtShell_QGraphicsView(QWidget* parent = 0):QGraphicsView(parent),_wrapper(NULL) {};
virtual void actionEvent(QActionEvent* arg__1);
virtual void changeEvent(QEvent* arg__1);
virtual void childEvent(QChildEvent* arg__1);
virtual void closeEvent(QCloseEvent* arg__1);
virtual void contextMenuEvent(QContextMenuEvent* event);
virtual void customEvent(QEvent* arg__1);
virtual int devType() const;
virtual void dragEnterEvent(QDragEnterEvent* event);
virtual void dragLeaveEvent(QDragLeaveEvent* event);
virtual void dragMoveEvent(QDragMoveEvent* event);
virtual void drawBackground(QPainter* painter, const QRectF& rect);
virtual void drawForeground(QPainter* painter, const QRectF& rect);
virtual void drawItems(QPainter* painter, int numItems, QGraphicsItem** items, const QStyleOptionGraphicsItem* options);
virtual void dropEvent(QDropEvent* event);
virtual void enterEvent(QEvent* arg__1);
virtual bool event(QEvent* event);
virtual bool eventFilter(QObject* arg__1, QEvent* arg__2);
virtual void focusInEvent(QFocusEvent* event);
virtual bool focusNextPrevChild(bool next);
virtual void focusOutEvent(QFocusEvent* event);
virtual int heightForWidth(int arg__1) const;
virtual void hideEvent(QHideEvent* arg__1);
virtual void inputMethodEvent(QInputMethodEvent* event);
virtual QVariant inputMethodQuery(Qt::InputMethodQuery query) const;
virtual void keyPressEvent(QKeyEvent* event);
virtual void keyReleaseEvent(QKeyEvent* event);
virtual void languageChange();
virtual void leaveEvent(QEvent* arg__1);
virtual int metric(QPaintDevice::PaintDeviceMetric arg__1) const;
virtual void mouseDoubleClickEvent(QMouseEvent* event);
virtual void mouseMoveEvent(QMouseEvent* event);
virtual void mousePressEvent(QMouseEvent* event);
virtual void mouseReleaseEvent(QMouseEvent* event);
virtual void moveEvent(QMoveEvent* arg__1);
virtual QPaintEngine* paintEngine() const;
virtual void paintEvent(QPaintEvent* event);
virtual void resizeEvent(QResizeEvent* event);
virtual void scrollContentsBy(int dx, int dy);
virtual void showEvent(QShowEvent* event);
virtual void tabletEvent(QTabletEvent* arg__1);
virtual void timerEvent(QTimerEvent* arg__1);
virtual bool viewportEvent(QEvent* event);
virtual void wheelEvent(QWheelEvent* event);
PythonQtInstanceWrapper* _wrapper;
};
class PythonQtPublicPromoter_QGraphicsView : public QGraphicsView
{ public:
florianlink
recreated wrappers to match current python qt version...
r73 inline void promoted_keyPressEvent(QKeyEvent* event) { QGraphicsView::keyPressEvent(event); }
inline void promoted_showEvent(QShowEvent* event) { QGraphicsView::showEvent(event); }
inline void promoted_dragMoveEvent(QDragMoveEvent* event) { QGraphicsView::dragMoveEvent(event); }
inline void promoted_mouseReleaseEvent(QMouseEvent* event) { QGraphicsView::mouseReleaseEvent(event); }
inline void promoted_drawItems(QPainter* painter, int numItems, QGraphicsItem** items, const QStyleOptionGraphicsItem* options) { QGraphicsView::drawItems(painter, numItems, items, options); }
inline void promoted_mousePressEvent(QMouseEvent* event) { QGraphicsView::mousePressEvent(event); }
inline void promoted_wheelEvent(QWheelEvent* event) { QGraphicsView::wheelEvent(event); }
inline bool promoted_event(QEvent* event) { return QGraphicsView::event(event); }
inline void promoted_mouseDoubleClickEvent(QMouseEvent* event) { QGraphicsView::mouseDoubleClickEvent(event); }
florianlink
upgraded wrappers to current generator version...
r28 inline void promoted_scrollContentsBy(int dx, int dy) { QGraphicsView::scrollContentsBy(dx, dy); }
inline void promoted_contextMenuEvent(QContextMenuEvent* event) { QGraphicsView::contextMenuEvent(event); }
florianlink
recreated wrappers to match current python qt version...
r73 inline void promoted_keyReleaseEvent(QKeyEvent* event) { QGraphicsView::keyReleaseEvent(event); }
inline void promoted_dropEvent(QDropEvent* event) { QGraphicsView::dropEvent(event); }
inline bool promoted_focusNextPrevChild(bool next) { return QGraphicsView::focusNextPrevChild(next); }
inline bool promoted_viewportEvent(QEvent* event) { return QGraphicsView::viewportEvent(event); }
florianlink
upgraded wrappers to current generator version...
r28 inline QVariant promoted_inputMethodQuery(Qt::InputMethodQuery query) const { return QGraphicsView::inputMethodQuery(query); }
florianlink
recreated wrappers to match current python qt version...
r73 inline void promoted_drawForeground(QPainter* painter, const QRectF& rect) { QGraphicsView::drawForeground(painter, rect); }
florianlink
upgraded wrappers to current generator version...
r28 inline void promoted_inputMethodEvent(QInputMethodEvent* event) { QGraphicsView::inputMethodEvent(event); }
florianlink
recreated wrappers to match current python qt version...
r73 inline void promoted_resizeEvent(QResizeEvent* event) { QGraphicsView::resizeEvent(event); }
florianlink
upgraded wrappers to current generator version...
r28 inline void promoted_mouseMoveEvent(QMouseEvent* event) { QGraphicsView::mouseMoveEvent(event); }
inline void promoted_paintEvent(QPaintEvent* event) { QGraphicsView::paintEvent(event); }
inline void promoted_dragLeaveEvent(QDragLeaveEvent* event) { QGraphicsView::dragLeaveEvent(event); }
inline void promoted_focusInEvent(QFocusEvent* event) { QGraphicsView::focusInEvent(event); }
florianlink
recreated wrappers to match current python qt version...
r73 inline void promoted_dragEnterEvent(QDragEnterEvent* event) { QGraphicsView::dragEnterEvent(event); }
inline void promoted_drawBackground(QPainter* painter, const QRectF& rect) { QGraphicsView::drawBackground(painter, rect); }
inline void promoted_focusOutEvent(QFocusEvent* event) { QGraphicsView::focusOutEvent(event); }
florianlink
- added support for deriving CPP classes in Python and to override all public and protected virtual functions from PythonQt...
r24 };
florianlink
added initial generated wrappers for Qt 4.4.3...
r13 class PythonQtWrapper_QGraphicsView : public QObject
{ Q_OBJECT
public:
Q_ENUMS(OptimizationFlag CacheModeFlag )
florianlink
recreated wrappers to match current python qt version...
r73 Q_FLAGS(OptimizationFlags CacheMode )
florianlink
added initial generated wrappers for Qt 4.4.3...
r13 enum OptimizationFlag{
DontClipPainter = QGraphicsView::DontClipPainter, DontSavePainterState = QGraphicsView::DontSavePainterState, DontAdjustForAntialiasing = QGraphicsView::DontAdjustForAntialiasing};
enum CacheModeFlag{
CacheNone = QGraphicsView::CacheNone, CacheBackground = QGraphicsView::CacheBackground};
florianlink
recreated wrappers to match current python qt version...
r73 Q_DECLARE_FLAGS(OptimizationFlags, OptimizationFlag)
Q_DECLARE_FLAGS(CacheMode, CacheModeFlag)
florianlink
added initial generated wrappers for Qt 4.4.3...
r13 public slots:
QGraphicsView* new_QGraphicsView(QGraphicsScene* scene, QWidget* parent = 0);
QGraphicsView* new_QGraphicsView(QWidget* parent = 0);
void delete_QGraphicsView(QGraphicsView* obj) { delete obj; }
florianlink
recreated wrappers to match current python qt version...
r73 void ensureVisible(QGraphicsView* theWrappedObject, const QGraphicsItem* item, int xmargin = 50, int ymargin = 50);
QGraphicsView::ViewportAnchor resizeAnchor(QGraphicsView* theWrappedObject) const;
QPainterPath mapToScene(QGraphicsView* theWrappedObject, const QPainterPath& path) const;
QPainterPath mapFromScene(QGraphicsView* theWrappedObject, const QPainterPath& path) const;
void keyPressEvent(QGraphicsView* theWrappedObject, QKeyEvent* event);
void showEvent(QGraphicsView* theWrappedObject, QShowEvent* event);
florianlink
upgraded wrappers to current generator version...
r28 void centerOn(QGraphicsView* theWrappedObject, const QPointF& pos);
florianlink
recreated wrappers to match current python qt version...
r73 QList<QGraphicsItem* > items(QGraphicsView* theWrappedObject) const;
QPainter::RenderHints renderHints(QGraphicsView* theWrappedObject) const;
void resetTransform(QGraphicsView* theWrappedObject);
void fitInView(QGraphicsView* theWrappedObject, qreal x, qreal y, qreal w, qreal h, Qt::AspectRatioMode aspectRadioMode = Qt::IgnoreAspectRatio);
void setAlignment(QGraphicsView* theWrappedObject, Qt::Alignment alignment);
QPolygon mapFromScene(QGraphicsView* theWrappedObject, const QPolygonF& polygon) const;
QGraphicsScene* scene(QGraphicsView* theWrappedObject) const;
QGraphicsView::DragMode dragMode(QGraphicsView* theWrappedObject) const;
void centerOn(QGraphicsView* theWrappedObject, const QGraphicsItem* item);
QList<QGraphicsItem* > items(QGraphicsView* theWrappedObject, int x, int y) const;
florianlink
upgraded wrappers to current generator version...
r28 void setOptimizationFlags(QGraphicsView* theWrappedObject, QGraphicsView::OptimizationFlags flags);
void setSceneRect(QGraphicsView* theWrappedObject, qreal x, qreal y, qreal w, qreal h);
florianlink
recreated wrappers to match current python qt version...
r73 Qt::Alignment alignment(QGraphicsView* theWrappedObject) const;
void fitInView(QGraphicsView* theWrappedObject, const QRectF& rect, Qt::AspectRatioMode aspectRadioMode = Qt::IgnoreAspectRatio);
void dragMoveEvent(QGraphicsView* theWrappedObject, QDragMoveEvent* event);
void mouseReleaseEvent(QGraphicsView* theWrappedObject, QMouseEvent* event);
QList<QGraphicsItem* > items(QGraphicsView* theWrappedObject, const QRect& rect, Qt::ItemSelectionMode mode = Qt::IntersectsItemShape) const;
QPolygonF mapToScene(QGraphicsView* theWrappedObject, const QRect& rect) const;
florianlink
- added support for deriving CPP classes in Python and to override all public and protected virtual functions from PythonQt...
r24 void ensureVisible(QGraphicsView* theWrappedObject, qreal x, qreal y, qreal w, qreal h, int xmargin = 50, int ymargin = 50);
florianlink
recreated wrappers to match current python qt version...
r73 void drawItems(QGraphicsView* theWrappedObject, QPainter* painter, int numItems, QGraphicsItem** items, const QStyleOptionGraphicsItem* options);
florianlink
- added support for deriving CPP classes in Python and to override all public and protected virtual functions from PythonQt...
r24 void setOptimizationFlag(QGraphicsView* theWrappedObject, QGraphicsView::OptimizationFlag flag, bool enabled = true);
QSize sizeHint(QGraphicsView* theWrappedObject) const;
florianlink
recreated wrappers to match current python qt version...
r73 void mousePressEvent(QGraphicsView* theWrappedObject, QMouseEvent* event);
bool isInteractive(QGraphicsView* theWrappedObject) const;
void rotate(QGraphicsView* theWrappedObject, qreal angle);
void setMatrix(QGraphicsView* theWrappedObject, const QMatrix& matrix, bool combine = false);
florianlink
upgraded wrappers to current generator version...
r28 void wheelEvent(QGraphicsView* theWrappedObject, QWheelEvent* event);
florianlink
recreated wrappers to match current python qt version...
r73 QTransform viewportTransform(QGraphicsView* theWrappedObject) const;
florianlink
upgraded wrappers to current generator version...
r28 bool event(QGraphicsView* theWrappedObject, QEvent* event);
florianlink
recreated wrappers to match current python qt version...
r73 void mouseDoubleClickEvent(QGraphicsView* theWrappedObject, QMouseEvent* event);
QList<QGraphicsItem* > items(QGraphicsView* theWrappedObject, const QPoint& pos) const;
void setForegroundBrush(QGraphicsView* theWrappedObject, const QBrush& brush);
void scrollContentsBy(QGraphicsView* theWrappedObject, int dx, int dy);
void contextMenuEvent(QGraphicsView* theWrappedObject, QContextMenuEvent* event);
QMatrix matrix(QGraphicsView* theWrappedObject) const;
void setInteractive(QGraphicsView* theWrappedObject, bool allowed);
void keyReleaseEvent(QGraphicsView* theWrappedObject, QKeyEvent* event);
void dropEvent(QGraphicsView* theWrappedObject, QDropEvent* event);
bool focusNextPrevChild(QGraphicsView* theWrappedObject, bool next);
QList<QGraphicsItem* > items(QGraphicsView* theWrappedObject, const QPainterPath& path, Qt::ItemSelectionMode mode = Qt::IntersectsItemShape) const;
Qt::ItemSelectionMode rubberBandSelectionMode(QGraphicsView* theWrappedObject) const;
QRectF sceneRect(QGraphicsView* theWrappedObject) const;
bool viewportEvent(QGraphicsView* theWrappedObject, QEvent* event);
QVariant inputMethodQuery(QGraphicsView* theWrappedObject, Qt::InputMethodQuery query) const;
void drawForeground(QGraphicsView* theWrappedObject, QPainter* painter, const QRectF& rect);
QPointF mapToScene(QGraphicsView* theWrappedObject, int x, int y) const;
void ensureVisible(QGraphicsView* theWrappedObject, const QRectF& rect, int xmargin = 50, int ymargin = 50);
QList<QGraphicsItem* > items(QGraphicsView* theWrappedObject, int x, int y, int w, int h, Qt::ItemSelectionMode mode = Qt::IntersectsItemShape) const;
void inputMethodEvent(QGraphicsView* theWrappedObject, QInputMethodEvent* event);
florianlink
upgraded wrappers to current generator version...
r28 QPolygonF mapToScene(QGraphicsView* theWrappedObject, const QPolygon& polygon) const;
florianlink
recreated wrappers to match current python qt version...
r73 void resizeEvent(QGraphicsView* theWrappedObject, QResizeEvent* event);
florianlink
upgraded wrappers to current generator version...
r28 QGraphicsItem* itemAt(QGraphicsView* theWrappedObject, int x, int y) const;
void setCacheMode(QGraphicsView* theWrappedObject, QGraphicsView::CacheMode mode);
florianlink
recreated wrappers to match current python qt version...
r73 void shear(QGraphicsView* theWrappedObject, qreal sh, qreal sv);
void setDragMode(QGraphicsView* theWrappedObject, QGraphicsView::DragMode mode);
void mouseMoveEvent(QGraphicsView* theWrappedObject, QMouseEvent* event);
void paintEvent(QGraphicsView* theWrappedObject, QPaintEvent* event);
void setTransformationAnchor(QGraphicsView* theWrappedObject, QGraphicsView::ViewportAnchor anchor);
QBrush foregroundBrush(QGraphicsView* theWrappedObject) const;
florianlink
upgraded wrappers to current generator version...
r28 QPointF mapToScene(QGraphicsView* theWrappedObject, const QPoint& point) const;
void fitInView(QGraphicsView* theWrappedObject, const QGraphicsItem* item, Qt::AspectRatioMode aspectRadioMode = Qt::IgnoreAspectRatio);
florianlink
recreated wrappers to match current python qt version...
r73 QList<QGraphicsItem* > items(QGraphicsView* theWrappedObject, const QPolygon& polygon, Qt::ItemSelectionMode mode = Qt::IntersectsItemShape) const;
void translate(QGraphicsView* theWrappedObject, qreal dx, qreal dy);
void setRenderHint(QGraphicsView* theWrappedObject, QPainter::RenderHint hint, bool enabled = true);
QGraphicsView::ViewportUpdateMode viewportUpdateMode(QGraphicsView* theWrappedObject) const;
QPoint mapFromScene(QGraphicsView* theWrappedObject, const QPointF& point) const;
void render(QGraphicsView* theWrappedObject, QPainter* painter, const QRectF& target = QRectF(), const QRect& source = QRect(), Qt::AspectRatioMode aspectRatioMode = Qt::KeepAspectRatio);
florianlink
upgraded wrappers to current generator version...
r28 void scale(QGraphicsView* theWrappedObject, qreal sx, qreal sy);
QPolygon mapFromScene(QGraphicsView* theWrappedObject, qreal x, qreal y, qreal w, qreal h) const;
florianlink
recreated wrappers to match current python qt version...
r73 QGraphicsView::OptimizationFlags optimizationFlags(QGraphicsView* theWrappedObject) const;
void setSceneRect(QGraphicsView* theWrappedObject, const QRectF& rect);
QBrush backgroundBrush(QGraphicsView* theWrappedObject) const;
QPolygonF mapToScene(QGraphicsView* theWrappedObject, int x, int y, int w, int h) const;
void setBackgroundBrush(QGraphicsView* theWrappedObject, const QBrush& brush);
florianlink
added initial generated wrappers for Qt 4.4.3...
r13 void setScene(QGraphicsView* theWrappedObject, QGraphicsScene* scene);
florianlink
recreated wrappers to match current python qt version...
r73 void setTransform(QGraphicsView* theWrappedObject, const QTransform& matrix, bool combine = false);
QGraphicsView::CacheMode cacheMode(QGraphicsView* theWrappedObject) const;
void setViewportUpdateMode(QGraphicsView* theWrappedObject, QGraphicsView::ViewportUpdateMode mode);
florianlink
upgraded wrappers to current generator version...
r28 void dragLeaveEvent(QGraphicsView* theWrappedObject, QDragLeaveEvent* event);
florianlink
recreated wrappers to match current python qt version...
r73 QTransform transform(QGraphicsView* theWrappedObject) const;
florianlink
upgraded wrappers to current generator version...
r28 void focusInEvent(QGraphicsView* theWrappedObject, QFocusEvent* event);
florianlink
recreated wrappers to match current python qt version...
r73 void resetMatrix(QGraphicsView* theWrappedObject);
QGraphicsView::ViewportAnchor transformationAnchor(QGraphicsView* theWrappedObject) const;
void dragEnterEvent(QGraphicsView* theWrappedObject, QDragEnterEvent* event);
void resetCachedContent(QGraphicsView* theWrappedObject);
void setRubberBandSelectionMode(QGraphicsView* theWrappedObject, Qt::ItemSelectionMode mode);
QPolygon mapFromScene(QGraphicsView* theWrappedObject, const QRectF& rect) const;
florianlink
upgraded wrappers to current generator version...
r28 QPoint mapFromScene(QGraphicsView* theWrappedObject, qreal x, qreal y) const;
void setRenderHints(QGraphicsView* theWrappedObject, QPainter::RenderHints hints);
florianlink
recreated wrappers to match current python qt version...
r73 void drawBackground(QGraphicsView* theWrappedObject, QPainter* painter, const QRectF& rect);
QGraphicsItem* itemAt(QGraphicsView* theWrappedObject, const QPoint& pos) const;
void centerOn(QGraphicsView* theWrappedObject, qreal x, qreal y);
void setResizeAnchor(QGraphicsView* theWrappedObject, QGraphicsView::ViewportAnchor anchor);
void focusOutEvent(QGraphicsView* theWrappedObject, QFocusEvent* event);
florianlink
added initial generated wrappers for Qt 4.4.3...
r13 };
#endif // PYTHONQTWRAPPER_QGRAPHICSVIEW_H