kdeui Library API Documentation

KXMLGUIBuilder Class Reference

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

#include <kxmlguibuilder.h>

Inheritance diagram for KXMLGUIBuilder:

KMainWindow KDockMainWindow List of all members.

Public Member Functions

 KXMLGUIBuilder (QWidget *widget)
KXMLGUIClientbuilderClient () const
void setBuilderClient (KXMLGUIClient *client)
KInstancebuilderInstance () const
void setBuilderInstance (KInstance *instance)
QWidgetwidget ()
virtual QStringList containerTags () const
virtual QWidgetcreateContainer (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)

Protected Member Functions

virtual void virtual_hook (int id, void *data)

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

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)

Definition at line 112 of file kxmlguibuilder.cpp.

References KGlobal::instance(), KToolBar::loadState(), KToolBar::setXMLGUIClient(), KMenuBar::show(), and KMainWindow::statusBar().

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

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

Definition at line 234 of file kxmlguibuilder.cpp.

References kdWarning(), and KToolBar::saveState().


The documentation for this class was generated from the following files:
KDE Logo
This file is part of the documentation for kdeui Library Version 3.2.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Fri Jan 21 09:57:36 2005 by doxygen 1.3.6 written by Dimitri van Heesch, © 1997-2003