18#ifndef CUSTOM_ELEMENT_PART_H
19#define CUSTOM_ELEMENT_PART_H
29class QGraphicsSceneMouseEvent;
67 virtual void fromXml(
const QDomElement &) = 0;
71 virtual const QDomElement
toXml(QDomDocument &)
const = 0;
108 virtual QString
name()
const = 0;
112 virtual QGraphicsItem *
toItem();
120 const QList<QPointF> &);
The CustomElementPart class This abstract class represents a primitive of the visual representation o...
Definition customelementpart.h:40
virtual ElementScene * elementScene() const
Definition customelementpart.cpp:41
QETElementEditor * element_editor
Definition customelementpart.h:60
virtual QUndoStack & undoStack() const
Definition customelementpart.cpp:47
virtual QRectF sceneGeometricRect() const =0
virtual bool isUseless() const =0
virtual QString name() const =0
virtual void handleUserTransformation(const QRectF &, const QRectF &)=0
CustomElementPart(QETElementEditor *editor)
CustomElementPart Constructor.
Definition customelementpart.h:48
virtual QET::ScalingMethod preferredScalingMethod() const
Definition customelementpart.cpp:65
QList< QPointF > mapPoints(const QRectF &, const QRectF &, const QList< QPointF > &)
Definition customelementpart.cpp:77
virtual void startUserTransformation(const QRectF &)=0
virtual void setProperty(const char *name, const QVariant &value)=0
virtual void updateCurrentPartEditor() const
Definition customelementpart.cpp:33
virtual ~CustomElementPart()
~CustomElementPart Destructor
Definition customelementpart.h:53
virtual QGraphicsItem * toItem()
Definition customelementpart.cpp:53
virtual QETElementEditor * elementEditor() const
Definition customelementpart.cpp:24
virtual QString xmlName() const =0
CustomElementPart(const CustomElementPart &)
virtual QVariant property(const char *name) const =0
virtual void fromXml(const QDomElement &)=0
virtual const QDomElement toXml(QDomDocument &) const =0
Definition elementprimitivedecorator.h:42
The ElementScene class This class is the canvas allowing the visual edition of an electrical element....
Definition elementscene.h:46
Definition qetelementeditor.h:39
ScalingMethod
Supported types of interactive scaling, typically for a single element primitive.
Definition qet.h:77