digiKam
|
Public Member Functions | |
void | addAction (UndoAction *const action) |
bool | anyMoreRedo () const |
bool | anyMoreUndo () const |
int | availableRedoSteps () const |
int | availableUndoSteps () const |
void | clear (bool clearCache=true) |
void | clearPreviousOriginData () |
DImageHistory | getImageHistoryOfFullRedo () const |
The history if all available redo steps are redone. More... | |
QStringList | getRedoHistory () const |
QStringList | getUndoHistory () const |
bool | hasChanges () const |
bool | isAtOrigin () const |
bool | putImageDataAndHistory (DImg *const img, int stepsBack) const |
void | redo () |
void | rollbackToOrigin () |
void | setOrigin () const |
void | undo () |
UndoManager (EditorCore *const core) | |
~UndoManager () | |
|
explicit |
Digikam::UndoManager::~UndoManager | ( | ) |
References clear().
void Digikam::UndoManager::addAction | ( | UndoAction *const | action | ) |
References isAtOrigin(), and Digikam::UndoAction::setFileOriginData().
Referenced by Digikam::EditorCore::putImg(), and Digikam::EditorCore::putImgSelection().
bool Digikam::UndoManager::anyMoreRedo | ( | ) | const |
Referenced by Digikam::EditorCore::redo(), and Digikam::EditorCore::undoState().
bool Digikam::UndoManager::anyMoreUndo | ( | ) | const |
Referenced by Digikam::EditorCore::undo(), and Digikam::EditorCore::undoState().
int Digikam::UndoManager::availableRedoSteps | ( | ) | const |
Referenced by Digikam::EditorCore::availableRedoSteps().
int Digikam::UndoManager::availableUndoSteps | ( | ) | const |
Referenced by Digikam::EditorCore::availableUndoSteps().
void Digikam::UndoManager::clear | ( | bool | clearCache = true | ) |
References setOrigin().
Referenced by Digikam::EditorCore::clearUndoManager(), and ~UndoManager().
void Digikam::UndoManager::clearPreviousOriginData | ( | ) |
References Digikam::UndoAction::hasFileOriginData(), and Digikam::UndoAction::setFileOriginData().
Referenced by Digikam::EditorCore::setLastSaved().
DImageHistory Digikam::UndoManager::getImageHistoryOfFullRedo | ( | ) | const |
The history if all available redo steps are redone.
Referenced by Digikam::EditorCore::getImageHistoryOfFullRedo().
QStringList Digikam::UndoManager::getRedoHistory | ( | ) | const |
References Digikam::UndoAction::getTitle().
Referenced by Digikam::EditorCore::getRedoHistory().
QStringList Digikam::UndoManager::getUndoHistory | ( | ) | const |
References Digikam::UndoAction::getTitle().
Referenced by Digikam::EditorCore::getUndoHistory().
bool Digikam::UndoManager::hasChanges | ( | ) | const |
References Digikam::DImageHistory::actionCount(), and isAtOrigin().
Referenced by Digikam::EditorCore::readMetadataFromFile(), and Digikam::EditorCore::undoState().
bool Digikam::UndoManager::isAtOrigin | ( | ) | const |
Referenced by addAction(), hasChanges(), rollbackToOrigin(), and Digikam::EditorCore::undoState().
bool Digikam::UndoManager::putImageDataAndHistory | ( | DImg *const | img, |
int | stepsBack | ||
) | const |
References Digikam::DImgBuiltinFilter::apply(), Digikam::UndoAction::getMetadata(), Digikam::UndoActionReversible::getReverseFilter(), Digikam::DImg::hasAlpha(), Digikam::DImg::height, Digikam::DImg::putImageData(), Digikam::DImg::sixteenBit, Digikam::DImg::stripImageData(), Digikam::UndoMetadataContainer::toImage(), and Digikam::DImg::width.
void Digikam::UndoManager::redo | ( | ) |
Referenced by Digikam::EditorCore::redo(), and rollbackToOrigin().
void Digikam::UndoManager::rollbackToOrigin | ( | ) |
References isAtOrigin(), redo(), and undo().
Referenced by Digikam::EditorCore::rollbackToOrigin().
void Digikam::UndoManager::setOrigin | ( | ) | const |
Referenced by clear(), Digikam::EditorCore::clearUndoManager(), and Digikam::EditorCore::setUndoManagerOrigin().
void Digikam::UndoManager::undo | ( | ) |
Referenced by rollbackToOrigin(), and Digikam::EditorCore::undo().