QElectroTech  0.70
replaceconductordialog.h
Go to the documentation of this file.
1 /*
2  Copyright 2006-2019 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 
25 namespace Ui {
27 }
28 
33 class ReplaceConductorDialog : public QDialog
34 {
35  Q_OBJECT
36 
37  public:
38  explicit ReplaceConductorDialog(const ConductorProperties &properties, QWidget *parent = 0);
40  void updatePreview(bool b=true);
43 
44  private:
45  void initWidget();
46  void setColorButton(const QColor &color);
47  void setColorButton2(const QColor &color);
48 
49  private slots:
54  void on_m_earth_cb_toggled(bool checked);
55  void on_m_neutral_cb_toggled(bool checked);
57  void on_m_color_pb_clicked();
59 
60  private:
61  Ui::ReplaceConductorDialog *ui;
63 };
64 
65 #endif // REPLACECONDUCTORDIALOG_H
void on_m_earth_cb_toggled(bool checked)
void setColorButton2(const QColor &color)
Ui::ReplaceConductorDialog * ui
ReplaceConductorDialog(const ConductorProperties &properties, QWidget *parent=0)
ReplaceConductorDialog::ReplaceConductorDialog.
void updatePreview(bool b=true)
ReplaceConductorDialog::updatePreview Update the preview for single line.
The ReplaceConductorDialog class A Qdialog to edit a conductor properties, use for the search and rep...
void setColorButton(const QColor &color)
void setProperties(const ConductorProperties &properties)
ConductorProperties m_properties
void on_m_neutral_cb_toggled(bool checked)
ConductorProperties properties() const
ReplaceConductorDialog::properties.