digiKam
Digikam::AddTagsLineEdit Class Reference
+ Inheritance diagram for Digikam::AddTagsLineEdit:

Public Slots

void setParentTag (Album *const album)
 

Signals

void taggingActionActivated (const TaggingAction &action)
 
void taggingActionFinished ()
 
void taggingActionSelected (const TaggingAction &action)
 

Public Member Functions

 AddTagsLineEdit (QWidget *const parent=nullptr)
 
TaggingAction currentTaggingAction () const
 
void setAlbumModels (TagModel *const model, TagPropertiesFilterModel *const filteredModel, AlbumFilterModel *const filterModel)
 
void setAllowExceedBound (bool value)
 
void setCurrentTag (TAlbum *const tag)
 
void setCurrentTaggingAction (const TaggingAction &action)
 
void setFilterModel (AlbumFilterModel *const model)
 
void setSupportingTagModel (TagModel *const model)
 
void setTagTreeView (TagTreeView *const treeView)
 
 ~AddTagsLineEdit () override
 

Protected Slots

void completerActivated (const TaggingAction &action)
 
void completerHighlighted (const TaggingAction &action)
 
void slotEditingFinished ()
 
void slotReturnPressed ()
 
void slotTextEdited (const QString &text)
 

Constructor & Destructor Documentation

◆ AddTagsLineEdit()

Digikam::AddTagsLineEdit::AddTagsLineEdit ( QWidget *const  parent = nullptr)
explicit

◆ ~AddTagsLineEdit()

Digikam::AddTagsLineEdit::~AddTagsLineEdit ( )
override

Member Function Documentation

◆ completerActivated

void Digikam::AddTagsLineEdit::completerActivated ( const TaggingAction action)
protectedslot

◆ completerHighlighted

void Digikam::AddTagsLineEdit::completerHighlighted ( const TaggingAction action)
protectedslot

◆ currentTaggingAction()

TaggingAction Digikam::AddTagsLineEdit::currentTaggingAction ( ) const

◆ setAlbumModels()

void Digikam::AddTagsLineEdit::setAlbumModels ( TagModel *const  model,
TagPropertiesFilterModel *const  filteredModel,
AlbumFilterModel *const  filterModel 
)

◆ setAllowExceedBound()

void Digikam::AddTagsLineEdit::setAllowExceedBound ( bool  value)

References value.

◆ setCurrentTag()

void Digikam::AddTagsLineEdit::setCurrentTag ( TAlbum *const  tag)

Adjusts the current default tagging action to assign the given tag

References Digikam::Album::id(), setCurrentTaggingAction(), and Digikam::Album::title().

◆ setCurrentTaggingAction()

void Digikam::AddTagsLineEdit::setCurrentTaggingAction ( const TaggingAction action)

◆ setFilterModel()

void Digikam::AddTagsLineEdit::setFilterModel ( AlbumFilterModel *const  model)

Set a tag filter model. Completion suggestions will be limited to tags contained in the filter model.

Referenced by setAlbumModels().

◆ setParentTag

void Digikam::AddTagsLineEdit::setParentTag ( Album *const  album)
slot

Set a parent tag for suggesting a parent tag for a new tag, and a default action. If you set a tag tree view, this is taken care for automatically.

References Digikam::Album::id().

Referenced by Digikam::AssignNameWidget::setParentTag(), and setTagTreeView().

◆ setSupportingTagModel()

void Digikam::AddTagsLineEdit::setSupportingTagModel ( TagModel *const  model)

Optional: set a model for additional information, like tag icons

Referenced by Digikam::TagsLineEditOverlay::createWidget(), and setAlbumModels().

◆ setTagTreeView()

void Digikam::AddTagsLineEdit::setTagTreeView ( TagTreeView *const  treeView)

Reads a tag treeview and takes the currently selected tag into account when suggesting a parent tag for a new tag, and a default action.

References Digikam::AbstractAlbumTreeView::currentAlbumChanged(), and setParentTag().

◆ slotEditingFinished

void Digikam::AddTagsLineEdit::slotEditingFinished ( )
protectedslot

Referenced by AddTagsLineEdit().

◆ slotReturnPressed

void Digikam::AddTagsLineEdit::slotReturnPressed ( )
protectedslot

Tagging action is used by facemanagement and assignwidget

References currentTaggingAction(), taggingActionActivated(), and taggingActionFinished().

Referenced by AddTagsLineEdit().

◆ slotTextEdited

void Digikam::AddTagsLineEdit::slotTextEdited ( const QString &  text)
protectedslot

◆ taggingActionActivated

void Digikam::AddTagsLineEdit::taggingActionActivated ( const TaggingAction action)
signal

Emitted when the user activates an action (typically, by pressing return)

Referenced by completerActivated(), and slotReturnPressed().

◆ taggingActionFinished

void Digikam::AddTagsLineEdit::taggingActionFinished ( )
signal

Referenced by slotReturnPressed().

◆ taggingActionSelected

void Digikam::AddTagsLineEdit::taggingActionSelected ( const TaggingAction action)
signal

Emitted when an action is selected. This already happens if anything is typed.

Referenced by setCurrentTaggingAction(), and slotTextEdited().


The documentation for this class was generated from the following files: