PythonQtWrapper_QGraphicsTextItem.h
173 lines
| 10.7 KiB
| text/x-c
|
CLexer
florianlink
|
r13 | #ifndef PYTHONQTWRAPPER_QGRAPHICSTEXTITEM_H | ||
#define PYTHONQTWRAPPER_QGRAPHICSTEXTITEM_H | ||||
#include <qgraphicsitem.h> | ||||
#include <QObject> | ||||
florianlink
|
r24 | #include <PythonQt.h> | ||
florianlink
|
r13 | #include <QTextCursor> | ||
#include <QVariant> | ||||
#include <qbytearray.h> | ||||
#include <qcolor.h> | ||||
#include <qcoreevent.h> | ||||
#include <qcursor.h> | ||||
#include <qevent.h> | ||||
#include <qfont.h> | ||||
#include <qgraphicsitem.h> | ||||
#include <qgraphicsscene.h> | ||||
#include <qgraphicssceneevent.h> | ||||
#include <qgraphicswidget.h> | ||||
#include <qlist.h> | ||||
#include <qobject.h> | ||||
#include <qpainter.h> | ||||
#include <qpainterpath.h> | ||||
#include <qpoint.h> | ||||
#include <qpolygon.h> | ||||
#include <qrect.h> | ||||
#include <qregion.h> | ||||
#include <qsize.h> | ||||
#include <qstyleoption.h> | ||||
#include <qtextcursor.h> | ||||
#include <qtextdocument.h> | ||||
#include <qtransform.h> | ||||
#include <qwidget.h> | ||||
florianlink
|
r24 | class PythonQtShell_QGraphicsTextItem : public QGraphicsTextItem | ||
{ | ||||
public: | ||||
PythonQtShell_QGraphicsTextItem(QGraphicsItem* parent = 0, QGraphicsScene* scene = 0):QGraphicsTextItem(parent, scene),_wrapper(NULL) {}; | ||||
PythonQtShell_QGraphicsTextItem(const QString& text, QGraphicsItem* parent = 0, QGraphicsScene* scene = 0):QGraphicsTextItem(text, parent, scene),_wrapper(NULL) {}; | ||||
virtual void advance(int phase); | ||||
virtual QRectF boundingRect() const; | ||||
virtual void childEvent(QChildEvent* arg__1); | ||||
virtual bool collidesWithItem(const QGraphicsItem* other, Qt::ItemSelectionMode mode) const; | ||||
virtual bool collidesWithPath(const QPainterPath& path, Qt::ItemSelectionMode mode) const; | ||||
virtual bool contains(const QPointF& point) const; | ||||
virtual void contextMenuEvent(QGraphicsSceneContextMenuEvent* event); | ||||
virtual void customEvent(QEvent* arg__1); | ||||
virtual void dragEnterEvent(QGraphicsSceneDragDropEvent* event); | ||||
virtual void dragLeaveEvent(QGraphicsSceneDragDropEvent* event); | ||||
virtual void dragMoveEvent(QGraphicsSceneDragDropEvent* event); | ||||
virtual void dropEvent(QGraphicsSceneDragDropEvent* event); | ||||
virtual bool event(QEvent* arg__1); | ||||
virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); | ||||
virtual QVariant extension(const QVariant& variant) const; | ||||
virtual void focusInEvent(QFocusEvent* event); | ||||
virtual void focusOutEvent(QFocusEvent* event); | ||||
virtual void hoverEnterEvent(QGraphicsSceneHoverEvent* event); | ||||
virtual void hoverLeaveEvent(QGraphicsSceneHoverEvent* event); | ||||
virtual void hoverMoveEvent(QGraphicsSceneHoverEvent* event); | ||||
virtual void inputMethodEvent(QInputMethodEvent* event); | ||||
virtual QVariant inputMethodQuery(Qt::InputMethodQuery query) const; | ||||
virtual bool isObscuredBy(const QGraphicsItem* item) const; | ||||
virtual QVariant itemChange(QGraphicsItem::GraphicsItemChange change, const QVariant& value); | ||||
virtual void keyPressEvent(QKeyEvent* event); | ||||
virtual void keyReleaseEvent(QKeyEvent* event); | ||||
virtual void mouseDoubleClickEvent(QGraphicsSceneMouseEvent* event); | ||||
virtual void mouseMoveEvent(QGraphicsSceneMouseEvent* event); | ||||
virtual void mousePressEvent(QGraphicsSceneMouseEvent* event); | ||||
virtual void mouseReleaseEvent(QGraphicsSceneMouseEvent* event); | ||||
virtual QPainterPath opaqueArea() const; | ||||
virtual void paint(QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget* widget); | ||||
virtual bool sceneEvent(QEvent* event); | ||||
virtual bool sceneEventFilter(QGraphicsItem* watched, QEvent* event); | ||||
virtual QPainterPath shape() const; | ||||
virtual void timerEvent(QTimerEvent* arg__1); | ||||
virtual int type() const; | ||||
virtual void wheelEvent(QGraphicsSceneWheelEvent* event); | ||||
PythonQtInstanceWrapper* _wrapper; | ||||
}; | ||||
class PythonQtPublicPromoter_QGraphicsTextItem : public QGraphicsTextItem | ||||
{ public: | ||||
florianlink
|
r28 | inline void promoted_hoverEnterEvent(QGraphicsSceneHoverEvent* event) { QGraphicsTextItem::hoverEnterEvent(event); } | ||
inline void promoted_focusInEvent(QFocusEvent* event) { QGraphicsTextItem::focusInEvent(event); } | ||||
florianlink
|
r73 | inline void promoted_mouseReleaseEvent(QGraphicsSceneMouseEvent* event) { QGraphicsTextItem::mouseReleaseEvent(event); } | ||
inline bool promoted_contains(const QPointF& point) const { return QGraphicsTextItem::contains(point); } | ||||
inline bool promoted_sceneEvent(QEvent* event) { return QGraphicsTextItem::sceneEvent(event); } | ||||
inline void promoted_hoverLeaveEvent(QGraphicsSceneHoverEvent* event) { QGraphicsTextItem::hoverLeaveEvent(event); } | ||||
inline bool promoted_isObscuredBy(const QGraphicsItem* item) const { return QGraphicsTextItem::isObscuredBy(item); } | ||||
florianlink
|
r28 | inline QPainterPath promoted_opaqueArea() const { return QGraphicsTextItem::opaqueArea(); } | ||
florianlink
|
r73 | inline void promoted_paint(QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget* widget) { QGraphicsTextItem::paint(painter, option, widget); } | ||
inline void promoted_mousePressEvent(QGraphicsSceneMouseEvent* event) { QGraphicsTextItem::mousePressEvent(event); } | ||||
florianlink
|
r28 | inline QRectF promoted_boundingRect() const { return QGraphicsTextItem::boundingRect(); } | ||
inline void promoted_mouseMoveEvent(QGraphicsSceneMouseEvent* event) { QGraphicsTextItem::mouseMoveEvent(event); } | ||||
florianlink
|
r73 | inline int promoted_type() const { return QGraphicsTextItem::type(); } | ||
inline void promoted_inputMethodEvent(QInputMethodEvent* event) { QGraphicsTextItem::inputMethodEvent(event); } | ||||
inline void promoted_dragMoveEvent(QGraphicsSceneDragDropEvent* event) { QGraphicsTextItem::dragMoveEvent(event); } | ||||
inline void promoted_dragLeaveEvent(QGraphicsSceneDragDropEvent* event) { QGraphicsTextItem::dragLeaveEvent(event); } | ||||
inline QVariant promoted_extension(const QVariant& variant) const { return QGraphicsTextItem::extension(variant); } | ||||
inline QVariant promoted_inputMethodQuery(Qt::InputMethodQuery query) const { return QGraphicsTextItem::inputMethodQuery(query); } | ||||
inline void promoted_contextMenuEvent(QGraphicsSceneContextMenuEvent* event) { QGraphicsTextItem::contextMenuEvent(event); } | ||||
inline void promoted_keyPressEvent(QKeyEvent* event) { QGraphicsTextItem::keyPressEvent(event); } | ||||
inline void promoted_mouseDoubleClickEvent(QGraphicsSceneMouseEvent* event) { QGraphicsTextItem::mouseDoubleClickEvent(event); } | ||||
inline void promoted_hoverMoveEvent(QGraphicsSceneHoverEvent* event) { QGraphicsTextItem::hoverMoveEvent(event); } | ||||
florianlink
|
r28 | inline QPainterPath promoted_shape() const { return QGraphicsTextItem::shape(); } | ||
florianlink
|
r73 | inline void promoted_dragEnterEvent(QGraphicsSceneDragDropEvent* event) { QGraphicsTextItem::dragEnterEvent(event); } | ||
inline void promoted_keyReleaseEvent(QKeyEvent* event) { QGraphicsTextItem::keyReleaseEvent(event); } | ||||
florianlink
|
r28 | inline void promoted_dropEvent(QGraphicsSceneDragDropEvent* event) { QGraphicsTextItem::dropEvent(event); } | ||
florianlink
|
r73 | inline void promoted_focusOutEvent(QFocusEvent* event) { QGraphicsTextItem::focusOutEvent(event); } | ||
florianlink
|
r24 | }; | ||
florianlink
|
r13 | class PythonQtWrapper_QGraphicsTextItem : public QObject | ||
{ Q_OBJECT | ||||
public: | ||||
Q_ENUMS(enum_1 ) | ||||
enum enum_1{ | ||||
Type = QGraphicsTextItem::Type}; | ||||
public slots: | ||||
QGraphicsTextItem* new_QGraphicsTextItem(QGraphicsItem* parent = 0, QGraphicsScene* scene = 0); | ||||
QGraphicsTextItem* new_QGraphicsTextItem(const QString& text, QGraphicsItem* parent = 0, QGraphicsScene* scene = 0); | ||||
void delete_QGraphicsTextItem(QGraphicsTextItem* obj) { delete obj; } | ||||
florianlink
|
r73 | void setDocument(QGraphicsTextItem* theWrappedObject, QTextDocument* document); | ||
florianlink
|
r24 | QTextCursor textCursor(QGraphicsTextItem* theWrappedObject) const; | ||
void setTextInteractionFlags(QGraphicsTextItem* theWrappedObject, Qt::TextInteractionFlags flags); | ||||
florianlink
|
r28 | void hoverEnterEvent(QGraphicsTextItem* theWrappedObject, QGraphicsSceneHoverEvent* event); | ||
florianlink
|
r73 | qreal textWidth(QGraphicsTextItem* theWrappedObject) const; | ||
florianlink
|
r28 | bool openExternalLinks(QGraphicsTextItem* theWrappedObject) const; | ||
void focusInEvent(QGraphicsTextItem* theWrappedObject, QFocusEvent* event); | ||||
florianlink
|
r73 | void mouseReleaseEvent(QGraphicsTextItem* theWrappedObject, QGraphicsSceneMouseEvent* event); | ||
bool contains(QGraphicsTextItem* theWrappedObject, const QPointF& point) const; | ||||
void setDefaultTextColor(QGraphicsTextItem* theWrappedObject, const QColor& c); | ||||
bool sceneEvent(QGraphicsTextItem* theWrappedObject, QEvent* event); | ||||
void hoverLeaveEvent(QGraphicsTextItem* theWrappedObject, QGraphicsSceneHoverEvent* event); | ||||
bool isObscuredBy(QGraphicsTextItem* theWrappedObject, const QGraphicsItem* item) const; | ||||
florianlink
|
r28 | QPainterPath opaqueArea(QGraphicsTextItem* theWrappedObject) const; | ||
florianlink
|
r73 | void paint(QGraphicsTextItem* theWrappedObject, QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget* widget); | ||
void mousePressEvent(QGraphicsTextItem* theWrappedObject, QGraphicsSceneMouseEvent* event); | ||||
florianlink
|
r28 | QRectF boundingRect(QGraphicsTextItem* theWrappedObject) const; | ||
florianlink
|
r24 | void mouseMoveEvent(QGraphicsTextItem* theWrappedObject, QGraphicsSceneMouseEvent* event); | ||
florianlink
|
r73 | void setOpenExternalLinks(QGraphicsTextItem* theWrappedObject, bool open); | ||
void setTextCursor(QGraphicsTextItem* theWrappedObject, const QTextCursor& cursor); | ||||
int type(QGraphicsTextItem* theWrappedObject) const; | ||||
void inputMethodEvent(QGraphicsTextItem* theWrappedObject, QInputMethodEvent* event); | ||||
void setPlainText(QGraphicsTextItem* theWrappedObject, const QString& text); | ||||
void dragMoveEvent(QGraphicsTextItem* theWrappedObject, QGraphicsSceneDragDropEvent* event); | ||||
void dragLeaveEvent(QGraphicsTextItem* theWrappedObject, QGraphicsSceneDragDropEvent* event); | ||||
void setFont(QGraphicsTextItem* theWrappedObject, const QFont& font); | ||||
QVariant extension(QGraphicsTextItem* theWrappedObject, const QVariant& variant) const; | ||||
void setTextWidth(QGraphicsTextItem* theWrappedObject, qreal width); | ||||
QVariant inputMethodQuery(QGraphicsTextItem* theWrappedObject, Qt::InputMethodQuery query) const; | ||||
void setHtml(QGraphicsTextItem* theWrappedObject, const QString& html); | ||||
void contextMenuEvent(QGraphicsTextItem* theWrappedObject, QGraphicsSceneContextMenuEvent* event); | ||||
void keyPressEvent(QGraphicsTextItem* theWrappedObject, QKeyEvent* event); | ||||
void mouseDoubleClickEvent(QGraphicsTextItem* theWrappedObject, QGraphicsSceneMouseEvent* event); | ||||
QColor defaultTextColor(QGraphicsTextItem* theWrappedObject) const; | ||||
void hoverMoveEvent(QGraphicsTextItem* theWrappedObject, QGraphicsSceneHoverEvent* event); | ||||
QTextDocument* document(QGraphicsTextItem* theWrappedObject) const; | ||||
QString toPlainText(QGraphicsTextItem* theWrappedObject) const; | ||||
florianlink
|
r24 | QPainterPath shape(QGraphicsTextItem* theWrappedObject) const; | ||
florianlink
|
r28 | QFont font(QGraphicsTextItem* theWrappedObject) const; | ||
florianlink
|
r73 | void dragEnterEvent(QGraphicsTextItem* theWrappedObject, QGraphicsSceneDragDropEvent* event); | ||
florianlink
|
r28 | QString toHtml(QGraphicsTextItem* theWrappedObject) const; | ||
florianlink
|
r73 | void keyReleaseEvent(QGraphicsTextItem* theWrappedObject, QKeyEvent* event); | ||
Qt::TextInteractionFlags textInteractionFlags(QGraphicsTextItem* theWrappedObject) const; | ||||
florianlink
|
r28 | void dropEvent(QGraphicsTextItem* theWrappedObject, QGraphicsSceneDragDropEvent* event); | ||
florianlink
|
r73 | void adjustSize(QGraphicsTextItem* theWrappedObject); | ||
void focusOutEvent(QGraphicsTextItem* theWrappedObject, QFocusEvent* event); | ||||
florianlink
|
r13 | }; | ||
#endif // PYTHONQTWRAPPER_QGRAPHICSTEXTITEM_H | ||||