The CmdListElementInsert class.
More...
#include <cmdlistelementinsert.h>
template<typename T, typename P, typename... OnEditedArgs>
class librepcb::editor::CmdListElementInsert< T, P, OnEditedArgs >
The CmdListElementInsert class.
◆ CmdListElementInsert() [1/3]
◆ CmdListElementInsert() [2/3]
◆ CmdListElementInsert() [3/3]
◆ ~CmdListElementInsert()
◆ operator=()
◆ performExecute()
|
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()
|
inlineoverrideprivatevirtual |
Undo the command.
- Note
- This method must be implemented in all derived classes.
Implements UndoCommand.
◆ performRedo()
|
inlineoverrideprivatevirtual |
Redo the command.
- Note
- This method must be implemented in all derived classes.
Implements UndoCommand.
◆ mList
◆ mElement
std::shared_ptr<T> mElement |
|
private |
◆ mIndex
The documentation for this class was generated from the following file: