WidgetRegistry Class Reference

central registry for widgets More...

#include <widget_registry.hh>

Inherits PyQt4::QtCore::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:
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines

Generated on 10 Nov 2016 for OpenStructure by  doxygen 1.6.1