QElectroTech
0.70
|
The XRefPropertiesWidget class This class provide a widget to edit the XRefProperties. More...
#include <xrefpropertieswidget.h>
Public Member Functions | |
XRefPropertiesWidget (QHash< QString, XRefProperties > properties=QHash< QString, XRefProperties >(), QWidget *parent=nullptr) | |
XRefPropertiesWidget::XRefPropertiesWidget Default constructor. More... | |
~XRefPropertiesWidget () override | |
XRefPropertiesWidget::~XRefPropertiesWidget Default destructor. More... | |
void | setProperties (const QHash< QString, XRefProperties > &properties) |
XRefPropertiesWidget::setProperties set new properties for this widget. More... | |
QHash< QString, XRefProperties > | properties () |
XRefPropertiesWidget::properties. More... | |
void | setReadOnly (bool=true) |
XRefPropertiesWidget::setReadOnly Set all of this widget disable if true. More... | |
Private Slots | |
void | updateDisplay () |
XRefPropertiesWidget::updateDisplay Update display with the curent displayed type. More... | |
void | typeChanged () |
XRefPropertiesWidget::typeChanged manage the save of the current properties, when the combo box of type change. More... | |
void | enableOffsetSB (int i) |
XRefPropertiesWidget::enableOffsetSB Enable Offset SB only if Snap to Footer is selected. More... | |
Private Member Functions | |
void | buildUi () |
XRefPropertiesWidget::buildUi Build some widget of this ui. More... | |
void | saveProperties (int index) |
XRefPropertiesWidget::saveProperties Save the properties of the type define at of the combo box m_type_cb. More... | |
Private Attributes | |
Ui::XRefPropertiesWidget * | ui |
QHash< QString, XRefProperties > | m_properties |
int | m_previous_type_index |
The XRefPropertiesWidget class This class provide a widget to edit the XRefProperties.
Definition at line 32 of file xrefpropertieswidget.h.
XRefPropertiesWidget::XRefPropertiesWidget | ( | QHash< QString, XRefProperties > | properties = QHash <QString, XRefProperties>() , |
QWidget * | parent = nullptr |
||
) |
XRefPropertiesWidget::XRefPropertiesWidget Default constructor.
properties | properties to use |
parent | parent widget |
Definition at line 30 of file xrefpropertieswidget.cpp.
References buildUi(), enableOffsetSB(), typeChanged(), ui, and updateDisplay().
|
override |
XRefPropertiesWidget::~XRefPropertiesWidget Default destructor.
Definition at line 47 of file xrefpropertieswidget.cpp.
References enableOffsetSB(), typeChanged(), and ui.
|
private |
XRefPropertiesWidget::buildUi Build some widget of this ui.
Definition at line 94 of file xrefpropertieswidget.cpp.
References m_previous_type_index, QET::Icons::tr, and ui.
Referenced by XRefPropertiesWidget().
|
privateslot |
XRefPropertiesWidget::enableOffsetSB Enable Offset SB only if Snap to Footer is selected.
Definition at line 190 of file xrefpropertieswidget.cpp.
References ui.
Referenced by XRefPropertiesWidget(), and ~XRefPropertiesWidget().
QHash< QString, XRefProperties > XRefPropertiesWidget::properties | ( | ) |
XRefPropertiesWidget::properties.
Definition at line 70 of file xrefpropertieswidget.cpp.
References m_properties, saveProperties(), and ui.
Referenced by setProperties().
|
private |
XRefPropertiesWidget::saveProperties Save the properties of the type define at of the combo box m_type_cb.
index |
Definition at line 111 of file xrefpropertieswidget.cpp.
References XRefProperties::Bottom, XRefProperties::Contacts, XRefProperties::Cross, XRefProperties::Label, m_properties, XRefProperties::setDisplayHas(), XRefProperties::setMasterLabel(), XRefProperties::setOffset(), XRefProperties::setPrefix(), XRefProperties::setShowPowerContac(), XRefProperties::setSlaveLabel(), XRefProperties::setSnapTo(), and ui.
Referenced by properties(), and typeChanged().
void XRefPropertiesWidget::setProperties | ( | const QHash< QString, XRefProperties > & | properties | ) |
XRefPropertiesWidget::setProperties set new properties for this widget.
properties |
Definition at line 60 of file xrefpropertieswidget.cpp.
References m_previous_type_index, m_properties, properties(), ui, and updateDisplay().
void XRefPropertiesWidget::setReadOnly | ( | bool | ro = true | ) |
XRefPropertiesWidget::setReadOnly Set all of this widget disable if true.
ro |
Definition at line 80 of file xrefpropertieswidget.cpp.
References QET::Icons::ro, and ui.
|
privateslot |
XRefPropertiesWidget::typeChanged manage the save of the current properties, when the combo box of type change.
Definition at line 176 of file xrefpropertieswidget.cpp.
References m_previous_type_index, saveProperties(), ui, and updateDisplay().
Referenced by XRefPropertiesWidget(), and ~XRefPropertiesWidget().
|
privateslot |
XRefPropertiesWidget::updateDisplay Update display with the curent displayed type.
Definition at line 135 of file xrefpropertieswidget.cpp.
References XRefProperties::Bottom, XRefProperties::Contacts, XRefProperties::Cross, XRefProperties::displayHas(), m_properties, XRefProperties::masterLabel(), XRefProperties::offset(), XRefProperties::prefix(), XRefProperties::showPowerContact(), XRefProperties::slaveLabel(), XRefProperties::snapTo(), and ui.
Referenced by setProperties(), typeChanged(), and XRefPropertiesWidget().
|
private |
Definition at line 58 of file xrefpropertieswidget.h.
Referenced by buildUi(), setProperties(), and typeChanged().
|
private |
Definition at line 57 of file xrefpropertieswidget.h.
Referenced by properties(), saveProperties(), setProperties(), and updateDisplay().
|
private |
Definition at line 56 of file xrefpropertieswidget.h.
Referenced by buildUi(), enableOffsetSB(), properties(), saveProperties(), setProperties(), setReadOnly(), typeChanged(), updateDisplay(), XRefPropertiesWidget(), and ~XRefPropertiesWidget().