KXmlGui
kxmlguiclient.h
310 virtual void setComponentName(const QString &componentName, const QString &componentDisplayName);
328 * Since KF 5.1, the file will then be assumed to be installed in DATADIR/kxmlgui5/, under a directory
330 * You should use ${KDE_INSTALL_KXMLGUIDIR}/componentname in your CMakeLists.txt file, to install
394 virtual void stateChanged(const QString &newstate, ReverseStateChange reverse = StateNoReverse);
Implements the creation of the GUI (menubar, menus and toolbars) as requested by the GUI factory.
Definition kxmlguibuilder.h:34
KXMLGUIClient * parentClient() const
KXMLGUIClients can form a simple child/parent object tree.
Definition kxmlguiclient.cpp:636
virtual QString xmlFile() const
This will return the name of the XML file as set by setXMLFile().
Definition kxmlguiclient.cpp:139
virtual void setDOMDocument(const QDomDocument &document, bool merge=false)
Sets the Document for the part, describing the layout of the GUI.
Definition kxmlguiclient.cpp:319
static QString findVersionNumber(const QString &xml)
Returns the version number of the given xml data (belonging to an xml rc file)
Definition kxmlguiclient.cpp:781
void replaceXMLFile(const QString &xmlfile, const QString &localxmlfile, bool merge=false)
Sets a new xmlFile() and localXMLFile().
Definition kxmlguiclient.cpp:256
KXMLGUIClient()
Constructs a KXMLGUIClient which can be used with a KXMLGUIFactory to create a GUI from actions and a...
Definition kxmlguiclient.cpp:65
void removeChildClient(KXMLGUIClient *child)
Removes the given child from the client's children list.
Definition kxmlguiclient.cpp:650
void reloadXML()
Forces this client to re-read its XML resource file.
Definition kxmlguiclient.cpp:161
virtual void stateChanged(const QString &newstate, ReverseStateChange reverse=StateNoReverse)
Actions can collectively be assigned a "State".
Definition kxmlguiclient.cpp:730
static QString standardsXmlFileLocation()
Return the full path to the ui_standards.rc, might return a resource path.
Definition kxmlguiclient.cpp:182
virtual KActionCollection * actionCollection() const
Retrieves the entire action collection for the GUI client.
Definition kxmlguiclient.cpp:115
void unplugActionList(const QString &name)
Unplugs the action list name from the XMLGUI.
Definition kxmlguiclient.cpp:689
void plugActionList(const QString &name, const QList< QAction * > &actionList)
ActionLists are a way for XMLGUI to support dynamic lists of actions.
Definition kxmlguiclient.cpp:680
virtual void setXMLFile(const QString &file, bool merge=false, bool setXMLDoc=true)
Sets the name of the rc file containing the XML for the part.
Definition kxmlguiclient.cpp:201
QList< KXMLGUIClient * > childClients()
Retrieves a list of all child clients.
Definition kxmlguiclient.cpp:665
KXMLGUIFactory * factory() const
Retrieves a pointer to the KXMLGUIFactory this client is associated with (will return nullptr if the ...
Definition kxmlguiclient.cpp:631
void setXMLGUIBuildDocument(const QDomDocument &doc)
Definition kxmlguiclient.cpp:616
void setClientBuilder(KXMLGUIBuilder *builder)
A client can have an own KXMLGUIBuilder.
Definition kxmlguiclient.cpp:670
virtual void setLocalXMLFile(const QString &file)
Set the full path to the "local" xml file, the one used for saving toolbar and shortcut changes.
Definition kxmlguiclient.cpp:251
QAction * action(const QString &name) const
Retrieves an action of the client by name.
Definition kxmlguiclient.cpp:101
void setFactory(KXMLGUIFactory *factory)
This method is called by the KXMLGUIFactory as soon as the client is added to the KXMLGUIFactory's GU...
Definition kxmlguiclient.cpp:626
virtual void setXML(const QString &document, bool merge=false)
Sets the XML for the part.
Definition kxmlguiclient.cpp:296
KXMLGUIBuilder * clientBuilder() const
Retrieves the client's GUI builder or nullptr if no client specific builder has been assigned via set...
Definition kxmlguiclient.cpp:675
void insertChildClient(KXMLGUIClient *child)
Use this method to make a client a child client of another client.
Definition kxmlguiclient.cpp:641
QDomDocument xmlguiBuildDocument() const
Definition kxmlguiclient.cpp:621
virtual void setComponentName(const QString &componentName, const QString &componentDisplayName)
Sets the component name for this part.
Definition kxmlguiclient.cpp:172
KXMLGUIFactory, together with KXMLGUIClient objects, can be used to create a GUI of container widgets...
Definition kxmlguifactory.h:56
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Feb 21 2025 11:48:21 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Feb 21 2025 11:48:21 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.