|
QElectroTech
0.70
|
The XRefProperties class this class store properties used by XrefItem. More...
#include <xrefproperties.h>
Public Types | |
| enum | DisplayHas { Cross, Contacts } |
| enum | SnapTo { Bottom, Label } |
Public Member Functions | |
| XRefProperties () | |
| XRefProperties::XRefProperties Default Constructor. More... | |
| void | toSettings (QSettings &settings, const QString=QString()) const override |
| XRefProperties::toSettings Save to settings. More... | |
| void | fromSettings (const QSettings &settings, const QString=QString()) override |
| XRefProperties::fromSettings load from settings. More... | |
| void | toXml (QDomElement &xml_element) const override |
| XRefProperties::toXml Save to xml. More... | |
| void | fromXml (const QDomElement &xml_element) override |
| XRefProperties::fromXml Load from xml. More... | |
| bool | operator== (const XRefProperties &xrp) const |
| bool | operator!= (const XRefProperties &xrp) const |
| void | setShowPowerContac (const bool a) |
| bool | showPowerContact () const |
| void | setDisplayHas (const DisplayHas dh) |
| DisplayHas | displayHas () const |
| void | setSnapTo (const SnapTo st) |
| SnapTo | snapTo () const |
| void | setPrefix (const QString &key, const QString &value) |
| QString | prefix (const QString &key) const |
| void | setMasterLabel (const QString master) |
| QString | masterLabel () const |
| void | setSlaveLabel (const QString slave) |
| QString | slaveLabel () const |
| void | setOffset (const int offset) |
| int | offset () const |
Public Member Functions inherited from PropertiesInterface | |
| PropertiesInterface () | |
Static Public Member Functions | |
| static QHash< QString, XRefProperties > | defaultProperties () |
| XRefProperties::defaultProperties. More... | |
Private Attributes | |
| bool | m_show_power_ctc |
| DisplayHas | m_display |
| SnapTo | m_snap_to |
| QHash< QString, QString > | m_prefix |
| QStringList | m_prefix_keys |
| QString | m_master_label |
| QString | m_slave_label |
| int | m_offset |
The XRefProperties class this class store properties used by XrefItem.
Definition at line 28 of file xrefproperties.h.
| Enumerator | |
|---|---|
| Cross | |
| Contacts | |
Definition at line 33 of file xrefproperties.h.
| Enumerator | |
|---|---|
| Bottom | |
| Label | |
Definition at line 38 of file xrefproperties.h.
| XRefProperties::XRefProperties | ( | ) |
XRefProperties::XRefProperties Default Constructor.
Definition at line 25 of file xrefproperties.cpp.
References Bottom, Cross, m_display, m_master_label, m_offset, m_prefix_keys, m_show_power_ctc, m_slave_label, and m_snap_to.
|
static |
XRefProperties::defaultProperties.
Definition at line 127 of file xrefproperties.cpp.
References fromSettings().
Referenced by NewDiagramPage::NewDiagramPage(), and QETProject::readDefaultPropertiesXml().
|
inline |
Definition at line 57 of file xrefproperties.h.
References m_display.
Referenced by CrossRefItem::NCElements(), CrossRefItem::NOElements(), XRefPropertiesWidget::updateDisplay(), and CrossRefItem::updateLabel().
|
overridevirtual |
XRefProperties::fromSettings load from settings.
| settings | QSettings to use |
| prefix | prefix before properties name |
Implements PropertiesInterface.
Definition at line 65 of file xrefproperties.cpp.
References Bottom, Contacts, Cross, Label, m_display, m_master_label, m_offset, m_prefix, m_prefix_keys, m_show_power_ctc, m_slave_label, m_snap_to, and prefix().
Referenced by defaultProperties().
|
overridevirtual |
XRefProperties::fromXml Load from xml.
| xml_element | QDomElement to use for load |
Implements PropertiesInterface.
Definition at line 106 of file xrefproperties.cpp.
References Bottom, Contacts, Cross, Label, m_display, m_master_label, m_offset, m_prefix, m_prefix_keys, m_show_power_ctc, m_slave_label, and m_snap_to.
Referenced by QETProject::readDefaultPropertiesXml().
|
inline |
Definition at line 66 of file xrefproperties.h.
References m_master_label.
Referenced by CrossRefItem::elementPositionText(), and XRefPropertiesWidget::updateDisplay().
|
inline |
Definition at line 72 of file xrefproperties.h.
References m_offset.
Referenced by CrossRefItem::autoPos(), ElementTextItemGroup::autoPos(), setOffset(), toSettings(), toXml(), and XRefPropertiesWidget::updateDisplay().
| bool XRefProperties::operator!= | ( | const XRefProperties & | xrp | ) | const |
Definition at line 156 of file xrefproperties.cpp.
| bool XRefProperties::operator== | ( | const XRefProperties & | xrp | ) | const |
Definition at line 146 of file xrefproperties.cpp.
References m_display, m_master_label, m_offset, m_prefix, m_show_power_ctc, m_slave_label, and m_snap_to.
|
inline |
Definition at line 63 of file xrefproperties.h.
References m_prefix.
Referenced by CrossRefItem::elementPositionText(), fromSettings(), toSettings(), and XRefPropertiesWidget::updateDisplay().
|
inline |
Definition at line 56 of file xrefproperties.h.
References m_display.
Referenced by XRefPropertiesWidget::saveProperties().
|
inline |
Definition at line 65 of file xrefproperties.h.
References m_master_label.
Referenced by XRefPropertiesWidget::saveProperties().
|
inline |
Definition at line 71 of file xrefproperties.h.
References m_offset, and offset().
Referenced by XRefPropertiesWidget::saveProperties().
|
inline |
Definition at line 62 of file xrefproperties.h.
References m_prefix.
Referenced by XRefPropertiesWidget::saveProperties().
|
inline |
Definition at line 53 of file xrefproperties.h.
References m_show_power_ctc.
Referenced by XRefPropertiesWidget::saveProperties().
|
inline |
Definition at line 68 of file xrefproperties.h.
References m_slave_label.
Referenced by XRefPropertiesWidget::saveProperties().
|
inline |
Definition at line 59 of file xrefproperties.h.
References m_snap_to.
Referenced by XRefPropertiesWidget::saveProperties().
|
inline |
Definition at line 54 of file xrefproperties.h.
References m_show_power_ctc.
Referenced by CrossRefItem::NCElements(), CrossRefItem::NOElements(), and XRefPropertiesWidget::updateDisplay().
|
inline |
Definition at line 69 of file xrefproperties.h.
References m_slave_label.
Referenced by XRefPropertiesWidget::updateDisplay(), ElementTextItemGroup::updateXref(), and DynamicElementTextItem::updateXref().
|
inline |
Definition at line 60 of file xrefproperties.h.
References m_snap_to.
Referenced by MasterElement::aboutDeleteXref(), CrossRefItem::autoPos(), ElementTextItemGroup::autoPos(), MasterElement::linkToElement(), CrossRefItem::setUpConnection(), XRefPropertiesWidget::updateDisplay(), CrossRefItem::updateProperties(), ElementTextItemGroup::updateXref(), DynamicElementTextItem::updateXref(), and MasterElement::xrefPropertiesChanged().
|
overridevirtual |
XRefProperties::toSettings Save to settings.
| settings | QSettings to use |
| prefix | prefix before properties name |
Implements PropertiesInterface.
Definition at line 42 of file xrefproperties.cpp.
References Bottom, Cross, m_display, m_master_label, m_offset, m_prefix, m_show_power_ctc, m_slave_label, m_snap_to, offset(), and prefix().
Referenced by NewDiagramPage::applyConf().
|
overridevirtual |
XRefProperties::toXml Save to xml.
| xml_element | QDomElement to use for saving |
Implements PropertiesInterface.
Definition at line 84 of file xrefproperties.cpp.
References Bottom, Cross, m_display, m_master_label, m_offset, m_prefix, m_show_power_ctc, m_slave_label, m_snap_to, and offset().
|
private |
Definition at line 76 of file xrefproperties.h.
Referenced by displayHas(), fromSettings(), fromXml(), operator==(), setDisplayHas(), toSettings(), toXml(), and XRefProperties().
|
private |
Definition at line 80 of file xrefproperties.h.
Referenced by fromSettings(), fromXml(), masterLabel(), operator==(), setMasterLabel(), toSettings(), toXml(), and XRefProperties().
|
private |
Definition at line 82 of file xrefproperties.h.
Referenced by fromSettings(), fromXml(), offset(), operator==(), setOffset(), toSettings(), toXml(), and XRefProperties().
|
private |
Definition at line 78 of file xrefproperties.h.
Referenced by fromSettings(), fromXml(), operator==(), prefix(), setPrefix(), toSettings(), and toXml().
|
private |
Definition at line 79 of file xrefproperties.h.
Referenced by fromSettings(), fromXml(), and XRefProperties().
|
private |
Definition at line 75 of file xrefproperties.h.
Referenced by fromSettings(), fromXml(), operator==(), setShowPowerContac(), showPowerContact(), toSettings(), toXml(), and XRefProperties().
|
private |
Definition at line 81 of file xrefproperties.h.
Referenced by fromSettings(), fromXml(), operator==(), setSlaveLabel(), slaveLabel(), toSettings(), toXml(), and XRefProperties().
|
private |
Definition at line 77 of file xrefproperties.h.
Referenced by fromSettings(), fromXml(), operator==(), setSnapTo(), snapTo(), toSettings(), toXml(), and XRefProperties().
1.8.15