A concrete factory that builds a fill widget used to configure a fill element associated with a graphic. More...
#include <GraphicFillWidgetFactory.h>
  
Public Types | |
| typedef FactoryDictionary< AbstractFactory< AbstractFillWidget, 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... | |
Public Destructor  | |
Destructor.  | |
| ~GraphicFillWidgetFactory () | |
| Destructor.  More... | |
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 AbstractFillWidget * | make (const std::string &factoryKey) | 
| It creates an object with the appropriated factory.  More... | |
Public Initializer  | |
Methods for the control of the factory singleton.  | |
| static void | initialize () | 
| It initializes the factory: the singleton instance will be registered in the abstract factory AbstractFillWidgetFactory.  More... | |
| static void | finalize () | 
| It finalizes the factory: the singleton instance will be destroyed and will be unregistered from the abstract factory AbstractFillWidgetFactory.  More... | |
Public Destructor  | |
Destructor.  | |
| static void | RegisteredWidgets (std::vector< std::string > &keys) | 
| It informs the key of each registered fill widget factory.  More... | |
Protected Member Functions | |
Re-implementation of Pure Virtual Method  | |
Concrete factory methods.  | |
| AbstractFillWidget * | build () | 
| Concrete factories (derived from this one) must implement this method in order to create objects.  More... | |
Protected Attributes | |
| std::string | m_factoryKey | 
| The key that identifies the concrete factory: it will be used for unregistering the factory during destruction.  More... | |
Protected Initializers | |
Initializers.  | |
| static std::string | sm_factoryKey | 
| The factory key.  More... | |
| static GraphicFillWidgetFactory * | sm_factory | 
| A pointer to the global factory.  More... | |
| GraphicFillWidgetFactory () | |
| It creates the factory.  More... | |
A concrete factory that builds a fill widget used to configure a fill element associated with a graphic.
Definition at line 46 of file GraphicFillWidgetFactory.h.
      
  | 
  inherited | 
Definition at line 73 of file AbstractFactory.h.
      
  | 
  inherited | 
Definition at line 77 of file AbstractFactory.h.
| te::qt::widgets::GraphicFillWidgetFactory::~GraphicFillWidgetFactory | ( | ) | 
Destructor.
      
  | 
  protected | 
It creates the factory.
The key of a GraphicFillWidgetFactory is a string.
| factoryKey | The key that identifies the factory. | 
      
  | 
  protectedvirtual | 
Concrete factories (derived from this one) must implement this method in order to create objects.
Implements te::common::AbstractFactory< AbstractFillWidget, std::string >.
      
  | 
  static | 
It finalizes the factory: the singleton instance will be destroyed and will be unregistered from the abstract factory AbstractFillWidgetFactory.
      
  | 
  inlinestaticinherited | 
Definition at line 108 of file AbstractFactory.h.
      
  | 
  inlinestaticinherited | 
It returns a reference to the internal dictionary of concrete factories.
The dictionary is a singleton.
Definition at line 106 of file AbstractFactory.h.
      
  | 
  inlineinherited | 
It returns the factory key associated to the concreate factory.
Definition at line 84 of file AbstractFactory.h.
      
  | 
  static | 
It initializes the factory: the singleton instance will be registered in the abstract factory AbstractFillWidgetFactory.
      
  | 
  inlinestaticinherited | 
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. | 
Definition at line 97 of file AbstractFactory.h.
      
  | 
  staticinherited | 
It informs the key of each registered fill widget factory.
| keys | A pre-created vector of string that will be filled with the keys of each registered fill widget factory. | 
      
  | 
  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 | 
A pointer to the global factory.
Definition at line 109 of file GraphicFillWidgetFactory.h.
      
  | 
  staticprivate | 
The factory key.
Definition at line 108 of file GraphicFillWidgetFactory.h.