QElectroTech 0.100.0-dev
|
The XRefPropertiesWidget class This class provide a widget to edit the XRefProperties. More...
#include <xrefpropertieswidget.h>
Inherits QWidget.
Public Member Functions | |
XRefPropertiesWidget (QHash< QString, XRefProperties > properties=QHash< QString, XRefProperties >(), QWidget *parent=nullptr) | |
XRefPropertiesWidget::XRefPropertiesWidget Default constructor. | |
~XRefPropertiesWidget () override | |
XRefPropertiesWidget::~XRefPropertiesWidget Default destructor. | |
void | setProperties (const QHash< QString, XRefProperties > &properties) |
XRefPropertiesWidget::setProperties set new properties for this widget. | |
QHash< QString, XRefProperties > | properties () |
XRefPropertiesWidget::properties. | |
void | setReadOnly (bool=true) |
XRefPropertiesWidget::setReadOnly Set all of this widget disable if true. | |
Private Slots | |
void | updateDisplay () |
XRefPropertiesWidget::updateDisplay Update display with the current displayed type. | |
void | typeChanged () |
XRefPropertiesWidget::typeChanged manage the save of the current properties, when the combo box of type change. | |
void | enableOffsetSB (int i) |
XRefPropertiesWidget::enableOffsetSB Enable Offset SB only if Snap to Footer is selected. | |
Private Member Functions | |
void | buildUi () |
XRefPropertiesWidget::buildUi Build some widget of this ui. | |
void | saveProperties (int index) |
XRefPropertiesWidget::saveProperties Save the properties of the type define at index of the combo box m_type_cb. | |
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.
XRefPropertiesWidget::XRefPropertiesWidget | ( | QHash< QString, XRefProperties > | properties = QHash <QString, XRefProperties>() , |
QWidget * | parent = nullptr |
||
) |
XRefPropertiesWidget::XRefPropertiesWidget Default constructor.
properties | properties to use |
parent | parent widget |
|
override |
XRefPropertiesWidget::~XRefPropertiesWidget Default destructor.
|
private |
XRefPropertiesWidget::buildUi Build some widget of this ui.
|
privateslot |
XRefPropertiesWidget::enableOffsetSB Enable Offset SB only if Snap to Footer is selected.
QHash< QString, XRefProperties > XRefPropertiesWidget::properties | ( | ) |
XRefPropertiesWidget::properties.
|
private |
XRefPropertiesWidget::saveProperties Save the properties of the type define at index of the combo box m_type_cb.
index |
void XRefPropertiesWidget::setProperties | ( | const QHash< QString, XRefProperties > & | properties | ) |
XRefPropertiesWidget::setProperties set new properties for this widget.
properties |
void XRefPropertiesWidget::setReadOnly | ( | bool | ro = true | ) |
XRefPropertiesWidget::setReadOnly Set all of this widget disable if true.
ro |
|
privateslot |
XRefPropertiesWidget::typeChanged manage the save of the current properties, when the combo box of type change.
|
privateslot |
XRefPropertiesWidget::updateDisplay Update display with the current displayed type.
|
private |
|
private |
|
private |