GUI::FactoryBase Class Reference

Base class for widget factory. More...

#include <FactoryBase.h>

Inheritance diagram for GUI::FactoryBase:

GUI::EditFactory GUI::FormFactory List of all members.

Public Member Functions

const std::string & getClassName () const
 Return the class name.
virtual WidgetBasecreate (ModelBase *model_ptr)=0
 Create a new top level widget, a top level widget is not contained in any widget.
virtual WidgetBasecreate (ModelBase *model_ptr, WidgetContainer *container_ptr)=0
 Create a new child widget, a child widget must be contained in a widget.

Detailed Description

Base class for widget factory.


Member Function Documentation

virtual WidgetBase* GUI::FactoryBase::create ( ModelBase model_ptr,
WidgetContainer container_ptr 
) [pure virtual]

Create a new child widget, a child widget must be contained in a widget.

Parameters:
model_ptr pointer to the object model, can not be NULL
container_ptr pointer to the WidgetContainer, can not be NULL
Returns:
a new instance of the widget

Implemented in GUI::EditFactory, and GUI::FormFactory.

virtual WidgetBase* GUI::FactoryBase::create ( ModelBase model_ptr  )  [pure virtual]

Create a new top level widget, a top level widget is not contained in any widget.

Parameters:
model_ptr pointer to the object model, can not be NULL
Returns:
a new instance of the widget

Implemented in GUI::EditFactory, and GUI::FormFactory.

const std::string & GUI::FactoryBase::getClassName (  )  const

Return the class name.

Returns:
the class name


The documentation for this class was generated from the following files:
Generated on Wed Nov 15 22:21:10 2006 for Win32 by  doxygen 1.4.7