KXMLGUIBuilder Class

Header: #include <KXMLGUIBuilder>
Inherited By:

KXmlGuiWindow

Public Functions

virtual QWidget *createContainer(QWidget *parent, int index, const QDomElement &element, QAction *&containerAction)
virtual void removeContainer(QWidget *container, QWidget *parent, QDomElement &element, QAction *containerAction)

Detailed Description

@class KXMLGUIBuilder kxmlguibuilder.h KXMLGUIBuilder

Implements the creation of the GUI (menubar, menus and toolbars) as requested by the GUI factory.

The virtual methods are mostly for historical reasons, there isn't really a need to derive from KXMLGUIBuilder anymore.

Member Function Documentation

[virtual] QWidget *KXMLGUIBuilder::createContainer(QWidget *parent, int index, const QDomElement &element, QAction *&containerAction)

Creates a container (menubar/menu/toolbar/statusbar/separator/...) from an element in the XML file

@param parent The parent for the container @param index The index where the container should be inserted into the parent container/widget @param element The element from the DOM tree describing the container (use it to access container specified attributes or child elements) @param action The action created for this container; used for e.g. passing to removeContainer.

[virtual] void KXMLGUIBuilder::removeContainer(QWidget *container, QWidget *parent, QDomElement &element, QAction *containerAction)

Removes the given (and previously via createContainer ) created container.