|
Krita Source Code Documentation
|
#include <KisDocument.h>
Inheritance diagram for KisDocument:Public Types | |
| enum | OpenFlag { None = 0 , DontAddToRecent = 0x1 , RecoveryFile = 0x2 } |
Public Member Functions | |
| QList< KisPaintingAssistantSP > | assistants () const |
| QColor | assistantsGlobalColor () |
| void | autoSaveOnPause () |
| Start saving when android activity is pushed to the background. | |
| QString | caption () const |
| void | clearUndoHistory () |
| KisDocument * | clone (bool addStorage=false) |
| creates a clone of the document and returns it. Please make sure that you hold all the necessary locks on the image before asking for a clone! | |
| bool | closePath (bool promptToSave=true) |
| QList< KoColor > | colorHistoryColors () const |
| KisUniqueColorSet * | colorHistoryModel () |
| void | copyFrom (const Private &rhs, KisDocument *q) |
| void | copyFromDocument (const KisDocument &rhs) |
| void | copyFromImpl (const Private &rhs, KisDocument *q, KisDocument::CopyPolicy policy) |
| KoDocumentInfoDlg * | createDocumentInfoDialog (QWidget *parent, KoDocumentInfo *docInfo) const |
| QDomDocument | createDomDocument (const QString &tagName, const QString &version) const |
| KisUndoStore * | createUndoStore () |
| QRectF | documentBounds () const |
| KoDocumentInfo * | documentInfo () const |
| QString | embeddedResourcesStorageId () const |
| QString | errorMessage () const |
| bool | exportDocument (const QString &path, const QByteArray &mimeType, bool isAdvancedExporting=false, bool showWarnings=false, KisPropertiesConfigurationSP exportConfiguration=0) |
| bool | exportDocumentSync (const QString &path, const QByteArray &mimeType, KisPropertiesConfigurationSP exportConfiguration=0) |
| bool | fileBatchMode () const |
| QPixmap | generatePreview (const QSize &size) |
| Generates a preview picture of the document. | |
| qreal | getAudioLevel () |
| QVector< QFileInfo > | getAudioTracks () const |
| QVector< StoryboardComment > | getStoryboardCommentsList () |
| returns the list of comments for the storyboard docker in the document | |
| StoryboardItemList | getStoryboardItemList () |
| returns the list of pointers to storyboard Items for the document | |
| KisGridConfig | gridConfig () const |
| const KisGuidesConfig & | guidesConfig () const |
| returns the guides data for this document. | |
| void | hackPreliminarySetImage (KisImageSP image) |
| KisImageWSP | image () const |
| bool | importDocument (const QString &path) |
| KisImportExportManager * | importExportManager () const |
| importExportManager gives access to the internal import/export manager | |
| bool | isAutoSaveActive () |
| bool | isAutosaving () const |
| bool | isInSaving () const |
| isInSaving shown if the document has any (background) saving process or not | |
| bool | isModified () const |
| bool | isNativeFormat (const QByteArray &mimeType) const |
| Checks whether a given mimeType can be handled natively. | |
| bool | isReadWrite () const |
| bool | isRecovered () const |
| bool | isSaving () const |
| QList< KoResourceLoadResult > | linkedDocumentResources () |
| linkedDocumentResources List returns all the resources linked to the document, such as palettes | |
| QString | linkedResourcesStorageId () const |
| bool | loadNativeFormat (const QString &file) |
| QString | localFilePath () const |
| KisDocument * | lockAndCloneForSaving () |
| try to clone the image. This method handles all the locking for you. If locking has failed, no cloning happens | |
| KisDocument * | lockAndCloneImpl (bool fetchResourcesFromLayers) |
| KisDocument * | lockAndCreateSnapshot () |
| QByteArray | mimeType () const |
| const KisMirrorAxisConfig & | mirrorAxisConfig () const |
| bool | newImage (const QString &name, qint32 width, qint32 height, const KoColorSpace *cs, const KoColor &bgColor, KisConfig::BackgroundStyle bgStyle, int numberOfLayers, const QString &imageDescription, const double imageResolution) |
| bool | openPath (const QString &path, OpenFlags flags=None) |
| openPath Open a Path | |
| QString | path () const |
| KisNodeSP | preActivatedNode () const |
| Private (const Private &rhs, KisDocument *_q) | |
| Private (KisDocument *_q) | |
| KisSharedPtr< KisReferenceImagesLayer > | referenceImagesLayer () const |
| void | removeAutoSaveFiles (const QString &autosaveBaseName, bool wasRecovered) |
| void | resetPath () |
| bool | save (bool showWarnings, KisPropertiesConfigurationSP exportConfiguration) |
| bool | saveAs (const QString &path, const QByteArray &mimeType, bool showWarnings, KisPropertiesConfigurationSP exportConfiguration=0) |
| KisImageSP | savingImage () const |
| savingImage provides a detached, shallow copy of the original image that must be used when saving. Any strokes in progress will not be applied to this image, so the result might be missing some data. On the other hand, it won't block. | |
| QByteArray | serializeToNativeByteArray () |
| serializeToNativeByteArray daves the document into a .kra file written to a memory-based byte-array | |
| void | setAssistants (const QList< KisPaintingAssistantSP > &value) |
| @replace the current list of assistants with | |
| void | setAssistantsGlobalColor (QColor color) |
| void | setAudioTracks (QVector< QFileInfo > f) |
| void | setAudioVolume (qreal level) |
| void | setAutoSaveActive (bool autoSaveIsActive) |
| void | setColorHistoryColors (const QList< KoColor > &colors) |
| void | setCurrentImage (KisImageSP image, bool forceInitialUpdate=true, KisNodeSP preActivatedNode=nullptr) |
| void | setEmergencyAutoSaveInterval () |
| void | setEmpty (bool empty=true) |
| Sets the document to empty. | |
| void | setErrorMessage (const QString &errMsg) |
| void | setFileBatchMode (const bool batchMode) |
| void | setGridConfig (const KisGridConfig &config) |
| void | setGuidesConfig (const KisGuidesConfig &data) |
| void | setImageAndInitIdleWatcher (KisImageSP _image) |
| void | setInfiniteAutoSaveInterval () |
| void | setLocalFilePath (const QString &localFilePath) |
| void | setMimeType (const QByteArray &mimeType) |
| Sets the mime type for the document. | |
| void | setMimeTypeAfterLoading (const QString &mimeType) |
| void | setMirrorAxisConfig (const KisMirrorAxisConfig &config) |
| void | setModified (bool _mod) |
| void | setNormalAutoSaveInterval () |
| void | setPaletteList (const QList< KoColorSetSP > &paletteList, bool emitSignal=false) |
| setPaletteList replaces the palettes in the document's local resource storage with the list of palettes passed to this function. It will then Q_EMIT sigPaletteListChanged with both the old and the new list, if emitSignal is true. | |
| void | setPath (const QString &path) |
| void | setPreActivatedNode (KisNodeSP activatedNode) |
| void | setReadWrite (bool readwrite=true) |
| Sets whether the document can be edited or is read only. | |
| void | setRecovered (bool value) |
| void | setReferenceImagesLayer (KisSharedPtr< KisReferenceImagesLayer > layer, bool updateImage) |
| void | setStoryboardCommentList (const QVector< StoryboardComment > &storyboardCommentList, bool emitSignal=false) |
| sets the list of comments for the storyboard docker in the document, emits empty signal if emitSignal is true. | |
| void | setStoryboardItemList (const StoryboardItemList &storyboardItemList, bool emitSignal=false) |
| sets the storyboardItemList in the document, emits empty signal if emitSignal is true. | |
| void | setUnit (const KoUnit &unit) |
| void | setWarningMessage (const QString &warningMsg) |
| KoShapeControllerBase * | shapeController () const |
| KoShapeLayer * | shapeForNode (KisNodeSP layer) const |
| void | syncDecorationsWrapperLayerState () |
| KUndo2Stack * | undoStack () |
| KoUnit | unit () const |
| void | updateDocumentMetadataOnSaving (const QString &filePath, const QByteArray &mimeType) |
| void | updateEditingTime (bool forceStoreElapsed) |
| void | uploadLinkedResourcesFromLayersToStorage () |
| void | waitForSavingToComplete () |
| QString | warningMessage () const |
| ~KisDocument () | |
| ~Private () | |
Static Public Member Functions | |
| static QDomDocument | createDomDocument (const QString &appName, const QString &tagName, const QString &version) |
| static QStringList | extraNativeMimeTypes () |
| static QByteArray | nativeFormatMimeType () |
Protected Member Functions | |
| KisDocument (bool addStorage=true) | |
| KisDocument (const KisDocument &rhs, bool addStorage) | |
KisDocument makes a deep copy of the document rhs. The caller must ensure that the image is properly locked and is in consistent state before asking for cloning. | |
Private Types | |
| enum | CopyPolicy { CONSTRUCT = 0 , REPLACE } |
Private Slots | |
| void | finishExportInBackground () |
| void | setImageModified () |
| void | setImageModifiedWithoutUndo () |
| void | slotAutoSave () |
| void | slotChildCompletedSavingInBackground (KisImportExportErrorCode status, const QString &errorMessage, const QString &warningMessage) |
| void | slotCompleteAutoSaving (const KritaUtils::ExportFileJob &job, KisImportExportErrorCode status, const QString &errorMessage, const QString &warningMessage) |
| void | slotCompleteSavingDocument (const KritaUtils::ExportFileJob &job, KisImportExportErrorCode status, const QString &errorMessage, const QString &warningMessage) |
| void | slotConfigChanged () |
| void | slotDocumentCloningCancelled () |
| void | slotImageRootChanged () |
| void | slotInitiateAsyncAutosaving (KisDocument *clonedDocument) |
| void | slotPerformIdleRoutines () |
| void | slotUndoStackCleanChanged (bool value) |
Private Member Functions | |
| void | copyFromDocumentImpl (const KisDocument &rhs, CopyPolicy policy) |
| bool | exportDocumentImpl (const KritaUtils::ExportFileJob &job, KisPropertiesConfigurationSP exportConfiguration, bool isAdvancedExporting=false) |
| QString | exportErrorToUserMessage (KisImportExportErrorCode status, const QString &errorMessage) |
| QString | generateAutoSaveFileName (const QString &path) const |
| KritaUtils::BackgroudSavingStartResult | initiateSavingInBackground (const QString actionName, const QObject *receiverObject, const char *receiverMethod, const KritaUtils::ExportFileJob &job, KisPropertiesConfigurationSP exportConfiguration, bool isAdvancedExporting=false) |
| KritaUtils::BackgroudSavingStartResult | initiateSavingInBackground (const QString actionName, const QObject *receiverObject, const char *receiverMethod, const KritaUtils::ExportFileJob &job, KisPropertiesConfigurationSP exportConfiguration, std::unique_ptr< KisDocument > &&optionalClonedDocument, bool isAdvancedExporting=false) |
| QString | newObjectName () |
| bool | openFile () |
| bool | openPathInternal (const QString &path) |
| QString | prettyPath () const |
| bool | resourceSavingFilter (const QString &path, const QByteArray &mimeType, KisPropertiesConfigurationSP exportConfiguration) |
| void | setAutoSaveDelay (int delay) |
| void | slotAutoSaveImpl (std::unique_ptr< KisDocument > &&optionalClonedDocument) |
| KisImportExportErrorCode | startExportInBackground (const QString &actionName, const QString &location, const QString &realLocation, const QByteArray &mimeType, bool showWarnings, KisPropertiesConfigurationSP exportConfiguration, bool isAdvancedExporting=false) |
Private Member Functions inherited from Private | |
| Private (KisCanvas2 *c) | |
Private Attributes | |
| Private *const | d |
Private Attributes inherited from Private | |
| KisCanvas2 * | canvas |
| int | displayedFrame |
| int | intendedFrame |
Friends | |
| class | KisPart |
| class | SafeSavingLocker |
KisDocument contains the image and keeps track of loading, modification, undo stack and saving.
Definition at line 296 of file KisDocument.cpp.
|
private |
| Enumerator | |
|---|---|
| CONSTRUCT | we are copy-constructing a new KisDocument |
| REPLACE | we are replacing the current KisDocument with another |
Definition at line 744 of file KisDocument.h.
| Enumerator | |
|---|---|
| None | |
| DontAddToRecent | |
| RecoveryFile | |
Definition at line 80 of file KisDocument.h.
|
inline |
Definition at line 339 of file KisDocument.cpp.
|
explicitprotected |
Definition at line 606 of file KisDocument.cpp.
References KisResourceLocator::addStorage(), KisConfigNotifier::instance(), KisMacosSecurityBookmarkManager::instance(), KisResourceLocator::instance(), KisResourceServerProvider::instance(), and KisMacosSecurityBookmarkManager::isSandboxed().
|
explicitprotected |
KisDocument makes a deep copy of the document rhs. The caller must ensure that the image is properly locked and is in consistent state before asking for cloning.
| rhs | the source document to copy from |
Definition at line 643 of file KisDocument.cpp.
References KisResourceLocator::addStorage(), CONSTRUCT, copyFromDocumentImpl(), d, and KisResourceLocator::instance().
| KisDocument::~KisDocument | ( | ) |
Destructor.
The destructor does not delete any attached KisView objects and it does not delete the attached widget as returned by widget().
Push a timebomb, which will try to release the memory after the document has been deleted
WARNING: We should wait for all the internal image jobs to finish before entering KisImage's destructor. The problem is, while execution of KisImage::~KisImage, all the weak shared pointers pointing to the image enter an inconsistent state(!). The shared counter is already zero and destruction has started, but the weak reference doesn't know about it, because KisShared::~KisShared hasn't been executed yet. So all the threads running in background and having weak pointers will enter the KisImage's destructor as well.
Definition at line 656 of file KisDocument.cpp.
References KisPaintDevice::createMemoryReleaseObject(), d, KisResourceLocator::instance(), KisWeakSharedPtr< T >::isValid(), KIS_SAFE_ASSERT_RECOVER_NOOP, KisResourceLocator::removeStorage(), and waitForSavingToComplete().
| QList< KisPaintingAssistantSP > KisDocument::assistants | ( | ) | const |
| QColor KisDocument::assistantsGlobalColor | ( | ) |
Definition at line 2940 of file KisDocument.cpp.
References d.
| void KisDocument::autoSaveOnPause | ( | ) |
Start saving when android activity is pushed to the background.
Definition at line 2113 of file KisDocument.cpp.
References d, dbgAndroid, exportDocumentSync(), generateAutoSaveFileName(), localFilePath(), and nativeFormatMimeType().
|
signal |
| QString KisDocument::caption | ( | ) | const |
Caption is of the form "[title] - [path]", built out of the document info (title) and pretty-printed document Path. If the title is not present, only the Path it returned.
Definition at line 2228 of file KisDocument.cpp.
References path().
|
signal |
Emitted e.g. at the end of a save operation This is emitted by KisDocument and used by KisView to clear the statusbar message
| void KisDocument::clearUndoHistory | ( | ) |
Definition at line 2376 of file KisDocument.cpp.
References d.
| KisDocument * KisDocument::clone | ( | bool | addStorage = false | ) |
creates a clone of the document and returns it. Please make sure that you hold all the necessary locks on the image before asking for a clone!
Definition at line 736 of file KisDocument.cpp.
References KisDocument().
| bool KisDocument::closePath | ( | bool | promptToSave = true | ) |
Definition at line 2574 of file KisDocument.cpp.
References d, KisView::document, KisPart::instance(), isModified(), isReadWrite(), and KisView::queryClose().
Return the per-document history of the last-used colors, from the newest to oldest.
The actual values are stored in the model returned by colorHistoryModel()
Definition at line 2963 of file KisDocument.cpp.
References d.
| KisUniqueColorSet * KisDocument::colorHistoryModel | ( | ) |
Return an internal model for managing the last used colors of the document. The model can be used to manipulate the colors and subscribe to updates.
|
signal |
| void KisDocument::copyFrom | ( | const Private & | rhs, |
| KisDocument * | q ) |
| void KisDocument::copyFromDocument | ( | const KisDocument & | rhs | ) |
Definition at line 1253 of file KisDocument.cpp.
References copyFromDocumentImpl(), and REPLACE.
|
private |
Definition at line 1258 of file KisDocument.cpp.
References KisImage::clone(), d, image, KisConfigNotifier::instance(), KisLayerUtils::recursiveApplyNodes(), REPLACE, setCurrentImage(), slotAutoSave(), slotConfigChanged(), and slotUndoStackCleanChanged().
| void KisDocument::copyFromImpl | ( | const Private & | rhs, |
| KisDocument * | q, | ||
| KisDocument::CopyPolicy | policy ) |
| KoDocumentInfoDlg * KisDocument::createDocumentInfoDialog | ( | QWidget * | parent, |
| KoDocumentInfo * | docInfo ) const |
Definition at line 2559 of file KisDocument.cpp.
References docInfo.
|
static |
Return a correctly created QDomDocument for an old (1.3-style) Krita document, including processing instruction, complete DOCTYPE tag (with systemId and publicId), and root element. This static method can be used e.g. by filters.
| appName | the app's instance name, e.g. words, kspread, kpresenter etc. |
| tagName | the name of the tag for the root element, e.g. DOC for words/kpresenter. |
| version | the DTD version (usually the application's version). |
Definition at line 2249 of file KisDocument.cpp.
| QDomDocument KisDocument::createDomDocument | ( | const QString & | tagName, |
| const QString & | version ) const |
Return a correctly created QDomDocument for this KisDocument, including processing instruction, complete DOCTYPE tag (with systemId and publicId), and root element.
| tagName | the name of the tag for the root element |
| version | the DTD version (usually the application's version). |
Definition at line 2243 of file KisDocument.cpp.
References createDomDocument().
| KisUndoStore * KisDocument::createUndoStore | ( | ) |
Definition at line 2920 of file KisDocument.cpp.
| QRectF KisDocument::documentBounds | ( | ) | const |
Return the bounding box of the image and associated elements (e.g. reference images)
Definition at line 2945 of file KisDocument.cpp.
References KisReferenceImagesLayer::boundingImageRect(), bounds, d, and referenceImagesLayer().
| KoDocumentInfo * KisDocument::documentInfo | ( | ) | const |
Definition at line 1847 of file KisDocument.cpp.
References d.
| QString KisDocument::embeddedResourcesStorageId | ( | ) | const |
Temporary storage for the resources that are embedded into other resources used by the document. E.g. patterns embedded into layer styles.
Definition at line 726 of file KisDocument.cpp.
References d.
| QString KisDocument::errorMessage | ( | ) | const |
Return the last error message. Usually KisDocument takes care of showing it; this method is mostly provided for non-interactive use.
Definition at line 2275 of file KisDocument.cpp.
References d.
| bool KisDocument::exportDocument | ( | const QString & | path, |
| const QByteArray & | mimeType, | ||
| bool | isAdvancedExporting = false, | ||
| bool | showWarnings = false, | ||
| KisPropertiesConfigurationSP | exportConfiguration = 0 ) |
Saves the document as path without changing the state of the KisDocument (Path, modified flag etc.). Call this instead of saveAs() to implement KisMainWindow's File --> Export feature. Make sure to provide two separate bool parameters otherwise it will mix them
Definition at line 931 of file KisDocument.cpp.
References d, exportDocumentImpl(), KisUsageLogger::log(), and mimeType.
|
private |
Definition at line 741 of file KisDocument.cpp.
References KritaUtils::AnotherSavingInProgress, KisAutoSaveRecoveryDialog::autoSaveLocation(), KisConfig::backupFile(), ImportExportCodes::Busy, ImportExportCodes::Cancelled, KritaUtils::Cancelled, errorMessage(), KisImportExportErrorCode::errorMessage(), ImportExportCodes::ErrorWhileWriting, ImportExportCodes::Failure, KritaUtils::Failure, ImportExportCodes::FileFormatNotSupported, KritaUtils::ExportFileJob::filePath, KritaUtils::ExportFileJob::flags, KritaUtils::ImageLockFailure, initiateSavingInBackground(), KisMacosSecurityBookmarkManager::instance(), KisMacosSecurityBookmarkManager::isSandboxed(), KisUsageLogger::log(), KritaUtils::ExportFileJob::mimeType, ImportExportCodes::NoAccessToWrite, KisBackup::numberedBackupFile(), KisMacosSecurityBookmarkManager::parentDirHasPermissions(), KisConfig::readEntry(), KritaUtils::SaveIsExporting, KisBackup::simpleBackupFile(), slotCompleteSavingDocument(), and KritaUtils::Success.
| bool KisDocument::exportDocumentSync | ( | const QString & | path, |
| const QByteArray & | mimeType, | ||
| KisPropertiesConfigurationSP | exportConfiguration = 0 ) |
Exports he document is a synchronous way. The caller must ensure that the image is not accessed by any other actors, because the exporting happens without holding the image lock.
The caller guarantees that no one else uses the document (usually, it is a temporary document created specifically for exporting), so we don't need to copy or lock the document. Instead we should just ensure the barrier lock is synced and then released.
Definition at line 1339 of file KisDocument.cpp.
References d, exportDocument(), KisImportExportErrorCode::isOk(), and mimeType.
|
private |
Definition at line 2930 of file KisDocument.cpp.
References errorMessage(), and KisImportExportErrorCode::errorMessage().
|
inlinestatic |
Returns a list of the mimeTypes considered "native", i.e. which can be saved by KisDocument without a filter, in addition to the main one
Definition at line 178 of file KisDocument.h.
References KIS_MIME_TYPE.
| bool KisDocument::fileBatchMode | ( | ) | const |
Definition at line 1148 of file KisDocument.cpp.
References d.
|
privateslot |
Definition at line 1763 of file KisDocument.cpp.
References d, errorMessage(), KisImportExportErrorCode::errorMessage(), ImportExportCodes::Failure, ImportExportCodes::InternalError, KIS_SAFE_ASSERT_RECOVER, sigBackgroundSavingFinished(), and warningMessage().
|
private |
Definition at line 1900 of file KisDocument.cpp.
References KisAutoSaveRecoveryDialog::autoSaveLocation(), and KisConfig::readEntry().
| QPixmap KisDocument::generatePreview | ( | const QSize & | size | ) |
Generates a preview picture of the document.
Definition at line 1857 of file KisDocument.cpp.
References KisImage::bounds(), bounds, KisImage::convertToQImage(), KisCanvasWidgetBase::createCheckersImage(), d, and image.
| qreal KisDocument::getAudioLevel | ( | ) |
Definition at line 2513 of file KisDocument.cpp.
References d.
| QVector< QFileInfo > KisDocument::getAudioTracks | ( | ) | const |
Definition at line 2497 of file KisDocument.cpp.
References d.
| QVector< StoryboardComment > KisDocument::getStoryboardCommentsList | ( | ) |
returns the list of comments for the storyboard docker in the document
Definition at line 2484 of file KisDocument.cpp.
References d.
| StoryboardItemList KisDocument::getStoryboardItemList | ( | ) |
returns the list of pointers to storyboard Items for the document
Definition at line 2471 of file KisDocument.cpp.
References d.
| KisGridConfig KisDocument::gridConfig | ( | ) | const |
| const KisGuidesConfig & KisDocument::guidesConfig | ( | ) | const |
returns the guides data for this document.
| void KisDocument::hackPreliminarySetImage | ( | KisImageSP | image | ) |
Set the image of the document preliminary, before the document has completed loading. Some of the document items (shapes) may want to access image properties (bounds and resolution), so we should provide it to them even before the entire image is loaded.
Right now, the only use by KoShapeRegistry::createShapeFromOdf(), remove after it is deprecated.
Definition at line 2897 of file KisDocument.cpp.
References d, image, and KIS_SAFE_ASSERT_RECOVER_RETURN.
| KisImageWSP KisDocument::image | ( | ) | const |
| bool KisDocument::importDocument | ( | const QString & | path | ) |
Opens the document given by path, without storing the Path in the KisDocument. Call this instead of openPath() to implement KisMainWindow's File --> Import feature.
Definition at line 1943 of file KisDocument.cpp.
References dbgUI, openPath(), and resetPath().
| KisImportExportManager * KisDocument::importExportManager | ( | ) | const |
importExportManager gives access to the internal import/export manager
|
private |
Definition at line 1366 of file KisDocument.cpp.
References initiateSavingInBackground().
|
private |
This lock will later release() when we start the background thread, it means that the ownership is transferred to the background thread
From now on no return statements are allowed, even inside asserts, since the ownership over the saving mutex has already been passed to the background thread.
The cancellation process should go through slotChildCompletedSavingInBackground(), which will unlock the mutex itself.
Definition at line 1375 of file KisDocument.cpp.
References KritaUtils::AnotherSavingInProgress, KisViewManager::blockUntilOperationsFinishedForced(), KritaUtils::Cancelled, KisPart::currentMainwindow(), d, KritaUtils::Failure, KritaUtils::ExportFileJob::filePath, KritaUtils::ExportFileJob::flags, KisLayerUtils::forceAllDelayedNodesUpdate(), KisLayerUtils::hasDelayedNodeWithUpdates(), KisBaseNode::image, image, KritaUtils::ImageLockFailure, KisPart::instance(), KisImportExportErrorCode::isCancelled(), KisImportExportErrorCode::isOk(), KritaUtils::ExportFileJob::isValid(), KIS_ASSERT_RECOVER_RETURN_VALUE, KIS_SAFE_ASSERT_RECOVER, lockAndCloneForSaving(), KritaUtils::ExportFileJob::mimeType, KisNodeFacade::root, KritaUtils::SaveInAutosaveMode, KritaUtils::SaveShowWarnings, sigBackgroundSavingFinished(), sigCompleteBackgroundSaving(), slotChildCompletedSavingInBackground(), KritaUtils::Success, KisConfig::trimKra(), and KisMainWindow::viewManager.
| bool KisDocument::isAutoSaveActive | ( | ) |
Indicate if autosave is active or inactive
the value is independent of auto save delay
Definition at line 1842 of file KisDocument.cpp.
References d.
| bool KisDocument::isAutosaving | ( | ) | const |
| bool KisDocument::isInSaving | ( | ) | const |
isInSaving shown if the document has any (background) saving process or not
| bool KisDocument::isModified | ( | ) | const |
Returns true if this document or any of its internal child documents are modified.
Definition at line 1852 of file KisDocument.cpp.
References d.
| bool KisDocument::isNativeFormat | ( | const QByteArray & | mimeType | ) | const |
Checks whether a given mimeType can be handled natively.
Definition at line 2263 of file KisDocument.cpp.
References extraNativeMimeTypes(), mimeType, and nativeFormatMimeType().
| bool KisDocument::isReadWrite | ( | ) | const |
Definition at line 2564 of file KisDocument.cpp.
References d.
| bool KisDocument::isRecovered | ( | ) | const |
| bool KisDocument::isSaving | ( | ) | const |
Definition at line 2761 of file KisDocument.cpp.
References d.
| QList< KoResourceLoadResult > KisDocument::linkedDocumentResources | ( | ) |
linkedDocumentResources List returns all the resources linked to the document, such as palettes
In some cases (e.g. when the document is temporary), the underlying document storage will not be registered in the resource system, so we cannot get fully initialized resources from it (resourceId(), active(), md5() and storageLocation() fields will be uninitialized). Therefore we just return KoEmbeddedResource which is suitable for saving this data into hard drive.
The returned KoResourceLoadResult object can either be in EmbeddedResource or FailedLink state. The former means the resource has been prepared for embedding, the latter means there was some issue with serializing the resource. In the latter case the called should check result.signature() to find out which resource has failed.
NOTE: the returned result can NOT have ExistingResource state!
Definition at line 2399 of file KisDocument.cpp.
References d, KoMD5Generator::generateHash(), and KisResourceLoaderRegistry::instance().
| QString KisDocument::linkedResourcesStorageId | ( | ) | const |
Persistent storage for the resources that are linked but the resources embedded in the document. These resources are not embedded into their own container resource, so they should be stored by the document
All these resources are saved into the document itself and loaded alongside the document.
Definition at line 731 of file KisDocument.cpp.
References d.
| bool KisDocument::loadNativeFormat | ( | const QString & | file | ) |
Loads a document in the native format from a given Path. Reimplement if your native format isn't XML.
| file | the file to load - usually KReadOnlyPart::m_file or the result of a filter |
Definition at line 2141 of file KisDocument.cpp.
References openPath().
| QString KisDocument::localFilePath | ( | ) | const |
| KisDocument * KisDocument::lockAndCloneForSaving | ( | ) |
try to clone the image. This method handles all the locking for you. If locking has failed, no cloning happens
Definition at line 1243 of file KisDocument.cpp.
References d.
| KisDocument * KisDocument::lockAndCloneImpl | ( | bool | fetchResourcesFromLayers | ) |
| KisDocument * KisDocument::lockAndCreateSnapshot | ( | ) |
Definition at line 1248 of file KisDocument.cpp.
References d.
| QByteArray KisDocument::mimeType | ( | ) | const |
Returns the actual mimeType of the document
| const KisMirrorAxisConfig & KisDocument::mirrorAxisConfig | ( | ) | const |
|
signal |
Emitted when the document is modified
|
inlinestatic |
To be preferred when a document exists. It is fast when calling it multiple times since it caches the result that readNativeFormatMimeType() delivers. This comes from the X-KDE-NativeMimeType key in the .desktop file.
Definition at line 171 of file KisDocument.h.
References KIS_MIME_TYPE.
| bool KisDocument::newImage | ( | const QString & | name, |
| qint32 | width, | ||
| qint32 | height, | ||
| const KoColorSpace * | cs, | ||
| const KoColor & | bgColor, | ||
| KisConfig::BackgroundStyle | bgStyle, | ||
| int | numberOfLayers, | ||
| const QString & | imageDescription, | ||
| const double | imageResolution ) |
Create a new image that has this document as a parent and replace the current image with this image.
Preinitialize color history for new documents when possible
Definition at line 2666 of file KisDocument.cpp.
References KisNodeFacade::addNode(), KisImage::assignImageProfile(), KisConfig::autoPinLayersToTimeline(), KisImage::bounds(), KisViewManager::canvasResourceProvider(), KoColorSpace::colorDepthId(), KisCanvasResourceProvider::colorHistoryColors(), KoColorSpace::colorModelId(), KisImage::colorSpace(), createUndoStore(), KisPart::currentMainwindow(), d, KisSharedPtr< T >::data(), KisBaseProcessor::defaultConfiguration(), documentInfo(), KisConfig::FILL_LAYER, KoGenericRegistry< T >::get(), KisImage::globalSelection(), image, KisGeneratorRegistry::instance(), KisGlobalResourcesInterface::instance(), KisPart::instance(), KisUsageLogger::log(), KoID::name(), KoColorProfile::name, KisImage::nextLayerName(), OPACITY_OPAQUE_U8, KoColor::opacityU8(), KisBaseNode::paintDevice(), KoColorSpace::profile(), KisConfig::RASTER_LAYER, KisNodeFacade::root, KisImage::rootLayer(), KoDocumentInfo::setAboutInfo(), setColorHistoryColors(), setCurrentImage(), KisPaintDevice::setDefaultPixel(), KisImage::setDefaultProjectionColor(), KisNode::setDirty(), setImageModified(), setImageModifiedWithoutUndo(), KoColor::setOpacity(), KisBaseNode::setOpacity(), KisBaseNode::setPinnedToTimeline(), KisImage::setResolution(), KisBaseNode::setUserLocked(), KoColor::toQColor(), KisMainWindow::viewManager, and KisImage::waitForDone().
|
private |
|
private |
Loads a document
Applies a filter if necessary, and calls loadNativeFormat in any case You should not have to reimplement, except for very special cases.
NOTE: this method also creates a new KisView instance!
This method is called from the KReadOnlyPart::openPath method.
Definition at line 2038 of file KisDocument.cpp.
References KUndo2QStack::clear(), KisViewManager::createUnthreadedUpdater(), KisPart::currentMainwindow(), d, dbgUI, errorMessage(), KisImportExportErrorCode::errorMessage(), fileBatchMode(), KisPart::instance(), KisImportExportErrorCode::isOk(), localFilePath(), KisUsageLogger::log(), mimeType, KisMimeDatabase::mimeTypeForFile(), prettyPath(), setMimeTypeAfterLoading(), setPath(), sigLoadingFinished(), undoStack, KisMainWindow::viewManager, and warningMessage().
| bool KisDocument::openPath | ( | const QString & | path, |
| OpenFlags | flags = None ) |
openPath Open a Path
| path | Path to file |
| flags | Control specific behavior |
Definition at line 1963 of file KisDocument.cpp.
References KisPart::addRecentURLToAllMainWindows(), d, dbgUI, DontAddToRecent, fileBatchMode(), generateAutoSaveFileName(), KisApplication::hideSplashScreen(), KisPart::instance(), KisUsageLogger::log(), KisRecoverNamedAutosaveDialog::OpenAutosave, KisRecoverNamedAutosaveDialog::OpenMainFile, openPathInternal(), path(), RecoveryFile, setLocalFilePath(), setModified(), setPath(), setReadWrite(), and setRecovered().
|
private |
Definition at line 2620 of file KisDocument.cpp.
References canceled(), closePath(), completed(), d, mimeType, KisMimeDatabase::mimeTypeForFile(), openFile(), and setPath().
| QString KisDocument::path | ( | ) | const |
| KisNodeSP KisDocument::preActivatedNode | ( | ) | const |
|
private |
Definition at line 2218 of file KisDocument.cpp.
References path().
|
inline |
Definition at line 324 of file KisDocument.cpp.
|
inline |
Definition at line 299 of file KisDocument.cpp.
References KoUnit::Centimeter, and KoUnit::Inch.
| KisReferenceImagesLayerSP KisDocument::referenceImagesLayer | ( | ) | const |
Get existing reference images layer or null if none exists.
Definition at line 2802 of file KisDocument.cpp.
References d.
| void KisDocument::removeAutoSaveFiles | ( | const QString & | autosaveBaseName, |
| bool | wasRecovered ) |
Performs a cleanup of unneeded backup files
Definition at line 2291 of file KisDocument.cpp.
References generateAutoSaveFileName(), and KisUsageLogger::log().
| void KisDocument::resetPath | ( | ) |
Sets the document Path to empty Path After using loadNativeFormat on a template, one wants to set the path to QString()
Definition at line 2554 of file KisDocument.cpp.
References setLocalFilePath(), and setPath().
|
private |
Checks whether we are saving a resource we've been editing, and if so, uses the resource server to update the resource.
Definition at line 1580 of file KisDocument.cpp.
References d, KisImportExportManager::Export, exportDocumentSync(), KisResourceLocator::filePathForResource(), KisImportExportManager::filterForMimeType(), KisResourceCacheDb::getResourceIdFromVersionedFilename(), KisResourceModel::importResourceFile(), KisGlobalResourcesInterface::instance(), KisResourceLoaderRegistry::instance(), KisResourceLocator::instance(), KIS_SAFE_ASSERT_RECOVER_RETURN_VALUE, mimeType, nativeFormatMimeType(), KisResourceModel::resourceForId(), KisResourceModel::setResourceFilter(), KisAbstractResourceFilterInterface::ShowAllResources, and KisResourceModel::updateResource().
| bool KisDocument::save | ( | bool | showWarnings, |
| KisPropertiesConfigurationSP | exportConfiguration ) |
Definition at line 978 of file KisDocument.cpp.
| bool KisDocument::saveAs | ( | const QString & | path, |
| const QByteArray & | mimeType, | ||
| bool | showWarnings, | ||
| KisPropertiesConfigurationSP | exportConfiguration = 0 ) |
Definition at line 954 of file KisDocument.cpp.
References d, exportDocumentImpl(), KisUsageLogger::log(), mimeType, path(), and resourceSavingFilter().
| KisImageSP KisDocument::savingImage | ( | ) | const |
savingImage provides a detached, shallow copy of the original image that must be used when saving. Any strokes in progress will not be applied to this image, so the result might be missing some data. On the other hand, it won't block.
| QByteArray KisDocument::serializeToNativeByteArray | ( | ) |
serializeToNativeByteArray daves the document into a .kra file written to a memory-based byte-array
Definition at line 983 of file KisDocument.cpp.
References d, KisImportExportManager::Export, KisImportExportManager::filterForMimeType(), and nativeFormatMimeType().
| void KisDocument::setAssistants | ( | const QList< KisPaintingAssistantSP > & | value | ) |
@replace the current list of assistants with
| value |
Definition at line 2793 of file KisDocument.cpp.
References d, sigAssistantsChanged(), and value().
| void KisDocument::setAssistantsGlobalColor | ( | QColor | color | ) |
Definition at line 2935 of file KisDocument.cpp.
References d.
Definition at line 2501 of file KisDocument.cpp.
References d, and sigAudioTracksChanged().
| void KisDocument::setAudioVolume | ( | qreal | level | ) |
Definition at line 2507 of file KisDocument.cpp.
References d, and sigAudioLevelChanged().
| void KisDocument::setAutoSaveActive | ( | bool | autoSaveIsActive | ) |
Allow to activate or deactivate autosave on document, independently of auto save delay
the value is independent of auto save delay
Definition at line 1805 of file KisDocument.cpp.
References autoSaveActive, d, and setNormalAutoSaveInterval().
|
private |
Activate/deactivate/configure the autosave feature.
| delay | in seconds, 0 to disable |
Definition at line 1815 of file KisDocument.cpp.
References d, and isReadWrite().
Replaces the per-document history of the last-used colors, from the newest to oldest.
The actual values are stored in the model returned by colorHistoryModel()
Definition at line 2958 of file KisDocument.cpp.
References d.
| void KisDocument::setCurrentImage | ( | KisImageSP | image, |
| bool | forceInitialUpdate = true, | ||
| KisNodeSP | preActivatedNode = nullptr ) |
Set the current image to the specified image and turn undo on.
Definition at line 2867 of file KisDocument.cpp.
References KisAlgebra2D::absoluteToRelative(), KisImage::bounds(), d, image, preActivatedNode, KisResourceStorage::s_meta_name, setImageModified(), setImageModifiedWithoutUndo(), setModified(), and slotImageRootChanged().
| void KisDocument::setEmergencyAutoSaveInterval | ( | ) |
Set emergency interval that autosave uses when the image is busy, by default it is 10 sec
Definition at line 1830 of file KisDocument.cpp.
References d, and setAutoSaveDelay().
| void KisDocument::setEmpty | ( | bool | empty = true | ) |
Sets the document to empty.
Used after loading a template (which is not empty, but not the user's input).
| void KisDocument::setErrorMessage | ( | const QString & | errMsg | ) |
Sets the error message to be shown to the user (use i18n()!) when loading or saving fails. If you asked the user about something and they chose "Cancel",
Definition at line 2270 of file KisDocument.cpp.
References d.
| void KisDocument::setFileBatchMode | ( | const bool | batchMode | ) |
| void KisDocument::setGridConfig | ( | const KisGridConfig & | config | ) |
Definition at line 2386 of file KisDocument.cpp.
References d, KisConfig::setDefaultGridSpacing(), sigGridConfigChanged(), and KisGridConfig::spacing().
| void KisDocument::setGuidesConfig | ( | const KisGuidesConfig & | data | ) |
Definition at line 2523 of file KisDocument.cpp.
References d, and sigGuidesConfigChanged().
|
inline |
Definition at line 432 of file KisDocument.cpp.
References KisIdleWatcher::setTrackedImage().
|
privateslot |
Definition at line 2907 of file KisDocument.cpp.
References d, and setModified().
|
privateslot |
Definition at line 2913 of file KisDocument.cpp.
References d, and setImageModified().
| void KisDocument::setInfiniteAutoSaveInterval | ( | ) |
| void KisDocument::setLocalFilePath | ( | const QString & | localFilePath | ) |
Definition at line 2615 of file KisDocument.cpp.
References d, and localFilePath().
| void KisDocument::setMimeType | ( | const QByteArray & | mimeType | ) |
| void KisDocument::setMimeTypeAfterLoading | ( | const QString & | mimeType | ) |
| void KisDocument::setMirrorAxisConfig | ( | const KisMirrorAxisConfig & | config | ) |
Definition at line 2538 of file KisDocument.cpp.
References KisAlgebra2D::absoluteToRelative(), d, setModified(), and sigMirrorAxisConfigChanged().
| void KisDocument::setModified | ( | bool | _mod | ) |
Sets the modified flag on the document. This means that it has to be saved or not before deleting it.
1) Ignore setModified calls due to autosaving 2) When closing a document, QUndoStack emits a lot of modified signals, when clearing itself, so we should ignore all of them.
Definition at line 2146 of file KisDocument.cpp.
References d, documentInfo(), isModified(), modified, setNormalAutoSaveInterval(), updateEditingTime(), and KoDocumentInfo::updateParameters().
| void KisDocument::setNormalAutoSaveInterval | ( | ) |
Set standard autosave interval that is set by a config file
Definition at line 1824 of file KisDocument.cpp.
References d, and setAutoSaveDelay().
| void KisDocument::setPaletteList | ( | const QList< KoColorSetSP > & | paletteList, |
| bool | emitSignal = false ) |
setPaletteList replaces the palettes in the document's local resource storage with the list of palettes passed to this function. It will then Q_EMIT sigPaletteListChanged with both the old and the new list, if emitSignal is true.
Definition at line 2436 of file KisDocument.cpp.
References KisResourceModel::addResource(), d, KisResourceModel::indexForResource(), ResourceType::Palettes, KisAbstractResourceModel::setResourceInactive(), sigPaletteListChanged(), and KisResourceModel::updateResource().
| void KisDocument::setPath | ( | const QString & | path | ) |
Definition at line 2598 of file KisDocument.cpp.
References d, path(), and sigPathChanged().
Set the list of nodes that was marked as currently active. Used only for saving loading. Never use it for tools or processing.
Definition at line 2846 of file KisDocument.cpp.
References d.
| void KisDocument::setReadWrite | ( | bool | readwrite = true | ) |
Sets whether the document can be edited or is read only.
This recursively applied to all child documents and KisView::updateReadWrite is called for every attached view.
Definition at line 1794 of file KisDocument.cpp.
References d, readwrite, and sigReadWriteChanged().
| void KisDocument::setRecovered | ( | bool | value | ) |
Definition at line 2185 of file KisDocument.cpp.
References d, sigRecoveredChanged(), and value().
| void KisDocument::setReferenceImagesLayer | ( | KisSharedPtr< KisReferenceImagesLayer > | layer, |
| bool | updateImage ) |
Definition at line 2812 of file KisDocument.cpp.
References d, referenceImagesLayer(), sigReferenceImagesChanged(), and sigReferenceImagesLayerChanged().
| void KisDocument::setStoryboardCommentList | ( | const QVector< StoryboardComment > & | storyboardCommentList, |
| bool | emitSignal = false ) |
sets the list of comments for the storyboard docker in the document, emits empty signal if emitSignal is true.
Definition at line 2489 of file KisDocument.cpp.
References d, and sigStoryboardCommentListChanged().
| void KisDocument::setStoryboardItemList | ( | const StoryboardItemList & | storyboardItemList, |
| bool | emitSignal = false ) |
sets the storyboardItemList in the document, emits empty signal if emitSignal is true.
Definition at line 2476 of file KisDocument.cpp.
References d, and sigStoryboardItemListChanged().
Sets the unit used to display all measures/distances.
Definition at line 2328 of file KisDocument.cpp.
References d, unit, and unitChanged().
| void KisDocument::setWarningMessage | ( | const QString & | warningMsg | ) |
Sets the warning message to be shown to the user (use i18n()!) when loading or saving fails.
Definition at line 2280 of file KisDocument.cpp.
References d.
| KoShapeControllerBase * KisDocument::shapeController | ( | ) | const |
The shape controller matches internal krita image layers with the flake shape hierarchy.
| KoShapeLayer * KisDocument::shapeForNode | ( | KisNodeSP | layer | ) | const |
Definition at line 2783 of file KisDocument.cpp.
References d.
|
signal |
|
signal |
|
signal |
|
signal |
|
signal |
|
signal |
|
signal |
|
signal |
|
signal |
|
signal |
Emitted when the palette list has changed. The pointers in oldPaletteList are to be deleted by the resource server.
|
signal |
|
signal |
|
signal |
|
signal |
|
signal |
|
signal |
|
signal |
|
signal |
|
privateslot |
Definition at line 1662 of file KisDocument.cpp.
References slotAutoSaveImpl().
|
private |
Definition at line 1537 of file KisDocument.cpp.
References d, KritaUtils::Failure, generateAutoSaveFileName(), initiateSavingInBackground(), localFilePath(), KisUsageLogger::log(), nativeFormatMimeType(), KritaUtils::SaveInAutosaveMode, KritaUtils::SaveIsExporting, setEmergencyAutoSaveInterval(), setInfiniteAutoSaveInterval(), slotCompleteAutoSaving(), slotDocumentCloningCancelled(), slotInitiateAsyncAutosaving(), statusBarMessage(), and KritaUtils::Success.
|
privateslot |
Take back the ownership of the saving mutex and make sure it well be released whatever the result of executing this function will be, even if it asserts.
Definition at line 1497 of file KisDocument.cpp.
References d, errorMessage(), KritaUtils::ExportFileJob::filePath, KisImportExportErrorCode::isOk(), isSaving(), KIS_ASSERT_RECOVER_RETURN, KisUsageLogger::log(), KritaUtils::ExportFileJob::mimeType, KritaUtils::SaveInAutosaveMode, sigCompleteBackgroundSaving(), and warningMessage().
|
privateslot |
Definition at line 1689 of file KisDocument.cpp.
References KisConfig::autoSaveInterval(), d, errorMessage(), exportErrorToUserMessage(), KritaUtils::ExportFileJob::filePath, KisImportExportErrorCode::isOk(), setEmergencyAutoSaveInterval(), setNormalAutoSaveInterval(), statusBarMessage(), and warningMessage().
|
privateslot |
Definition at line 1045 of file KisDocument.cpp.
References completed(), d, errorMessage(), KisImportExportErrorCode::errorMessage(), fileBatchMode(), KritaUtils::ExportFileJob::filePath, KritaUtils::ExportFileJob::flags, KisImportExportErrorCode::isCancelled(), KisImportExportErrorCode::isOk(), isRecovered, localFilePath(), KritaUtils::ExportFileJob::mimeType, removeAutoSaveFiles(), KritaUtils::SaveIsExporting, sigSavingFinished(), statusBarMessage(), and warningMessage().
|
privateslot |
Definition at line 2351 of file KisDocument.cpp.
References KisConfig::autoSaveInterval(), KisConfig::cumulativeUndoData(), d, setImageModifiedWithoutUndo(), setNormalAutoSaveInterval(), KisConfig::undoStackLimit(), and KisConfig::useCumulativeUndoRedo().
|
privateslot |
Definition at line 1672 of file KisDocument.cpp.
References setEmergencyAutoSaveInterval().
|
privateslot |
Definition at line 2371 of file KisDocument.cpp.
References d.
|
privateslot |
Definition at line 1667 of file KisDocument.cpp.
References slotAutoSaveImpl().
|
privateslot |
TODO: automatic purging is disabled for now: it modifies data managers without creating a transaction, which breaks undo.
Definition at line 1677 of file KisDocument.cpp.
References d.
|
privateslot |
Definition at line 2346 of file KisDocument.cpp.
References d, setModified(), and value().
|
private |
Definition at line 1717 of file KisDocument.cpp.
References KisViewManager::createThreadedUpdater(), KisPart::currentMainwindow(), d, KisImportExportErrorCode::errorMessage(), finishExportInBackground(), KisPart::instance(), KisImportExportErrorCode::isOk(), mimeType, ImportExportCodes::OK, sigBackgroundSavingFinished(), and KisMainWindow::viewManager.
|
signal |
Emitted e.g. at the beginning of a save operation This is emitted by KisDocument and used by KisView to display a statusbar message
| void KisDocument::syncDecorationsWrapperLayerState | ( | ) |
| KUndo2Stack * KisDocument::undoStack | ( | ) |
Returns the global undo stack
| KoUnit KisDocument::unit | ( | ) | const |
Returns the unit used to display all measures/distances.
This signal is emitted when the unit is changed by setUnit(). It is common to connect views to it, in order to change the displayed units (e.g. in the rulers)
| void KisDocument::updateDocumentMetadataOnSaving | ( | const QString & | filePath, |
| const QByteArray & | mimeType ) |
| void KisDocument::updateEditingTime | ( | bool | forceStoreElapsed | ) |
Definition at line 2201 of file KisDocument.cpp.
References d.
| void KisDocument::uploadLinkedResourcesFromLayersToStorage | ( | ) |
| void KisDocument::waitForSavingToComplete | ( | ) |
Definition at line 2770 of file KisDocument.cpp.
References d, and isSaving().
| QString KisDocument::warningMessage | ( | ) | const |
Return the last warning message set by loading or saving. Warnings mean that the document could not be completely loaded, but the errors were not absolutely fatal.
Definition at line 2285 of file KisDocument.cpp.
References d.
|
friend |
Definition at line 532 of file KisDocument.h.
|
friend |
Definition at line 533 of file KisDocument.h.
| QList< KisPaintingAssistantSP > KisDocument::assistants |
Definition at line 393 of file KisDocument.cpp.
| qreal KisDocument::audioLevel = 1.0 |
Definition at line 399 of file KisDocument.cpp.
| QVector<QFileInfo> KisDocument::audioTracks |
Definition at line 398 of file KisDocument.cpp.
| bool KisDocument::autoSaveActive = true |
Definition at line 377 of file KisDocument.cpp.
| int KisDocument::autoSaveDelay = 300 |
Definition at line 358 of file KisDocument.cpp.
| int KisDocument::autoSaveFailureCount = 0 |
Definition at line 362 of file KisDocument.cpp.
| QTimer* KisDocument::autoSaveTimer |
Definition at line 354 of file KisDocument.cpp.
| std::unique_ptr<KisDocument> KisDocument::backgroundSaveDocument |
Definition at line 408 of file KisDocument.cpp.
| KritaUtils::ExportFileJob KisDocument::backgroundSaveJob |
Definition at line 411 of file KisDocument.cpp.
| bool KisDocument::batchMode { false } |
Definition at line 417 of file KisDocument.cpp.
| QFuture<KisImportExportErrorCode> KisDocument::childSavingFuture |
Definition at line 410 of file KisDocument.cpp.
| KisUniqueColorSet * KisDocument::colorHistoryModel |
Definition at line 402 of file KisDocument.cpp.
| QMetaObject::Connection KisDocument::completeSavingConnection |
Definition at line 412 of file KisDocument.cpp.
|
private |
Definition at line 765 of file KisDocument.h.
| bool KisDocument::decorationsSyncingDisabled = false |
Definition at line 418 of file KisDocument.cpp.
| bool KisDocument::disregardAutosaveFailure = false |
Definition at line 361 of file KisDocument.cpp.
| KoDocumentInfo* KisDocument::docInfo = 0 |
Definition at line 345 of file KisDocument.cpp.
| bool KisDocument::documentIsClosing = false |
Definition at line 420 of file KisDocument.cpp.
| QString KisDocument::embeddedResourcesStorageID |
Definition at line 427 of file KisDocument.cpp.
| KisResourceStorageSP KisDocument::embeddedResourceStorage |
Definition at line 428 of file KisDocument.cpp.
| QDateTime KisDocument::firstMod |
Definition at line 379 of file KisDocument.cpp.
| QColor KisDocument::globalAssistantsColor |
Definition at line 401 of file KisDocument.cpp.
| KisGridConfig KisDocument::gridConfig |
Definition at line 404 of file KisDocument.cpp.
| const KisGuidesConfig & KisDocument::guidesConfig |
Definition at line 366 of file KisDocument.cpp.
| KisImageWSP KisDocument::image |
Definition at line 384 of file KisDocument.cpp.
| QScopedPointer<KisSignalAutoConnection> KisDocument::imageIdleConnection |
Definition at line 391 of file KisDocument.cpp.
| KisIdleWatcher KisDocument::imageIdleWatcher |
Definition at line 390 of file KisDocument.cpp.
| bool KisDocument::imageModifiedWithoutUndo = false |
Definition at line 406 of file KisDocument.cpp.
| KisImportExportManager * KisDocument::importExportManager = 0 |
Definition at line 349 of file KisDocument.cpp.
| bool KisDocument::isAutosaving = false |
Definition at line 360 of file KisDocument.cpp.
| bool KisDocument::isRecovered = false |
Definition at line 415 of file KisDocument.cpp.
| KoShapeController* KisDocument::koShapeController = 0 |
Definition at line 389 of file KisDocument.cpp.
| QString KisDocument::lastErrorMessage |
Definition at line 355 of file KisDocument.cpp.
| QDateTime KisDocument::lastMod |
Definition at line 380 of file KisDocument.cpp.
| QString KisDocument::lastWarningMessage |
Definition at line 356 of file KisDocument.cpp.
| QString KisDocument::linkedResourcesStorageID |
Definition at line 423 of file KisDocument.cpp.
| KisResourceStorageSP KisDocument::linkedResourceStorage |
Definition at line 424 of file KisDocument.cpp.
| bool KisDocument::m_bAutoDetectedMime = false |
Definition at line 369 of file KisDocument.cpp.
| QString KisDocument::m_file |
Definition at line 371 of file KisDocument.cpp.
| QString KisDocument::m_path |
Definition at line 370 of file KisDocument.cpp.
| QVector<StoryboardComment> KisDocument::m_storyboardCommentList |
Definition at line 396 of file KisDocument.cpp.
| StoryboardItemList KisDocument::m_storyboardItemList |
Definition at line 395 of file KisDocument.cpp.
| QByteArray KisDocument::mimeType |
Definition at line 351 of file KisDocument.cpp.
| const KisMirrorAxisConfig & KisDocument::mirrorAxisConfig |
Definition at line 367 of file KisDocument.cpp.
| bool KisDocument::modified = false |
Definition at line 375 of file KisDocument.cpp.
| bool KisDocument::modifiedAfterAutosave = false |
Definition at line 359 of file KisDocument.cpp.
| bool KisDocument::modifiedWhileSaving = false |
Definition at line 407 of file KisDocument.cpp.
| KisNameServer* KisDocument::nserver |
Definition at line 382 of file KisDocument.cpp.
| QByteArray KisDocument::outputMimeType |
Definition at line 352 of file KisDocument.cpp.
| KisNodeSP KisDocument::preActivatedNode |
Definition at line 387 of file KisDocument.cpp.
| KisDocument* KisDocument::q = 0 |
Definition at line 344 of file KisDocument.cpp.
| bool KisDocument::readwrite = false |
Definition at line 376 of file KisDocument.cpp.
| KisSignalAutoConnectionsStore KisDocument::referenceLayerConnections |
Definition at line 413 of file KisDocument.cpp.
| KisImageSP KisDocument::savingImage |
Definition at line 385 of file KisDocument.cpp.
| QMutex KisDocument::savingMutex |
Definition at line 373 of file KisDocument.cpp.
Definition at line 409 of file KisDocument.cpp.
| KoShapeControllerBase * KisDocument::shapeController = 0 |
Definition at line 388 of file KisDocument.cpp.
| KUndo2Stack * KisDocument::undoStack = 0 |
Definition at line 364 of file KisDocument.cpp.
| KoUnit KisDocument::unit |
Definition at line 347 of file KisDocument.cpp.
| bool KisDocument::wasStorageAdded = false |
Definition at line 419 of file KisDocument.cpp.