Gui::WidgetProducer< CLASS > Class Template Reference

The WidgetProducer class is a value-based template class that provides the ability to create widgets dynamically. More...

#include <WidgetFactory.h>

Inheritance diagram for Gui::WidgetProducer< CLASS >:
Base::AbstractProducer

List of all members.

Public Member Functions

virtual void * Produce () const
 Creates an instance of the specified widget.
 WidgetProducer ()
 Register a special type of widget to the WidgetFactoryInst.
virtual ~WidgetProducer ()

Detailed Description

template<class CLASS>
class Gui::WidgetProducer< CLASS >

The WidgetProducer class is a value-based template class that provides the ability to create widgets dynamically.

Author:
Werner Mayer

Definition at line 101 of file WidgetFactory.h.


Constructor & Destructor Documentation

template<class CLASS >
Gui::WidgetProducer< CLASS >::WidgetProducer (  )  [inline]

Register a special type of widget to the WidgetFactoryInst.

Definition at line 107 of file WidgetFactory.h.

References Base::Factory::AddProducer(), and Gui::WidgetFactoryInst::instance().

template<class CLASS >
virtual Gui::WidgetProducer< CLASS >::~WidgetProducer (  )  [inline, virtual]

Definition at line 113 of file WidgetFactory.h.


Member Function Documentation

template<class CLASS >
virtual void* Gui::WidgetProducer< CLASS >::Produce ( void   )  const [inline, virtual]

Creates an instance of the specified widget.

Implements Base::AbstractProducer.

Definition at line 118 of file WidgetFactory.h.


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

Generated on Wed Nov 23 19:02:05 2011 for FreeCAD by  doxygen 1.6.1