82 QList<TaggingAction>
actions()
const;
105 Private*
const d =
nullptr;
Definition taggingactionfactory.h:31
ConstraintInterface()=default
virtual bool matches(int tagId)=0
virtual ~ConstraintInterface()=default
Definition taggingactionfactory.h:27
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:90
void reset()
reset all settings to the default (no fragment, no actions)
Definition taggingactionfactory.cpp:133
int parentTagId() const
Definition taggingactionfactory.cpp:85
NameMatchMode nameMatchMode() const
Definition taggingactionfactory.cpp:128
TaggingActionFactory()
Definition taggingactionfactory.cpp:59
QString fragment() const
Definition taggingactionfactory.cpp:69
int indexOfDefaultAction() const
Returns the index of the default action in the list returned by generate()
Definition taggingactionfactory.cpp:270
virtual ~TaggingActionFactory()
Definition taggingactionfactory.cpp:64
NameMatchMode
Definition taggingactionfactory.h:46
@ MatchContainingFragment
use the "contains" method
Definition taggingactionfactory.h:51
@ MatchStartingWithFragment
Default: use the "startingWith" method.
Definition taggingactionfactory.h:48
ConstraintInterface * constraintInterface() const
Definition taggingactionfactory.cpp:112
int indexOfLastRecentAction() const
Returns the index of the last recent action in the list returned by actions()
Definition taggingactionfactory.cpp:280
void setNameMatchMode(NameMatchMode mode)
Set the matching mode for the tag name.
Definition taggingactionfactory.cpp:117
void setConstraintInterface(ConstraintInterface *const iface)
Definition taggingactionfactory.cpp:101
QList< TaggingAction > actions() const
Returns the sorted list of suggested tagging actions, based on the above settings.
Definition taggingactionfactory.cpp:143
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:354
TaggingAction defaultTaggingAction() const
Returns one single action, which is decided to be the presumably best action based on the settings.
Definition taggingactionfactory.cpp:392
void setFragment(const QString &fragment)
Set a fragment of a tag name to generate possible tags, as known from completers.
Definition taggingactionfactory.cpp:74
Definition taggingaction.h:26
Definition datefolderview.cpp:34