|
kwave
18.07.70
|
#include <UndoManager.h>

Public Member Functions | |
| UndoManager () | |
| virtual | ~UndoManager () |
| bool | registerHandler (Kwave::UndoHandler *handler) |
| bool | unregisterHandler (Kwave::UndoHandler *handler) |
| bool | startUndoTransaction (Kwave::UndoTransaction *transaction) |
| bool | closeUndoTransaction (Kwave::UndoTransaction *transaction) |
Private Attributes | |
| QList< Kwave::UndoHandler * > | m_handlers |
Definition at line 32 of file UndoManager.h.
| Kwave::UndoManager::UndoManager | ( | ) |
|
virtual |
| bool Kwave::UndoManager::closeUndoTransaction | ( | Kwave::UndoTransaction * | transaction | ) |
Should be called when a undo transaction is completed
| transaction | the undo transaction that has been closed |
Definition at line 70 of file UndoManager.cpp.
| bool Kwave::UndoManager::registerHandler | ( | Kwave::UndoHandler * | handler | ) |
Register an instance of an undo handler
| handler | the undo handler to register |
Definition at line 36 of file UndoManager.cpp.
References m_handlers.
Referenced by Kwave::SelectionTracker::SelectionTracker().

| bool Kwave::UndoManager::startUndoTransaction | ( | Kwave::UndoTransaction * | transaction | ) |
Should be called when a undo transaction has been started, calls saveUndoData of all undo handlers
| transaction | the newly created undo transaction (still empty) |
Definition at line 54 of file UndoManager.cpp.
References m_handlers, and Kwave::UndoHandler::saveUndoData().
Referenced by Kwave::SignalManager::startUndoTransaction().


| bool Kwave::UndoManager::unregisterHandler | ( | Kwave::UndoHandler * | handler | ) |
Unregister an instance of an undo handler previously registered through registerHandler()
| handler | the undo handler to unregister |
Definition at line 45 of file UndoManager.cpp.
References m_handlers.
Referenced by Kwave::SelectionTracker::~SelectionTracker().

|
private |
list of all registered undo handlers
Definition at line 86 of file UndoManager.h.
Referenced by registerHandler(), startUndoTransaction(), unregisterHandler(), and ~UndoManager().