# class KXMLGUIBuilder

###

Module | kdeui
Namespace |
Class | KXMLGUIBuilder
Inherits |

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.

### methods

- KXMLGUIBuilder (widget)

  returns ctor
  KDE 4.1.0 and later only

  Argument | Type | Default
  --- | --- | ---
  widget | QWidget |

- KXMLGUIBuilder (a0)

  returns ctor
  before KDE 4.1.0 only

  Argument | Type | Default
  --- | --- | ---
  a0 | QWidget |

- builderClient ( )

  returns KXMLGUIClient

- builderComponentData ( )

  returns KComponentData

- containerTags ( )

  returns QStringList

- createContainer (a0, a1, a2)

  returns SIP_PYTUPLE

  Argument | Type | Default
  --- | --- | ---
  a0 | QWidget |
  a1 | int |
  a2 | QDomElement |

  Creates a container (menubar/menu/toolbar/statusbar/separator/...) from an element in the XML file

  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)

  action - The action created for this container; used for e.g. passing to removeContainer.

- createCustomElement (parent, index, element)

  returns QAction

  Argument | Type | Default
  --- | --- | ---
  parent | QWidget |
  index | int |
  element | QDomElement |

- customTags ( )

  returns QStringList

- finalizeGUI (client)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  client | KXMLGUIClient |

- removeContainer (container, parent, element, containerAction)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  container | QWidget |
  parent | QWidget |
  element | QDomElement |
  containerAction | QAction |

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

- removeCustomElement (parent, action)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  parent | QWidget |
  action | QAction |

- setBuilderClient (client)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  client | KXMLGUIClient |

- setBuilderComponentData (componentData)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  componentData | KComponentData |

- virtual_hook (id, data)

  returns Nothing
  Not implemented

  Argument | Type | Default
  --- | --- | ---
  id | int |
  data | void |

- widget ( )

  returns QWidget