|
Krita Source Code Documentation
|
#include <kis_tiff_export.h>
Inheritance diagram for KisTIFFExport:Public Member Functions | |
| KisImportExportErrorCode | convert (KisDocument *document, QIODevice *io, KisPropertiesConfigurationSP configuration=0) override |
| KisConfigWidget * | createConfigurationWidget (QWidget *parent, const QByteArray &from="", const QByteArray &to="") const override |
| createConfigurationWidget creates a widget that can be used to define the settings for a given import/export filter | |
| KisPropertiesConfigurationSP | defaultConfiguration (const QByteArray &from="", const QByteArray &to="") const override |
| defaultConfiguration defines the default settings for the given import export filter | |
| void | initializeCapabilities () override |
| KisTIFFExport (QObject *parent, const QVariantList &) | |
| bool | supportsIO () const override |
| Override and return false for the filters that use a library that cannot handle file handles, only file names. | |
| ~KisTIFFExport () override | |
Public Member Functions inherited from KisImportExportFilter | |
| virtual QMap< QString, KisExportCheckBase * > | exportChecks () |
| generate and return the list of capabilities of this export filter. The list | |
| virtual bool | exportSupportsGuides () const |
| exportSupportsGuides Because guides are in the document and not the image, checking for guides cannot be made an exportCheck. | |
| KisPropertiesConfigurationSP | lastSavedConfiguration (const QByteArray &from="", const QByteArray &to="") const |
| lastSavedConfiguration return the last saved configuration for this filter | |
| Private () | |
| void | setBatchMode (bool batchmode) |
| void | setFilename (const QString &filename) |
| void | setImportUserFeedBackInterface (KisImportUserFeedbackInterface *interface) |
| void | setMimeType (const QString &mime) |
| void | setRealFilename (const QString &filename) |
| void | setUpdater (QPointer< KoUpdater > updater) |
| QPointer< KoUpdater > | updater () |
| virtual QString | verify (const QString &fileName) const |
| Verify whether the given file is correct and readable. | |
| ~KisImportExportFilter () override | |
| ~Private () | |
Private Attributes | |
| TIFFErrorHandler | oldErrHandler = nullptr |
| TIFFErrorHandler | oldWarnHandler = nullptr |
Additional Inherited Members | |
Public Attributes inherited from KisImportExportFilter | |
| bool | batchmode |
| QMap< QString, KisExportCheckBase * > | capabilities |
| QString | filename |
| KisImportUserFeedbackInterface * | importUserFeedBackInterface {nullptr} |
| QByteArray | mime |
| QString | realFilename |
| QPointer< KoUpdater > | updater |
Static Public Attributes inherited from KisImportExportFilter | |
| static const QString | CICPPrimariesTag = "CICPCompatiblePrimaries" |
| static const QString | CICPTransferCharacteristicsTag = "CICPCompatibleTransferFunction" |
| static const QString | ColorDepthIDTag = "ColorDepthID" |
| static const QString | ColorModelIDTag = "ColorModelID" |
| static const QString | HDRTag = "HDRSupported" |
| static const QString | ImageContainsTransparencyTag = "ImageContainsTransparency" |
| static const QString | sRGBTag = "sRGB" |
Protected Member Functions inherited from KisImportExportFilter | |
| void | addCapability (KisExportCheckBase *capability) |
| void | addSupportedColorModels (QList< QPair< KoID, KoID > > supportedColorModels, const QString &name, KisExportCheckBase::Level level=KisExportCheckBase::PARTIALLY) |
| bool | batchMode () const |
| QString | filename () const |
| KisImportUserFeedbackInterface * | importUserFeedBackInterface () const |
| KisImportExportFilter (QObject *parent=0) | |
| QByteArray | mimeType () const |
| QString | realFilename () const |
| void | setProgress (int value) |
| QString | verifyZiPBasedFiles (const QString &fileName, const QStringList &filesToCheck) const |
Definition at line 17 of file kis_tiff_export.h.
| KisTIFFExport::KisTIFFExport | ( | QObject * | parent, |
| const QVariantList & | ) |
Definition at line 45 of file kis_tiff_export.cc.
|
override |
Definition at line 52 of file kis_tiff_export.cc.
References oldErrHandler, and oldWarnHandler.
|
overridevirtual |
The filter chain calls this method to perform the actual conversion. The passed mimetypes should be a pair of those you specified in your .desktop file. You have to implement this method to make the filter work.
Implements KisImportExportFilter.
Definition at line 58 of file kis_tiff_export.cc.
References KoDocumentInfo::aboutInfo(), KisNodeFacade::addNode(), KoDocumentInfo::authorInfo(), KisSharedPtr< T >::data(), dbgFile, errFile, ImportExportCodes::ErrorWhileWriting, ImportExportCodes::Failure, KisImportExportFilter::filename, KisNode::firstChild(), KisTIFFOptions::flatten, KisTIFFOptions::fromProperties(), INCH_TO_POINT(), KisMetadataBackendRegistry::instance(), ImportExportCodes::InternalError, KisImportExportErrorCode::isOk(), KIS_ASSERT_RECOVER_RETURN_VALUE, KIS_SAFE_ASSERT_RECOVER_RETURN_VALUE, KisImportExportFilter::lastSavedConfiguration(), KisLayer::metaData(), KisDocument::nativeFormatMimeType(), ImportExportCodes::NoAccessToWrite, ImportExportCodes::OK, OPACITY_OPAQUE_U8, KisLayerUtils::recursiveFindNode(), KisImage::rootLayer(), KisTIFFOptions::saveAsPhotoshop, KisMetaData::IOBackend::saveTo(), KisImage::setResolution(), v, KoGenericRegistry< T >::value(), KisTIFFWriterVisitor::visit(), KisTiffPsdWriter::writeImage(), KisImage::xRes(), and KisImage::yRes().
|
overridevirtual |
createConfigurationWidget creates a widget that can be used to define the settings for a given import/export filter
| parent | the owner of the widget; the caller is responsible for deleting |
| from | The mimetype of the source file/document |
| to | The mimetype of the destination file/document |
Reimplemented from KisImportExportFilter.
Definition at line 266 of file kis_tiff_export.cc.
|
overridevirtual |
defaultConfiguration defines the default settings for the given import export filter
| from | The mimetype of the source file/document |
| to | The mimetype of the destination file/document |
Reimplemented from KisImportExportFilter.
Definition at line 260 of file kis_tiff_export.cc.
References KisTIFFOptions::toProperties().
|
overridevirtual |
Reimplemented from KisImportExportFilter.
Definition at line 271 of file kis_tiff_export.cc.
References KisImportExportFilter::addCapability(), KisImportExportFilter::addSupportedColorModels(), CMYKAColorModelID, Float16BitsColorDepthID, Float32BitsColorDepthID, get(), GrayAColorModelID, KisExportCheckRegistry::instance(), Integer16BitsColorDepthID, Integer8BitsColorDepthID, LABAColorModelID, KisExportCheckBase::PARTIALLY, RGBAColorModelID, KisExportCheckBase::SUPPORTED, and YCbCrAColorModelID.
|
inlineoverridevirtual |
Override and return false for the filters that use a library that cannot handle file handles, only file names.
Reimplemented from KisImportExportFilter.
Definition at line 23 of file kis_tiff_export.h.
|
private |
Definition at line 30 of file kis_tiff_export.h.
|
private |
Definition at line 31 of file kis_tiff_export.h.