|
FuncDoodle
|
Base interface for undoable and redoable editor actions. More...
#include <Common.h>
Public Member Functions | |
| virtual void | Undo ()=0 |
| Reverts the effects of this action. | |
| virtual void | Redo ()=0 |
| Reapplies the effects of this action. | |
| virtual | ~Action ()=default |
| Virtual destructor for safe polymorphic destruction. | |
Base interface for undoable and redoable editor actions.
Represents a single operation that can be applied and reverted within the application’s undo/redo system (e.g. drawing, filling, deleting frames).
Derived classes must implement both Undo() and Redo() to define how the action is reversed and reapplied.
|
virtualdefault |
Virtual destructor for safe polymorphic destruction.
|
pure virtual |
Reapplies the effects of this action.
Implemented in FuncDoodle::DeleteFrameAction, FuncDoodle::DeleteSelectionAction, FuncDoodle::DrawAction, FuncDoodle::FillAction, FuncDoodle::InsertFrameAction, FuncDoodle::MoveFrameLeftAction, FuncDoodle::MoveFrameRightAction, FuncDoodle::MoveSelectionAction, FuncDoodle::RotateFrameAction, FuncDoodle::RotateSelectionAction, and FuncDoodle::StrokeAction.
|
pure virtual |
Reverts the effects of this action.
Implemented in FuncDoodle::DeleteFrameAction, FuncDoodle::DeleteSelectionAction, FuncDoodle::DrawAction, FuncDoodle::FillAction, FuncDoodle::InsertFrameAction, FuncDoodle::MoveFrameLeftAction, FuncDoodle::MoveFrameRightAction, FuncDoodle::MoveSelectionAction, FuncDoodle::RotateFrameAction, FuncDoodle::RotateSelectionAction, and FuncDoodle::StrokeAction.