|
QElectroTech
0.8-dev
|
Go to the documentation of this file.
18 #ifndef PART_TERMINAL_H
19 #define PART_TERMINAL_H
48 enum {
Type = UserType + 1106 };
54 QString
name()
const override {
return d -> m_name; }
55 QString
xmlName()
const override {
return(QString(
"terminal")); }
56 void fromXml(
const QDomElement &)
override;
57 const QDomElement
toXml(QDomDocument &)
const override;
58 void paint(QPainter *,
const QStyleOptionGraphicsItem *, QWidget *)
override;
60 QPainterPath
shape()
const override;
bool isUseless() const override
Definition: partterminal.cpp:168
int type() const override
Definition: partterminal.h:53
void orientationChanged()
@ West
Definition: qet.h:209
TerminalData * d
Definition: partterminal.h:76
The CustomElementGraphicPart class This class is the base for all home-made primitive like line,...
Definition: customelementgraphicpart.h:36
PartTerminal(QETElementEditor *editor, QGraphicsItem *parent=nullptr)
PartTerminal::PartTerminal.
Definition: partterminal.cpp:28
~PartTerminal() override
Destructeur.
Definition: partterminal.cpp:39
QString name() const override
Definition: partterminal.h:54
QPointF saved_position_
Definition: partterminal.h:79
QString name
Definition: partterminal.h:33
QString xmlName() const override
Definition: partterminal.h:55
static QColor neutralColor
default color
Definition: terminal.h:112
void setOrientation(Qet::Orientation ori)
Definition: partterminal.cpp:127
void handleUserTransformation(const QRectF &, const QRectF &) override
Definition: partterminal.cpp:194
const QDomElement toXml(QDomDocument &) const override
Definition: partterminal.cpp:57
QRectF sceneGeometricRect() const override
Definition: partterminal.cpp:178
Definition: partterminal.h:30
The TerminalData class Data of the terminal. Stored in extra class so it can be used by PartTerminal ...
Definition: terminaldata.h:20
Orientation
Orientation (used for electrical elements and their terminals)
Definition: qet.h:206
QRectF boundingRect() const override
PartTerminal::boundingRect.
Definition: partterminal.cpp:114
Qet::Orientation orientation
Definition: partterminal.h:32
bool m_hovered
Definition: customelementgraphicpart.h:323
@ North
Definition: qet.h:206
void setNewUuid()
Definition: partterminal.cpp:144
void updateSecondPoint()
Definition: partterminal.cpp:152
@ Type
Definition: partterminal.h:48
void paint(QPainter *, const QStyleOptionGraphicsItem *, QWidget *) override
Definition: partterminal.cpp:67
#define SHADOWS_HEIGHT
Definition: customelementgraphicpart.h:37
@ South
Definition: qet.h:208
PartTerminal(const PartTerminal &)
QList< QPointF > mapPoints(const QRectF &, const QRectF &, const QList< QPointF > &)
Definition: customelementpart.cpp:69
QPainterPath shape() const override
PartTerminal::shape.
Definition: partterminal.cpp:100
void startUserTransformation(const QRectF &) override
Definition: partterminal.cpp:186
Qet::Orientation orientation() const
Definition: partterminal.h:68
void setName(QString &name)
PartTerminal::setName.
Definition: partterminal.cpp:138
@ East
Definition: qet.h:207
QPainterPath shadowShape() const override
Definition: partterminal.h:61
QIcon br
Definition: qeticons.cpp:185
void fromXml(const QDomElement &) override
Definition: partterminal.cpp:46
Definition: qetelementeditor.h:33
void drawShadowShape(QPainter *painter)
CustomElementGraphicPart::drawShadowShape Draw a transparent blue shadow arround the shape of this it...
Definition: customelementgraphicpart.cpp:1240