QElectroTech 0.100.0-dev
Loading...
Searching...
No Matches
conductorautonumerotation.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 CONDUCTORAUTONUMEROTATION_H
19#define CONDUCTORAUTONUMEROTATION_H
20
23
24#include <QList>
25#include <QPointer>
26
27class Diagram;
28class QUndoCommand;
30
35{
36 public:
37 //constructors & destructor
39 Diagram *diagram,
40 QUndoCommand *undo_parent = nullptr);
41
42 //methods
43 void numerate ();
44 void applyText (const QString&);
45 static void newProperties(Diagram *diagram,
48
49 private:
50 //methods
51 void numeratePotential ();
53
54 //attributes
56 QPointer<Conductor> m_conductor;
57 QList <Conductor *> conductor_list;
58 QUndoCommand *m_parent_undo;
59};
60
61#endif // CONDUCTORAUTONUMEROTATION_H
The ConductorAutoNumerotation class.
Definition conductorautonumerotation.h:35
void applyText(const QString &)
ConductorAutoNumerotation::applyText apply the text t to conductor_ and all conductors at the same po...
Definition conductorautonumerotation.cpp:70
void numerate()
ConductorAutoNumerotation::numerate execute the automatic numerotation.
Definition conductorautonumerotation.cpp:56
static void newProperties(Diagram *diagram, ConductorProperties &cp, autonum::sequentialNumbers &seq)
ConductorAutoNumerotation::newProperties Create a new properties according to the current autonum rul...
Definition conductorautonumerotation.cpp:141
QUndoCommand * m_parent_undo
Definition conductorautonumerotation.h:58
void numeratePotential()
ConductorAutoNumerotation::numeratePotential Numerate a conductor on an existing potential.
Definition conductorautonumerotation.cpp:166
Diagram * m_diagram
Definition conductorautonumerotation.h:55
QList< Conductor * > conductor_list
Definition conductorautonumerotation.h:57
QPointer< Conductor > m_conductor
Definition conductorautonumerotation.h:56
void numerateNewConductor()
ConductorAutoNumerotation::numerateNewConductor create and apply a new numerotation to m_conductor.
Definition conductorautonumerotation.cpp:221
Definition conductor.h:43
The ConductorProperties class This class represents the functional properties of a particular conduct...
Definition conductorproperties.h:68
The Diagram class This class represents an electric diagram. It manages its various child elements,...
Definition diagram.h:56
Definition assignvariables.h:34