|
|
KXMLGUIFactory, together with KXMLGUIClient objects, can be used to create a GUI of container widgets (like menus, toolbars, etc.) and container items (menu items, toolbar buttons, etc.) from an XML document and action objects.
Each KXMLGUIClient represents a part of the GUI, composed from containers and actions. KXMLGUIFactory takes care of building (with the help of a KXMLGUIBuilder) and merging the GUI from an unlimited number of clients.
Each client provides XML through a QDomDocument and actions through a KActionCollection . The XML document contains the rules for how to merge the GUI.
KXMLGUIFactory processes the DOM tree provided by a client and plugs in the client's actions, according to the XML and the merging rules of previously inserted clients. Container widgets are built via a KXMLGUIBuilder , which has to be provided with the KXMLGUIFactory constructor.
|
Constructs a KXMLGUIFactory. The provided builder
KXMLGUIBuilder will be called
for creating and removing container widgets, when clients are added/removed from the GUI.
~ |
Destructor
void |
Creates the GUI described by the QDomDocument of the client, using the client's actions, and merges it with the previously created GUI.
void |
Removes the GUI described by the client, by unplugging all provided actions and removing all owned containers (and storing container state information in the given client)
QValueList<KXMLGUIClient*> |
[const]
Returns a list of all clients currently added to this factory
QWidget * |
Use this method to get access to a container widget with the name specified with containerName
and which is owned by the client
. The container name is specified with a "name" attribute in the
XML document.
This method may return 0L if no container with the given name exists or is not owned by the client.
void |
Use this method to free all memory allocated by the KXMLGUIFactory. This deletes the internal node tree and therefore resets the internal state of the class. Please note that the actual GUI is NOT touched at all, meaning no containers are being deleted nor any actions unplugged. That is something you have to do on your own. So use this method only if you know what you are doing :-)
(also note that this will call KXMLGUIClient::setFactory( 0L ) for all inserted clients)
Generated by: root@porky.devel.redhat.com on Wed May 10 08:56:43 2000, using kdoc 2.0a35. |