20 #ifndef LIBREPCB_EDITOR_CMDPROJECTLIBRARYADDELEMENT_H 21 #define LIBREPCB_EDITOR_CMDPROJECTLIBRARYADDELEMENT_H 26 #include "../../undocommand.h" 48 template <
typename ElementType>
53 ElementType& element) noexcept;
The CmdProjectLibraryAddElement class.
Definition: cmdprojectlibraryaddelement.h:49
Definition: occmodel.cpp:77
bool performExecute() override
Execute the command the first time.
Definition: cmdprojectlibraryaddelement.cpp:61
void performUndo() override
Undo the command.
Definition: cmdprojectlibraryaddelement.cpp:68
ElementType & mElement
Definition: cmdprojectlibraryaddelement.h:74
The ProjectLibrary class.
Definition: projectlibrary.h:52
The UndoCommand class represents a command which you can undo/redo.
Definition: undocommand.h:46
~CmdProjectLibraryAddElement() noexcept
Definition: cmdprojectlibraryaddelement.cpp:53
CmdProjectLibraryAddElement(ProjectLibrary &library, ElementType &element) noexcept
Definition: cmdprojectlibraryaddelement.cpp:44
ProjectLibrary & mLibrary
Definition: cmdprojectlibraryaddelement.h:73
void performRedo() override
Redo the command.
Definition: cmdprojectlibraryaddelement.cpp:73