The CmdListElementRemove class.
More...
#include <cmdlistelementremove.h>
template<typename T, typename P, typename... OnEditedArgs>
class librepcb::editor::CmdListElementRemove< T, P, OnEditedArgs >
The CmdListElementRemove class.
◆ CmdListElementRemove() [1/3]
template<typename T , typename P , typename... OnEditedArgs>
◆ CmdListElementRemove() [2/3]
template<typename T , typename P , typename... OnEditedArgs>
◆ CmdListElementRemove() [3/3]
template<typename T , typename P , typename... OnEditedArgs>
◆ ~CmdListElementRemove()
template<typename T , typename P , typename... OnEditedArgs>
◆ operator=()
template<typename T , typename P , typename... OnEditedArgs>
◆ performExecute()
template<typename T , typename P , typename... OnEditedArgs>
|
inlineoverrideprivatevirtual |
Execute the command the first time.
- Note
- This method must be implemented in all derived classes. If the first time execution is exactly identical to an "redo" action, you can simple call librepcb::editor::UndoCommand::performRedo() in the implementation of this method.
- Return values
-
true | If the command has done some changes |
false | If the command has done nothing (the command can be deleted) |
Implements UndoCommand.
◆ performUndo()
template<typename T , typename P , typename... OnEditedArgs>
|
inlineoverrideprivatevirtual |
Undo the command.
- Note
- This method must be implemented in all derived classes.
Implements UndoCommand.
◆ performRedo()
template<typename T , typename P , typename... OnEditedArgs>
|
inlineoverrideprivatevirtual |
Redo the command.
- Note
- This method must be implemented in all derived classes.
Implements UndoCommand.
◆ mList
template<typename T , typename P , typename... OnEditedArgs>
◆ mElement
template<typename T , typename P , typename... OnEditedArgs>
◆ mMemorizedElement
template<typename T , typename P , typename... OnEditedArgs>
std::shared_ptr<T> mMemorizedElement |
|
private |
◆ mIndex
template<typename T , typename P , typename... OnEditedArgs>
The documentation for this class was generated from the following file: