56 const QString prefix = QString())
const override;
58 const QString prefix = QString())
override;
59 QDomElement
toXml(QDomDocument &xml_element)
const override;
60 bool fromXml(
const QDomElement &xml_element)
override;
116 QGraphicsObject*
q{
nullptr};
The PropertiesInterface class This class is an interface for have common way to use properties in QEl...
Definition propertiesinterface.h:31
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
void init()
Definition terminaldata.cpp:36
void setParent(QGraphicsObject *parent)
TerminalData::setParent.
Definition terminaldata.cpp:49
QGraphicsObject * q
Definition terminaldata.h:116
TerminalData::Type m_type
Definition terminaldata.h:113
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:95
TerminalData()
Definition terminaldata.cpp:23
static TerminalData::Type typeFromString(const QString &string)
TerminalData::typeFromString.
Definition terminaldata.cpp:184
~TerminalData() override
Definition terminaldata.cpp:40
void toSettings(QSettings &settings, const QString prefix=QString()) const override
TerminalData::toSettings Save properties to settings file.
Definition terminaldata.cpp:62
bool fromXml(const QDomElement &xml_element) override
TerminalData::fromXml load properties to xml element.
Definition terminaldata.cpp:122
QUuid m_uuid
m_uuid Uuid of the terminal.
Definition terminaldata.h:93
Type
Definition terminaldata.h:41
@ Generic
Definition terminaldata.h:42
@ Inner
Definition terminaldata.h:43
@ Outer
Definition terminaldata.h:44
QPointF m_second_point
second_point Position of the second point of the terminal in scene coordinates
Definition terminaldata.h:78
static QString typeToString(TerminalData::Type type)
TerminalData::typeToString.
Definition terminaldata.cpp:165
QPointF m_pos
m_pos Position of the terminal. The second point is calculated from this position and the orientation
Definition terminaldata.h:111
Qet::Orientation m_orientation
m_orientation Orientation of the terminal
Definition terminaldata.h:72
void fromSettings(const QSettings &settings, const QString prefix=QString()) override
TerminalData::fromSettings load properties to settings file.
Definition terminaldata.cpp:77
QString m_name
m_name Name of the element. It can be used to create wiring harness tables
Definition terminaldata.h:99