#include <command.h>
Inheritance diagram for CmdHistory:

Public Member Functions | |
| CmdHistory () | |
| ~CmdHistory () | |
| CmdHistory & | operator<< (Cmd *pCmd) |
| int | undoAvailable () const |
| How many undo step is available. | |
| bool | canUndo () const |
| True if undo is possible. | |
| bool | canRedo () const |
| True if redo is possible. | |
| void | rollBack () |
| Cancel last operation. Needed if command crashes during execution. | |
| void | undo () |
| Undo last command. | |
| void | redo () |
| Undo last undo. | |
| bool | needSave () |
| True if image has changed since last saving. | |
| void | setSaved () |
| May be called when document is saved. | |
| void | startMacro () |
| MacroCmd * | createMacroCmd () |
Classes | |
| class | ErrUnderflow |
Definition at line 188 of file command.h.
| CmdHistory::CmdHistory | ( | ) |
| CmdHistory::~CmdHistory | ( | ) |
| CmdHistory& CmdHistory::operator<< | ( | Cmd * | pCmd | ) |
Put command to history list. *pCmd object must by allocated on the heap and can never be destroyed. CmdHistory destroys it.
| pCmd | Pointer to command. |
Reimplemented in Image.
Referenced by Image::operator<<().
| int CmdHistory::undoAvailable | ( | ) | const |
How many undo step is available.
| bool CmdHistory::canUndo | ( | ) | const |
True if undo is possible.
| bool CmdHistory::canRedo | ( | ) | const |
True if redo is possible.
| void CmdHistory::rollBack | ( | ) |
Cancel last operation. Needed if command crashes during execution.
| void CmdHistory::undo | ( | ) |
Undo last command.
| void CmdHistory::redo | ( | ) |
Undo last undo.
| bool CmdHistory::needSave | ( | ) |
True if image has changed since last saving.
| void CmdHistory::setSaved | ( | ) |
May be called when document is saved.
| void CmdHistory::startMacro | ( | ) |
Start macro loading.
| MacroCmd* CmdHistory::createMacroCmd | ( | ) |
Create new macro. Note that startMacro method should be called first.
1.5.2