digiKam
Digikam::DImgFilterManager Class Reference
+ Inheritance diagram for Digikam::DImgFilterManager:

Public Member Functions

void addGenerator (DImgFilterGenerator *const generator)
 
DImgThreadedFiltercreateFilter (const QString &filterIdentifier, int version) override
 
QString displayableName (const QString &filterIdentifier) override
 
QString filterIcon (const FilterAction &action)
 
QString filterIcon (const QString &filterIdentifier)
 
QString i18nDisplayableName (const FilterAction &action)
 
QString i18nDisplayableName (const QString &filterIdentifier)
 
bool isRawConversion (const QString &filterIdentifier)
 
bool isSupported (const QString &filterIdentifier) override
 
bool isSupported (const QString &filterIdentifier, int version) override
 
void removeGenerator (DImgFilterGenerator *const generator)
 
QStringList supportedFilters () override
 
QList< int > supportedVersions (const QString &filterIdentifier) override
 

Static Public Member Functions

static DImgFilterManagerinstance ()
 

Friends

class DImgFilterManagerCreator
 

Member Function Documentation

◆ addGenerator()

void Digikam::DImgFilterManager::addGenerator ( DImgFilterGenerator *const  generator)

Registers all filter provided by this generator.

◆ createFilter()

DImgThreadedFilter * Digikam::DImgFilterManager::createFilter ( const QString &  filterIdentifier,
int  version 
)
overridevirtual

Create a filter from an installed manager. Returns 0 if no filter could be created. This is true if identifier/version is not supported, or the filter is builtin. Note: You probably want to use FilterActionFilter.

Implements Digikam::DImgFilterGenerator.

References Digikam::DImgFilterGenerator::createFilter().

◆ displayableName()

QString Digikam::DImgFilterManager::displayableName ( const QString &  filterIdentifier)
overridevirtual

Returns the (untranslated) displayable name for the given identifier. This is only possible for supported filters. If you have a FilterAction, it may already contain a displayable name.

Implements Digikam::DImgFilterGenerator.

References Digikam::DImgFilterGenerator::displayableName().

Referenced by i18nDisplayableName().

◆ filterIcon() [1/2]

QString Digikam::DImgFilterManager::filterIcon ( const FilterAction action)

◆ filterIcon() [2/2]

QString Digikam::DImgFilterManager::filterIcon ( const QString &  filterIdentifier)

Returns an icon for the given filter. If no icon is known, returns a null string.

References Digikam::DImgBuiltinFilter::filterIcon(), and Digikam::DImgBuiltinFilter::isSupported().

Referenced by Digikam::ItemHistoryGraphModel::data(), filterIcon(), and Digikam::ItemFiltersHistoryModel::setupModelData().

◆ i18nDisplayableName() [1/2]

QString Digikam::DImgFilterManager::i18nDisplayableName ( const FilterAction action)

◆ i18nDisplayableName() [2/2]

QString Digikam::DImgFilterManager::i18nDisplayableName ( const QString &  filterIdentifier)

◆ instance()

◆ isRawConversion()

bool Digikam::DImgFilterManager::isRawConversion ( const QString &  filterIdentifier)

Returns true if the given filter is to be considered as a step converting a RAW image to a normal image.

References Digikam::RawProcessingFilter::FilterIdentifier().

◆ isSupported() [1/2]

bool Digikam::DImgFilterManager::isSupported ( const QString &  filterIdentifier)
overridevirtual

Returns true if the given filter, or, more specifically, the given filter in the given version is supported.

Reimplemented from Digikam::DImgFilterGenerator.

References Digikam::DImgBuiltinFilter::isSupported().

Referenced by Digikam::FilterActionFilter::isSupported().

◆ isSupported() [2/2]

bool Digikam::DImgFilterManager::isSupported ( const QString &  filterIdentifier,
int  version 
)
overridevirtual

◆ removeGenerator()

void Digikam::DImgFilterManager::removeGenerator ( DImgFilterGenerator *const  generator)

◆ supportedFilters()

QStringList Digikam::DImgFilterManager::supportedFilters ( )
overridevirtual

Returns a list of the supported filter identifiers

Implements Digikam::DImgFilterGenerator.

References Digikam::DImgBuiltinFilter::supportedFilters().

◆ supportedVersions()

QList< int > Digikam::DImgFilterManager::supportedVersions ( const QString &  filterIdentifier)
overridevirtual

Friends And Related Function Documentation

◆ DImgFilterManagerCreator

friend class DImgFilterManagerCreator
friend

The documentation for this class was generated from the following files: