##// END OF EJS Templates
added PyLauncher example...
added PyLauncher example added hadError() to scripting console added addSysPath() git-svn-id: svn://svn.code.sf.net/p/pythonqt/code/trunk@50 ea8d5007-eb21-0410-b261-ccb3ea6e24a9

File last commit:

r13:d46b01f7163a
r14:59f352c6d9fb
Show More
PythonQtWrapper_QGraphicsScene.cpp
352 lines | 11.5 KiB | text/x-c | CppLexer
#include "PythonQtWrapper_QGraphicsScene.h"
#include <QVarLengthArray>
#include <QVariant>
#include <qbrush.h>
#include <qbytearray.h>
#include <qcoreevent.h>
#include <qevent.h>
#include <qfont.h>
#include <qgraphicsitem.h>
#include <qgraphicsproxywidget.h>
#include <qgraphicsscene.h>
#include <qgraphicssceneevent.h>
#include <qgraphicsview.h>
#include <qgraphicswidget.h>
#include <qline.h>
#include <qlist.h>
#include <qobject.h>
#include <qpainter.h>
#include <qpainterpath.h>
#include <qpalette.h>
#include <qpen.h>
#include <qpixmap.h>
#include <qpoint.h>
#include <qpolygon.h>
#include <qrect.h>
#include <qstyle.h>
#include <qstyleoption.h>
#include <qwidget.h>
QGraphicsScene* PythonQtWrapper_QGraphicsScene::new_QGraphicsScene(QObject* parent)
{
return new QGraphicsScene(parent); }
QGraphicsScene* PythonQtWrapper_QGraphicsScene::new_QGraphicsScene(const QRectF& sceneRect, QObject* parent)
{
return new QGraphicsScene(sceneRect, parent); }
QGraphicsScene* PythonQtWrapper_QGraphicsScene::new_QGraphicsScene(qreal x, qreal y, qreal width, qreal height, QObject* parent)
{
return new QGraphicsScene(x, y, width, height, parent); }
QGraphicsWidget* PythonQtWrapper_QGraphicsScene::activeWindow(QGraphicsScene* theWrappedObject) const
{
return theWrappedObject->activeWindow();
}
QGraphicsEllipseItem* PythonQtWrapper_QGraphicsScene::addEllipse(QGraphicsScene* theWrappedObject, const QRectF& rect, const QPen& pen, const QBrush& brush)
{
return theWrappedObject->addEllipse(rect, pen, brush);
}
QGraphicsEllipseItem* PythonQtWrapper_QGraphicsScene::addEllipse(QGraphicsScene* theWrappedObject, qreal x, qreal y, qreal w, qreal h, const QPen& pen, const QBrush& brush)
{
return theWrappedObject->addEllipse(x, y, w, h, pen, brush);
}
void PythonQtWrapper_QGraphicsScene::addItem(QGraphicsScene* theWrappedObject, QGraphicsItem* item)
{
theWrappedObject->addItem(item);
}
QGraphicsLineItem* PythonQtWrapper_QGraphicsScene::addLine(QGraphicsScene* theWrappedObject, const QLineF& line, const QPen& pen)
{
return theWrappedObject->addLine(line, pen);
}
QGraphicsLineItem* PythonQtWrapper_QGraphicsScene::addLine(QGraphicsScene* theWrappedObject, qreal x1, qreal y1, qreal x2, qreal y2, const QPen& pen)
{
return theWrappedObject->addLine(x1, y1, x2, y2, pen);
}
QGraphicsPathItem* PythonQtWrapper_QGraphicsScene::addPath(QGraphicsScene* theWrappedObject, const QPainterPath& path, const QPen& pen, const QBrush& brush)
{
return theWrappedObject->addPath(path, pen, brush);
}
QGraphicsPixmapItem* PythonQtWrapper_QGraphicsScene::addPixmap(QGraphicsScene* theWrappedObject, const QPixmap& pixmap)
{
return theWrappedObject->addPixmap(pixmap);
}
QGraphicsPolygonItem* PythonQtWrapper_QGraphicsScene::addPolygon(QGraphicsScene* theWrappedObject, const QPolygonF& polygon, const QPen& pen, const QBrush& brush)
{
return theWrappedObject->addPolygon(polygon, pen, brush);
}
QGraphicsRectItem* PythonQtWrapper_QGraphicsScene::addRect(QGraphicsScene* theWrappedObject, const QRectF& rect, const QPen& pen, const QBrush& brush)
{
return theWrappedObject->addRect(rect, pen, brush);
}
QGraphicsRectItem* PythonQtWrapper_QGraphicsScene::addRect(QGraphicsScene* theWrappedObject, qreal x, qreal y, qreal w, qreal h, const QPen& pen, const QBrush& brush)
{
return theWrappedObject->addRect(x, y, w, h, pen, brush);
}
QGraphicsSimpleTextItem* PythonQtWrapper_QGraphicsScene::addSimpleText(QGraphicsScene* theWrappedObject, const QString& text, const QFont& font)
{
return theWrappedObject->addSimpleText(text, font);
}
QGraphicsTextItem* PythonQtWrapper_QGraphicsScene::addText(QGraphicsScene* theWrappedObject, const QString& text, const QFont& font)
{
return theWrappedObject->addText(text, font);
}
QGraphicsProxyWidget* PythonQtWrapper_QGraphicsScene::addWidget(QGraphicsScene* theWrappedObject, QWidget* widget, Qt::WindowFlags wFlags)
{
return theWrappedObject->addWidget(widget, wFlags);
}
QBrush PythonQtWrapper_QGraphicsScene::backgroundBrush(QGraphicsScene* theWrappedObject) const
{
return theWrappedObject->backgroundBrush();
}
int PythonQtWrapper_QGraphicsScene::bspTreeDepth(QGraphicsScene* theWrappedObject) const
{
return theWrappedObject->bspTreeDepth();
}
void PythonQtWrapper_QGraphicsScene::clearFocus(QGraphicsScene* theWrappedObject)
{
theWrappedObject->clearFocus();
}
QList<QGraphicsItem* > PythonQtWrapper_QGraphicsScene::collidingItems(QGraphicsScene* theWrappedObject, const QGraphicsItem* item, Qt::ItemSelectionMode mode) const
{
return theWrappedObject->collidingItems(item, mode);
}
QGraphicsItemGroup* PythonQtWrapper_QGraphicsScene::createItemGroup(QGraphicsScene* theWrappedObject, const QList<QGraphicsItem* >& items)
{
return theWrappedObject->createItemGroup(items);
}
void PythonQtWrapper_QGraphicsScene::destroyItemGroup(QGraphicsScene* theWrappedObject, QGraphicsItemGroup* group)
{
theWrappedObject->destroyItemGroup(group);
}
QGraphicsItem* PythonQtWrapper_QGraphicsScene::focusItem(QGraphicsScene* theWrappedObject) const
{
return theWrappedObject->focusItem();
}
QFont PythonQtWrapper_QGraphicsScene::font(QGraphicsScene* theWrappedObject) const
{
return theWrappedObject->font();
}
QBrush PythonQtWrapper_QGraphicsScene::foregroundBrush(QGraphicsScene* theWrappedObject) const
{
return theWrappedObject->foregroundBrush();
}
bool PythonQtWrapper_QGraphicsScene::hasFocus(QGraphicsScene* theWrappedObject) const
{
return theWrappedObject->hasFocus();
}
qreal PythonQtWrapper_QGraphicsScene::height(QGraphicsScene* theWrappedObject) const
{
return theWrappedObject->height();
}
QVariant PythonQtWrapper_QGraphicsScene::inputMethodQuery(QGraphicsScene* theWrappedObject, Qt::InputMethodQuery query) const
{
return theWrappedObject->inputMethodQuery(query);
}
void PythonQtWrapper_QGraphicsScene::invalidate(QGraphicsScene* theWrappedObject, qreal x, qreal y, qreal w, qreal h, QGraphicsScene::SceneLayers layers)
{
theWrappedObject->invalidate(x, y, w, h, layers);
}
QGraphicsItem* PythonQtWrapper_QGraphicsScene::itemAt(QGraphicsScene* theWrappedObject, const QPointF& pos) const
{
return theWrappedObject->itemAt(pos);
}
QGraphicsItem* PythonQtWrapper_QGraphicsScene::itemAt(QGraphicsScene* theWrappedObject, qreal x, qreal y) const
{
return theWrappedObject->itemAt(x, y);
}
QGraphicsScene::ItemIndexMethod PythonQtWrapper_QGraphicsScene::itemIndexMethod(QGraphicsScene* theWrappedObject) const
{
return theWrappedObject->itemIndexMethod();
}
QList<QGraphicsItem* > PythonQtWrapper_QGraphicsScene::items(QGraphicsScene* theWrappedObject) const
{
return theWrappedObject->items();
}
QList<QGraphicsItem* > PythonQtWrapper_QGraphicsScene::items(QGraphicsScene* theWrappedObject, const QPainterPath& path, Qt::ItemSelectionMode mode) const
{
return theWrappedObject->items(path, mode);
}
QList<QGraphicsItem* > PythonQtWrapper_QGraphicsScene::items(QGraphicsScene* theWrappedObject, const QPointF& pos) const
{
return theWrappedObject->items(pos);
}
QList<QGraphicsItem* > PythonQtWrapper_QGraphicsScene::items(QGraphicsScene* theWrappedObject, const QPolygonF& polygon, Qt::ItemSelectionMode mode) const
{
return theWrappedObject->items(polygon, mode);
}
QList<QGraphicsItem* > PythonQtWrapper_QGraphicsScene::items(QGraphicsScene* theWrappedObject, const QRectF& rect, Qt::ItemSelectionMode mode) const
{
return theWrappedObject->items(rect, mode);
}
QList<QGraphicsItem* > PythonQtWrapper_QGraphicsScene::items(QGraphicsScene* theWrappedObject, qreal x, qreal y, qreal w, qreal h, Qt::ItemSelectionMode mode) const
{
return theWrappedObject->items(x, y, w, h, mode);
}
QRectF PythonQtWrapper_QGraphicsScene::itemsBoundingRect(QGraphicsScene* theWrappedObject) const
{
return theWrappedObject->itemsBoundingRect();
}
QGraphicsItem* PythonQtWrapper_QGraphicsScene::mouseGrabberItem(QGraphicsScene* theWrappedObject) const
{
return theWrappedObject->mouseGrabberItem();
}
QPalette PythonQtWrapper_QGraphicsScene::palette(QGraphicsScene* theWrappedObject) const
{
return theWrappedObject->palette();
}
void PythonQtWrapper_QGraphicsScene::removeItem(QGraphicsScene* theWrappedObject, QGraphicsItem* item)
{
theWrappedObject->removeItem(item);
}
void PythonQtWrapper_QGraphicsScene::render(QGraphicsScene* theWrappedObject, QPainter* painter, const QRectF& target, const QRectF& source, Qt::AspectRatioMode aspectRatioMode)
{
theWrappedObject->render(painter, target, source, aspectRatioMode);
}
QRectF PythonQtWrapper_QGraphicsScene::sceneRect(QGraphicsScene* theWrappedObject) const
{
return theWrappedObject->sceneRect();
}
QList<QGraphicsItem* > PythonQtWrapper_QGraphicsScene::selectedItems(QGraphicsScene* theWrappedObject) const
{
return theWrappedObject->selectedItems();
}
QPainterPath PythonQtWrapper_QGraphicsScene::selectionArea(QGraphicsScene* theWrappedObject) const
{
return theWrappedObject->selectionArea();
}
void PythonQtWrapper_QGraphicsScene::setActiveWindow(QGraphicsScene* theWrappedObject, QGraphicsWidget* widget)
{
theWrappedObject->setActiveWindow(widget);
}
void PythonQtWrapper_QGraphicsScene::setBackgroundBrush(QGraphicsScene* theWrappedObject, const QBrush& brush)
{
theWrappedObject->setBackgroundBrush(brush);
}
void PythonQtWrapper_QGraphicsScene::setBspTreeDepth(QGraphicsScene* theWrappedObject, int depth)
{
theWrappedObject->setBspTreeDepth(depth);
}
void PythonQtWrapper_QGraphicsScene::setFocus(QGraphicsScene* theWrappedObject, Qt::FocusReason focusReason)
{
theWrappedObject->setFocus(focusReason);
}
void PythonQtWrapper_QGraphicsScene::setFocusItem(QGraphicsScene* theWrappedObject, QGraphicsItem* item, Qt::FocusReason focusReason)
{
theWrappedObject->setFocusItem(item, focusReason);
}
void PythonQtWrapper_QGraphicsScene::setFont(QGraphicsScene* theWrappedObject, const QFont& font)
{
theWrappedObject->setFont(font);
}
void PythonQtWrapper_QGraphicsScene::setForegroundBrush(QGraphicsScene* theWrappedObject, const QBrush& brush)
{
theWrappedObject->setForegroundBrush(brush);
}
void PythonQtWrapper_QGraphicsScene::setItemIndexMethod(QGraphicsScene* theWrappedObject, QGraphicsScene::ItemIndexMethod method)
{
theWrappedObject->setItemIndexMethod(method);
}
void PythonQtWrapper_QGraphicsScene::setPalette(QGraphicsScene* theWrappedObject, const QPalette& palette)
{
theWrappedObject->setPalette(palette);
}
void PythonQtWrapper_QGraphicsScene::setSceneRect(QGraphicsScene* theWrappedObject, const QRectF& rect)
{
theWrappedObject->setSceneRect(rect);
}
void PythonQtWrapper_QGraphicsScene::setSceneRect(QGraphicsScene* theWrappedObject, qreal x, qreal y, qreal w, qreal h)
{
theWrappedObject->setSceneRect(x, y, w, h);
}
void PythonQtWrapper_QGraphicsScene::setSelectionArea(QGraphicsScene* theWrappedObject, const QPainterPath& path)
{
theWrappedObject->setSelectionArea(path);
}
void PythonQtWrapper_QGraphicsScene::setSelectionArea(QGraphicsScene* theWrappedObject, const QPainterPath& path, Qt::ItemSelectionMode arg__2)
{
theWrappedObject->setSelectionArea(path, arg__2);
}
void PythonQtWrapper_QGraphicsScene::setStyle(QGraphicsScene* theWrappedObject, QStyle* style)
{
theWrappedObject->setStyle(style);
}
QStyle* PythonQtWrapper_QGraphicsScene::style(QGraphicsScene* theWrappedObject) const
{
return theWrappedObject->style();
}
void PythonQtWrapper_QGraphicsScene::update(QGraphicsScene* theWrappedObject, qreal x, qreal y, qreal w, qreal h)
{
theWrappedObject->update(x, y, w, h);
}
QList<QGraphicsView* > PythonQtWrapper_QGraphicsScene::views(QGraphicsScene* theWrappedObject) const
{
return theWrappedObject->views();
}
qreal PythonQtWrapper_QGraphicsScene::width(QGraphicsScene* theWrappedObject) const
{
return theWrappedObject->width();
}