![]() |
digiKam
|
#include <dplugingeneric.h>
Public Member Functions | |
QList< DPluginAction * > | actions (QObject *const parent) const |
virtual QList< DPluginAuthor > | authors () const =0 |
Returns authors list for the plugin. | |
QStringList | categories () const override |
virtual void | cleanUp () |
int | count () const override |
virtual QString | description () const =0 |
Returns a short description about the plugin. | |
virtual QString | details () const =0 |
Returns a long description about the plugin. | |
DPluginGeneric (QObject *const parent=nullptr) | |
virtual QMap< QString, QStringList > | extraAboutData () const |
Returns a map of extra data to show in plugin about dialog. | |
virtual QStringList | extraAboutDataRowTitles () const |
Returns a list of extra data row titles to show in tab of plugin about dialog. | |
virtual QString | extraAboutDataTitle () const |
Returns the tab title of data returned by extraAboutData(). | |
DPluginAction * | findActionByName (const QString &name, QObject *const parent) const |
virtual QString | handbookChapter () const |
virtual QString | handbookReference () const |
virtual QString | handbookSection () const |
virtual bool | hasVisibilityProperty () const |
virtual QIcon | icon () const |
Returns an icon for the plugin. Default implementation return the system plugin icon. | |
QString | ifaceIid () const override |
virtual QString | iid () const =0 |
Returns the unique internal identification property of the plugin. Must be formatted as "org.kde.digikam.plugin._PLUGIN_TYPE_._NAME_OF_PLUGIN_". Examples: "org.kde.digikam.plugin.generic.Calendar" "org.kde.digikam.plugin.editor.AdjustCurvesTool" "org.kde.digikam.plugin.bqm.NoiseReduction". | |
QString | libraryFileName () const |
Returns the file name of the library for this plugin. This string is filled at run-time by plugin loader. | |
virtual QString | name () const =0 |
Returns the user-visible name of the plugin. | |
QStringList | pluginAuthors () const |
void | setLibraryFileName (const QString &) |
Sets the file name of the library for this plugin. This string is filled at run-time by plugin loader. | |
void | setShouldLoaded (bool b) |
virtual void | setup (QObject *const parent)=0 |
void | setVisible (bool b) override |
bool | shouldLoaded () const |
QString | version () const |
~DPluginGeneric () override | |
Protected Member Functions | |
void | addAction (DPluginAction *const ac) |
DInfoInterface * | infoIface (QObject *const ac) const |
bool | reactivateToolDialog (QWidget *const dlg) const |
|
explicit |
Constructor with optional parent object
|
override |
Destructor
QList< DPluginAction * > Digikam::DPluginGeneric::actions | ( | QObject *const | parent | ) | const |
Return all plugin actions registered in setup() method with addAction() for a given parent.
References Digikam::DPluginAction::pluginActionLessThan().
Referenced by findActionByName(), Digikam::DPluginLoader::pluginAction(), Digikam::DPluginLoader::pluginActions(), Digikam::DPluginLoader::pluginsActions(), and Digikam::DPluginLoader::pluginsActions().
|
protected |
References ifaceIid(), and Digikam::DPlugin::iid().
|
pure virtualinherited |
Returns authors list for the plugin.
Referenced by Digikam::DPluginAboutDlg::DPluginAboutDlg(), and Digikam::DPlugin::pluginAuthors().
|
overridevirtual |
Return a list of categories as strings registered in this plugin.
Implements Digikam::DPlugin.
|
inlinevirtualinherited |
Plugin method to clean up internal created objects. This method is called by plugin loader.
|
overridevirtual |
Return the amount of tools registered to all parents.
Implements Digikam::DPlugin.
References count().
Referenced by count().
|
pure virtualinherited |
Returns a short description about the plugin.
Referenced by Digikam::DPluginAboutDlg::DPluginAboutDlg().
|
pure virtualinherited |
Returns a long description about the plugin.
Referenced by Digikam::DPluginAboutDlg::DPluginAboutDlg().
|
inlinevirtualinherited |
Returns a map of extra data to show in plugin about dialog.
Reimplemented in Digikam::DPluginDImg.
Referenced by Digikam::DPluginAboutDlg::DPluginAboutDlg().
|
inlinevirtualinherited |
Returns a list of extra data row titles to show in tab of plugin about dialog.
Reimplemented in Digikam::DPluginDImg.
Referenced by Digikam::DPluginAboutDlg::DPluginAboutDlg().
|
inlinevirtualinherited |
Returns the tab title of data returned by extraAboutData().
Reimplemented in Digikam::DPluginDImg.
Referenced by Digikam::DPluginAboutDlg::DPluginAboutDlg().
DPluginAction * Digikam::DPluginGeneric::findActionByName | ( | const QString & | name, |
QObject *const | parent | ||
) | const |
Return a plugin action instance found by name in plugin action list for a given parent.
References actions(), and Digikam::DPlugin::name().
|
virtualinherited |
Return the online handbook chapter from an handbook section corresponding to this plugin. It's used in plugin dialog Help button. By default, no chapter is defined, and root page of the section is loaded by Help Button in this case. Note: a chapter is always included in a section. See handbookSection() for details.
|
virtualinherited |
Return the online handbook reference from an handbook chapter corresponding to this plugin. It's used in plugin dialog Help button. By default, no reference is defined, and root page of the chapter is loaded by Help Button in this case. Note: a reference is always included in a chapter. See handbookChapter() for details.
|
virtualinherited |
Return the online handbook section corresponding to this plugin. It's used in plugin dialog Help button. By default, no section is defined, and root page of the documentation is loaded by Help Button in this case.
|
virtualinherited |
Return true if plugin can be configured in setup dialog about the visibility property. Default implementation return true.
Reimplemented in Digikam::DPluginDImg, and Digikam::DPluginBqm.
|
virtualinherited |
Returns an icon for the plugin. Default implementation return the system plugin icon.
Referenced by Digikam::DPluginAboutDlg::DPluginAboutDlg().
|
inlineoverridevirtual |
Return the plugin interface identifier.
Implements Digikam::DPlugin.
References DIGIKAM_DPLUGIN_GENERIC_IID.
Referenced by addAction().
|
pure virtualinherited |
Returns the unique internal identification property of the plugin. Must be formatted as "org.kde.digikam.plugin._PLUGIN_TYPE_._NAME_OF_PLUGIN_". Examples: "org.kde.digikam.plugin.generic.Calendar" "org.kde.digikam.plugin.editor.AdjustCurvesTool" "org.kde.digikam.plugin.bqm.NoiseReduction".
Referenced by Digikam::DPluginEditor::addAction(), addAction(), Digikam::DPluginBqm::addTool(), Digikam::DPluginLoader::Private::appendPlugin(), Digikam::DPluginAboutDlg::DPluginAboutDlg(), Digikam::EditorCore::load(), and Digikam::SetupRaw::SetupRaw().
|
protected |
Return the info interface instance for the given action object.
References Digikam::DPluginAction::AlbumData, Digikam::DInfoInterface::forceAlbumSelection, and Digikam::DXmlGuiWindow::infoIface().
|
inherited |
Returns the file name of the library for this plugin. This string is filled at run-time by plugin loader.
Referenced by Digikam::DPluginAboutDlg::DPluginAboutDlg().
|
pure virtualinherited |
Returns the user-visible name of the plugin.
The user-visible name should be context free, i.e. the name should provide enough information as to what the plugin is about in the context of digiKam.
Referenced by Digikam::DPluginAboutDlg::DPluginAboutDlg(), Digikam::DPluginEditor::findActionByName(), findActionByName(), Digikam::DPluginBqm::findToolByName(), Digikam::DPlugin::setLibraryFileName(), and Digikam::SetupRaw::SetupRaw().
|
inherited |
Return a list of authors as strings registered in this plugin.
References Digikam::DPlugin::authors().
|
protected |
Helper function to reactivate the desktop visibility of tool widget.
|
inherited |
Sets the file name of the library for this plugin. This string is filled at run-time by plugin loader.
References Digikam::DPlugin::name().
Referenced by Digikam::DPluginLoader::Private::appendPlugin().
|
inherited |
Accessor to adjust the should loaded plugin property. This property is adjusted by plugin loader at start-up.
Referenced by Digikam::DPluginLoader::Private::appendPlugin().
|
pure virtualinherited |
Plugin factory method to create all internal object instances for a given parent.
Referenced by Digikam::DPluginLoader::registerEditorPlugins(), Digikam::DPluginLoader::registerGenericPlugins(), and Digikam::DPluginLoader::registerRawImportPlugins().
|
overridevirtual |
Holds whether the plugin can be seen in parent view.
Implements Digikam::DPlugin.
Referenced by Digikam::DPluginLoader::registerGenericPlugins().
|
inherited |
Return the should loaded property. If it's true, the plugin must be loaded in application GUI at startup by plugin loader.
Referenced by Digikam::ToolsListView::addTool().
|
inherited |
Return the internal version used to check the binary compatibility at run-time. This is typically the same version of digiKam core used at compilation time.
Referenced by Digikam::DPluginLoader::Private::appendPlugin(), and Digikam::DPluginAboutDlg::DPluginAboutDlg().