![]() |
digiKam
|
#include <dpluginaction.h>
Public Types | |
enum | ActionCategory { InvalidCat = -1 , GenericExport = 0 , GenericImport , GenericTool , GenericMetadata , GenericView , EditorFile , EditorColors , EditorEnhance , EditorTransform , EditorDecorate , EditorFilters } |
Plugin action categories. More... | |
enum | ActionType { InvalidType = -1 , Generic = 0 , Editor } |
Plugin action types to resume where they can be used. More... | |
enum | PluginActionData { NoData = 0 , AlbumData } |
Plugin action types via QAction data container. More... | |
Public Member Functions | |
ActionCategory | actionCategory () const |
QString | actionCategoryToString () const |
ActionType | actionType () const |
DPluginAction (QObject *const parent=nullptr) | |
QString | pluginId () const |
void | setActionCategory (ActionCategory cat) |
QString | toString () const |
QString | xmlSection () const |
~DPluginAction () override=default | |
Static Public Member Functions | |
static bool | pluginActionLessThan (DPluginAction *const a, DPluginAction *const b) |
Plugin action categories.
|
explicit |
|
overridedefault |
DPluginAction::ActionCategory Digikam::DPluginAction::actionCategory | ( | ) | const |
References InvalidCat.
Referenced by actionCategoryToString(), actionType(), Digikam::DigikamApp::infoIface(), Digikam::ImageWindow::infoIface(), and Digikam::LightTableWindow::infoIface().
QString Digikam::DPluginAction::actionCategoryToString | ( | ) | const |
References actionCategory(), EditorColors, EditorDecorate, EditorEnhance, EditorFile, EditorFilters, EditorTransform, GenericExport, GenericImport, GenericMetadata, GenericTool, and GenericView.
Referenced by toString().
DPluginAction::ActionType Digikam::DPluginAction::actionType | ( | ) | const |
Return the action type depending of category.
References actionCategory(), Editor, EditorColors, EditorDecorate, EditorEnhance, EditorFile, EditorFilters, EditorTransform, Generic, GenericExport, GenericImport, GenericMetadata, GenericTool, GenericView, and InvalidType.
|
static |
Referenced by Digikam::DPluginEditor::actions(), and Digikam::DPluginGeneric::actions().
QString Digikam::DPluginAction::pluginId | ( | ) | const |
Return the plugin id string hosting this action.
void Digikam::DPluginAction::setActionCategory | ( | ActionCategory | cat | ) |
Manage the internal action category.
QString Digikam::DPluginAction::toString | ( | ) | const |
Return details as string about action properties. For debug purpose only.
References actionCategoryToString().
QString Digikam::DPluginAction::xmlSection | ( | ) | const |
Return the XML section to merge in KXMLGUIClient host XML definition.