QElectroTech  0.70
Public Member Functions | Static Public Member Functions | Private Attributes | List of all members
ConductorPropertiesDialog Class Reference

#include <conductorpropertiesdialog.h>

Public Member Functions

 ConductorPropertiesDialog (Conductor *conductor, QWidget *parent=nullptr)
 ConductorPropertiesDialog::ConductorPropertiesDialog Constructor. More...
 
 ~ConductorPropertiesDialog () override
 ConductorPropertiesDialog::~ConductorPropertiesDialog. More...
 
ConductorProperties properties () const
 ConductorPropertiesDialog::properties. More...
 
bool applyAll () const
 ConductorPropertiesDialog::applyAll. More...
 

Static Public Member Functions

static void PropertiesDialog (Conductor *conductor, QWidget *parent=nullptr)
 ConductorPropertiesDialog::PropertiesDialog Static method for open and apply properties. More...
 

Private Attributes

Ui::ConductorPropertiesDialog * ui
 
ConductorPropertiesWidgetm_cpw
 

Detailed Description

Definition at line 32 of file conductorpropertiesdialog.h.

Constructor & Destructor Documentation

◆ ConductorPropertiesDialog()

ConductorPropertiesDialog::ConductorPropertiesDialog ( Conductor conductor,
QWidget *  parent = nullptr 
)
explicit

◆ ~ConductorPropertiesDialog()

ConductorPropertiesDialog::~ConductorPropertiesDialog ( )
override

Member Function Documentation

◆ applyAll()

bool ConductorPropertiesDialog::applyAll ( ) const

ConductorPropertiesDialog::applyAll.

Returns
true -> must apply the propertie to all conductor at the same potential false -> must apply properties only for the edited conductor

Definition at line 102 of file conductorpropertiesdialog.cpp.

References ui.

Referenced by PropertiesDialog().

◆ properties()

ConductorProperties ConductorPropertiesDialog::properties ( ) const

ConductorPropertiesDialog::properties.

Returns
the edited properties

Definition at line 92 of file conductorpropertiesdialog.cpp.

References m_cpw.

Referenced by PropertiesDialog().

◆ PropertiesDialog()

void ConductorPropertiesDialog::PropertiesDialog ( Conductor conductor,
QWidget *  parent = nullptr 
)
static

ConductorPropertiesDialog::PropertiesDialog Static method for open and apply properties.

Parameters
conductor,conductorto edit propertie
parent,parentwidget

Definition at line 61 of file conductorpropertiesdialog.cpp.

References applyAll(), Conductor::diagram(), properties(), Conductor::properties, Conductor::relatedPotentialConductors(), QET::Icons::tr, and Diagram::undoStack().

Referenced by Conductor::editProperty().

Member Data Documentation

◆ m_cpw

ConductorPropertiesWidget* ConductorPropertiesDialog::m_cpw
private

Definition at line 46 of file conductorpropertiesdialog.h.

Referenced by ConductorPropertiesDialog(), and properties().

◆ ui

Ui::ConductorPropertiesDialog* ConductorPropertiesDialog::ui
private

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