This class allows management of tasks with supporting commiting them, rolling them back, and setting bookmarks which can be undone and redone. More...
#include <utils.h>
Classes | |
class | Bookmark |
class | iterator |
class | reverse_iterator |
Public Member Functions | |
void | add (Command *c) |
iterator | begin () |
CommandManager () | |
void | commit () |
iterator | end () |
reverse_iterator | rbegin () |
void | redoBookmark (Bookmark *) |
reverse_iterator | rend () |
void | rollback (Bookmark *) |
void | rollback () |
Bookmark * | setBookmark () |
void | undoBookmark (Bookmark *) |
~CommandManager () | |
This class allows management of tasks with supporting commiting them, rolling them back, and setting bookmarks which can be undone and redone.
|
inline |
|
inline |
|
inline |
|
inline |
void frepple::utils::CommandManager::commit | ( | ) |
Commit all commands.
Definition at line 208 of file utils/actions.cpp.
|
inline |
|
inline |
void frepple::utils::CommandManager::redoBookmark | ( | CommandManager::Bookmark * | b | ) |
Redo all commands in a bookmark (and its children).
It can later still be undone.
The active bookmark in the manager is set to the argument bookmark.
Definition at line 156 of file utils/actions.cpp.
|
inline |
void frepple::utils::CommandManager::rollback | ( | CommandManager::Bookmark * | b | ) |
Undo all commands in a bookmark (and its children).
It can no longer be redone. The bookmark does however still exist.
Definition at line 172 of file utils/actions.cpp.
void frepple::utils::CommandManager::rollback | ( | ) |
Rolling back all commands.
Definition at line 224 of file utils/actions.cpp.
CommandManager::Bookmark * frepple::utils::CommandManager::setBookmark | ( | ) |
Create a new bookmark.
Definition at line 127 of file utils/actions.cpp.
void frepple::utils::CommandManager::undoBookmark | ( | CommandManager::Bookmark * | b | ) |
Undo all commands in a bookmark (and its children).
It can later be redone.
The active bookmark in the manager is set to the parent of argument bookmark.
Definition at line 138 of file utils/actions.cpp.