digiKam
|
Public Member Functions | |
void | addGenerator (DImgFilterGenerator *const generator) |
DImgThreadedFilter * | createFilter (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 DImgFilterManager * | instance () |
Friends | |
class | DImgFilterManagerCreator |
void Digikam::DImgFilterManager::addGenerator | ( | DImgFilterGenerator *const | generator | ) |
Registers all filter provided by this generator.
|
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().
|
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().
QString Digikam::DImgFilterManager::filterIcon | ( | const FilterAction & | action | ) |
References filterIcon(), and Digikam::FilterAction::identifier().
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().
QString Digikam::DImgFilterManager::i18nDisplayableName | ( | const FilterAction & | action | ) |
QString Digikam::DImgFilterManager::i18nDisplayableName | ( | const QString & | filterIdentifier | ) |
Returns the translated displayable name
References displayableName(), Digikam::DImgBuiltinFilter::i18nDisplayableName(), and Digikam::DImgBuiltinFilter::isSupported().
Referenced by Digikam::ItemHistoryGraphModel::data(), Digikam::ToolTipFiller::filterActionTipContents(), and i18nDisplayableName().
|
static |
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().
|
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().
|
overridevirtual |
Reimplemented from Digikam::DImgFilterGenerator.
References Digikam::DImgBuiltinFilter::isSupported(), and Digikam::DImgFilterGenerator::isSupported().
void Digikam::DImgFilterManager::removeGenerator | ( | DImgFilterGenerator *const | generator | ) |
|
overridevirtual |
Returns a list of the supported filter identifiers
Implements Digikam::DImgFilterGenerator.
References Digikam::DImgBuiltinFilter::supportedFilters().
|
overridevirtual |
Returns a list of supported versions of the given filter
Implements Digikam::DImgFilterGenerator.
References Digikam::DImgBuiltinFilter::isSupported(), Digikam::DImgBuiltinFilter::supportedVersions(), and Digikam::DImgFilterGenerator::supportedVersions().
|
friend |