A factory to build the project frame object. More...
#include <ProjectWidgetFactory.h>
  
 Public Types | |
| typedef FactoryDictionary < AbstractFactory < AbstractSettingWidget, std::string, TKEYCOMPARE > , std::string, TKEYCOMPARE >  | 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... | |
| ~ProjectWidgetFactory () | |
Static Public Member Functions | |
| static void | finalize () | 
| 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 void | initialize () | 
| 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 | |
| AbstractSettingWidget * | build () | 
| Concrete factories (derived from this one) must implement this method in order to create objects.  More... | |
| virtual AbstractSettingWidget * | create (QWidget *parent=0) | 
| ProjectWidgetFactory () | |
Protected Attributes | |
| std::string | m_factoryKey | 
| The key that identifies the concrete factory: it will be used for unregistering the factory during destruction.  More... | |
Static Private Attributes | |
| static ProjectWidgetFactory * | sm_factory | 
A factory to build the project frame object.
Definition at line 47 of file ProjectWidgetFactory.h.
      
  | 
  inherited | 
Definition at line 73 of file AbstractFactory.h.
      
  | 
  inherited | 
Definition at line 77 of file AbstractFactory.h.
| te::qt::af::ProjectWidgetFactory::~ProjectWidgetFactory | ( | ) | 
Definition at line 19 of file ProjectWidgetFactory.cpp.
      
  | 
  protected | 
Definition at line 29 of file ProjectWidgetFactory.cpp.
Referenced by initialize().
      
  | 
  protectedvirtual | 
Concrete factories (derived from this one) must implement this method in order to create objects.
Implements te::common::AbstractFactory< AbstractSettingWidget, std::string >.
Definition at line 24 of file ProjectWidgetFactory.cpp.
      
  | 
  protectedvirtual | 
Implements te::qt::af::SettingsWidgetsFactory.
Definition at line 35 of file ProjectWidgetFactory.cpp.
      
  | 
  static | 
Definition at line 13 of file ProjectWidgetFactory.cpp.
Referenced by initialize(), and te::qt::af::SettingsDialog::~SettingsDialog().
      
  | 
  staticinherited | 
      
  | 
  staticinherited | 
It returns a reference to the internal dictionary of concrete factories.
The dictionary is a singleton.
Referenced by GetFactoriesNames().
      
  | 
  inherited | 
It returns the factory key associated to the concreate factory.
      
  | 
  static | 
Definition at line 7 of file ProjectWidgetFactory.cpp.
References finalize(), ProjectWidgetFactory(), and sm_factory.
Referenced by te::qt::af::SettingsDialog::SettingsDialog().
      
  | 
  inlinestaticinherited | 
Definition at line 54 of file SettingsWidgetsFactory.h.
References te::qt::af::SettingsWidgetsFactory::create(), te::common::FactoryDictionary< TFACTORY, TFACTORYKEY, TKEYCOMPARE >::find(), and te::common::AbstractFactory< TPRODUCT, TFACTORYKEY, TKEYCOMPARE >::getDictionary().
Referenced by GetWidget().
      
  | 
  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.
      
  | 
  staticprivate | 
Definition at line 67 of file ProjectWidgetFactory.h.
Referenced by initialize().