org.kde.koala

Class KXMLGUIBuilder

public class KXMLGUIBuilder extends Object implements QtSupport, KXMLGUIBuilderInterface

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)

UNKNOWN: 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.

Constructor Summary
protected KXMLGUIBuilder(Class dummy)
KXMLGUIBuilder(QWidget widget)
Method Summary
KXMLGUIClientInterfacebuilderClient()
KInstanceInterfacebuilderInstance()
ArrayListcontainerTags()
QWidgetcreateContainer(QWidget parent, int index, QDomElement element, int[] id)
Creates a container (menubar/menu/toolbar/statusbar/separator/...) from an element in the XML file
intcreateCustomElement(QWidget parent, int index, QDomElement element)
ArrayListcustomTags()
voiddispose()
Delete the wrapped C++ instance ahead of finalize()
protected voidfinalize()
Deletes the wrapped C++ instance
voidfinalizeGUI(KXMLGUIClientInterface client)
booleanisDisposed()
Has the wrapped C++ instance been deleted?
voidremoveContainer(QWidget container, QWidget parent, QDomElement element, int id)
Removes the given (and previously via createContainer ) created container.
voidremoveCustomElement(QWidget parent, int id)
voidsetBuilderClient(KXMLGUIClientInterface client)
voidsetBuilderInstance(KInstanceInterface instance)
QWidgetwidget()

Constructor Detail

KXMLGUIBuilder

protected KXMLGUIBuilder(Class dummy)

KXMLGUIBuilder

public KXMLGUIBuilder(QWidget widget)

Method Detail

builderClient

public KXMLGUIClientInterface builderClient()

builderInstance

public KInstanceInterface builderInstance()

containerTags

public ArrayList containerTags()

createContainer

public QWidget createContainer(QWidget parent, int index, QDomElement element, int[] id)
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

UNKNOWN: Creates a container (menubar/menu/toolbar/statusbar/separator/.

createCustomElement

public int createCustomElement(QWidget parent, int index, QDomElement element)

customTags

public ArrayList customTags()

dispose

public void dispose()
Delete the wrapped C++ instance ahead of finalize()

finalize

protected void finalize()
Deletes the wrapped C++ instance

finalizeGUI

public void finalizeGUI(KXMLGUIClientInterface client)

isDisposed

public boolean isDisposed()
Has the wrapped C++ instance been deleted?

removeContainer

public void removeContainer(QWidget container, QWidget parent, QDomElement element, int id)
Removes the given (and previously via createContainer ) created container.

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

removeCustomElement

public void removeCustomElement(QWidget parent, int id)

setBuilderClient

public void setBuilderClient(KXMLGUIClientInterface client)

setBuilderInstance

public void setBuilderInstance(KInstanceInterface instance)

widget

public QWidget widget()