libs/libkipi/libkipi
plugin.cpp
Go to the documentation of this file.
83 static void buildPaths(const QDomElement& original, const QDomNodeList& localNodes, QHashPath& paths);
90 static void buildPaths(const QDomElement& original, const QDomNodeList& localNodes, QHashPath& paths, QDomElemList& stack);
94 QDomElement Plugin::Private::XMLParser::makeElement(QDomDocument& domDoc, const QDomElement& from)
113 void Plugin::Private::XMLParser::buildPaths(const QDomElement& original, const QDomNodeList& localNodes, QHashPath& paths)
124 int Plugin::Private::XMLParser::findByNameAttr(const QDomNodeList& list, const QDomElement& node)
167 void Plugin::Private::XMLParser::buildPaths(const QDomElement& original, const QDomNodeList& localNodes,
198 // --------------------------------------------------------------------------------------------------------------
284 QMap<KAction*, Category>::const_iterator it = d->actionsCat[d->defaultWidget].constFind(action);
335 const QString localUI = KGlobal::dirs()->locateLocal("data", componentName + "/" + d->uiBaseName);
420 if (!localUIFile.exists() || !localUIFile.open(QFile::ReadOnly) || !localDomDoc.setContent(&localUIFile))
QString uiBaseName() const
Return the base name of the xml file associated with this KXMLGUIClient.
Definition: plugin.cpp:313
void setupXML()
Adapt the xml file of the plugin with the one of the KXmlGuiWindow main window.
Definition: plugin.cpp:465
QDomNodeList elementsByTagName(const QString &tagname) const
QDomNode item(int index) const
QString name() const
QDomNode appendChild(const QDomNode &newChild)
===========================================================This file is a part of digiKam project htt...
QString attribute(const QString &name, const QString &defValue) const
Definition: plugin.h:65
void setUiBaseName(const char *name)
Sets the name of the xml file associated with this KXMLGUIClient.
Definition: plugin.cpp:307
bool contains(const QString &str, Qt::CaseSensitivity cs) const
Category defaultCategory() const
Returns the default category of the plugin actions.
Definition: plugin.cpp:486
Definition: interface.h:158
QDomDocumentType doctype() const
QDomNodeList childNodes() const
QDomElement toElement() const
virtual void setup(QWidget *const widget)=0
Virtual method that must be overrided by the non abstract descendants and must be called before any a...
Definition: plugin.cpp:275
===========================================================This file is a part of digiKam project htt...
void addAction(const QString &name, KAction *const action)
Register an action to the plugin instance and add it to the action collection.
Definition: plugin.cpp:226
void setObjectName(const QString &name)
bool isEmpty() const
Plugin(const KComponentData &instance, QObject *const parent, const char *name)
Constructs a plugin.
Definition: plugin.cpp:200
bool hasChildNodes() const
QDomNode removeChild(const QDomNode &oldChild)
bool isNull() const
QList< KAction * > actions(QWidget *const widget=0) const
Returns the plugin actions associated with the widget passed as argument, or with the default widget...
Definition: plugin.cpp:213
QDomNode firstChild() const
void setDefaultCategory(Category cat)
Sets the default category of the plugin actions.
Definition: plugin.cpp:481
QDomNode parentNode() const
QDomNode cloneNode(bool deep) const
QDomAttr setAttributeNode(const QDomAttr &newAttr)
QDomElement firstChildElement(const QString &tagName) const
QDomAttr toAttr() const
Category category(KAction *const action) const
Returns the category of the specified plugin action, or InvalidCategory if the action is not recognis...
Definition: plugin.cpp:282
QString tagName() const
int size() const
QDomElement createElement(const QString &tagName)
QStringList disabledPluginActions() const
Return the list of disabled plugin actions.
Definition: pluginloader.cpp:283
QDomNode item(int index) const
QObject * parent() const
int size() const
bool setContent(const QByteArray &data, bool namespaceProcessing, QString *errorMsg, int *errorLine, int *errorColumn)
QDomNode at(int index) const
QDomNamedNodeMap attributes() const
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:19:43 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:19:43 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.