UndoFileChangeTracker Class Reference
#include <maplib.h>
Public Member Functions |
| UndoFileChangeTracker () |
void | print () |
void | push () |
void | pop () |
void | pushOperation () |
void | clear () |
| called whenever tracker system should be reseted
|
void | clearRedo (void) |
| called whenever redo states should be reseted
|
void | begin () |
| called right before a new action is called, should be used to save current state (e.g. in an UndoMememto)
|
void | undo () |
| called whenever an older state should be retrieved
|
void | redo () |
| called whenever a previously recorded action is about to be replayed to regenerate a state after undo
|
void | changed () |
void | save () |
bool | saved () const |
void | setChangedCallback (const Callback &changed) |
std::size_t | changes () const |
Private Types |
typedef void(UndoFileChangeTracker::* | Pending )() |
Private Attributes |
std::size_t | m_size |
std::size_t | m_saved |
Pending | m_pending |
Callback | m_changed |
Detailed Description
Definition at line 59 of file maplib.h.
Member Typedef Documentation
Constructor & Destructor Documentation
UndoFileChangeTracker::UndoFileChangeTracker |
( |
|
) |
[inline] |
Member Function Documentation
void UndoFileChangeTracker::begin |
( |
|
) |
[inline, virtual] |
void UndoFileChangeTracker::changed |
( |
|
) |
[inline, virtual] |
std::size_t UndoFileChangeTracker::changes |
( |
|
) |
const [inline, virtual] |
void UndoFileChangeTracker::clear |
( |
|
) |
[inline, virtual] |
void UndoFileChangeTracker::clearRedo |
( |
void |
|
) |
[inline, virtual] |
called whenever redo states should be reseted
Implements UndoTracker.
Definition at line 103 of file maplib.h.
void UndoFileChangeTracker::pop |
( |
|
) |
[inline] |
void UndoFileChangeTracker::print |
( |
|
) |
[inline] |
void UndoFileChangeTracker::push |
( |
|
) |
[inline] |
void UndoFileChangeTracker::pushOperation |
( |
|
) |
[inline] |
void UndoFileChangeTracker::redo |
( |
|
) |
[inline, virtual] |
called whenever a previously recorded action is about to be replayed to regenerate a state after undo
Implements UndoTracker.
Definition at line 115 of file maplib.h.
References m_pending, and push().
void UndoFileChangeTracker::save |
( |
|
) |
[inline, virtual] |
bool UndoFileChangeTracker::saved |
( |
|
) |
const [inline, virtual] |
void UndoFileChangeTracker::setChangedCallback |
( |
const Callback & |
changed |
) |
[inline, virtual] |
void UndoFileChangeTracker::undo |
( |
|
) |
[inline, virtual] |
Field Documentation
The documentation for this class was generated from the following file: