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

Signals

void signalShortcutPressed (const QString &shortcut, int val)
 

Public Member Functions

QList< KActionCollection * > actionCollections () const
 
QString colorShortcutPrefix () const
 
QString pickShortcutPrefix () const
 
QString ratingShortcutPrefix () const
 
void registerActionsToWidget (QWidget *const wdg)
 
void registerLabelsActions (KActionCollection *const ac)
 
void registerTagsActionCollections ()
 
 TagsActionMngr (QWidget *const parent)
 
QString tagShortcutPrefix () const
 
void updateTagShortcut (int tagId, const QKeySequence &ks, bool delAction=true)
 
 ~TagsActionMngr () override
 

Static Public Member Functions

static TagsActionMngrdefaultManager ()
 

Constructor & Destructor Documentation

◆ TagsActionMngr()

Digikam::TagsActionMngr::TagsActionMngr ( QWidget *const  parent)
explicit

◆ ~TagsActionMngr()

Digikam::TagsActionMngr::~TagsActionMngr ( )
override

Member Function Documentation

◆ actionCollections()

QList< KActionCollection * > Digikam::TagsActionMngr::actionCollections ( ) const

Return the list of whole action collections managed.

◆ colorShortcutPrefix()

QString Digikam::TagsActionMngr::colorShortcutPrefix ( ) const

◆ defaultManager()

◆ pickShortcutPrefix()

QString Digikam::TagsActionMngr::pickShortcutPrefix ( ) const

◆ ratingShortcutPrefix()

QString Digikam::TagsActionMngr::ratingShortcutPrefix ( ) const

◆ registerActionsToWidget()

void Digikam::TagsActionMngr::registerActionsToWidget ( QWidget *const  wdg)

◆ registerLabelsActions()

void Digikam::TagsActionMngr::registerLabelsActions ( KActionCollection *const  ac)

Register all labels actions to collections managed with keyboard shortcuts. Unlike tags actions, labels shortcuts are stored in XML GUI file of each root windows, to be able to customize it through KDE keyboards shortcuts config panel. This method must be called before to DXmlGuiWindow::createGUI(), typically when window actions are registered to ActionCollection instance.

References Digikam::AcceptedLabel, Digikam::NoColorLabel, Digikam::NoPickLabel, and Digikam::WhiteLabel.

◆ registerTagsActionCollections()

void Digikam::TagsActionMngr::registerTagsActionCollections ( )

Register all tag actions to collections managed with keyboard shortcuts. Because Tags shortcuts are stored in database this method must be called after database initialization and after that all root window instances have been created.

References Digikam::ImageWindow::imageWindow(), Digikam::DigikamApp::instance(), Digikam::TagsCache::instance(), Digikam::LightTableWindow::lightTableWindow(), Digikam::TagPropertyName::tagKeyboardShortcut(), and Digikam::TagsCache::tagsWithProperty().

◆ signalShortcutPressed

void Digikam::TagsActionMngr::signalShortcutPressed ( const QString &  shortcut,
int  val 
)
signal

◆ tagShortcutPrefix()

QString Digikam::TagsActionMngr::tagShortcutPrefix ( ) const

◆ updateTagShortcut()

void Digikam::TagsActionMngr::updateTagShortcut ( int  tagId,
const QKeySequence &  ks,
bool  delAction = true 
)

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