KXMLGUIClient Class Reference
from PyKDE4.kdeui import *
Subclasses: KXmlGuiWindow
Detailed Description
A KXMLGUIClient can be used with KXMLGUIFactory to create a GUI from actions and an XML document, and can be dynamically merged with other KXMLGUIClients.
Enumerations | |
| ReverseStateChange | { StateNoReverse, StateReverse } |
Methods | |
| __init__ (self, KXMLGUIClient other) | |
| __init__ (self) | |
| __init__ (self, KXMLGUIClient parent) | |
| QAction | action (self, QString name) |
| QAction | action (self, QDomElement element) |
| KActionCollection | actionCollection (self) |
| addStateActionDisabled (self, QString state, QString action) | |
| addStateActionEnabled (self, QString state, QString action) | |
| beginXMLPlug (self, QWidget a0) | |
| [KXMLGUIClient] | childClients (self) |
| KXMLGUIBuilder | clientBuilder (self) |
| KComponentData | componentData (self) |
| QDomDocument | domDocument (self) |
| endXMLPlug (self) | |
| KXMLGUIFactory | factory (self) |
| KXMLGUIClient.StateChange | getActionsToChangeForState (self, QString state) |
| insertChildClient (self, KXMLGUIClient child) | |
| loadStandardsXmlFile (self) | |
| QString | localXMLFile (self) |
| KXMLGUIClient | parentClient (self) |
| plugActionList (self, QString name, [QAction] actionList) | |
| prepareXMLUnplug (self, QWidget a0) | |
| reloadXML (self) | |
| removeChildClient (self, KXMLGUIClient child) | |
| replaceXMLFile (self, QString xmlfile, QString localxmlfile, bool merge=0) | |
| setClientBuilder (self, KXMLGUIBuilder builder) | |
| setComponentData (self, KComponentData componentData) | |
| setDOMDocument (self, QDomDocument document, bool merge=0) | |
| setFactory (self, KXMLGUIFactory factory) | |
| setLocalXMLFile (self, QString file) | |
| setXML (self, QString document, bool merge=0) | |
| setXMLFile (self, QString file, bool merge=0, bool setXMLDoc=1) | |
| setXMLGUIBuildDocument (self, QDomDocument doc) | |
| stateChanged (self, QString newstate, KXMLGUIClient.ReverseStateChange reverse=KXMLGUIClient.StateNoReverse) | |
| unplugActionList (self, QString name) | |
| QString | xmlFile (self) |
| QDomDocument | xmlguiBuildDocument (self) |
Static Methods | |
| QString | findMostRecentXMLFile (QStringList files, QString doc) |
Method Documentation
| __init__ | ( | self, | ||
| KXMLGUIClient | other | |||
| ) |
| __init__ | ( | self ) |
Constructs a KXMLGUIClient which can be used with a KXMLGUIFactory to create a GUI from actions and an XML document, and which can be dynamically merged with other KXMLGUIClients.
| __init__ | ( | self, | ||
| KXMLGUIClient | parent | |||
| ) |
Constructs a KXMLGUIClient which can be used with a KXMLGUIFactory to create a GUI from actions and an XML document, and which can be dynamically merged with other KXMLGUIClients.
This constructor takes an additional parent argument, which makes the client a child client of the parent.
Child clients are automatically added to the GUI if the parent is added.
| QAction action | ( | self, | ||
| QString | name | |||
| ) |
Retrieves an action for a given QDomElement. The default implementation uses the "name" attribute to query the action object via the other action() method.
| QAction action | ( | self, | ||
| QDomElement | element | |||
| ) |
Retrieves an action for a given QDomElement. The default implementation uses the "name" attribute to query the action object via the other action() method.
| KActionCollection actionCollection | ( | self ) |
Retrieves the entire action collection for the GUI client.
| addStateActionDisabled | ( | self, | ||
| QString | state, | |||
| QString | action | |||
| ) |
| addStateActionEnabled | ( | self, | ||
| QString | state, | |||
| QString | action | |||
| ) |
KDE 4.9 PyKDE API Reference