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

Classes

class  Private
 

Public Types

enum  LayoutMode { InvalidLayout , FullLine , TwoLines , Compact }
 
enum  Mode {
  InvalidMode , UnconfirmedEditMode , ConfirmedMode , ConfirmedEditMode ,
  IgnoredMode
}
 
enum  TagEntryWidgetMode { InvalidTagEntryWidgetMode , AddTagsComboBoxMode , AddTagsLineEditMode }
 
enum  VisualStyle { InvalidVisualStyle , StyledFrame , TranslucentDarkRound , TranslucentThemedFrameless }
 

Public Slots

void setCurrentFace (const FaceTagsIface &face)
 
void setCurrentTag (int tagId)
 
void setCurrentTag (TAlbum *album)
 
void setParentTag (TAlbum *album)
 
void setUserData (const ItemInfo &info, const QVariant &faceIdentifier=QVariant())
 

Signals

void assigned (const TaggingAction &action, const ItemInfo &info, const QVariant &faceIdentifier)
 
void ignored (const ItemInfo &info, const QVariant &faceIdentifier)
 
void ignoredClicked (const ItemInfo &info, const QVariant &faceIdentifier)
 
void labelClicked (const ItemInfo &info, const QVariant &faceIdentifier)
 
void rejected (const ItemInfo &info, const QVariant &faceIdentifier)
 
void selected (const TaggingAction &action, const ItemInfo &info, const QVariant &faceIdentifier)
 

Public Member Functions

 AssignNameWidget (QWidget *const parent=nullptr)
 
AddTagsComboBoxcomboBox () const
 The combo box or line edit in use, if any. More...
 
QVariant faceIdentifier () const
 
ItemInfo info () const
 
LayoutMode layoutMode () const
 
AddTagsLineEditlineEdit () const
 
Mode mode () const
 
void setAlbumModels (TagModel *const model, TagPropertiesFilterModel *const filteredModel, CheckableAlbumFilterModel *const filterModel)
 
void setDefaultModel ()
 
void setLayoutMode (LayoutMode mode)
 
void setMode (Mode mode)
 
void setTagEntryWidgetMode (TagEntryWidgetMode mode)
 
void setVisualStyle (VisualStyle style)
 
TagEntryWidgetMode tagEntryWidgetMode () const
 
VisualStyle visualStyle () const
 
 ~AssignNameWidget () override
 

Protected Slots

void slotActionActivated (const TaggingAction &action)
 
void slotActionSelected (const TaggingAction &action)
 
void slotConfirm ()
 
void slotIgnore ()
 
void slotIgnoredClicked ()
 
void slotLabelClicked ()
 
void slotReject ()
 

Protected Member Functions

void keyPressEvent (QKeyEvent *e) override
 
void showEvent (QShowEvent *e) override
 

Properties

LayoutMode layoutMode
 
Mode mode
 
TagEntryWidgetMode tagEntryWidgetMode
 
VisualStyle visualStyle
 

Member Enumeration Documentation

◆ LayoutMode

Enumerator
InvalidLayout 
FullLine 
TwoLines 
Compact 

◆ Mode

Enumerator
InvalidMode 
UnconfirmedEditMode 
ConfirmedMode 
ConfirmedEditMode 
IgnoredMode 

◆ TagEntryWidgetMode

Enumerator
InvalidTagEntryWidgetMode 
AddTagsComboBoxMode 
AddTagsLineEditMode 

◆ VisualStyle

Enumerator
InvalidVisualStyle 
StyledFrame 
TranslucentDarkRound 
TranslucentThemedFrameless 

Constructor & Destructor Documentation

◆ AssignNameWidget()

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

Please take care: you must set all four modes before usage!

References setVisualStyle(), and StyledFrame.

◆ ~AssignNameWidget()

Digikam::AssignNameWidget::~AssignNameWidget ( )
override

Member Function Documentation

◆ assigned

void Digikam::AssignNameWidget::assigned ( const TaggingAction action,
const ItemInfo info,
const QVariant &  faceIdentifier 
)
signal

A name has been assigned to the associated face. This can be an existing tag, or a new tag, as described by TaggingAction. For convenience, info() and faceIdentifier() are provided.

Referenced by slotActionActivated(), and slotConfirm().

