The UI builder connected to a window or dialog. More...
#include <xmlui/builder.h>
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.
Builder | ( | QWidget * | parent | ) |
Constructor.
parent | The parent widget. |
~Builder | ( | ) |
Destructor.
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.
client | The client to add. |
void removeClient | ( | Client * | client | ) |
Remove a client from the builder.
The UI is automatically rebuilt.
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.
id | The identifier of the menu. |
NULL
if it wasn't found. void registerToolStrip | ( | const QString & | id, | |
ToolStrip * | strip | |||
) |
Register a toolstrip.
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.