KXMLGUIBuilder

Search for usage in LXR

#include <KXMLGUIBuilder>

Inheritance diagram for KXMLGUIBuilder:

Public Member Functions

 KXMLGUIBuilder (QWidget *widget)
 
KXMLGUIClientbuilderClient () const
 
virtual QStringList containerTags () const
 
virtual QWidgetcreateContainer (QWidget *parent, int index, const QDomElement &element, QAction *&containerAction)
 
virtual QActioncreateCustomElement (QWidget *parent, int index, const QDomElement &element)
 
virtual QStringList customTags () const
 
virtual void finalizeGUI (KXMLGUIClient *client)
 
virtual void removeContainer (QWidget *container, QWidget *parent, QDomElement &element, QAction *containerAction)
 
virtual void removeCustomElement (QWidget *parent, QAction *action)
 
void setBuilderClient (KXMLGUIClient *client)
 
QWidgetwidget ()
 

Protected Member Functions

virtual void virtual_hook (int id, void *data)
 

Detailed Description

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.

Definition at line 33 of file kxmlguibuilder.h.

Member Function Documentation

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

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

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

Definition at line 115 of file kxmlguibuilder.cpp.

void KXMLGUIBuilder::removeContainer ( QWidget container,
QWidget parent,
QDomElement element,
QAction containerAction 
)
virtual

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

Definition at line 256 of file kxmlguibuilder.cpp.

void KXMLGUIBuilder::removeCustomElement ( QWidget parent,
QAction action 
)
virtual
Deprecated:
Since 5.0, do not use

Definition at line 387 of file kxmlguibuilder.cpp.


The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Wed May 12 2021 22:50:19 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.