• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdelibs API Reference
  • KDE Home
  • Contact Us
 

KDEUI

Public Member Functions | Protected Member Functions | List of all members
KXMLGUIBuilder Class Reference

#include <kxmlguibuilder.h>

Inheritance diagram for KXMLGUIBuilder:
Inheritance graph
[legend]

Public Member Functions

 KXMLGUIBuilder (QWidget *widget)
 
virtual ~KXMLGUIBuilder ()
 
KXMLGUIClient * builderClient () const
 
KComponentData builderComponentData () const
 
virtual QStringList containerTags () const
 
virtual QWidget * createContainer (QWidget *parent, int index, const QDomElement &element, QAction *&containerAction)
 
virtual QAction * createCustomElement (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)
 
void setBuilderComponentData (const KComponentData &componentData)
 
QWidget * widget ()
 

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 41 of file kxmlguibuilder.h.

Constructor & Destructor Documentation

KXMLGUIBuilder::KXMLGUIBuilder ( QWidget *  widget)
explicit

Definition at line 79 of file kxmlguibuilder.cpp.

KXMLGUIBuilder::~KXMLGUIBuilder ( )
virtual

Definition at line 106 of file kxmlguibuilder.cpp.

Member Function Documentation

KXMLGUIClient * KXMLGUIBuilder::builderClient ( ) const

Definition at line 380 of file kxmlguibuilder.cpp.

KComponentData KXMLGUIBuilder::builderComponentData ( ) const

Definition at line 392 of file kxmlguibuilder.cpp.

QStringList KXMLGUIBuilder::containerTags ( ) const
virtual

Definition at line 117 of file kxmlguibuilder.cpp.

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 125 of file kxmlguibuilder.cpp.

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

Definition at line 289 of file kxmlguibuilder.cpp.

QStringList KXMLGUIBuilder::customTags ( ) const
virtual

Definition at line 282 of file kxmlguibuilder.cpp.

void KXMLGUIBuilder::finalizeGUI ( KXMLGUIClient *  client)
virtual

Reimplemented in KXmlGuiWindow.

Definition at line 402 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 243 of file kxmlguibuilder.cpp.

void KXMLGUIBuilder::removeCustomElement ( QWidget *  parent,
QAction *  action 
)
virtual

Definition at line 375 of file kxmlguibuilder.cpp.

void KXMLGUIBuilder::setBuilderClient ( KXMLGUIClient *  client)

Definition at line 385 of file kxmlguibuilder.cpp.

void KXMLGUIBuilder::setBuilderComponentData ( const KComponentData &  componentData)

Definition at line 397 of file kxmlguibuilder.cpp.

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

Definition at line 420 of file kxmlguibuilder.cpp.

QWidget * KXMLGUIBuilder::widget ( )

Definition at line 112 of file kxmlguibuilder.cpp.


The documentation for this class was generated from the following files:
  • kxmlguibuilder.h
  • kxmlguibuilder.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:24:03 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KDEUI

Skip menu "KDEUI"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Modules
  • Related Pages

kdelibs API Reference

Skip menu "kdelibs API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal