22 #ifndef DIGIKAM_TAGGING_ACTION_FACTORY_H
23 #define DIGIKAM_TAGGING_ACTION_FACTORY_H
Definition: taggingactionfactory.h:41
ConstraintInterface()=default
virtual bool matches(int tagId)=0
virtual ~ConstraintInterface()=default
Definition: taggingactionfactory.h:37
void setParentTag(int parentTagId)
Set a tag which may by the user be intended to be the parent of a newly created tag.
Definition: taggingactionfactory.cpp:111
void reset()
reset all settings to the default (no fragment, no actions)
Definition: taggingactionfactory.cpp:154
int parentTagId() const
Definition: taggingactionfactory.cpp:106
NameMatchMode nameMatchMode() const
Definition: taggingactionfactory.cpp:149
TaggingActionFactory()
Definition: taggingactionfactory.cpp:80
QString fragment() const
Definition: taggingactionfactory.cpp:90
int indexOfDefaultAction() const
Returns the index of the default action in the list returned by generate()
Definition: taggingactionfactory.cpp:291
virtual ~TaggingActionFactory()
Definition: taggingactionfactory.cpp:85
NameMatchMode
Definition: taggingactionfactory.h:56
@ MatchContainingFragment
use the "contains" method
Definition: taggingactionfactory.h:61
@ MatchStartingWithFragment
Default: use the "startingWith" method.
Definition: taggingactionfactory.h:58
ConstraintInterface * constraintInterface() const
Definition: taggingactionfactory.cpp:133
int indexOfLastRecentAction() const
Returns the index of the last recent action in the list returned by actions()
Definition: taggingactionfactory.cpp:301
void setNameMatchMode(NameMatchMode mode)
Set the matching mode for the tag name.
Definition: taggingactionfactory.cpp:138
void setConstraintInterface(ConstraintInterface *const iface)
Definition: taggingactionfactory.cpp:122
QList< TaggingAction > actions() const
Returns the sorted list of suggested tagging actions, based on the above settings.
Definition: taggingactionfactory.cpp:164
QString suggestedUIString(const TaggingAction &action) const
Returns a string to be used in the UI for the given TaggingAction, interpreted in the context of the ...
Definition: taggingactionfactory.cpp:375
TaggingAction defaultTaggingAction() const
Returns one single action, which is decided to be the presumably best action based on the settings.
Definition: taggingactionfactory.cpp:413
void setFragment(const QString &fragment)
Set a fragment of a tag name to generate possible tags, as known from completers.
Definition: taggingactionfactory.cpp:95
Definition: taggingaction.h:36
Definition: piwigotalker.h:48
Definition: datefolderview.cpp:43