44 enum {
Type = UserType + 1103 };
50 void paint(QPainter *,
const QStyleOptionGraphicsItem *, QWidget * =
nullptr)
override;
53 QString
name()
const override {
return(QObject::tr(
"ellipse",
"element part name")); }
54 QString
xmlName()
const override {
return(QString(
"ellipse")); }
55 const QDomElement
toXml (QDomDocument &)
const override;
56 void fromXml (
const QDomElement &)
override;
57 QPainterPath
shape()
const override;
66 QVariant
itemChange(GraphicsItemChange change,
const QVariant &value)
override;
The AbstractPartEllipse class This is the base class for all ellipse based item like ellipse,...
Definition abstractpartellipse.h:40
QRectF rect
Definition abstractpartellipse.h:44
virtual void setRect(const QRectF &rect)
AbstractPartEllipse::setRect Sets the item's ellipse geometry to rect. The rectangle's left edge defi...
Definition abstractpartellipse.cpp:122
The PartEllipse class This class represents an ellipse primitive which may be used to compose the dra...
Definition partellipse.h:31
~PartEllipse() override
PartEllipse::~PartEllipse Destructor.
Definition partellipse.cpp:40
void removeHandler() override
PartEllipse::removeHandler Remove the handlers of this item.
Definition partellipse.cpp:350
PartEllipse(const PartEllipse &)
int m_resize_mode
Definition partellipse.h:78
const QDomElement toXml(QDomDocument &) const override
PartEllipse::toXml Export this ellipse in xml.
Definition partellipse.cpp:87
void adjusteHandlerPos()
PartEllipse::adjusteHandlerPos.
Definition partellipse.cpp:253
void addHandler() override
PartEllipse::addHandler Add handlers for this item.
Definition partellipse.cpp:326
void handlerMousePressEvent(QetGraphicsHandlerItem *qghi, QGraphicsSceneMouseEvent *event)
PartEllipse::handlerMousePressEvent.
Definition partellipse.cpp:273
QPropertyUndoCommand * m_undo_command
Definition partellipse.h:77
QString name() const override
Definition partellipse.h:53
int type() const override
Definition partellipse.h:49
@ Type
Definition partellipse.h:44
void switchResizeMode()
Definition partellipse.cpp:234
QVariant itemChange(GraphicsItemChange change, const QVariant &value) override
PartEllipse::itemChange.
Definition partellipse.cpp:180
bool sceneEventFilter(QGraphicsItem *watched, QEvent *event) override
PartEllipse::sceneEventFilter.
Definition partellipse.cpp:200
QPainterPath shape() const override
PartEllipse::shape.
Definition partellipse.cpp:138
QPainterPath shadowShape() const override
Definition partellipse.cpp:150
void fromXml(const QDomElement &) override
PartEllipse::fromXml Import the properties of this ellipse from a xml element.
Definition partellipse.cpp:116
QString xmlName() const override
Definition partellipse.h:54
void handlerMouseReleaseEvent(QetGraphicsHandlerItem *qghi, QGraphicsSceneMouseEvent *event)
PartEllipse::handlerMouseReleaseEvent.
Definition partellipse.cpp:311
void mouseReleaseEvent(QGraphicsSceneMouseEvent *event) override
PartEllipse::mouseReleaseEvent Handle mouse release event.
Definition partellipse.cpp:166
void paint(QPainter *, const QStyleOptionGraphicsItem *, QWidget *=nullptr) override
PartEllipse::paint Draw this ellpise.
Definition partellipse.cpp:53
void handlerMouseMoveEvent(QetGraphicsHandlerItem *qghi, QGraphicsSceneMouseEvent *event)
PartEllipse::handlerMouseMoveEvent.
Definition partellipse.cpp:289
int m_vector_index
Definition partellipse.h:79
void setRect(const QRectF &rect) override
AbstractPartEllipse::setRect Sets the item's ellipse geometry to rect. The rectangle's left edge defi...
Definition partellipse.h:59
Definition qetelementeditor.h:39
The QPropertyUndoCommand class This undo command manage QProperty of a QObject. This undo command can...
Definition qpropertyundocommand.h:34
The QetGraphicsHandlerItem class This graphics item represents a point, destined to be used as an han...
Definition qetgraphicshandleritem.h:37