QElectroTech
0.70
|
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 |
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.
|
explicit |
ReplaceConductorDialog::ReplaceConductorDialog.
parent |
Definition at line 31 of file replaceconductordialog.cpp.
References initWidget(), properties(), setProperties(), and ui.
ReplaceConductorDialog::~ReplaceConductorDialog | ( | ) |
Definition at line 40 of file replaceconductordialog.cpp.
References ui.
|
private |
Definition at line 172 of file replaceconductordialog.cpp.
References QET::Icons::tr, and ui.
Referenced by ReplaceConductorDialog().
|
privateslot |
Definition at line 260 of file replaceconductordialog.cpp.
References ConductorProperties::m_color_2, m_properties, and setColorButton2().
|
privateslot |
Definition at line 252 of file replaceconductordialog.cpp.
References ConductorProperties::color, m_properties, and setColorButton().
|
privateslot |
Definition at line 230 of file replaceconductordialog.cpp.
References ui.
|
privateslot |
Definition at line 206 of file replaceconductordialog.cpp.
References SearchAndReplaceWorker::eraseText(), and ui.
|
privateslot |
Definition at line 218 of file replaceconductordialog.cpp.
References SearchAndReplaceWorker::eraseText(), and ui.
|
privateslot |
Definition at line 224 of file replaceconductordialog.cpp.
References SearchAndReplaceWorker::eraseText(), and ui.
|
privateslot |
Definition at line 212 of file replaceconductordialog.cpp.
References SearchAndReplaceWorker::eraseText(), and ui.
|
privateslot |
Definition at line 239 of file replaceconductordialog.cpp.
References ui.
|
privateslot |
Definition at line 248 of file replaceconductordialog.cpp.
References updatePreview().
ConductorProperties ReplaceConductorDialog::properties | ( | ) | const |
ReplaceConductorDialog::properties.
Definition at line 128 of file replaceconductordialog.cpp.
References ConductorProperties::color, ConductorProperties::cond_size, SingleLineProperties::hasGround, SingleLineProperties::hasNeutral, ConductorProperties::horiz_rotate_text, SingleLineProperties::is_pen, ConductorProperties::m_bicolor, ConductorProperties::m_color_2, ConductorProperties::m_dash_size, ConductorProperties::m_formula, ConductorProperties::m_function, ConductorProperties::m_horizontal_alignment, ConductorProperties::m_show_text, ConductorProperties::m_tension_protocol, ConductorProperties::m_vertical_alignment, ConductorProperties::Multi, SingleLineProperties::setPhasesCount(), ConductorProperties::Single, ConductorProperties::singleLineProperties, ConductorProperties::style, ConductorProperties::text, ConductorProperties::text_size, ConductorProperties::type, ui, and ConductorProperties::verti_rotate_text.
Referenced by SearchAndReplaceWidget::on_m_conductor_pb_clicked(), ReplaceConductorDialog(), setProperties(), and updatePreview().
|
private |
Definition at line 192 of file replaceconductordialog.cpp.
References ui.
Referenced by on_m_color_pb_clicked(), and setProperties().
|
private |
Definition at line 199 of file replaceconductordialog.cpp.
References ui.
Referenced by on_m_color_2_pb_clicked(), and setProperties().
void ReplaceConductorDialog::setProperties | ( | const ConductorProperties & | properties | ) |
Definition at line 71 of file replaceconductordialog.cpp.
References ConductorProperties::color, SingleLineProperties::hasGround, SingleLineProperties::hasNeutral, ConductorProperties::horiz_rotate_text, SingleLineProperties::isPen(), ConductorProperties::m_bicolor, ConductorProperties::m_color_2, ConductorProperties::m_dash_size, ConductorProperties::m_formula, ConductorProperties::m_function, ConductorProperties::m_horizontal_alignment, m_properties, ConductorProperties::m_show_text, ConductorProperties::m_tension_protocol, ConductorProperties::m_vertical_alignment, SingleLineProperties::phasesCount(), properties(), setColorButton(), setColorButton2(), SearchAndReplaceWorker::setupLineEdit(), ConductorProperties::Single, ConductorProperties::singleLineProperties, ConductorProperties::style, ConductorProperties::text, ConductorProperties::text_size, ConductorProperties::type, ui, updatePreview(), and ConductorProperties::verti_rotate_text.
Referenced by ReplaceConductorDialog().
void ReplaceConductorDialog::updatePreview | ( | bool | b = true | ) |
ReplaceConductorDialog::updatePreview Update the preview for single line.
b | true: 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().
|
private |
Definition at line 62 of file replaceconductordialog.h.
Referenced by on_m_color_2_pb_clicked(), on_m_color_pb_clicked(), setProperties(), and updatePreview().
|
private |
Definition at line 61 of file replaceconductordialog.h.
Referenced by initWidget(), on_m_earth_cb_toggled(), on_m_erase_formula_cb_clicked(), on_m_erase_function_cb_clicked(), on_m_erase_tension_protocol_cb_clicked(), on_m_erase_text_cb_clicked(), on_m_neutral_cb_toggled(), properties(), ReplaceConductorDialog(), setColorButton(), setColorButton2(), setProperties(), updatePreview(), and ~ReplaceConductorDialog().