|
QElectroTech
0.8-dev
|
Go to the documentation of this file.
10 class QGraphicsObject;
30 const QString prefix = QString())
const override;
32 const QString prefix = QString())
override;
33 QDomElement
toXml(QDomDocument &xml_element)
const override;
34 bool fromXml(
const QDomElement &xml_element)
override;
84 QGraphicsObject*
q{
nullptr};
87 #endif // TERMINALDATA_H
Qet::Orientation m_orientation
m_orientation Orientation of the terminal
Definition: terminaldata.h:43
QPointF m_pos
m_pos Position of the terminal. The second point is calculated from this position and the orientation
Definition: terminaldata.h:82
QGraphicsObject * q
Definition: terminaldata.h:84
void fromSettings(const QSettings &settings, const QString prefix=QString()) override
TerminalData::fromSettings load properties to setting file.
Definition: terminaldata.cpp:58
QString m_name
m_name Name of the element. It can be used to create wiring harness tables
Definition: terminaldata.h:70
QDomElement toXml(QDomDocument &xml_element) const override
TerminalData::toXml Save properties to xml element write the name, number, position and orientation o...
Definition: terminaldata.cpp:76
~TerminalData()
Definition: terminaldata.cpp:21
void init()
Definition: terminaldata.cpp:18
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
QPointF second_point
second_point Position of the second point of the terminal in scene coordinates
Definition: terminaldata.h:49
static QString orientationToString(Qet::Orientation)
Definition: qet.cpp:48
TerminalData()
Definition: terminaldata.cpp:5
void toSettings(QSettings &settings, const QString prefix=QString()) const override
TerminalData::toSettings Save properties to setting file.
Definition: terminaldata.cpp:43
static Qet::Orientation orientationFromString(const QString &)
Definition: qet.cpp:36
QUuid m_uuid
m_uuid Uuid of the terminal.
Definition: terminaldata.h:64
The PropertiesInterface class This class is an interface for have common way to use properties in QEl...
Definition: propertiesinterface.h:31
bool fromXml(const QDomElement &xml_element) override
TerminalData::fromXml load properties to xml element.
Definition: terminaldata.cpp:106
void setParent(QGraphicsObject *parent)
TerminalData::setParent.
Definition: terminaldata.cpp:30
bool attributeIsAReal(const QDomElement &, const QString &, qreal *=nullptr)
Definition: qet.cpp:231