|
Krita Source Code Documentation
|
#include <KisAsyncAnimationFramesSaveDialog.h>
Inheritance diagram for KisAsyncAnimationFramesSaveDialog:Classes | |
| struct | Private |
Public Member Functions | |
| QList< int > | getUniqueFrames () const |
| KisAsyncAnimationFramesSaveDialog (KisImageSP image, const KisTimeSpan &range, const QString &baseFilename, int startNumberingAt, bool onlyNeedsUniqueFrames, KisPropertiesConfigurationSP exportConfiguration) | |
| Result | regenerateRange (KisViewManager *viewManager) override |
| start generation of frames and (if not in batch mode) show the dialog | |
| QStringList | savedFiles () const |
| QString | savedFilesMask () const |
| QString | savedFilesMaskWildcard () const |
| QStringList | savedUniqueFiles () const |
| ~KisAsyncAnimationFramesSaveDialog () | |
Public Member Functions inherited from KisAsyncAnimationRenderDialogBase | |
| bool | batchMode () const |
| KisAsyncAnimationRenderDialogBase (const QString &actionTitle, KisImageSP image, int busyWait=200) | |
| construct and initialize the dialog | |
| KisRegion | regionOfInterest () const |
| void | setBatchMode (bool value) |
| setting batch mode to true will prevent any dialogs or message boxes from showing on screen. Please take it into account that using batch mode prevents some potentially dangerous recovery execution paths (e.g. delete the existing frames in the destination folder). In such case the rendering will be stopped with RenderFailed result. | |
| void | setRegionOfInterest (const KisRegion &roi) |
| virtual | ~KisAsyncAnimationRenderDialogBase () |
Protected Member Functions | |
| QList< int > | calcDirtyFrames () const override |
| returns a list of frames that should be regenerated by the dialog | |
| KisAsyncAnimationRendererBase * | createRenderer (KisImageSP image) override |
create a renderer object linked to image | |
| void | initializeRendererForFrame (KisAsyncAnimationRendererBase *renderer, KisImageSP image, int frame) override |
Private Attributes | |
| const QScopedPointer< Private > | m_d |
Additional Inherited Members | |
Public Types inherited from KisAsyncAnimationRenderDialogBase | |
| enum | Result { RenderComplete , RenderCancelled , RenderFailed , RenderTimedOut } |
Definition at line 14 of file KisAsyncAnimationFramesSaveDialog.h.
| KisAsyncAnimationFramesSaveDialog::KisAsyncAnimationFramesSaveDialog | ( | KisImageSP | image, |
| const KisTimeSpan & | range, | ||
| const QString & | baseFilename, | ||
| int | startNumberingAt, | ||
| bool | onlyNeedsUniqueFrames, | ||
| KisPropertiesConfigurationSP | exportConfiguration ) |
Definition at line 58 of file KisAsyncAnimationFramesSaveDialog.cpp.
| KisAsyncAnimationFramesSaveDialog::~KisAsyncAnimationFramesSaveDialog | ( | ) |
Definition at line 71 of file KisAsyncAnimationFramesSaveDialog.cpp.
|
overrideprotectedvirtual |
returns a list of frames that should be regenerated by the dialog
Called by the dialog in the very beginning of regenerateRange()
Implements KisAsyncAnimationRenderDialogBase.
Definition at line 151 of file KisAsyncAnimationFramesSaveDialog.cpp.
References KisTimeSpan::calculateIdenticalFramesRecursive(), KisTimeSpan::end(), KisTimeSpan::isInfinite(), KisTimeSpan::isValid(), KIS_SAFE_ASSERT_RECOVER_RETURN_VALUE, m_d, and KisTimeSpan::start().
|
overrideprotectedvirtual |
create a renderer object linked to image
Renderer are special objects that connect to the individual image signals, react on them and fetch the final frames data
Implements KisAsyncAnimationRenderDialogBase.
Definition at line 175 of file KisAsyncAnimationFramesSaveDialog.cpp.
References m_d.
| QList< int > KisAsyncAnimationFramesSaveDialog::getUniqueFrames | ( | ) | const |
Definition at line 234 of file KisAsyncAnimationFramesSaveDialog.cpp.
References calcDirtyFrames().
|
overrideprotectedvirtual |
Implements KisAsyncAnimationRenderDialogBase.
Definition at line 187 of file KisAsyncAnimationFramesSaveDialog.cpp.
|
overridevirtual |
start generation of frames and (if not in batch mode) show the dialog
The link to view manager is used to barrier lock with visual feedback in the end of the operation
Since this method can be called from the places where no view manager is available, we need this manually crafted ugly construction to "try-lock-cancel" the image.
Reimplemented from KisAsyncAnimationRenderDialogBase.
Definition at line 75 of file KisAsyncAnimationFramesSaveDialog.cpp.
References KisAsyncAnimationRenderDialogBase::batchMode(), KIS_SAFE_ASSERT_RECOVER_NOOP, KisAsyncAnimationRenderDialogBase::regenerateRange(), KisAsyncAnimationRenderDialogBase::RenderCancelled, KisAsyncAnimationRenderDialogBase::RenderComplete, KisAsyncAnimationRenderDialogBase::RenderFailed, savedFiles(), savedFilesMaskWildcard(), and void().
| QStringList KisAsyncAnimationFramesSaveDialog::savedFiles | ( | ) | const |
Definition at line 204 of file KisAsyncAnimationFramesSaveDialog.cpp.
References m_d.
| QString KisAsyncAnimationFramesSaveDialog::savedFilesMask | ( | ) | const |
Definition at line 194 of file KisAsyncAnimationFramesSaveDialog.cpp.
References m_d.
| QString KisAsyncAnimationFramesSaveDialog::savedFilesMaskWildcard | ( | ) | const |
Definition at line 199 of file KisAsyncAnimationFramesSaveDialog.cpp.
References m_d.
| QStringList KisAsyncAnimationFramesSaveDialog::savedUniqueFiles | ( | ) | const |
Definition at line 218 of file KisAsyncAnimationFramesSaveDialog.cpp.
References calcDirtyFrames(), and m_d.
|
private |
Definition at line 43 of file KisAsyncAnimationFramesSaveDialog.h.