Signals | Public Member Functions

Builder Class Reference

The UI builder connected to a window or dialog. More...

#include <xmlui/builder.h>

List of all members.

Signals

Public Member Functions


Detailed Description

The UI builder connected to a window or dialog.

The builder object automatically populates the ToolStrip widgets. The builder can also create popup menus.

The menus and toolstrips are created by merging the layout of all registered clients.


Constructor & Destructor Documentation

Builder ( QWidget *  parent  ) 

Constructor.

Parameters:
parent The parent widget.
~Builder (  ) 

Destructor.


Member Function Documentation

void addClient ( Client client  ) 

Add a client to the builder.

The UI is automatically rebuilt. The UI is merged in the same order the clients are added.

Parameters:
client The client to add.
void removeClient ( Client client  ) 

Remove a client from the builder.

The UI is automatically rebuilt.

Parameters:
client The client to remove.
QMenu * contextMenu ( const QString &  id  ) 

Create a context menu.

Note that the menu is deleted when the UI is rebuilt.

Parameters:
id The identifier of the menu.
Returns:
The created menu or NULL if it wasn't found.
void registerToolStrip ( const QString &  id,
ToolStrip strip 
)

Register a toolstrip.

Parameters:
id The identifier of the toolstrip.
strip The ToolStrip to populate with actions.
ToolStrip * toolStrip ( const QString &  id  )  const

Return the toolstrip with given identifier.

void supressUpdate (  ) 

Supress rebuilding the UI.

void resumeUpdate (  ) 

Resume rebuilding the UI.

void rebuildAll (  ) 

Rebuild the entire UI.

void reset (  )  [signal]

Emitted when the UI is reset.