#include <FactoryBase.h>
Inheritance diagram for GUI::FactoryBase:
Public Member Functions | |
const std::string & | getClassName () const |
Return the class name. | |
virtual WidgetBase * | create (ModelBase *model_ptr)=0 |
Create a new top level widget, a top level widget is not contained in any widget. | |
virtual WidgetBase * | create (ModelBase *model_ptr, WidgetContainer *container_ptr)=0 |
Create a new child widget, a child widget must be contained in a widget. |
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.
model_ptr | pointer to the object model, can not be NULL | |
container_ptr | pointer to the WidgetContainer, can not be NULL |
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.
model_ptr | pointer to the object model, can not be NULL |
Implemented in GUI::EditFactory, and GUI::FormFactory.
const std::string & GUI::FactoryBase::getClassName | ( | ) | const |
Return the class name.