QElectroTech  0.8-dev
Public Slots | Public Member Functions | Protected Member Functions | Private Slots | Private Member Functions | Private Attributes | List of all members
ConductorPropertiesWidget Class Reference

#include <conductorpropertieswidget.h>

Inherits QWidget.

Collaboration diagram for ConductorPropertiesWidget:
Collaboration graph

Public Slots

void updatePreview (bool b=true)
 ConductorPropertiesWidget::updatePreview Update the preview for single lien. More...
 

Public Member Functions

 ConductorPropertiesWidget (QWidget *parent=nullptr)
 ConductorPropertiesWidget::ConductorPropertiesWidget Constructor. More...
 
 ConductorPropertiesWidget (const ConductorProperties &properties, QWidget *parent=nullptr)
 ConductorPropertiesWidget::ConductorPropertiesWidget Constructor with properties. More...
 
 ~ConductorPropertiesWidget () override
 ConductorPropertiesWidget::~ConductorPropertiesWidget destructor. More...
 
void setProperties (const ConductorProperties &properties)
 ConductorPropertiesWidget::setProperties Set the properties. More...
 
ConductorProperties properties () const
 ConductorPropertiesWidget::properties. More...
 
void setReadOnly (const bool &ro)
 ConductorPropertiesWidget::setReadOnly. More...
 
void addAutonumWidget (QWidget *widget)
 ConductorPropertiesWidget::addAutonumWidget. More...
 
void setHiddenOneTextPerFolio (const bool &hide)
 ConductorPropertiesWidget::setHiddenOneTextPerFolio. More...
 
void setDisabledShowText (const bool &disable=true)
 ConductorPropertiesWidget::setDisabledShowText. More...
 
void setHiddenAvailableAutonum (const bool &hide)
 ConductorPropertiesWidget::setHiddenAvailableAutonum Hide the label, combo box and push button of available autonum. More...
 
QComboBox * autonumComboBox () const
 
QPushButton * editAutonumPushButton () const
 

Protected Member Functions

bool event (QEvent *event) override
 ConductorPropertiesWidget::event. More...
 

Private Slots

void on_m_earth_cb_toggled (bool checked)
 ConductorPropertiesWidget::on_m_earth_cb_toggled Update the widget when toggled. More...
 
void on_m_neutral_cb_toggled (bool checked)
 ConductorPropertiesWidget::on_m_neutral_cb_toggled Update the widget when toggled. More...
 
void on_m_update_preview_pb_clicked ()
 ConductorPropertiesWidget::on_m_update_preview_pb_clicked Update the preview of single line. m_update_preview_pb is a no used button and hidden, his role is only to centralize signal from various widget to edit single ligne properties, for update the preview. More...
 

Private Member Functions

void initWidget ()
 ConductorPropertiesWidget::initWidget. More...
 
void setConductorType (ConductorProperties::ConductorType type)
 ConductorPropertiesWidget::setConductorType Update this widget to the new conductor type. More...
 

Private Attributes

Ui::ConductorPropertiesWidget * ui
 
ConductorProperties m_properties
 
QTextOrientationSpinBoxWidgetm_verti_select
 
QTextOrientationSpinBoxWidgetm_horiz_select
 

Constructor & Destructor Documentation

◆ ConductorPropertiesWidget() [1/2]

ConductorPropertiesWidget::ConductorPropertiesWidget ( QWidget *  parent = nullptr)
explicit

ConductorPropertiesWidget::ConductorPropertiesWidget Constructor.

Parameters
parent: paretn widget
Here is the call graph for this function:

◆ ConductorPropertiesWidget() [2/2]

ConductorPropertiesWidget::ConductorPropertiesWidget ( const ConductorProperties properties,
QWidget *  parent = nullptr 
)
explicit

ConductorPropertiesWidget::ConductorPropertiesWidget Constructor with properties.

Parameters
properties: properties to edit
parent: parent widget
Here is the call graph for this function:

