|
OpenStructure
|
#include <widget_registry.hh>
Inherits QObject.
Public Member Functions | |
| bool | RegisterWidgetFactory (WidgetFactory *factory) |
| bool | UnregisterWidgetFactory (const QString &id) |
| Widget * | Create (const QString &id, QWidget *parent) |
| QString | GetFullName (const QString &id) |
Static Public Member Functions | |
| static WidgetRegistry * | Instance () |
central registry for widgets
Definition at line 67 of file widget_registry.hh.
| Widget * Create | ( | const QString & | id, |
| QWidget * | parent | ||
| ) |
create widget by id
| QString GetFullName | ( | const QString & | id | ) |
|
static |
| bool RegisterWidgetFactory | ( | WidgetFactory * | factory | ) |
register widget factory
The widget registry takes ownership of the widget factory
| bool UnregisterWidgetFactory | ( | const QString & | id | ) |
unregister widget factory
The ownership of the widget factory is set to NULL