LibrePCB Developers Documentation
Loading...
Searching...
No Matches
cmdcombineallnetsignalsunderschematicnetpoint.h
Go to the documentation of this file.
1/*
2 * LibrePCB - Professional EDA for everyone!
3 * Copyright (C) 2013 LibrePCB Developers, see AUTHORS.md for contributors.
4 * https://librepcb.org/
5 *
6 * This program is free software: you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation, either version 3 of the License, or
9 * (at your option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with this program. If not, see <http://www.gnu.org/licenses/>.
18 */
19
20#ifndef LIBREPCB_EDITOR_CMDCOMBINEALLNETSIGNALSUNDERSCHEMATICNETPOINT_H
21#define LIBREPCB_EDITOR_CMDCOMBINEALLNETSIGNALSUNDERSCHEMATICNETPOINT_H
22
23/*******************************************************************************
24 * Includes
25 ******************************************************************************/
27#include <librepcb/core/undocommandgroup.h>
28
29#include <QtCore>
30
31/*******************************************************************************
32 * Namespace / Forward Declarations
33 ******************************************************************************/
34namespace librepcb {
35
36class Circuit;
37class SI_NetPoint;
38class Schematic;
39
40namespace editor {
41
42/*******************************************************************************
43 * Class CmdCombineAllNetSignalsUnderSchematicNetPoint
44 ******************************************************************************/
45
50 : public UndoCommandGroup {
51public:
52 // Constructors / Destructor
55
56 // Getters
57 bool hasCombinedSomeItems() const noexcept { return mHasCombinedSomeItems; }
58
59private:
60 // Private Methods
61
63 bool performExecute() override;
64
65 // Attributes from the constructor
69
70 // Private Member Variables
72};
73
74/*******************************************************************************
75 * End of File
76 ******************************************************************************/
77
78} // namespace editor
79} // namespace librepcb
80
81#endif
The Circuit class represents all electrical connections in a project (drawn in the schematics)
Definition circuit.h:70
The SI_NetPoint class.
Definition si_netpoint.h:44
The Schematic class represents one schematic page of a project and is always part of a circuit.
Definition schematic.h:74
The CmdCombineAllNetSignalsUnderSchematicNetPoint class.
Definition cmdcombineallnetsignalsunderschematicnetpoint.h:50
Circuit & mCircuit
Definition cmdcombineallnetsignalsunderschematicnetpoint.h:66
Schematic & mSchematic
Definition cmdcombineallnetsignalsunderschematicnetpoint.h:67
SI_NetPoint & mNetPoint
Definition cmdcombineallnetsignalsunderschematicnetpoint.h:68
~CmdCombineAllNetSignalsUnderSchematicNetPoint() noexcept
Definition cmdcombineallnetsignalsunderschematicnetpoint.cpp:69
bool hasCombinedSomeItems() const noexcept
Definition cmdcombineallnetsignalsunderschematicnetpoint.h:57
bool performExecute() override
Execute the command the first time.
Definition cmdcombineallnetsignalsunderschematicnetpoint.cpp:76
bool mHasCombinedSomeItems
Definition cmdcombineallnetsignalsunderschematicnetpoint.h:71
The UndoCommandGroup class makes it possible to pack multiple undo commands together (it acts as a pa...
Definition undocommandgroup.h:44
Definition occmodel.cpp:76