Main Page   Modules   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   Related Pages  

KXMLGUIBuilder Class Reference

#include <kxmlguibuilder.h>

Inheritance diagram for KXMLGUIBuilder:

KMainWindow KDockMainWindow KParts::MainWindow KParts::DockMainWindow List of all members.

Public Methods

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

Detailed Description

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

Definition at line 37 of file kxmlguibuilder.h.


Member Function Documentation

virtual QWidget* KXMLGUIBuilder::createContainer QWidget *    parent,
int    index,
const QDomElement &    element,
int &    id
[virtual]
 

Creates 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 .

virtual void KXMLGUIBuilder::removeContainer QWidget *    container,
QWidget *    parent,
QDomElement &    element,
int    id
[virtual]
 

Removes 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.


The documentation for this class was generated from the following file:
Generated on Wed Aug 13 23:30:29 2003 for kdelibs by doxygen1.2.18