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:

Public Methods | |
virtual QWidget * | createContainer (QWidget *parent, int index, const QDomElement &element, int &id) |
Creates a container (menubar/menu/toolbar/statusbar/separator/...) from an element in the XML file. | |
virtual void | removeContainer (QWidget *container, QWidget *parent, QDomElement &element, int id) |
Removes the given (and previously via createContainer ) created container. |
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
|
Creates a container (menubar/menu/toolbar/statusbar/separator/...) from an element in the XML file.
Definition at line 126 of file kxmlguibuilder.cpp. References QDomElement::attribute(), KGlobal::instance(), KNotifyClient::instance(), QString::isEmpty(), QCString::isEmpty(), KToolBar::loadState(), QWidget::parentWidget(), KToolBar::setXMLGUIClient(), KMenuBar::show(), KMainWindow::statusBar(), QDomElement::tagName(), and QDomElement::text(). |
|
Removes the given (and previously via createContainer ) created container.
Definition at line 243 of file kxmlguibuilder.cpp. References QWidget::hide(), QMenuBar::hide(), and KToolBar::saveState(). |
The documentation for this class was generated from the following files: