LibrePCB Developers Documentation
Loading...
Searching...
No Matches
cmdsymbolreload.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_CMDSYMBOLRELOAD_H
21#define LIBREPCB_EDITOR_CMDSYMBOLRELOAD_H
22
23/*******************************************************************************
24 * Includes
25 ******************************************************************************/
27
30
31#include <QtCore>
32
33/*******************************************************************************
34 * Namespace / Forward Declarations
35 ******************************************************************************/
36namespace librepcb {
37
38class Symbol;
39
40namespace editor {
41
42/*******************************************************************************
43 * Class CmdSymbolReload
44 ******************************************************************************/
45
50public:
51 // Constructors / Destructor
52 CmdSymbolReload() = delete;
53 CmdSymbolReload(const CmdSymbolReload& other) = delete;
54 explicit CmdSymbolReload(Symbol& element) noexcept;
55 virtual ~CmdSymbolReload() noexcept;
56
57 // Operator Overloadings
58 CmdSymbolReload& operator=(const CmdSymbolReload& rhs) = delete;
59
60protected: // Methods
62 virtual bool performExecute() override;
63
65 virtual void performUndo() override;
66
68 virtual void performRedo() override;
69
70private: // Data
72
75
88};
89
90/*******************************************************************************
91 * End of File
92 ******************************************************************************/
93
94} // namespace editor
95} // namespace librepcb
96
97#endif
The Symbol class represents the part of a component which is added to schematics.
Definition symbol.h:56
Transactional librepcb::FileSystem implementation.
Definition transactionalfilesystem.h:70
The CmdLibraryElementEdit class.
Definition cmdlibraryelementedit.h:45
The CmdSymbolReload class.
Definition cmdsymbolreload.h:49
virtual void performRedo() override
Redo the command.
Definition cmdsymbolreload.cpp:120
CircleList mNewCircles
Definition cmdsymbolreload.h:83
SymbolPinList mOldPins
Definition cmdsymbolreload.h:78
PolygonList mNewPolygons
Definition cmdsymbolreload.h:81
Symbol & mElement
Definition cmdsymbolreload.h:71
virtual void performUndo() override
Undo the command.
Definition cmdsymbolreload.cpp:109
TextList mOldTexts
Definition cmdsymbolreload.h:84
SymbolPinList mNewPins
Definition cmdsymbolreload.h:79
PolygonList mOldPolygons
Definition cmdsymbolreload.h:80
CircleList mOldCircles
Definition cmdsymbolreload.h:82
CmdSymbolReload(const CmdSymbolReload &other)=delete
TransactionalFileSystem::State mOldFiles
Definition cmdsymbolreload.h:73
PositiveLength mNewGridInterval
Definition cmdsymbolreload.h:77
TransactionalFileSystem::State mNewFiles
Definition cmdsymbolreload.h:74
ImageList mNewImages
Definition cmdsymbolreload.h:87
PositiveLength mOldGridInterval
Definition cmdsymbolreload.h:76
TextList mNewTexts
Definition cmdsymbolreload.h:85
virtual ~CmdSymbolReload() noexcept
Definition cmdsymbolreload.cpp:59
virtual bool performExecute() override
Execute the command the first time.
Definition cmdsymbolreload.cpp:66
ImageList mOldImages
Definition cmdsymbolreload.h:86
Definition occmodel.cpp:77
type_safe::constrained_type< Length, PositiveLengthConstraint, PositiveLengthVerifier > PositiveLength
Definition length.h:810