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