Base class for a CSOCommand for the undo/redo mechanism.
More...
#include <CSOUndoRedoCommands.h>
|
| std::string | commandName |
| | The command as a string (for debugging purposes).
|
Base class for a CSOCommand for the undo/redo mechanism.
Definition at line 30 of file CSOUndoRedoCommands.h.
◆ CSOCommand()
| ml::CSOCommand::CSOCommand |
( |
const CSOListPtr & | csoList | ) |
|
◆ ~CSOCommand()
| ml::CSOCommand::~CSOCommand |
( |
| ) |
|
|
override |
◆ checkRedoBehavior()
| bool ml::CSOCommand::checkRedoBehavior |
( |
| ) |
const |
|
inlineoverrideprotected |
Returns whether the undo/redo behavior should be checked; returns 'false' to disable the check. Not every undo step generates a redo step (a previous step might generate two instead).
Definition at line 54 of file CSOUndoRedoCommands.h.
◆ execute()
| virtual int ml::CSOCommand::execute |
( |
| ) |
|
|
pure virtual |
Execute method that must be overridden by each derived class. Is called for undo/redo mechanism. Returns a notification flag.
Implemented in ml::CSOCmdAddCSO, ml::CSOCmdAddCSOGroup, ml::CSOCmdAddCSOList, ml::CSOCmdAddCSOSet, ml::CSOCmdAddCSOtoGroup, ml::CSOCmdCSOModifyVisualAttributes, ml::CSOCmdInsertRemoveSeedPoint, ml::CSOCmdModifySet, ml::CSOCmdMoveContour, ml::CSOCmdMoveSeedPoint, ml::CSOCmdRemoveCSO, ml::CSOCmdRemoveCSOfromGroup, ml::CSOCmdRemoveCSOGroup, and ml::CSOCmdRemoveCSOSet.
◆ undo()
| void ml::CSOCommand::undo |
( |
| ) |
|
|
override |
◆ _csoList
◆ commandName
| std::string ml::CSOCommand::commandName |
The documentation for this class was generated from the following file: