QElectroTech 0.100.0-dev
Loading...
Searching...
No Matches
replaceconductordialog.h
Go to the documentation of this file.
1/*
2 Copyright 2006-2024 The QElectroTech Team
3 This file is part of QElectroTech.
4
5 QElectroTech is free software: you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation, either version 2 of the License, or
8 (at your option) any later version.
9
10 QElectroTech is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
14
15 You should have received a copy of the GNU General Public License
16 along with QElectroTech. If not, see <http://www.gnu.org/licenses/>.
17*/
18#ifndef REPLACECONDUCTORDIALOG_H
19#define REPLACECONDUCTORDIALOG_H
20
21#include "../../conductorproperties.h"
22
23#include <QDialog>
24
25namespace Ui {
27}
28
33class ReplaceConductorDialog : public QDialog
34{
35 Q_OBJECT
36
37 public:
40 QWidget *parent = 0);
42 void updatePreview(bool b=true);
45
46 private:
47 void initWidget();
48 void setColorButton(const QColor &color);
49 void setColorButton2(const QColor &color);
50
51 private slots:
58 void on_m_earth_cb_toggled(bool checked);
59 void on_m_neutral_cb_toggled(bool checked);
63
64 private:
65 Ui::ReplaceConductorDialog *ui;
67};
68
69#endif // REPLACECONDUCTORDIALOG_H
The ConductorProperties class This class represents the functional properties of a particular conduct...
Definition conductorproperties.h:68
The ReplaceConductorDialog class A Qdialog to edit a conductor properties, use for the search and rep...
Definition replaceconductordialog.h:34
void on_m_erase_function_cb_clicked()
Definition replaceconductordialog.cpp:269
void initWidget()
Definition replaceconductordialog.cpp:194
Ui::ReplaceConductorDialog * ui
Definition replaceconductordialog.h:65
void on_m_earth_cb_toggled(bool checked)
Definition replaceconductordialog.cpp:305
void on_m_erase_tension_protocol_cb_clicked()
Definition replaceconductordialog.cpp:277
void on_m_erase_text_cb_clicked()
Definition replaceconductordialog.cpp:261
void on_m_erase_m_wire_color_cb_clicked()
Definition replaceconductordialog.cpp:287
ConductorProperties m_properties
Definition replaceconductordialog.h:66
void on_m_update_preview_pb_clicked()
Definition replaceconductordialog.cpp:323
void on_m_erase_m_wire_section_cb_clicked()
Definition replaceconductordialog.cpp:296
void setProperties(const ConductorProperties &properties)
Definition replaceconductordialog.cpp:76
void setColorButton(const QColor &color)
Definition replaceconductordialog.cpp:230
void on_m_erase_formula_cb_clicked()
Definition replaceconductordialog.cpp:253
void setColorButton2(const QColor &color)
Definition replaceconductordialog.cpp:240
void on_m_neutral_cb_toggled(bool checked)
Definition replaceconductordialog.cpp:314
ConductorProperties properties() const
ReplaceConductorDialog::properties.
Definition replaceconductordialog.cpp:135
~ReplaceConductorDialog()
Definition replaceconductordialog.cpp:44
void on_m_color_pb_clicked()
Definition replaceconductordialog.cpp:328
void updatePreview(bool b=true)
ReplaceConductorDialog::updatePreview Update the preview for single line.
Definition replaceconductordialog.cpp:56
void on_m_color_2_pb_clicked()
Definition replaceconductordialog.cpp:336
Definition autonumberingdockwidget.h:26