18#ifndef XREFPROPERTIES_H
19#define XREFPROPERTIES_H
46 const QString = QString())
const override;
48 const QString = QString())
override;
49 QDomElement
toXml (QDomDocument &xml_document)
const override;
50 bool fromXml(
const QDomElement &xml_element)
override;
PropertiesInterface()
PropertiesInterface::PropertiesInterface.
Definition propertiesinterface.cpp:23
The XRefProperties class this class store properties used by XrefItem.
Definition xrefproperties.h:31
static QHash< QString, XRefProperties > defaultProperties()
XRefProperties::defaultProperties.
Definition xrefproperties.cpp:181
Qt::AlignmentFlag getXrefPos() const
Definition xrefproperties.h:70
QString prefix(const QString &key) const
Definition xrefproperties.h:72
int m_offset
Definition xrefproperties.h:98
SnapTo m_snap_to
Definition xrefproperties.h:92
bool operator==(const XRefProperties &xrp) const
Definition xrefproperties.cpp:200
bool m_show_power_ctc
Definition xrefproperties.h:89
DisplayHas displayHas() const
Definition xrefproperties.h:64
void setSlaveOffset(const int offset)
Definition xrefproperties.h:83
void setShowPowerContac(const bool a)
Definition xrefproperties.h:57
void setMasterLabel(const QString master)
Definition xrefproperties.h:74
bool showTerminalName() const
Definition xrefproperties.h:61
SnapTo snapTo() const
Definition xrefproperties.h:67
void setOffset(const int offset)
Definition xrefproperties.h:80
void setPrefix(const QString &key, const QString &value)
Definition xrefproperties.h:71
QString masterLabel() const
Definition xrefproperties.h:75
QString m_master_label
Definition xrefproperties.h:96
Qt::AlignmentFlag m_xref_pos
Definition xrefproperties.h:93
void toSettings(QSettings &settings, const QString=QString()) const override
XRefProperties::toSettings Save to settings.
Definition xrefproperties.cpp:49
QString m_slave_label
Definition xrefproperties.h:97
SnapTo
Definition xrefproperties.h:40
@ Label
Definition xrefproperties.h:42
@ Bottom
Definition xrefproperties.h:41
bool operator!=(const XRefProperties &xrp) const
Definition xrefproperties.cpp:213
bool showPowerContact() const
Definition xrefproperties.h:58
QHash< QString, QString > m_prefix
Definition xrefproperties.h:94
int m_slave_offset
Definition xrefproperties.h:99
bool fromXml(const QDomElement &xml_element) override
XRefProperties::fromXml Load from xml.
Definition xrefproperties.cpp:147
void fromSettings(const QSettings &settings, const QString=QString()) override
XRefProperties::fromSettings load from settings.
Definition xrefproperties.cpp:82
void setSnapTo(const SnapTo st)
Definition xrefproperties.h:66
QString m_key
Definition xrefproperties.h:100
void setDisplayHas(const DisplayHas dh)
Definition xrefproperties.h:63
DisplayHas m_display
Definition xrefproperties.h:91
void setShowTerminalName(const bool a)
Definition xrefproperties.h:60
QDomElement toXml(QDomDocument &xml_document) const override
XRefProperties::toXml Save to xml.
Definition xrefproperties.cpp:110
DisplayHas
Definition xrefproperties.h:35
@ Cross
Definition xrefproperties.h:36
@ Contacts
Definition xrefproperties.h:37
void setSlaveLabel(const QString slave)
Definition xrefproperties.h:77
QString slaveLabel() const
Definition xrefproperties.h:78
void setXrefPos(const Qt::AlignmentFlag xref)
Definition xrefproperties.h:69
QStringList m_prefix_keys
Definition xrefproperties.h:95
int offset() const
Definition xrefproperties.h:81
XRefProperties()
XRefProperties::XRefProperties Default Constructor.
Definition xrefproperties.cpp:29
bool m_show_terminal_name
Definition xrefproperties.h:90
void setKey(QString &key)
Definition xrefproperties.h:86
int slaveOffset() const
Definition xrefproperties.h:84