◆ comboBox()

AddTagsComboBox * Digikam::AssignNameWidget::comboBox ( ) const

◆ faceIdentifier()

◆ ignored

void Digikam::AssignNameWidget::ignored ( const ItemInfo info,
const QVariant &  faceIdentifier 
)
signal

Referenced by slotIgnore().

◆ ignoredClicked

void Digikam::AssignNameWidget::ignoredClicked ( const ItemInfo info,
const QVariant &  faceIdentifier 
)
signal

In IgnoredMode, this signal is emitted when the user clicked on the label

Referenced by slotIgnoredClicked().

◆ info()

ItemInfo Digikam::AssignNameWidget::info ( ) const

◆ keyPressEvent()

void Digikam::AssignNameWidget::keyPressEvent ( QKeyEvent *  e)
overrideprotected

References slotReject().

◆ labelClicked

void Digikam::AssignNameWidget::labelClicked ( const ItemInfo info,
const QVariant &  faceIdentifier 
)
signal

In ConfirmedMode, this signal is emitted when the user clicked on the label

Referenced by slotLabelClicked().

◆ layoutMode()

AssignNameWidget::LayoutMode Digikam::AssignNameWidget::layoutMode ( ) const

◆ lineEdit()

◆ mode()

AssignNameWidget::Mode Digikam::AssignNameWidget::mode ( ) const

◆ rejected

void Digikam::AssignNameWidget::rejected ( const ItemInfo info,
const QVariant &  faceIdentifier 
)
signal

The suggestion has been rejected and the face will be moved to Unknown. For convenience, info() and faceIdentifier() are provided.

Referenced by slotReject().

◆ selected

void Digikam::AssignNameWidget::selected ( const TaggingAction action,
const ItemInfo info,
const QVariant &  faceIdentifier 
)
signal

An action has been selected. This purely signals user interaction, no fixed decision - mouse hover may be enough to emit this signal. The action may be invalid (user switched back to empty selection).

Referenced by slotActionSelected().

◆ setAlbumModels()

◆ setCurrentFace

◆ setCurrentTag [1/2]

void Digikam::AssignNameWidget::setCurrentTag ( int  tagId)
slot

Sets the suggested (UnconfirmedEditMode) or assigned (ConfirmedMode) tag to be displayed.

References Digikam::AlbumManager::instance().

Referenced by setCurrentFace().

◆ setCurrentTag [2/2]

◆ setDefaultModel()

void Digikam::AssignNameWidget::setDefaultModel ( )

References setAlbumModels().

◆ setLayoutMode()

◆ setMode()

void Digikam::AssignNameWidget::setMode ( Mode  mode)

◆ setParentTag

void Digikam::AssignNameWidget::setParentTag ( TAlbum album)
slot

◆ setTagEntryWidgetMode()

◆ setUserData

void Digikam::AssignNameWidget::setUserData ( const ItemInfo info,
const QVariant &  faceIdentifier = QVariant() 
)
slot

◆ setVisualStyle()

◆ showEvent()

◆ slotActionActivated

void Digikam::AssignNameWidget::slotActionActivated ( const TaggingAction action)
protectedslot

◆ slotActionSelected

◆ slotConfirm

◆ slotIgnore

◆ slotIgnoredClicked

void Digikam::AssignNameWidget::slotIgnoredClicked ( )
protectedslot

◆ slotLabelClicked

void Digikam::AssignNameWidget::slotLabelClicked ( )
protectedslot

◆ slotReject

void Digikam::AssignNameWidget::slotReject ( )
protectedslot

◆ tagEntryWidgetMode()

AssignNameWidget::TagEntryWidgetMode Digikam::AssignNameWidget::tagEntryWidgetMode ( ) const

◆ visualStyle()

AssignNameWidget::VisualStyle Digikam::AssignNameWidget::visualStyle ( ) const

Property Documentation

◆ layoutMode

LayoutMode Digikam::AssignNameWidget::layoutMode
readwrite

◆ mode

◆ tagEntryWidgetMode

TagEntryWidgetMode Digikam::AssignNameWidget::tagEntryWidgetMode
readwrite

◆ visualStyle

VisualStyle Digikam::AssignNameWidget::visualStyle
readwrite

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