18 #ifndef CUSTOM_ELEMENT_PART_H 19 #define CUSTOM_ELEMENT_PART_H 29 class QGraphicsSceneMouseEvent;
61 virtual void fromXml(
const QDomElement &) = 0;
65 virtual const QDomElement
toXml(QDomDocument &)
const = 0;
100 virtual QString
name()
const = 0;
102 virtual QString
xmlName()
const = 0;
104 virtual QGraphicsItem *
toItem();
109 QList<QPointF>
mapPoints(
const QRectF &,
const QRectF &,
const QList<QPointF> &);
virtual QUndoStack & undoStack() const
virtual void fromXml(const QDomElement &)=0
virtual const QDomElement toXml(QDomDocument &) const =0
virtual QETElementEditor * elementEditor() const
virtual void startUserTransformation(const QRectF &)=0
virtual void setProperty(const char *name, const QVariant &value)=0
virtual QET::ScalingMethod preferredScalingMethod() const
QList< QPointF > mapPoints(const QRectF &, const QRectF &, const QList< QPointF > &)
virtual QGraphicsItem * toItem()
virtual ~CustomElementPart()
Destructor.
virtual void handleUserTransformation(const QRectF &, const QRectF &)=0
virtual QRectF sceneGeometricRect() const =0
QETElementEditor * element_editor
ScalingMethod
Supported types of interactive scaling, typically for a single element primitive. ...
virtual void updateCurrentPartEditor() const
virtual QString name() const =0
virtual QString xmlName() const =0
virtual QVariant property(const char *name) const =0
virtual ElementScene * elementScene() const
CustomElementPart(QETElementEditor *editor)
virtual bool isUseless() const =0