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

The ReplaceConductorDialog class A Qdialog to edit a conductor properties, use for the search and replace feature of QElectrotech. More...

#include <replaceconductordialog.h>

Inherits QDialog.

Collaboration diagram for ReplaceConductorDialog:
Collaboration graph

Public Member Functions

 ReplaceConductorDialog (const ConductorProperties &properties, QWidget *parent=0)
 ReplaceConductorDialog::ReplaceConductorDialog. More...
 
 ~ReplaceConductorDialog ()
 
void updatePreview (bool b=true)
 ReplaceConductorDialog::updatePreview Update the preview for single line. More...
 
void setProperties (const ConductorProperties &properties)
 
ConductorProperties properties () const
 ReplaceConductorDialog::properties. More...
 

Private Slots

void on_m_erase_formula_cb_clicked ()
 
void on_m_erase_text_cb_clicked ()
 
void on_m_erase_function_cb_clicked ()
 
void on_m_erase_tension_protocol_cb_clicked ()
 
void on_m_erase_m_wire_color_cb_clicked ()
 
void on_m_erase_m_wire_section_cb_clicked ()
 
void on_m_earth_cb_toggled (bool checked)
 
void on_m_neutral_cb_toggled (bool checked)
 
void on_m_update_preview_pb_clicked ()
 
void on_m_color_pb_clicked ()
 
void on_m_color_2_pb_clicked ()
 

Private Member Functions

void initWidget ()
 
void setColorButton (const QColor &color)
 
void setColorButton2 (const QColor &color)
 

Private Attributes

Ui::ReplaceConductorDialog * ui
 
ConductorProperties m_properties
 

Detailed Description

The ReplaceConductorDialog class A Qdialog to edit a conductor properties, use for the search and replace feature of QElectrotech.

Constructor & Destructor Documentation

◆ ReplaceConductorDialog()

ReplaceConductorDialog::ReplaceConductorDialog ( const ConductorProperties properties,
QWidget *  parent = 0 
)
explicit

ReplaceConductorDialog::ReplaceConductorDialog.

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

◆ ~ReplaceConductorDialog()

ReplaceConductorDialog::~ReplaceConductorDialog ( )

Member Function Documentation

◆ initWidget()

void ReplaceConductorDialog::initWidget ( )
private
Here is the caller graph for this function:

◆ on_m_color_2_pb_clicked

void ReplaceConductorDialog::on_m_color_2_pb_clicked ( )
privateslot
Here is the call graph for this function:

◆ on_m_color_pb_clicked

void ReplaceConductorDialog::on_m_color_pb_clicked ( )
privateslot
Here is the call graph for this function:

◆ on_m_earth_cb_toggled

void ReplaceConductorDialog::on_m_earth_cb_toggled ( bool  checked)
privateslot

◆ on_m_erase_formula_cb_clicked

void ReplaceConductorDialog::on_m_erase_formula_cb_clicked ( )
privateslot
Here is the call graph for this function:

◆ on_m_erase_function_cb_clicked

void ReplaceConductorDialog::on_m_erase_function_cb_clicked ( )
privateslot
Here is the call graph for this function:

◆ on_m_erase_m_wire_color_cb_clicked

void ReplaceConductorDialog::on_m_erase_m_wire_color_cb_clicked ( )
privateslot
Here is the call graph for this function:

◆ on_m_erase_m_wire_section_cb_clicked

void ReplaceConductorDialog::on_m_erase_m_wire_section_cb_clicked ( )
privateslot
Here is the call graph for this function:

◆ on_m_erase_tension_protocol_cb_clicked

void ReplaceConductorDialog::on_m_erase_tension_protocol_cb_clicked ( )
privateslot
Here is the call graph for this function:

◆ on_m_erase_text_cb_clicked

void ReplaceConductorDialog::on_m_erase_text_cb_clicked ( )
privateslot
Here is the call graph for this function:

◆ on_m_neutral_cb_toggled

void ReplaceConductorDialog::on_m_neutral_cb_toggled ( bool  checked)
privateslot

◆ on_m_update_preview_pb_clicked

void ReplaceConductorDialog::on_m_update_preview_pb_clicked ( )
privateslot
Here is the call graph for this function:

◆ properties()

ConductorProperties ReplaceConductorDialog::properties ( ) const

ReplaceConductorDialog::properties.

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

◆ setColorButton()

void ReplaceConductorDialog::setColorButton ( const QColor &  color)
private
Here is the caller graph for this function:

◆ setColorButton2()

void ReplaceConductorDialog::setColorButton2 ( const QColor &  color)
private
Here is the caller graph for this function:

◆ setProperties()

void ReplaceConductorDialog::setProperties ( const ConductorProperties properties)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ updatePreview()

void ReplaceConductorDialog::updatePreview ( bool  b = true)

ReplaceConductorDialog::updatePreview Update the preview for single line.

Parameters
b: true: 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_properties

ConductorProperties ReplaceConductorDialog::m_properties
private

◆ ui

Ui::ReplaceConductorDialog* ReplaceConductorDialog::ui
private

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