The PrefPagePyProducer class provides the ability to create preference pages dynamically from a Python class. More...
#include <WidgetFactory.h>
Public Member Functions | |
PrefPagePyProducer (const Py::Object &, const char *group) | |
Register a special type of preference page to the WidgetFactoryInst. More... | |
virtual void * | Produce () const |
Creates an instance of the specified widget. More... | |
virtual | ~PrefPagePyProducer () |
Public Member Functions inherited from Base::AbstractProducer | |
AbstractProducer () | |
virtual void * | Produce () const =0 |
overwritten by a concrete producer to produce the needed object More... | |
virtual | ~AbstractProducer () |
The PrefPagePyProducer class provides the ability to create preference pages dynamically from a Python class.
PrefPagePyProducer::PrefPagePyProducer | ( | const Py::Object & | p, |
const char * | group | ||
) |
Register a special type of preference page to the WidgetFactoryInst.
References Gui::Dialog::DlgPreferencesImp::addPage(), Base::Factory::AddProducer(), and Gui::WidgetFactoryInst::instance().
|
virtual |
|
virtual |
Creates an instance of the specified widget.
Implements Base::AbstractProducer.