Manages a stack of commands for undo/redo.
Clear the undo/redo stacks. Return this.
Create a shallow copy of the undo and redo stacks. The copy maintains references to the original command instances.
Are any commands available for redo.
Are any commands available for undo.
Return is both the undo and redo lists are empty.
Int limit := 1000
Max number of undo commands stored in the stack.
List all the redo commands in the stack.
List all the undo commands in the stack.
Callback when command stack is modified.
CommandStack push(Command? c)
Push a command onto the undo stack. This clears the redo stack. If c is null or returns false for
Command.undoablethen ignore this call. Return this.
Command.redoon the last redo command and then push it onto the undo stack. If the redo stack is empty, then ignore this call. Return command redone.
virtual override Str toStr()
Return debug string representation.
Command.undoon the last undo command and then push it onto the redo stack. If the undo stack is empty, then ignore this call. Return command undone.