LibrePCB Developers Documentation
cmdcombineschematicnetsegments.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_CMDCOMBINESCHEMATICNETSEGMENTS_H
21 #define LIBREPCB_EDITOR_CMDCOMBINESCHEMATICNETSEGMENTS_H
22 
23 /*******************************************************************************
24  * Includes
25  ******************************************************************************/
26 #include "../../undocommandgroup.h"
27 
28 #include <QtCore>
29 
30 /*******************************************************************************
31  * Namespace / Forward Declarations
32  ******************************************************************************/
33 namespace librepcb {
34 
35 class SI_NetLineAnchor;
36 class SI_NetSegment;
37 
38 namespace editor {
39 
40 /*******************************************************************************
41  * Class CmdCombineSchematicNetSegments
42  ******************************************************************************/
43 
50 public:
51  // Constructors / Destructor
54  delete;
56  SI_NetLineAnchor& oldAnchor,
57  SI_NetSegment& result,
58  SI_NetLineAnchor& newAnchor) noexcept;
60 
61  // Operator Overloadings
63  const CmdCombineSchematicNetSegments& rhs) = delete;
64 
65 private: // Methods
67  bool performExecute() override;
68 
69 private: // Data
74 };
75 
76 /*******************************************************************************
77  * End of File
78  ******************************************************************************/
79 
80 } // namespace editor
81 } // namespace librepcb
82 
83 #endif
The UndoCommandGroup class makes it possible to pack multiple undo commands together (it acts as a pa...
Definition: undocommandgroup.h:44
Definition: occmodel.cpp:77
SI_NetSegment & mOldSegment
Definition: cmdcombineschematicnetsegments.h:70
CmdCombineSchematicNetSegments & operator=(const CmdCombineSchematicNetSegments &rhs)=delete
Definition: si_netline.h:44
bool performExecute() override
Execute the command the first time.
Definition: cmdcombineschematicnetsegments.cpp:66
SI_NetLineAnchor & mNewAnchor
Definition: cmdcombineschematicnetsegments.h:73
SI_NetSegment & mNewSegment
Definition: cmdcombineschematicnetsegments.h:71
SI_NetLineAnchor & mOldAnchor
Definition: cmdcombineschematicnetsegments.h:72
~CmdCombineSchematicNetSegments() noexcept
Definition: cmdcombineschematicnetsegments.cpp:59
This undo command combines two schematic netsegments together.
Definition: cmdcombineschematicnetsegments.h:49
The SI_NetSegment class.
Definition: si_netsegment.h:53