|
QElectroTech
0.8-dev
|
Go to the documentation of this file.
18 #ifndef CUSTOM_ELEMENT_PART_H
19 #define CUSTOM_ELEMENT_PART_H
29 class 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> &);
Definition: elementprimitivedecorator.h:41
virtual QETElementEditor * elementEditor() const
Definition: customelementpart.cpp:22
virtual QString name() const =0
CustomElementPart(const CustomElementPart &)
@ SnapScalingPointToGrid
snap the point used to define the new bounding rectangle to the grid
Definition: qet.h:83
virtual const QDomElement toXml(QDomDocument &) const =0
virtual QGraphicsItem * toItem()
Definition: customelementpart.cpp:47
virtual QUndoStack & undoStack() const
Definition: customelementpart.cpp:42
virtual void startUserTransformation(const QRectF &)=0
virtual void fromXml(const QDomElement &)=0
QETElementEditor * element_editor
Definition: customelementpart.h:60
virtual void updateCurrentPartEditor() const
Definition: customelementpart.cpp:30
virtual QRectF sceneGeometricRect() const =0
virtual QString xmlName() const =0
virtual QVariant property(const char *name) const =0
virtual ~CustomElementPart()
~CustomElementPart Destructor
Definition: customelementpart.h:53
virtual void setProperty(const char *name, const QVariant &value)=0
virtual QET::ScalingMethod preferredScalingMethod() const
Definition: customelementpart.cpp:58
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:37
QList< QPointF > mapPoints(const QRectF &, const QRectF &, const QList< QPointF > &)
Definition: customelementpart.cpp:69
ScalingMethod
Supported types of interactive scaling, typically for a single element primitive.
Definition: qet.h:81
The ElementScene class This class is the canvas allowing the visual edition of an electrial element....
Definition: elementscene.h:40
CustomElementPart(QETElementEditor *editor)
CustomElementPart Constructor.
Definition: customelementpart.h:48
virtual bool isUseless() const =0
Definition: qetelementeditor.h:33
virtual void handleUserTransformation(const QRectF &, const QRectF &)=0