QElectroTech  0.8-dev
Public Member Functions | Private Slots | Private Member Functions | Private Attributes | List of all members
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. 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, XRefPropertiesproperties ()
 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 index of the combo box m_type_cb. More...
 

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:

◆ ~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 curent 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: