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;
The PropertiesInterface class This class is an interface for have common way to use properties in QEl...
Definition propertiesinterface.h:31
The XRefProperties class this class store properties used by XrefItem.
Definition xrefproperties.h:31
static QHash< QString, XRefProperties > defaultProperties()
XRefProperties::defaultProperties.
Definition xrefproperties.cpp:170
Qt::AlignmentFlag getXrefPos() const
Definition xrefproperties.h:67
QString prefix(const QString &key) const
Definition xrefproperties.h:69
int m_offset
Definition xrefproperties.h:91
SnapTo m_snap_to
Definition xrefproperties.h:85
bool operator==(const XRefProperties &xrp) const
Definition xrefproperties.cpp:189
bool m_show_power_ctc
Definition xrefproperties.h:83
DisplayHas displayHas() const
Definition xrefproperties.h:61
void setShowPowerContac(const bool a)
Definition xrefproperties.h:57
void setMasterLabel(const QString master)
Definition xrefproperties.h:71
SnapTo snapTo() const
Definition xrefproperties.h:64
void setOffset(const int offset)
Definition xrefproperties.h:77
void setPrefix(const QString &key, const QString &value)
Definition xrefproperties.h:68
QString masterLabel() const
Definition xrefproperties.h:72
QString m_master_label
Definition xrefproperties.h:89
Qt::AlignmentFlag m_xref_pos
Definition xrefproperties.h:86
void toSettings(QSettings &settings, const QString=QString()) const override
XRefProperties::toSettings Save to settings.
Definition xrefproperties.cpp:47
QString m_slave_label
Definition xrefproperties.h:90
SnapTo
Definition xrefproperties.h:40
@ Label
Definition xrefproperties.h:42
@ Bottom
Definition xrefproperties.h:41
bool operator!=(const XRefProperties &xrp) const
Definition xrefproperties.cpp:200
bool showPowerContact() const
Definition xrefproperties.h:58
QHash< QString, QString > m_prefix
Definition xrefproperties.h:87
bool fromXml(const QDomElement &xml_element) override
XRefProperties::fromXml Load from xml.
Definition xrefproperties.cpp:138
void fromSettings(const QSettings &settings, const QString=QString()) override
XRefProperties::fromSettings load from settings.
Definition xrefproperties.cpp:77
void setSnapTo(const SnapTo st)
Definition xrefproperties.h:63
QString m_key
Definition xrefproperties.h:92
void setDisplayHas(const DisplayHas dh)
Definition xrefproperties.h:60
DisplayHas m_display
Definition xrefproperties.h:84
QDomElement toXml(QDomDocument &xml_document) const override
XRefProperties::toXml Save to xml.
Definition xrefproperties.cpp:103
DisplayHas
Definition xrefproperties.h:35
@ Cross
Definition xrefproperties.h:36
@ Contacts
Definition xrefproperties.h:37
void setSlaveLabel(const QString slave)
Definition xrefproperties.h:74
QString slaveLabel() const
Definition xrefproperties.h:75
void setXrefPos(const Qt::AlignmentFlag xref)
Definition xrefproperties.h:66
QStringList m_prefix_keys
Definition xrefproperties.h:88
int offset() const
Definition xrefproperties.h:78
XRefProperties()
XRefProperties::XRefProperties Default Constructor.
Definition xrefproperties.cpp:29
void setKey(QString &key)
Definition xrefproperties.h:80