kdeui
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>
Public Member Functions | |
KXMLGUIClient * | builderClient () const |
KInstance * | builderInstance () const |
virtual QStringList | containerTags () const |
virtual QWidget * | createContainer (QWidget *parent, int index, const QDomElement &element, int &id) |
virtual int | createCustomElement (QWidget *parent, int index, const QDomElement &element) |
virtual QStringList | customTags () const |
virtual void | finalizeGUI (KXMLGUIClient *client) |
KXMLGUIBuilder (QWidget *widget) | |
virtual void | removeContainer (QWidget *container, QWidget *parent, QDomElement &element, int id) |
virtual void | removeCustomElement (QWidget *parent, int id) |
void | setBuilderClient (KXMLGUIClient *client) |
void | setBuilderInstance (KInstance *instance) |
QWidget * | widget () |
virtual | ~KXMLGUIBuilder () |
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 39 of file kxmlguibuilder.h.
Constructor & Destructor Documentation
KXMLGUIBuilder::KXMLGUIBuilder | ( | QWidget * | widget | ) |
Definition at line 68 of file kxmlguibuilder.cpp.
KXMLGUIBuilder::~KXMLGUIBuilder | ( | ) | [virtual] |
Definition at line 96 of file kxmlguibuilder.cpp.
Member Function Documentation
KXMLGUIClient * KXMLGUIBuilder::builderClient | ( | ) | const |
Definition at line 400 of file kxmlguibuilder.cpp.
KInstance * KXMLGUIBuilder::builderInstance | ( | ) | const |
Definition at line 412 of file kxmlguibuilder.cpp.
QStringList KXMLGUIBuilder::containerTags | ( | ) | const [virtual] |
Definition at line 106 of file kxmlguibuilder.cpp.
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) id The id to be used for this container
Definition at line 114 of file kxmlguibuilder.cpp.
int KXMLGUIBuilder::createCustomElement | ( | QWidget * | parent, | |
int | index, | |||
const QDomElement & | element | |||
) | [virtual] |
Definition at line 290 of file kxmlguibuilder.cpp.
QStringList KXMLGUIBuilder::customTags | ( | ) | const [virtual] |
Definition at line 283 of file kxmlguibuilder.cpp.
void KXMLGUIBuilder::finalizeGUI | ( | KXMLGUIClient * | client | ) | [virtual] |
void KXMLGUIBuilder::removeContainer | ( | QWidget * | container, | |
QWidget * | parent, | |||
QDomElement & | element, | |||
int | id | |||
) | [virtual] |
Removes the given (and previously via createContainer ) created container.
Definition at line 240 of file kxmlguibuilder.cpp.
void KXMLGUIBuilder::removeCustomElement | ( | QWidget * | parent, | |
int | id | |||
) | [virtual] |
Definition at line 390 of file kxmlguibuilder.cpp.
void KXMLGUIBuilder::setBuilderClient | ( | KXMLGUIClient * | client | ) |
Definition at line 405 of file kxmlguibuilder.cpp.
void KXMLGUIBuilder::setBuilderInstance | ( | KInstance * | instance | ) |
Definition at line 417 of file kxmlguibuilder.cpp.
void KXMLGUIBuilder::virtual_hook | ( | int | id, | |
void * | data | |||
) | [protected, virtual] |
Reimplemented in KDockMainWindow, and KMainWindow.
Definition at line 439 of file kxmlguibuilder.cpp.
QWidget * KXMLGUIBuilder::widget | ( | ) |
Definition at line 101 of file kxmlguibuilder.cpp.
The documentation for this class was generated from the following files: