digiKam
|
Public Types | |
enum | Category { ReproducibleFilter = 0 , ComplexFilter = 1 , DocumentedHistory = 2 , CategoryFirst = ReproducibleFilter , CategoryLast = DocumentedHistory } |
enum | Flag { ExplicitBranch = 1 << 0 } |
Public Member Functions | |
void | addFlag (Flags flags) |
void | addParameter (const QString &key, const QVariant &value) |
Sets parameter, removing all other values for the same key. More... | |
Category | category () const |
void | clearParameters () |
Clear all parameters. More... | |
DefaultFilterAction (bool isReproducible) | |
DefaultFilterAction (FilterAction::Category category=FilterAction::ReproducibleFilter) | |
QString | description () const |
QString | displayableName () const |
Flags | flags () const |
bool | hasParameter (const QString &key) const |
bool | hasParameters () const |
QString | identifier () const |
bool | isNull () const |
bool | operator== (const FilterAction &other) const |
QVariant & | parameter (const QString &key) |
const QVariant | parameter (const QString &key) const |
template<typename T > | |
T | parameter (const QString &key) const |
template<typename T > | |
T | parameter (const QString &key, const T &defaultValue) const |
QHash< QString, QVariant > & | parameters () |
const QHash< QString, QVariant > & | parameters () const |
void | removeFlag (Flags flags) |
void | removeParameters (const QString &key) |
Removes all parameters for key. More... | |
void | setDescription (const QString &description) |
void | setDisplayableName (const QString &displayableName) |
void | setFlags (Flags flags) |
void | setParameters (const QHash< QString, QVariant > ¶ms) |
Replaces parameters. More... | |
void | supportOlderVersionIf (int version, bool condition) |
int | version () const |
Protected Attributes | |
Category | m_category |
NOTE: Value class, do not create a d-pointer. More... | |
QString | m_description |
QString | m_displayableName |
Flags | m_flags |
QString | m_identifier |
QHash< QString, QVariant > | m_params |
int | m_version |
Convenience class to spare the few repeating lines of code
|
inherited |
|
inherited |
|
inlineexplicit |
|
inlineexplicit |
|
inherited |
References Digikam::FilterAction::flags(), and Digikam::FilterAction::m_flags.
Referenced by Digikam::DImageHistory::fromXml().
|
inherited |
Sets parameter, removing all other values for the same key.
References Digikam::FilterAction::m_params, and value.
Referenced by DigikamEditorPerspectiveToolPlugin::PerspectiveWidget::applyPerspectiveAdjustment(), Digikam::DImgBuiltinFilter::filterAction(), Digikam::BWSepiaFilter::filterAction(), Digikam::InfraredFilter::filterAction(), Digikam::MixerFilter::filterAction(), Digikam::TonalityFilter::filterAction(), Digikam::CBFilter::filterAction(), Digikam::BorderFilter::filterAction(), Digikam::TextureFilter::filterAction(), Digikam::FilmFilter::filterAction(), Digikam::BlurFilter::filterAction(), Digikam::BlurFXFilter::filterAction(), Digikam::CharcoalFilter::filterAction(), Digikam::ColorFXFilter::filterAction(), Digikam::DistortionFXFilter::filterAction(), Digikam::EmbossFilter::filterAction(), Digikam::FilmGrainFilter::filterAction(), Digikam::OilPaintFilter::filterAction(), Digikam::RainDropFilter::filterAction(), Digikam::GreycstorationFilter::filterAction(), Digikam::HotPixelFixer::filterAction(), Digikam::HSLFilter::filterAction(), Digikam::IccTransformFilter::filterAction(), Digikam::LocalContrastFilter::filterAction(), Digikam::AntiVignettingFilter::filterAction(), Digikam::LensDistortionFilter::filterAction(), Digikam::LensFunFilter::filterAction(), Digikam::LevelsFilter::filterAction(), Digikam::NRFilter::filterAction(), Digikam::RefocusFilter::filterAction(), Digikam::SharpenFilter::filterAction(), Digikam::UnsharpMaskFilter::filterAction(), Digikam::ContentAwareFilter::filterAction(), Digikam::FreeRotationFilter::filterAction(), Digikam::ShearFilter::filterAction(), Digikam::DImageHistory::fromXml(), Digikam::BCGContainer::writeToFilterAction(), Digikam::CurvesContainer::writeToFilterAction(), Digikam::HotPixelContainer::writeToFilterAction(), Digikam::RedEyeCorrectionContainer::writeToFilterAction(), and Digikam::WBContainer::writeToFilterAction().
|
inherited |
|
inherited |
Clear all parameters.
References Digikam::FilterAction::m_params.
|
inherited |
Returns a description / comment for this action. In the case of DocumentedHistory, this may be the most useful value.
References Digikam::FilterAction::m_description.
Referenced by Digikam::ToolTipFiller::filterActionTipContents(), and Digikam::FilterAction::setDescription().
|
inherited |
|
inherited |
|
inherited |
References Digikam::FilterAction::m_params.
Referenced by Digikam::CurvesContainer::fromFilterAction().
|
inherited |
Access parameters. A parameters is a key -> value pair. Keys need to be unique.
References Digikam::FilterAction::m_params.
Referenced by Digikam::ToolTipFiller::filterActionTipContents().
|
inherited |
Returns a technical identifier for the filter used to produce this action. Can include a namespace. Example: digikam:charcoal
References Digikam::FilterAction::m_identifier.
Referenced by Digikam::ToolTipFiller::filterActionTipContents(), Digikam::DImgFilterManager::filterIcon(), Digikam::FilterActionFilter::filterImage(), Digikam::DImgFilterManager::i18nDisplayableName(), Digikam::FilterActionFilter::isSupported(), Digikam::DImgBuiltinFilter::setAction(), and Digikam::DImageHistory::toXml().
|
inherited |
References Digikam::FilterAction::m_identifier.
Referenced by Digikam::DImageHistory::actionCount(), Digikam::DImageHistory::allActions(), Digikam::ToolTipFiller::filterActionTipContents(), Digikam::FilterActionFilter::filterImage(), Digikam::DImageHistory::hasActions(), Digikam::FilterActionFilter::isComplexAction(), Digikam::FilterActionFilter::isReproducible(), Digikam::FilterActionFilter::isSupported(), Digikam::DImageHistory::isValid(), Digikam::DImageHistory::operator<<(), and Digikam::DImageHistory::toXml().
|
inherited |
|
inherited |
References Digikam::FilterAction::m_params.
|
inherited |
References Digikam::FilterAction::m_params.
Referenced by Digikam::BCGContainer::fromFilterAction(), Digikam::CurvesContainer::fromFilterAction(), Digikam::HotPixelContainer::fromFilterAction(), Digikam::RedEyeCorrectionContainer::fromFilterAction(), Digikam::WBContainer::fromFilterAction(), Digikam::BWSepiaFilter::readParameters(), Digikam::InfraredFilter::readParameters(), Digikam::MixerFilter::readParameters(), Digikam::TonalityFilter::readParameters(), Digikam::CBFilter::readParameters(), Digikam::BorderFilter::readParameters(), Digikam::TextureFilter::readParameters(), Digikam::FilmFilter::readParameters(), Digikam::BlurFilter::readParameters(), Digikam::BlurFXFilter::readParameters(), Digikam::CharcoalFilter::readParameters(), Digikam::ColorFXFilter::readParameters(), Digikam::DistortionFXFilter::readParameters(), Digikam::EmbossFilter::readParameters(), Digikam::FilmGrainFilter::readParameters(), Digikam::OilPaintFilter::readParameters(), Digikam::RainDropFilter::readParameters(), Digikam::GreycstorationFilter::readParameters(), Digikam::HotPixelFixer::readParameters(), Digikam::HSLFilter::readParameters(), Digikam::IccTransformFilter::readParameters(), Digikam::LocalContrastFilter::readParameters(), Digikam::AntiVignettingFilter::readParameters(), Digikam::LensDistortionFilter::readParameters(), Digikam::LensFunFilter::readParameters(), Digikam::LevelsFilter::readParameters(), Digikam::NRFilter::readParameters(), Digikam::RefocusFilter::readParameters(), Digikam::SharpenFilter::readParameters(), Digikam::UnsharpMaskFilter::readParameters(), Digikam::ContentAwareFilter::readParameters(), Digikam::FreeRotationFilter::readParameters(), Digikam::ShearFilter::readParameters(), Digikam::IccTransformFilter::readParametersError(), and Digikam::DImgBuiltinFilter::setAction().
|
inlineinherited |
Returns parameter converted from QVariant to given type
References T.
|
inlineinherited |
Read parameter with a default value: If there is a parameter for the given key, return it converted from QVariant to the template type. If there is no parameter, return the given default value.
References T.
|
inherited |
References Digikam::FilterAction::m_params.
|
inherited |
|
inherited |
References Digikam::FilterAction::flags(), and Digikam::FilterAction::m_flags.
|
inherited |
Removes all parameters for key.
References Digikam::FilterAction::m_params.
|
inherited |
References Digikam::FilterAction::description(), and Digikam::FilterAction::m_description.
|
inherited |
References Digikam::FilterAction::displayableName(), and Digikam::FilterAction::m_displayableName.
Referenced by DigikamEditorPerspectiveToolPlugin::PerspectiveWidget::applyPerspectiveAdjustment(), Digikam::DImgBuiltinFilter::filterAction(), Digikam::BWSepiaFilter::filterAction(), Digikam::InfraredFilter::filterAction(), Digikam::MixerFilter::filterAction(), Digikam::TonalityFilter::filterAction(), Digikam::CBFilter::filterAction(), Digikam::BorderFilter::filterAction(), Digikam::TextureFilter::filterAction(), Digikam::FilmFilter::filterAction(), Digikam::BlurFilter::filterAction(), Digikam::BlurFXFilter::filterAction(), Digikam::CharcoalFilter::filterAction(), Digikam::ColorFXFilter::filterAction(), Digikam::DistortionFXFilter::filterAction(), Digikam::EmbossFilter::filterAction(), Digikam::FilmGrainFilter::filterAction(), Digikam::InvertFilter::filterAction(), Digikam::OilPaintFilter::filterAction(), Digikam::RainDropFilter::filterAction(), Digikam::GreycstorationFilter::filterAction(), Digikam::HSLFilter::filterAction(), Digikam::IccTransformFilter::filterAction(), Digikam::LocalContrastFilter::filterAction(), Digikam::AntiVignettingFilter::filterAction(), Digikam::LensDistortionFilter::filterAction(), Digikam::LensFunFilter::filterAction(), Digikam::LevelsFilter::filterAction(), Digikam::NRFilter::filterAction(), Digikam::RefocusFilter::filterAction(), Digikam::SharpenFilter::filterAction(), Digikam::UnsharpMaskFilter::filterAction(), Digikam::FreeRotationFilter::filterAction(), Digikam::ShearFilter::filterAction(), Digikam::WBFilter::filterAction(), and Digikam::DImageHistory::fromXml().
|
inherited |
References Digikam::FilterAction::flags(), and Digikam::FilterAction::m_flags.
|
inherited |
Replaces parameters.
References Digikam::FilterAction::m_params.
|
inline |
Preserve backwards compatibility: If a given condition (some new feature is not used) is true, decrease the version so that older digikam versions can still replay the action
Referenced by Digikam::BWSepiaFilter::filterAction().
|
inherited |
Returns the version (>= 1) of the filter used to produce this action. When a filter / tool is found by the identifier, it can decide by the version if it supports this action and which parameters it expects.
References Digikam::FilterAction::m_version.
Referenced by Digikam::ToolTipFiller::filterActionTipContents(), Digikam::FilterActionFilter::filterImage(), Digikam::FilterActionFilter::isSupported(), Digikam::DImgBuiltinFilter::setAction(), and Digikam::DImageHistory::toXml().
|
protectedinherited |
NOTE: Value class, do not create a d-pointer.
Referenced by Digikam::FilterAction::category(), and Digikam::FilterAction::operator==().
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
Referenced by Digikam::FilterAction::addParameter(), Digikam::FilterAction::clearParameters(), Digikam::FilterAction::hasParameter(), Digikam::FilterAction::hasParameters(), Digikam::FilterAction::operator==(), Digikam::FilterAction::parameter(), Digikam::FilterAction::parameters(), Digikam::FilterAction::removeParameters(), and Digikam::FilterAction::setParameters().
|
protectedinherited |
Referenced by Digikam::FilterAction::operator==(), and Digikam::FilterAction::version().