digiKam
|
Classes | |
class | Private |
Signals | |
void | signalFileOriginChanged (const QString &filePath) |
void | signalImageLoaded (const QString &filePath, bool success) |
void | signalImageSaved (const QString &filePath, bool success) |
void | signalLoadingProgress (const QString &filePath, float progress) |
void | signalLoadingStarted (const QString &filename) |
void | signalModified () |
void | signalSavingProgress (const QString &filePath, float progress) |
void | signalSavingStarted (const QString &filename) |
void | signalUndoStateChanged () |
Public Member Functions | |
void | abortSaving () |
void | applyTransform (const IccTransform &transform) |
int | availableRedoSteps () const |
int | availableUndoSteps () const |
int | bytesDepth () const |
void | clearUndoManager () |
void | convertDepth (int depth) |
QPixmap | convertToPixmap (const DImg &img) const |
void | crop (const QRect &rect) |
EditorCore () | |
QString | ensureHasCurrentUuid () const |
bool | exifRotated () const |
void | flipHoriz () |
void | flipVert () |
IccProfile | getEmbeddedICC () const |
ExposureSettingsContainer * | getExposureSettings () const |
ICCSettingsContainer | getICCSettings () const |
QString | getImageFileName () const |
QString | getImageFilePath () const |
QString | getImageFormat () const |
DImageHistory | getImageHistoryOfFullRedo () const |
DImg * | getImg () const |
DImg | getImgSelection () const |
DImageHistory | getInitialImageHistory () const |
DImageHistory | getItemHistory () const |
MetaEngineData | getMetadata () const |
QStringList | getRedoHistory () const |
DImageHistory | getResolvedInitialHistory () const |
QRect | getSelectedArea () const |
QStringList | getUndoHistory () const |
bool | hasAlpha () const |
int | height () const |
void | imageUndoChanged (const UndoMetadataContainer &c) |
bool | isReadOnly () const |
bool | isValid () const |
void | load (const QString &filename, IOFileSettings *const iofileSettings) |
int | origHeight () const |
int | origWidth () const |
void | provideCurrentUuid (const QString &uuid) |
void | putIccProfile (const IccProfile &profile) |
void | putImg (const QString &caller, const FilterAction &action, const DImg &img) |
void | putImgSelection (const QString &caller, const FilterAction &action, const DImg &img) |
void | readMetadataFromFile (const QString &file) |
void | redo () |
void | resetImage () |
void | restore () |
void | rollbackToOrigin () |
void | rotate180 () |
void | rotate270 () |
void | rotate90 () |
void | saveAs (const QString &file, IOFileSettings *const iofileSettings, bool setExifOrientationTag, const QString &givenMimeType, const QString &intendedFilePath) |
void | saveAs (const QString &file, IOFileSettings *const iofileSettings, bool setExifOrientationTag, const QString &givenMimeType, const VersionFileOperation &operation) |
void | setDisplayingWidget (QWidget *const widget) |
void | setExifOrient (bool exifOrient) |
void | setExposureSettings (ExposureSettingsContainer *const expoSettings) |
void | setFileOriginData (const QVariant &data) |
void | setHistoryIsBranch (bool isBranching) |
void | setICCSettings (const ICCSettingsContainer &cmSettings) |
void | setLastSaved (const QString &filePath) |
void | setModified () |
void | setResolvedInitialHistory (const DImageHistory &history) |
void | setSelectedArea (const QRect &rect) |
void | setSoftProofingEnabled (bool enabled) |
void | setUndoImg (const UndoMetadataContainer &c, const DImg &img) |
void | setUndoManagerOrigin () |
bool | sixteenBit () const |
bool | softProofingEnabled () const |
void | switchToLastSaved (const DImageHistory &resolvedCurrentHistory=DImageHistory()) |
void | undo () |
UndoState | undoState () const |
int | width () const |
void | zoom (double val) |
~EditorCore () override | |
Static Public Member Functions | |
static EditorCore * | defaultInstance () |
static void | setDefaultInstance (EditorCore *const instance) |
Protected Slots | |
void | slotImageLoaded (const LoadingDescription &loadingDescription, const DImg &img) |
void | slotImageSaved (const QString &filePath, bool success) |
void | slotLoadingProgress (const LoadingDescription &loadingDescription, float progress) |
void | slotSavingProgress (const QString &filePath, float progress) |
|
explicit |
|
override |
void Digikam::EditorCore::abortSaving | ( | ) |
void Digikam::EditorCore::applyTransform | ( | const IccTransform & | transform | ) |
References Digikam::LoadingDescription::ApplyTransform, Digikam::LoadingDescription::PostProcessingParameters::colorManagement, Digikam::EditorCore::Private::currentDescription, Digikam::EditorToolIface::editorToolIface(), Digikam::EditorCore::Private::loadCurrent(), Digikam::LoadingDescription::postProcessingParameters, Digikam::LoadingDescription::PostProcessingParameters::setTransform(), Digikam::EditorToolIface::unLoadTool(), and Digikam::EditorCore::Private::valid.
int Digikam::EditorCore::availableRedoSteps | ( | ) | const |
int Digikam::EditorCore::availableUndoSteps | ( | ) | const |
int Digikam::EditorCore::bytesDepth | ( | ) | const |
References Digikam::DImg::bytesDepth(), and Digikam::EditorCore::Private::image.
void Digikam::EditorCore::clearUndoManager | ( | ) |
void Digikam::EditorCore::convertDepth | ( | int | depth | ) |
QPixmap Digikam::EditorCore::convertToPixmap | ( | const DImg & | img | ) | const |
Convert a DImg image to a pixmap for screen using color managed view if necessary.
References Digikam::EditorCore::Private::cmSettings, Digikam::DImg::convertToPixmap(), Digikam::ICCSettingsContainer::defaultProofProfile, Digikam::IccManager::displaySoftProofingTransform(), Digikam::IccManager::displayTransform(), Digikam::EditorCore::Private::doSoftProofing, Digikam::ICCSettingsContainer::enableCM, Digikam::EditorCore::Private::expoSettings, Digikam::ExposureSettingsContainer::overExposureIndicator, Digikam::DImg::pureColorMask(), Digikam::ExposureSettingsContainer::underExposureIndicator, and Digikam::ICCSettingsContainer::useManagedView.
void Digikam::EditorCore::crop | ( | const QRect & | rect | ) |
|
static |
Referenced by Digikam::EditorCore::Private::applyBuiltinFilter(), Digikam::EditorCore::Private::applyReversibleBuiltinFilter(), Digikam::EditorCore::Private::load(), Digikam::EditorCore::Private::loadCurrent(), Digikam::ImagePreviewItem::paint(), Digikam::ImageRegionItem::paint(), Digikam::EditorCore::Private::saveAs(), and Digikam::EditorCore::Private::saveNext().
QString Digikam::EditorCore::ensureHasCurrentUuid | ( | ) | const |
bool Digikam::EditorCore::exifRotated | ( | ) | const |
References Digikam::EditorCore::Private::rotatedOrFlipped.
void Digikam::EditorCore::flipHoriz | ( | ) |
void Digikam::EditorCore::flipVert | ( | ) |
IccProfile Digikam::EditorCore::getEmbeddedICC | ( | ) | const |
References Digikam::DImg::getIccProfile(), and Digikam::EditorCore::Private::image.
ExposureSettingsContainer * Digikam::EditorCore::getExposureSettings | ( | ) | const |
References Digikam::EditorCore::Private::expoSettings.
Referenced by Digikam::ImagePreviewItem::paint(), and Digikam::ImageRegionItem::paint().
ICCSettingsContainer Digikam::EditorCore::getICCSettings | ( | ) | const |
References Digikam::EditorCore::Private::cmSettings.
Referenced by Digikam::ImagePreviewItem::paint(), and Digikam::ImageRegionItem::paint().
QString Digikam::EditorCore::getImageFileName | ( | ) | const |
References getImageFilePath().
QString Digikam::EditorCore::getImageFilePath | ( | ) | const |
References Digikam::EditorCore::Private::image, and Digikam::DImg::originalFilePath().
Referenced by getImageFileName(), getImageFormat(), setFileOriginData(), setLastSaved(), and setUndoManagerOrigin().
QString Digikam::EditorCore::getImageFormat | ( | ) | const |
DImageHistory Digikam::EditorCore::getImageHistoryOfFullRedo | ( | ) | const |
DImg * Digikam::EditorCore::getImg | ( | ) | const |
References Digikam::EditorCore::Private::image, and Digikam::DImg::isNull().
Referenced by Digikam::UndoAction::UndoAction().
DImg Digikam::EditorCore::getImgSelection | ( | ) | const |
DImageHistory Digikam::EditorCore::getInitialImageHistory | ( | ) | const |
References Digikam::DImg::getOriginalImageHistory(), and Digikam::EditorCore::Private::image.
Referenced by Digikam::EditorWindow::slotLoadingFinished().
DImageHistory Digikam::EditorCore::getItemHistory | ( | ) | const |
References Digikam::DImg::getItemHistory(), and Digikam::EditorCore::Private::image.
Referenced by Digikam::EditorWindow::resetOriginSwitchFile(), Digikam::EditorWindow::saveAsVersionFileOperation(), Digikam::EditorWindow::saveInFormatVersionFileOperation(), Digikam::EditorCore::Private::saveNext(), and Digikam::EditorWindow::saveVersionFileOperation().
MetaEngineData Digikam::EditorCore::getMetadata | ( | ) | const |
References Digikam::DImg::getMetadata(), and Digikam::EditorCore::Private::image.
QStringList Digikam::EditorCore::getRedoHistory | ( | ) | const |
References Digikam::UndoManager::getRedoHistory(), and Digikam::EditorCore::Private::undoMan.
Referenced by Digikam::EditorWindow::slotAboutToShowRedoMenu().
DImageHistory Digikam::EditorCore::getResolvedInitialHistory | ( | ) | const |
QRect Digikam::EditorCore::getSelectedArea | ( | ) | const |
QStringList Digikam::EditorCore::getUndoHistory | ( | ) | const |
References Digikam::UndoManager::getUndoHistory(), and Digikam::EditorCore::Private::undoMan.
Referenced by Digikam::EditorWindow::slotAboutToShowUndoMenu().
bool Digikam::EditorCore::hasAlpha | ( | ) | const |
References Digikam::DImg::hasAlpha(), and Digikam::EditorCore::Private::image.
int Digikam::EditorCore::height | ( | ) | const |
References Digikam::EditorCore::Private::height.
Referenced by Digikam::EditorCore::Private::applyBuiltinFilter(), and Digikam::EditorCore::Private::resetValues().
void Digikam::EditorCore::imageUndoChanged | ( | const UndoMetadataContainer & | c | ) |
bool Digikam::EditorCore::isReadOnly | ( | ) | const |
bool Digikam::EditorCore::isValid | ( | ) | const |
References Digikam::EditorCore::Private::valid.
void Digikam::EditorCore::load | ( | const QString & | filename, |
IOFileSettings *const | iofileSettings | ||
) |
References Digikam::LoadingDescription::ConvertForEditor, Digikam::EditorToolIface::editorToolIface(), Digikam::DImg::fileFormat(), Digikam::DPlugin::iid(), Digikam::DPluginLoader::instance(), Digikam::EditorCore::Private::load(), Digikam::DImg::RAW, Digikam::LoadingDescription::RawDecodingGlobalSettings, Digikam::IOFileSettings::rawDecodingSettings, Digikam::IOFileSettings::rawImportToolIid, Digikam::EditorCore::Private::rawPlugin, Digikam::DPluginRawImport::run(), Digikam::ManagedLoadSaveThread::stopLoading(), Digikam::EditorCore::Private::thread, and Digikam::IOFileSettings::useRAWImport.
int Digikam::EditorCore::origHeight | ( | ) | const |
References Digikam::EditorCore::Private::origHeight.
Referenced by Digikam::EditorCore::Private::applyBuiltinFilter(), and Digikam::EditorCore::Private::resetValues().
int Digikam::EditorCore::origWidth | ( | ) | const |
References Digikam::EditorCore::Private::origWidth.
Referenced by Digikam::EditorCore::Private::applyBuiltinFilter(), and Digikam::EditorCore::Private::resetValues().
void Digikam::EditorCore::provideCurrentUuid | ( | const QString & | uuid | ) |
void Digikam::EditorCore::putIccProfile | ( | const IccProfile & | profile | ) |
void Digikam::EditorCore::putImg | ( | const QString & | caller, |
const FilterAction & | action, | ||
const DImg & | img | ||
) |
References Digikam::UndoManager::addAction(), Digikam::DImg::addFilterAction(), Digikam::DImg::bits(), Digikam::DImg::height, Digikam::EditorCore::Private::image, Digikam::EditorCore::Private::putImageData(), setModified(), Digikam::DImg::sixteenBit, Digikam::EditorCore::Private::undoMan, and Digikam::DImg::width.
void Digikam::EditorCore::putImgSelection | ( | const QString & | caller, |
const FilterAction & | action, | ||
const DImg & | img | ||
) |
References Digikam::UndoManager::addAction(), Digikam::DImg::addFilterAction(), Digikam::DImg::bitBltImage(), Digikam::DImg::bits(), Digikam::DImg::bytesDepth(), Digikam::EditorCore::Private::image, Digikam::DImg::isNull(), Digikam::EditorCore::Private::selH, Digikam::EditorCore::Private::selW, Digikam::EditorCore::Private::selX, Digikam::EditorCore::Private::selY, setModified(), and Digikam::EditorCore::Private::undoMan.
void Digikam::EditorCore::readMetadataFromFile | ( | const QString & | file | ) |
void Digikam::EditorCore::redo | ( | ) |
void Digikam::EditorCore::resetImage | ( | ) |
void Digikam::EditorCore::restore | ( | ) |
void Digikam::EditorCore::rollbackToOrigin | ( | ) |
References Digikam::UndoManager::rollbackToOrigin(), signalUndoStateChanged(), and Digikam::EditorCore::Private::undoMan.
Referenced by Digikam::EditorWindow::slotDiscardChanges().
void Digikam::EditorCore::rotate180 | ( | ) |
void Digikam::EditorCore::rotate270 | ( | ) |
void Digikam::EditorCore::rotate90 | ( | ) |
Image transforms
References Digikam::EditorCore::Private::applyReversibleBuiltinFilter(), and Digikam::DImgBuiltinFilter::Rotate90.
void Digikam::EditorCore::saveAs | ( | const QString & | file, |
IOFileSettings *const | iofileSettings, | ||
bool | setExifOrientationTag, | ||
const QString & | givenMimeType, | ||
const QString & | intendedFilePath | ||
) |
References Digikam::EditorCore::Private::saveAs().
Referenced by Digikam::EditorWindow::startingSave(), and Digikam::EditorWindow::startingSaveAs().
void Digikam::EditorCore::saveAs | ( | const QString & | file, |
IOFileSettings *const | iofileSettings, | ||
bool | setExifOrientationTag, | ||
const QString & | givenMimeType, | ||
const VersionFileOperation & | operation | ||
) |
|
static |
Referenced by Digikam::Canvas::makeDefaultEditingCanvas().
void Digikam::EditorCore::setDisplayingWidget | ( | QWidget *const | widget | ) |
References Digikam::EditorCore::Private::displayingWidget.
void Digikam::EditorCore::setExifOrient | ( | bool | exifOrient | ) |
References Digikam::EditorCore::Private::exifOrient.
void Digikam::EditorCore::setExposureSettings | ( | ExposureSettingsContainer *const | expoSettings | ) |
References Digikam::EditorCore::Private::expoSettings.
void Digikam::EditorCore::setFileOriginData | ( | const QVariant & | data | ) |
void Digikam::EditorCore::setHistoryIsBranch | ( | bool | isBranching | ) |
void Digikam::EditorCore::setICCSettings | ( | const ICCSettingsContainer & | cmSettings | ) |
References Digikam::EditorCore::Private::cmSettings.
void Digikam::EditorCore::setLastSaved | ( | const QString & | filePath | ) |
void Digikam::EditorCore::setModified | ( | ) |
References signalModified(), and signalUndoStateChanged().
Referenced by Digikam::EditorCore::Private::applyBuiltinFilter(), putIccProfile(), putImg(), putImgSelection(), and slotImageLoaded().
void Digikam::EditorCore::setResolvedInitialHistory | ( | const DImageHistory & | history | ) |
References Digikam::EditorCore::Private::resolvedInitialHistory.
Referenced by Digikam::EditorWindow::slotLoadingFinished().
void Digikam::EditorCore::setSelectedArea | ( | const QRect & | rect | ) |
void Digikam::EditorCore::setSoftProofingEnabled | ( | bool | enabled | ) |
References Digikam::EditorCore::Private::doSoftProofing.
void Digikam::EditorCore::setUndoImg | ( | const UndoMetadataContainer & | c, |
const DImg & | img | ||
) |
void Digikam::EditorCore::setUndoManagerOrigin | ( | ) |
References getImageFilePath(), Digikam::UndoManager::setOrigin(), signalFileOriginChanged(), signalUndoStateChanged(), and Digikam::EditorCore::Private::undoMan.
Referenced by switchToLastSaved().
|
signal |
Referenced by setFileOriginData(), and setUndoManagerOrigin().
|
signal |
Referenced by EditorCore(), Digikam::EditorCore::Private::load(), and slotImageLoaded().
|
signal |
Referenced by EditorCore(), and slotImageSaved().
|
signal |
Referenced by EditorCore(), and slotLoadingProgress().
|
signal |
Referenced by Digikam::EditorCore::Private::load(), and Digikam::EditorCore::Private::loadCurrent().
|
signal |
Referenced by setModified().
|
signal |
Referenced by EditorCore(), and slotSavingProgress().
|
signal |
Referenced by Digikam::EditorCore::Private::saveAs().
|
signal |
Referenced by clearUndoManager(), redo(), rollbackToOrigin(), setModified(), setUndoManagerOrigin(), and undo().
bool Digikam::EditorCore::sixteenBit | ( | ) | const |
References Digikam::EditorCore::Private::image, and Digikam::DImg::sixteenBit.
Referenced by Digikam::EditorCore::Private::putImageData().
|
protectedslot |
References Digikam::DImageHistory::clearReferredImages(), Digikam::EditorCore::Private::currentDescription, Digikam::DImg::detectedFormat(), Digikam::EditorCore::Private::exifOrient, Digikam::DImg::exifOrientation(), Digikam::LoadingDescription::filePath, Digikam::DImg::getOriginalImageHistory(), Digikam::DImg::height, Digikam::EditorCore::Private::height, Digikam::EditorCore::Private::image, Digikam::DImg::isNull(), Digikam::EditorCore::Private::origHeight, Digikam::EditorCore::Private::origWidth, Digikam::DImg::RAW, Digikam::EditorCore::Private::resolvedInitialHistory, Digikam::DImg::rotateAndFlip(), Digikam::EditorCore::Private::rotatedOrFlipped, Digikam::DImg::setAttribute(), setModified(), signalImageLoaded(), Digikam::DImg::size(), Digikam::EditorCore::Private::valid, Digikam::DImg::wasExifRotated(), Digikam::DImg::width, and Digikam::EditorCore::Private::width.
Referenced by EditorCore().
|
protectedslot |
References Digikam::DImg::addAsReferredImage(), Digikam::LoadingDescription::ConvertForEditor, Digikam::EditorCore::Private::currentDescription, Digikam::EditorCore::Private::currentFileToSave, Digikam::EditorCore::Private::filesToSave, Digikam::EditorCore::Private::FileToSave::historyStep, Digikam::EditorCore::Private::FileToSave::image, Digikam::EditorCore::Private::saveNext(), and signalImageSaved().
Referenced by EditorCore().
|
protectedslot |
References Digikam::EditorCore::Private::currentDescription, Digikam::LoadingDescription::filePath, and signalLoadingProgress().
Referenced by EditorCore().
|
protectedslot |
References Digikam::EditorCore::Private::currentFileToSave, Digikam::EditorCore::Private::filesToSave, and signalSavingProgress().
Referenced by EditorCore().
bool Digikam::EditorCore::softProofingEnabled | ( | ) | const |
References Digikam::EditorCore::Private::doSoftProofing.
Referenced by Digikam::ImagePreviewItem::paint(), and Digikam::ImageRegionItem::paint().
void Digikam::EditorCore::switchToLastSaved | ( | const DImageHistory & | resolvedCurrentHistory = DImageHistory() | ) |
References Digikam::DImageHistory::clearReferredImages(), Digikam::DImg::getOriginalImageHistory(), Digikam::EditorCore::Private::image, Digikam::DImageHistory::isNull(), Digikam::EditorCore::Private::resolvedInitialHistory, setUndoManagerOrigin(), and Digikam::DImg::switchOriginToLastSaved().
Referenced by Digikam::EditorWindow::resetOriginSwitchFile().
void Digikam::EditorCore::undo | ( | ) |
UndoState Digikam::EditorCore::undoState | ( | ) | const |
References Digikam::UndoManager::anyMoreRedo(), Digikam::UndoManager::anyMoreUndo(), Digikam::UndoManager::hasChanges(), Digikam::UndoState::hasChanges, Digikam::UndoState::hasRedo, Digikam::UndoState::hasUndo, Digikam::UndoState::hasUndoableChanges, Digikam::UndoManager::isAtOrigin(), and Digikam::EditorCore::Private::undoMan.
Referenced by Digikam::EditorWindow::promptUserDelete(), and Digikam::EditorWindow::promptUserSave().
int Digikam::EditorCore::width | ( | ) | const |
References Digikam::EditorCore::Private::width.
Referenced by Digikam::EditorCore::Private::applyBuiltinFilter(), and Digikam::EditorCore::Private::resetValues().
void Digikam::EditorCore::zoom | ( | double | val | ) |