QElectroTech 0.200.1-dev
Loading...
Searching...
No Matches
XRefPropertiesWidget Class Reference

The XRefPropertiesWidget class This class provide a widget to edit the XRefProperties. More...

#include <xrefpropertieswidget.h>

Inherits QWidget.

Collaboration diagram for XRefPropertiesWidget:
Collaboration graph

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, XRefPropertiesproperties ()
 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, XRefPropertiesm_properties
int m_previous_type_index

Detailed Description

The XRefPropertiesWidget class This class provide a widget to edit the XRefProperties.

Constructor & Destructor Documentation

◆ XRefPropertiesWidget()

XRefPropertiesWidget::XRefPropertiesWidget ( QHash< QString, XRefProperties > properties = QHash <QString, XRefProperties>(),
QWidget * parent = nullptr )

XRefPropertiesWidget::XRefPropertiesWidget Default constructor.

Parameters
propertiesproperties to use
parentparent widget
Here is the call graph for this function:
Here is the caller graph for this function:

◆ ~XRefPropertiesWidget()

XRefPropertiesWidget::~XRefPropertiesWidget ( )
override

XRefPropertiesWidget::~XRefPropertiesWidget Default destructor.

Here is the call graph for this function:

Member Function Documentation

◆ buildUi()

void XRefPropertiesWidget::buildUi ( )
private

XRefPropertiesWidget::buildUi Build some widget of this ui.

Here is the caller graph for this function:

◆ enableOffsetSB

void XRefPropertiesWidget::enableOffsetSB ( int i)
privateslot

XRefPropertiesWidget::enableOffsetSB Enable Offset SB only if Snap to Footer is selected.

Here is the caller graph for this function:

◆ properties()

QHash< QString, XRefProperties > XRefPropertiesWidget::properties ( )

XRefPropertiesWidget::properties.

Returns
the properties edited by this widget
Here is the call graph for this function:
Here is the caller graph for this function:

◆ saveProperties()

void XRefPropertiesWidget::saveProperties ( int index)
private

XRefPropertiesWidget::saveProperties Save the properties of the type define at index of the combo box m_type_cb.

Parameters
index
Here is the call graph for this function:
Here is the caller graph for this function:

◆ setProperties()

void XRefPropertiesWidget::setProperties ( const QHash< QString, XRefProperties > & properties)

XRefPropertiesWidget::setProperties set new properties for this widget.

Parameters
properties
Here is the call graph for this function:

◆ setReadOnly()

void XRefPropertiesWidget::setReadOnly ( bool ro = true)

XRefPropertiesWidget::setReadOnly Set all of this widget disable if true.

Parameters
ro

◆ typeChanged

void XRefPropertiesWidget::typeChanged ( )
privateslot

XRefPropertiesWidget::typeChanged manage the save of the current properties, when the combo box of type change.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ updateDisplay

void XRefPropertiesWidget::updateDisplay ( )
privateslot

XRefPropertiesWidget::updateDisplay Update display with the current displayed type.

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ m_previous_type_index

int XRefPropertiesWidget::m_previous_type_index
private

◆ m_properties

QHash<QString, XRefProperties> XRefPropertiesWidget::m_properties
private

◆ ui

Ui::XRefPropertiesWidget* XRefPropertiesWidget::ui
private

The documentation for this class was generated from the following files: