QElectroTech 0.100.0-dev
Loading...
Searching...
No Matches
addterminalstripitemdialog.h
Go to the documentation of this file.
1/*
2 Copyright 2006-2022 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 ADDTERMINALSTRIPITEMDIALOG_H
19#define ADDTERMINALSTRIPITEMDIALOG_H
20
21#include <QDialog>
22#include <QPointer>
23
24class Diagram;
26class QETProject;
27class TerminalStrip;
28
29namespace Ui {
31}
32
33class AddTerminalStripItemDialog : public QDialog
34{
35 Q_OBJECT
36
37 public:
38 static void openDialog(Diagram *diagram, QWidget *parent = nullptr);
39
40 private:
41 explicit AddTerminalStripItemDialog(QETProject *project, QWidget *parent = nullptr);
44 void fillComboBox();
45
46 private:
47 QPointer<QETProject> m_project;
48 Ui::AddTerminalStripItemDialog *ui;
49};
50
51#endif // ADDTERMINALSTRIPITEMDIALOG_H
Definition addterminalstripitemdialog.h:34
void fillComboBox()
Definition addterminalstripitemdialog.cpp:78
QPointer< QETProject > m_project
Definition addterminalstripitemdialog.h:47
static void openDialog(Diagram *diagram, QWidget *parent=nullptr)
Definition addterminalstripitemdialog.cpp:26
TerminalStrip * selectedTerminalStrip() const
AddTerminalStripItemDialog::selectedTerminalStrip.
Definition addterminalstripitemdialog.cpp:62
~AddTerminalStripItemDialog()
Definition addterminalstripitemdialog.cpp:52
Ui::AddTerminalStripItemDialog * ui
Definition addterminalstripitemdialog.h:48
The Diagram class This class represents an electric diagram. It manages its various child elements,...
Definition diagram.h:56
Definition qetdiagrameditor.h:55
Definition qetproject.h:62
The TerminalStrip class This class hold all the datas and configurations of a terminal strip (but the...
Definition terminalstrip.h:45
Definition autonumberingdockwidget.h:26