◆ ~ConductorPropertiesWidget()

ConductorPropertiesWidget::~ConductorPropertiesWidget ( )
override

Member Function Documentation

◆ addAutonumWidget()

void ConductorPropertiesWidget::addAutonumWidget ( QWidget *  widget)

◆ autonumComboBox()

QComboBox * ConductorPropertiesWidget::autonumComboBox ( ) const
Here is the caller graph for this function:

◆ editAutonumPushButton()

QPushButton * ConductorPropertiesWidget::editAutonumPushButton ( ) const
Here is the caller graph for this function:

◆ event()

bool ConductorPropertiesWidget::event ( QEvent *  event)
overrideprotected

ConductorPropertiesWidget::event.

Parameters
event
Returns

◆ initWidget()

void ConductorPropertiesWidget::initWidget ( )
private

ConductorPropertiesWidget::initWidget.

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

◆ on_m_earth_cb_toggled

void ConductorPropertiesWidget::on_m_earth_cb_toggled ( bool  checked)
privateslot

ConductorPropertiesWidget::on_m_earth_cb_toggled Update the widget when toggled.

Parameters
checked

◆ on_m_neutral_cb_toggled

void ConductorPropertiesWidget::on_m_neutral_cb_toggled ( bool  checked)
privateslot

ConductorPropertiesWidget::on_m_neutral_cb_toggled Update the widget when toggled.

Parameters
checked

◆ on_m_update_preview_pb_clicked

void ConductorPropertiesWidget::on_m_update_preview_pb_clicked ( )
privateslot

ConductorPropertiesWidget::on_m_update_preview_pb_clicked Update the preview of single line. m_update_preview_pb is a no used button and hidden, his role is only to centralize signal from various widget to edit single ligne properties, for update the preview.

Here is the call graph for this function:

◆ properties()

ConductorProperties ConductorPropertiesWidget::properties ( ) const

ConductorPropertiesWidget::properties.

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

◆ setConductorType()

void ConductorPropertiesWidget::setConductorType ( ConductorProperties::ConductorType  type)
private

ConductorPropertiesWidget::setConductorType Update this widget to the new conductor type.

Parameters
type
Here is the caller graph for this function:

◆ setDisabledShowText()

void ConductorPropertiesWidget::setDisabledShowText ( const bool &  disable = true)

ConductorPropertiesWidget::setDisabledShowText.

Parameters
disable
Here is the caller graph for this function:

◆ setHiddenAvailableAutonum()

void ConductorPropertiesWidget::setHiddenAvailableAutonum ( const bool &  hide)

ConductorPropertiesWidget::setHiddenAvailableAutonum Hide the label, combo box and push button of available autonum.

Parameters
hide
Here is the caller graph for this function:

◆ setHiddenOneTextPerFolio()

void ConductorPropertiesWidget::setHiddenOneTextPerFolio ( const bool &  hide)

◆ setProperties()

void ConductorPropertiesWidget::setProperties ( const ConductorProperties properties)

ConductorPropertiesWidget::setProperties Set the properties.

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

◆ setReadOnly()

void ConductorPropertiesWidget::setReadOnly ( const bool &  ro)

ConductorPropertiesWidget::setReadOnly.

Parameters
roif true this widget is disabled

◆ updatePreview

void ConductorPropertiesWidget::updatePreview ( bool  b = true)
slot

ConductorPropertiesWidget::updatePreview Update the preview for single lien.

Parameters
btrue: update from the value displayed by this widget false: update from the properties given at the constructor of this widget
Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ m_horiz_select

QTextOrientationSpinBoxWidget * ConductorPropertiesWidget::m_horiz_select
private

◆ m_properties

ConductorProperties ConductorPropertiesWidget::m_properties
private

◆ m_verti_select

QTextOrientationSpinBoxWidget* ConductorPropertiesWidget::m_verti_select
private

◆ ui

Ui::ConductorPropertiesWidget* ConductorPropertiesWidget::ui
private

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