.TH "KXMLGUIBuilder" 3 "28 Jan 2004" "kdeui Library" \" -*- nroff -*-
.ad l
.nh
.SH NAME
KXMLGUIBuilder \- Abstract interface for a 'GUI builder', used by the GUIFactory This interface is implemented by \fBKMainWindow\fP for the case where the toplevel widget is a \fBKMainWindow\fP.  

.PP
.SH SYNOPSIS
.br
.PP
\fC#include <kxmlguibuilder.h>\fP
.PP
Inherited by \fBKMainWindow\fP.
.PP
.SS "Public Member Functions"

.in +1c
.ti -1c
.RI "\fBKXMLGUIBuilder\fP (\fBQWidget\fP *widget)"
.br
.ti -1c
.RI "\fBKXMLGUIClient\fP * \fBbuilderClient\fP () const "
.br
.ti -1c
.RI "void \fBsetBuilderClient\fP (\fBKXMLGUIClient\fP *client)"
.br
.ti -1c
.RI "\fBKInstance\fP * \fBbuilderInstance\fP () const "
.br
.ti -1c
.RI "void \fBsetBuilderInstance\fP (\fBKInstance\fP *instance)"
.br
.ti -1c
.RI "\fBQWidget\fP * \fBwidget\fP ()"
.br
.ti -1c
.RI "virtual \fBQStringList\fP \fBcontainerTags\fP () const "
.br
.ti -1c
.RI "virtual \fBQWidget\fP * \fBcreateContainer\fP (\fBQWidget\fP *parent, int index, const  \fBQDomElement\fP &element, int &id)"
.br
.RI "\fICreates a container (menubar/menu/toolbar/statusbar/separator/...) from an element in the XML file. \fP"
.ti -1c
.RI "virtual void \fBremoveContainer\fP (\fBQWidget\fP *container, \fBQWidget\fP *parent, \fBQDomElement\fP &element, int id)"
.br
.RI "\fIRemoves the given (and previously via \fBcreateContainer\fP ) created container. \fP"
.ti -1c
.RI "virtual \fBQStringList\fP \fBcustomTags\fP () const "
.br
.ti -1c
.RI "virtual int \fBcreateCustomElement\fP (\fBQWidget\fP *parent, int index, const  \fBQDomElement\fP &element)"
.br
.ti -1c
.RI "virtual void \fBremoveCustomElement\fP (\fBQWidget\fP *parent, int id)"
.br
.ti -1c
.RI "virtual void \fBfinalizeGUI\fP (\fBKXMLGUIClient\fP *client)"
.br
.in -1c
.SS "Protected Member Functions"

.in +1c
.ti -1c
.RI "virtual void \fBvirtual_hook\fP (int id, void *data)"
.br
.in -1c
.SH "Detailed Description"
.PP 
Abstract interface for a 'GUI builder', used by the GUIFactory This interface is implemented by \fBKMainWindow\fP for the case where the toplevel widget is a \fBKMainWindow\fP. 

Other implementations may appear in the future (dialogs for instance) 
.PP
Definition at line 37 of file kxmlguibuilder.h.
.SH "Member Function Documentation"
.PP 
.SS "\fBQWidget\fP * KXMLGUIBuilder::createContainer (\fBQWidget\fP * parent, int index, const \fBQDomElement\fP & element, int & id)\fC [virtual]\fP"
.PP
Creates a container (menubar/menu/toolbar/statusbar/separator/...) from an element in the XML file. \fBParameters:\fP
.RS 4
\fIparent\fP The parent for the container 
.br
\fIindex\fP The index where the container should be inserted into the parent container/widget 
.br
\fIelement\fP The element from the DOM tree describing the container (use it to access container specified attributes or child elements) 
.br
\fIcontainerStateBuffer\fP A buffer which possibibly contains previously saved container state information, return via \fBremoveContainer\fP . 
.RE
.PP
Definition at line 111 of file kxmlguibuilder.cpp.
.PP
References QDomElement::attribute(), KGlobal::instance(), KNotifyClient::instance(), QString::isEmpty(), QCString::isEmpty(), KToolBar::loadState(), KStdAccel::name(), QWidget::parentWidget(), KToolBar::setXMLGUIClient(), KMenuBar::show(), KMainWindow::statusBar(), QDomElement::tagName(), and QDomElement::text().
.SS "void KXMLGUIBuilder::removeContainer (\fBQWidget\fP * container, \fBQWidget\fP * parent, \fBQDomElement\fP & element, int id)\fC [virtual]\fP"
.PP
Removes the given (and previously via \fBcreateContainer\fP ) created container. \fBReturns:\fP
.RS 4
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 \fBcreateContainer\fP when the same container is about to be created again later. 
.RE
.PP
Definition at line 228 of file kxmlguibuilder.cpp.
.PP
References QWidget::hide(), QMenuBar::hide(), and KToolBar::saveState().

.SH "Author"
.PP 
Generated automatically by Doxygen for kdeui Library from the source code.
