QElectroTech  0.70
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>

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_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.

Definition at line 33 of file replaceconductordialog.h.

Constructor & Destructor Documentation

◆ ReplaceConductorDialog()

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

◆ ~ReplaceConductorDialog()

ReplaceConductorDialog::~ReplaceConductorDialog ( )

Definition at line 40 of file replaceconductordialog.cpp.

References ui.

Member Function Documentation

◆ initWidget()

void ReplaceConductorDialog::initWidget ( )
private

Definition at line 172 of file replaceconductordialog.cpp.

References QET::Icons::tr, and ui.

Referenced by ReplaceConductorDialog().

◆ on_m_color_2_pb_clicked

void ReplaceConductorDialog::on_m_color_2_pb_clicked ( )
privateslot

◆ on_m_color_pb_clicked

void ReplaceConductorDialog::on_m_color_pb_clicked ( )
privateslot

◆ on_m_earth_cb_toggled

void ReplaceConductorDialog::on_m_earth_cb_toggled ( bool  checked)
privateslot

Definition at line 230 of file replaceconductordialog.cpp.

References ui.

◆ on_m_erase_formula_cb_clicked

void ReplaceConductorDialog::on_m_erase_formula_cb_clicked ( )
privateslot

Definition at line 206 of file replaceconductordialog.cpp.

References SearchAndReplaceWorker::eraseText(), and ui.

◆ on_m_erase_function_cb_clicked

void ReplaceConductorDialog::on_m_erase_function_cb_clicked ( )
privateslot

Definition at line 218 of file replaceconductordialog.cpp.

References SearchAndReplaceWorker::eraseText(), and ui.

◆ on_m_erase_tension_protocol_cb_clicked

void ReplaceConductorDialog::on_m_erase_tension_protocol_cb_clicked ( )
privateslot

Definition at line 224 of file replaceconductordialog.cpp.

References SearchAndReplaceWorker::eraseText(), and ui.

◆ on_m_erase_text_cb_clicked

void ReplaceConductorDialog::on_m_erase_text_cb_clicked ( )
privateslot

Definition at line 212 of file replaceconductordialog.cpp.

References SearchAndReplaceWorker::eraseText(), and ui.

◆ on_m_neutral_cb_toggled

void ReplaceConductorDialog::on_m_neutral_cb_toggled ( bool  checked)
privateslot

Definition at line 239 of file replaceconductordialog.cpp.

References ui.

◆ on_m_update_preview_pb_clicked

void ReplaceConductorDialog::on_m_update_preview_pb_clicked ( )
privateslot

Definition at line 248 of file replaceconductordialog.cpp.

References updatePreview().

◆ properties()

ConductorProperties ReplaceConductorDialog::properties ( ) const

◆ setColorButton()

void ReplaceConductorDialog::setColorButton ( const QColor &  color)
private

Definition at line 192 of file replaceconductordialog.cpp.

References ui.

Referenced by on_m_color_pb_clicked(), and setProperties().

◆ setColorButton2()

void ReplaceConductorDialog::setColorButton2 ( const QColor &  color)
private

Definition at line 199 of file replaceconductordialog.cpp.

References ui.

Referenced by on_m_color_2_pb_clicked(), and setProperties().

◆ setProperties()

void ReplaceConductorDialog::setProperties ( const ConductorProperties properties)

◆ updatePreview()

void ReplaceConductorDialog::updatePreview ( bool  b = true)

ReplaceConductorDialog::updatePreview Update the preview for single line.

Parameters
btrue: update from the value displayed by this widget false: update from the properties given at the constructor of this widget

Definition at line 51 of file replaceconductordialog.cpp.

References SingleLineProperties::draw(), QET::Horizontal, m_properties, properties(), ConductorProperties::singleLineProperties, and ui.

Referenced by on_m_update_preview_pb_clicked(), and setProperties().

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: