digiKam
|
Public Types | |
enum | Type { NoAction , AssignTag , CreateNewTag } |
Public Member Functions | |
bool | isValid () const |
QString | newTagName () const |
If shallCreateNewTag(), returns the tag name and the parent tag id, 0 for toplevel tag. More... | |
bool | operator== (const TaggingAction &other) const |
int | parentTagId () const |
bool | shallAssignTag () const |
bool | shallCreateNewTag () const |
TaggingAction () | |
TaggingAction (const QString &name, int parentTagId) | |
TaggingAction (int tagId) | |
int | tagId () const |
If shallAssignTag(), returns the tag id. More... | |
Type | type () const |
Protected Attributes | |
int | m_tagId |
QString | m_tagName |
Type | m_type |
Digikam::TaggingAction::TaggingAction | ( | ) |
Create a NoAction
|
explicit |
Assign the existing tag with given id
Digikam::TaggingAction::TaggingAction | ( | const QString & | name, |
int | parentTagId | ||
) |
Create a new tag with the given name. The parent shall be the tag with the given id, or 0 for a toplevel tag.
bool Digikam::TaggingAction::isValid | ( | ) | const |
QString Digikam::TaggingAction::newTagName | ( | ) | const |
If shallCreateNewTag(), returns the tag name and the parent tag id, 0 for toplevel tag.
References m_tagName.
Referenced by Digikam::AssignNameOverlay::slotAssigned(), Digikam::FaceGroup::slotAssigned(), and Digikam::TaggingActionFactory::suggestedUIString().
bool Digikam::TaggingAction::operator== | ( | const TaggingAction & | other | ) | const |
int Digikam::TaggingAction::parentTagId | ( | ) | const |
References m_tagId.
Referenced by Digikam::FaceGroup::slotAssigned(), and Digikam::TaggingActionFactory::suggestedUIString().
bool Digikam::TaggingAction::shallAssignTag | ( | ) | const |
References AssignTag, and m_type.
Referenced by Digikam::AssignNameOverlay::slotAssigned(), Digikam::FaceGroup::slotAssigned(), and Digikam::TaggingActionFactory::suggestedUIString().
bool Digikam::TaggingAction::shallCreateNewTag | ( | ) | const |
References CreateNewTag, and m_type.
Referenced by Digikam::TaggingActionFactory::actions(), Digikam::AssignNameOverlay::slotAssigned(), Digikam::FaceGroup::slotAssigned(), and Digikam::TagCompleter::update().
int Digikam::TaggingAction::tagId | ( | ) | const |
If shallAssignTag(), returns the tag id.
References m_tagId.
Referenced by Digikam::AssignNameOverlay::slotAssigned(), Digikam::FaceGroup::slotAssigned(), Digikam::TaggingActionFactory::suggestedUIString(), and Digikam::TagCompleter::update().
TaggingAction::Type Digikam::TaggingAction::type | ( | ) | const |
References m_type.
|
protected |
Referenced by operator==(), parentTagId(), and tagId().
|
protected |
Referenced by newTagName(), and operator==().
|
protected |
Referenced by isValid(), operator==(), shallAssignTag(), shallCreateNewTag(), and type().