|
Krita Source Code Documentation
|
The KisActionsSnapshot class. More...
#include <KisActionsSnapshot.h>
Classes | |
| struct | Private |
Public Member Functions | |
| QMap< QString, KisKActionCollection * > | actionCollections () |
| void | addAction (const QString &name, QAction *action) |
| registers the action in the snapshot and sorts it into a proper category. The action is not owned by the snapshot. | |
| KisActionsSnapshot () | |
| ~KisActionsSnapshot () | |
Private Attributes | |
| const QScopedPointer< Private > | m_d |
The KisActionsSnapshot class.
Definition at line 22 of file KisActionsSnapshot.h.
| KisActionsSnapshot::KisActionsSnapshot | ( | ) |
Definition at line 30 of file KisActionsSnapshot.cpp.
References KisActionRegistry::instance(), m_d, and KisActionRegistry::registeredShortcutIds().
| KisActionsSnapshot::~KisActionsSnapshot | ( | ) |
Definition at line 37 of file KisActionsSnapshot.cpp.
| QMap< QString, KisKActionCollection * > KisActionsSnapshot::actionCollections | ( | ) |
Returns all action collections of the current snapshot
WARNING: the collections are owned by the snapshot! Don't destroy the snapshot before you are done with the collections!
A small heuristics to show warnings only when unknown shortcuts appear in the non-registered list
Definition at line 67 of file KisActionsSnapshot.cpp.
References addAction(), KisActionRegistry::instance(), m_d, KisActionRegistry::makeQAction(), and warnKrita.
| void KisActionsSnapshot::addAction | ( | const QString & | name, |
| QAction * | action ) |
registers the action in the snapshot and sorts it into a proper category. The action is not owned by the snapshot.
| name | id string of the action |
| action | the action itself |
Definition at line 41 of file KisActionsSnapshot.cpp.
References KisKActionCollection::addCategorizedAction(), KisActionRegistry::ActionCategory::categoryName, KisActionRegistry::ActionCategory::componentName, KisActionRegistry::fetchActionCategory(), KisActionRegistry::instance(), KisActionRegistry::ActionCategory::isValid(), m_d, ppVar, and warnKrita.
|
private |
Definition at line 47 of file KisActionsSnapshot.h.