Krita Source Code Documentation
Loading...
Searching...
No Matches
KisAsyncAnimationFramesSaveDialog::Private Struct Reference

Public Member Functions

 Private (KisImageSP _image, const KisTimeSpan &_range, const QString &baseFilename, int _sequenceNumberingOffset, bool _onlyNeedsUniqueFrames, KisPropertiesConfigurationSP _exportConfiguration)
 

Public Attributes

KisPropertiesConfigurationSP exportConfiguration
 
QString filenamePrefix
 
QString filenameSuffix
 
bool onlyNeedsUniqueFrames
 
KisImageSP originalImage
 
QByteArray outputMimeType
 
KisTimeSpan range
 
int sequenceNumberingOffset
 

Detailed Description

Definition at line 22 of file KisAsyncAnimationFramesSaveDialog.cpp.

Constructor & Destructor Documentation

◆ Private()

KisAsyncAnimationFramesSaveDialog::Private::Private ( KisImageSP _image,
const KisTimeSpan & _range,
const QString & baseFilename,
int _sequenceNumberingOffset,
bool _onlyNeedsUniqueFrames,
KisPropertiesConfigurationSP _exportConfiguration )
inline

Definition at line 23 of file KisAsyncAnimationFramesSaveDialog.cpp.

29 : originalImage(_image),
30 range(_range),
31 onlyNeedsUniqueFrames(_onlyNeedsUniqueFrames),
32 sequenceNumberingOffset(_sequenceNumberingOffset),
33 exportConfiguration(_exportConfiguration)
34 {
35 int baseLength = baseFilename.lastIndexOf(".");
36 if (baseLength > -1) {
37 filenamePrefix = baseFilename.left(baseLength);
38 filenameSuffix = baseFilename.right(baseFilename.length() - baseLength);
39 } else {
40 filenamePrefix = baseFilename;
41 }
42
43 outputMimeType = KisMimeDatabase::mimeTypeForFile(baseFilename, false).toLatin1();
44 }
static QString mimeTypeForFile(const QString &file, bool checkExistingFiles=true)
Find the mimetype for the given filename. The filename must include a suffix.

References filenamePrefix, filenameSuffix, KisMimeDatabase::mimeTypeForFile(), and outputMimeType.

Member Data Documentation

◆ exportConfiguration

KisPropertiesConfigurationSP KisAsyncAnimationFramesSaveDialog::Private::exportConfiguration

Definition at line 55 of file KisAsyncAnimationFramesSaveDialog.cpp.

◆ filenamePrefix

QString KisAsyncAnimationFramesSaveDialog::Private::filenamePrefix

Definition at line 49 of file KisAsyncAnimationFramesSaveDialog.cpp.

◆ filenameSuffix

QString KisAsyncAnimationFramesSaveDialog::Private::filenameSuffix

Definition at line 50 of file KisAsyncAnimationFramesSaveDialog.cpp.

◆ onlyNeedsUniqueFrames

bool KisAsyncAnimationFramesSaveDialog::Private::onlyNeedsUniqueFrames

Definition at line 52 of file KisAsyncAnimationFramesSaveDialog.cpp.

◆ originalImage

KisImageSP KisAsyncAnimationFramesSaveDialog::Private::originalImage

Definition at line 46 of file KisAsyncAnimationFramesSaveDialog.cpp.

◆ outputMimeType

QByteArray KisAsyncAnimationFramesSaveDialog::Private::outputMimeType

Definition at line 51 of file KisAsyncAnimationFramesSaveDialog.cpp.

◆ range

KisTimeSpan KisAsyncAnimationFramesSaveDialog::Private::range

Definition at line 47 of file KisAsyncAnimationFramesSaveDialog.cpp.

◆ sequenceNumberingOffset

int KisAsyncAnimationFramesSaveDialog::Private::sequenceNumberingOffset

Definition at line 54 of file KisAsyncAnimationFramesSaveDialog.cpp.


The documentation for this struct was generated from the following file: