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

Constructor & Destructor Documentation

◆ KXMLGUIBuilder()

KXMLGUIBuilder::KXMLGUIBuilder ( QWidget * widget)
explicit

Definition at line 68 of file kxmlguibuilder.cpp.

◆ ~KXMLGUIBuilder()

KXMLGUIBuilder::~KXMLGUIBuilder ( )
virtual

Definition at line 97 of file kxmlguibuilder.cpp.

Member Function Documentation

◆ builderClient()

KXMLGUIClient * KXMLGUIBuilder::builderClient ( ) const

Definition at line 394 of file kxmlguibuilder.cpp.

◆ containerTags()

QStringList KXMLGUIBuilder::containerTags ( ) const
virtual

Definition at line 107 of file kxmlguibuilder.cpp.

◆ createContainer()

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.

◆ createCustomElement()

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

Definition at line 304 of file kxmlguibuilder.cpp.

◆ customTags()

QStringList KXMLGUIBuilder::customTags ( ) const
virtual

Definition at line 297 of file kxmlguibuilder.cpp.

◆ finalizeGUI()

void KXMLGUIBuilder::finalizeGUI ( KXMLGUIClient * client)
virtual

Definition at line 404 of file kxmlguibuilder.cpp.

◆ removeContainer()

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

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

Definition at line 259 of file kxmlguibuilder.cpp.

◆ setBuilderClient()

void KXMLGUIBuilder::setBuilderClient ( KXMLGUIClient * client)

Definition at line 399 of file kxmlguibuilder.cpp.

◆ virtual_hook()

void KXMLGUIBuilder::virtual_hook ( int id,
void * data )
protectedvirtual

Definition at line 412 of file kxmlguibuilder.cpp.

◆ widget()

QWidget * KXMLGUIBuilder::widget ( )

Definition at line 102 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-2024 The KDE developers.
Generated on Fri Nov 22 2024 12:02:25 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.