# class KXMLGUIBuilder | More...
Internal Use Only
Definition | `#include <kxmlguibuilder.h>`
Inherited by | KDockMainWindow, KMainWindow, KTMainWindow
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

#### Public Methods

- KXMLGUIBuilder ( QWidget *widget )
- virtual ~KXMLGUIBuilder ()
- KXMLGUIClient * builderClient () const
- void setBuilderClient ( KXMLGUIClient *client )
- KInstance * builderInstance () const
- void setBuilderInstance ( KInstance *instance )
- virtual QStringList containerTags () const
- virtual QWidget * createContainer ( QWidget *parent, int index, const QDomElement &element, int &id )
- virtual void removeContainer ( QWidget *container, QWidget *parent, QDomElement &element, int id )
- virtual QStringList customTags () const
- virtual int createCustomElement ( QWidget *parent, int index, const QDomElement &element )
- virtual void removeCustomElement ( QWidget *parent, int id )
- virtual void finalizeGUI ( KXMLGUIClient *client )

## Detailed Description

Abstract interface for a "GUI builder", used by the GUIFactory This interface is implemented by MainWindow for the case where the toplevel widget is a KMainWindow. Other implementations may appear in the future (dialogs for instance)

KXMLGUIBuilder ( QWidget *widget ) | ### KXMLGUIBuilder

~KXMLGUIBuilder () | ### ~KXMLGUIBuilder

[virtual]

KXMLGUIClient * builderClient () | ### builderClient

[const]

void setBuilderClient ( KXMLGUIClient *client ) | ### setBuilderClient

KInstance * builderInstance () | ### builderInstance

[const]

void setBuilderInstance ( KInstance *instance ) | ### setBuilderInstance

QStringList containerTags () | ### containerTags

[const virtual]

QWidget * createContainer ( QWidget *parent, int index, const QDomElement &element, int &id ) | ### createContainer

[virtual]

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

Parameters:

parent | The parent for the container
index | The index where the container should be inserted into the parent container/widget
element | The element from the DOM tree describing the container (use it to access container specified attributes or child elements)
containerStateBuffer | A buffer which possibibly contains previously saved container state information, return via removeContainer .

void removeContainer ( QWidget *container, QWidget *parent, QDomElement &element, int id ) | ### removeContainer

[virtual]

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

Returns: A buffer containing state information about the deleted container (like the last position of a toolbar container for example). The buffer is passed again to createContainer when the same container is about to be created again later.

QStringList customTags () | ### customTags

[const virtual]

int createCustomElement ( QWidget *parent, int index, const QDomElement &element ) | ### createCustomElement

[virtual]

void removeCustomElement ( QWidget *parent, int id ) | ### removeCustomElement

[virtual]

void finalizeGUI ( KXMLGUIClient *client ) | ### finalizeGUI

[virtual]

Generated by: root@i386.ports.openbsd.org on Wed Apr 25 13:58:24 2001, using kdoc 2.0a53.