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