18#ifndef PART_TERMINAL_H
19#define PART_TERMINAL_H
21#include "../../properties/terminaldata.h"
52 enum {
Type = UserType + 1106 };
58 QString
xmlName()
const override {
return(QString(
"terminal")); }
59 void fromXml(
const QDomElement &)
override;
60 const QDomElement
toXml(QDomDocument &)
const override;
63 const QStyleOptionGraphicsItem *,
66 QPainterPath
shape()
const override;
84 QString
name()
const override {
return QObject::tr(
"Borne");}
The CustomElementGraphicPart class This class is the base for all home-made primitive like line,...
Definition customelementgraphicpart.h:36
Definition partterminal.h:31
void updateSecondPoint()
Definition partterminal.cpp:215
TerminalData::Type terminal_type
Definition partterminal.h:36
void fromXml(const QDomElement &) override
Definition partterminal.cpp:48
void setRotation(qreal angle)
Definition partterminal.cpp:160
TerminalData::Type terminalType() const
Definition partterminal.h:86
bool isUseless() const override
Definition partterminal.cpp:232
void paint(QPainter *painter, const QStyleOptionGraphicsItem *, QWidget *) override
Definition partterminal.cpp:70
Qet::Orientation orientation
Definition partterminal.h:34
void terminalTypeChanged()
void handleUserTransformation(const QRectF &, const QRectF &) override
Definition partterminal.cpp:260
QPointF saved_position_
Definition partterminal.h:96
int type() const override
Definition partterminal.h:57
void setOrientation(Qet::Orientation ori)
Definition partterminal.cpp:148
Qet::Orientation orientation() const
Definition partterminal.h:74
QRectF sceneGeometricRect() const override
Definition partterminal.cpp:243
void orientationChanged()
QString name() const override
Definition partterminal.h:84
TerminalData * d
Definition partterminal.h:93
qreal rotation() const
Definition partterminal.cpp:172
QPainterPath shadowShape() const override
Definition partterminal.h:67
void setNewUuid()
Definition partterminal.cpp:206
QString terminalName() const
Definition partterminal.h:81
QRectF boundingRect() const override
PartTerminal::boundingRect.
Definition partterminal.cpp:133
void setTerminalType(TerminalData::Type type)
PartTerminal::setTerminalType Set the type of terminal to 'type'.
Definition partterminal.cpp:197
const QDomElement toXml(QDomDocument &) const override
Definition partterminal.cpp:59
void startUserTransformation(const QRectF &) override
Definition partterminal.cpp:252
QPainterPath shape() const override
PartTerminal::shape.
Definition partterminal.cpp:118
QString xmlName() const override
Definition partterminal.h:58
void setTerminalName(const QString &name)
PartTerminal::setTerminalName.
Definition partterminal.cpp:186
QString terminal_name
Definition partterminal.h:35
@ Type
Definition partterminal.h:52
Definition qetelementeditor.h:39
Orientation
Orientation (used for electrical elements and their terminals)
Definition qet.h:210
The TerminalData class Data of the terminal. Stored in extra class so it can be used by PartTerminal ...
Definition terminaldata.h:37
TerminalData::Type m_type
Definition terminaldata.h:113
Type
Definition terminaldata.h:41