OpenStructure
Public Member Functions | Static Public Member Functions
WidgetRegistry Class Reference

#include <widget_registry.hh>

Inherits QObject.

Public Member Functions

bool RegisterWidgetFactory (WidgetFactory *factory)
 
bool UnregisterWidgetFactory (const QString &id)
 
WidgetCreate (const QString &id, QWidget *parent)
 
QString GetFullName (const QString &id)
 

Static Public Member Functions

static WidgetRegistryInstance ()
 

Detailed Description

central registry for widgets

Definition at line 67 of file widget_registry.hh.

Member Function Documentation

◆ Create()

Widget* Create ( const QString &  id,
QWidget *  parent 
)

create widget by id

◆ GetFullName()

QString GetFullName ( const QString &  id)

◆ Instance()

static WidgetRegistry* Instance ( )
static

◆ RegisterWidgetFactory()

bool RegisterWidgetFactory ( WidgetFactory factory)

register widget factory

The widget registry takes ownership of the widget factory

◆ UnregisterWidgetFactory()

bool UnregisterWidgetFactory ( const QString &  id)

unregister widget factory

The ownership of the widget factory is set to NULL


The documentation for this class was generated from the following file: