OpenStructure
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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

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

create widget by id

QString GetFullName ( const QString &  id)
static WidgetRegistry* Instance ( )
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


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