Interface class for undo/redo stack.
More...
Interface class for undo/redo stack.
Definition at line 29 of file undostackinterface.h.
◆ ~UndoStackInterface()
virtual ModelView::UndoStackInterface::~UndoStackInterface |
( |
| ) |
|
|
virtualdefault |
◆ beginMacro()
virtual void ModelView::UndoStackInterface::beginMacro |
( |
const std::string & |
name | ) |
|
|
pure virtual |
◆ canRedo()
virtual bool ModelView::UndoStackInterface::canRedo |
( |
| ) |
const |
|
pure virtual |
◆ canUndo()
virtual bool ModelView::UndoStackInterface::canUndo |
( |
| ) |
const |
|
pure virtual |
◆ clear()
virtual void ModelView::UndoStackInterface::clear |
( |
| ) |
|
|
pure virtual |
◆ count()
virtual int ModelView::UndoStackInterface::count |
( |
| ) |
const |
|
pure virtual |
◆ endMacro()
virtual void ModelView::UndoStackInterface::endMacro |
( |
| ) |
|
|
pure virtual |
◆ execute()
virtual void ModelView::UndoStackInterface::execute |
( |
std::shared_ptr< AbstractItemCommand > |
command | ) |
|
|
pure virtual |
Executes the command, then pushes it in the stack for possible undo.
Current design relies on shared pointer. This is done a) to retrieve result of the command from another place b) to adapt the command for QUndoStack c) to bypass QUndoStack behavior which wants to have an ownership
Implemented in ModelView::UndoStack.
◆ index()
virtual int ModelView::UndoStackInterface::index |
( |
| ) |
const |
|
pure virtual |
◆ isActive()
virtual bool ModelView::UndoStackInterface::isActive |
( |
| ) |
const |
|
pure virtual |
◆ redo()
virtual void ModelView::UndoStackInterface::redo |
( |
| ) |
|
|
pure virtual |
◆ setUndoLimit()
virtual void ModelView::UndoStackInterface::setUndoLimit |
( |
int |
limit | ) |
|
|
pure virtual |
◆ undo()
virtual void ModelView::UndoStackInterface::undo |
( |
| ) |
|
|
pure virtual |
The documentation for this class was generated from the following file: