#include <SettingsWidgetsFactory.h>
Public Types | |
typedef FactoryDictionary< AbstractFactory< AbstractSettingWidget, std::string, std::less< std::string > >, std::string, std::less< std::string > > | dictionary_type |
typedef AbstractFactory | factory_type |
Public Member Functions | |
const std::string & | getKey () const |
It returns the factory key associated to the concreate factory. More... | |
~SettingsWidgetsFactory () | |
Static Public Member Functions | |
static const factory_type * | find (const std::string &factoryKey) |
static dictionary_type & | getDictionary () |
It returns a reference to the internal dictionary of concrete factories. More... | |
static AbstractSettingWidget * | make (const std::string &cwType, QWidget *parent=0) |
static AbstractSettingWidget * | make (const std::string &factoryKey) |
It creates an object with the appropriated factory. More... | |
Protected Member Functions | |
virtual AbstractSettingWidget * | build ()=0 |
Concrete factories (derived from this one) must implement this method in order to create objects. More... | |
virtual AbstractSettingWidget * | create (QWidget *parent=0)=0 |
SettingsWidgetsFactory (const std::string &fKey) | |
Protected Attributes | |
std::string | m_factoryKey |
The key that identifies the concrete factory: it will be used for unregistering the factory during destruction. More... | |
Definition at line 39 of file SettingsWidgetsFactory.h.
|
inherited |
Definition at line 73 of file AbstractFactory.h.
|
inherited |
Definition at line 77 of file AbstractFactory.h.
|
inline |
Definition at line 66 of file SettingsWidgetsFactory.h.
|
inlineprotected |
Definition at line 70 of file SettingsWidgetsFactory.h.
|
protectedpure virtualinherited |
Concrete factories (derived from this one) must implement this method in order to create objects.
Implemented in te::qt::af::TableWidgetFactory, te::qt::af::ToolbarsWidgetFactory, te::qt::af::DisplayWidgetFactory, te::qt::af::GeneralConfigWidgetFactory, and ProjectWidgetFactory.
|
protectedpure virtual |
Implemented in te::qt::af::TableWidgetFactory, te::qt::af::ToolbarsWidgetFactory, te::qt::af::DisplayWidgetFactory, te::qt::af::GeneralConfigWidgetFactory, and ProjectWidgetFactory.
Referenced by make().
|
staticinherited |
|
staticinherited |
It returns a reference to the internal dictionary of concrete factories.
The dictionary is a singleton.
|
inherited |
It returns the factory key associated to the concreate factory.
|
inlinestatic |
Definition at line 54 of file SettingsWidgetsFactory.h.
References create(), te::common::FactoryDictionary< TFACTORY, TFACTORYKEY, TKEYCOMPARE >::find(), and te::common::AbstractFactory< TPRODUCT, TFACTORYKEY, TKEYCOMPARE >::getDictionary().
|
staticinherited |
It creates an object with the appropriated factory.
factoryKey | A key that identifies the factory used to build the object. |
Exception | If the concrete factory is not specified or the object can not be built for any reason this methiod may throws an exception. |
|
protectedinherited |
The key that identifies the concrete factory: it will be used for unregistering the factory during destruction.
Definition at line 136 of file AbstractFactory.h.