A concrete factory that builds a fill widget used to configure a basic fill element.
More...
#include <BasicFillWidgetFactory.h>
|
| static const factory_type * | find (const std::string &factoryKey) |
| |
| static dictionary_type & | getDictionary () |
| | It returns a reference to the internal dictionary of concrete factories.
|
| |
| static AbstractFillWidget * | make (const std::string &factoryKey) |
| | It creates an object with the appropriated factory.
|
| |
|
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.
|
| |
| static void | finalize () |
| | It finalizes the factory: the singleton instance will be destroyed and will be unregistered from the abstract factory AbstractFillWidgetFactory.
|
| |
|
|
| static void | RegisteredWidgets (std::vector< std::string > &keys) |
| | It informs the key of each registered fill widget factory.
|
| |
|
|
Concrete factory methods.
|
| AbstractFillWidget * | build () |
| | Concrete factories (derived from this one) must implement this method in order to create objects.
|
| |
|
| std::string | m_factoryKey |
| | The key that identifies the concrete factory: it will be used for unregistering the factory during destruction.
|
| |
A concrete factory that builds a fill widget used to configure a basic fill element.
- See also
- AbstractFillWidgetFactory
Definition at line 46 of file BasicFillWidgetFactory.h.
◆ dictionary_type
◆ factory_type
◆ ~BasicFillWidgetFactory()
| te::qt::widgets::BasicFillWidgetFactory::~BasicFillWidgetFactory |
( |
| ) |
|
Destructor.
- Note
- It will automatically unregister the factory from the dictionary.
◆ BasicFillWidgetFactory()
| te::qt::widgets::BasicFillWidgetFactory::BasicFillWidgetFactory |
( |
| ) |
|
|
protected |
It creates the factory.
The key of a BasicFillWidgetFactory is a string.
- Parameters
-
| factoryKey | The key that identifies the factory. |
◆ build()
◆ finalize()
| static void te::qt::widgets::BasicFillWidgetFactory::finalize |
( |
| ) |
|
|
static |
It finalizes the factory: the singleton instance will be destroyed and will be unregistered from the abstract factory AbstractFillWidgetFactory.
◆ find()
◆ getDictionary()
It returns a reference to the internal dictionary of concrete factories.
The dictionary is a singleton.
- Returns
- A reference to the internal dictionary.
Definition at line 106 of file AbstractFactory.h.
◆ getKey()
It returns the factory key associated to the concreate factory.
- Returns
- The factory key associated to the concreate factory.
Definition at line 84 of file AbstractFactory.h.
◆ initialize()
| static void te::qt::widgets::BasicFillWidgetFactory::initialize |
( |
| ) |
|
|
static |
◆ make()
It creates an object with the appropriated factory.
- Parameters
-
| factoryKey | A key that identifies the factory used to build the object. |
- Returns
- It returns a new object created by the given factory.
- Exceptions
-
| Exception | If the concrete factory is not specified or the object can not be built for any reason this methiod may throws an exception. |
- Note
- The caller of this method will take the ownership of the returned object.
Definition at line 97 of file AbstractFactory.h.
◆ RegisteredWidgets()
| static void te::qt::widgets::AbstractFillWidgetFactory::RegisteredWidgets |
( |
std::vector< std::string > & |
keys | ) |
|
|
staticinherited |
It informs the key of each registered fill widget factory.
- Parameters
-
| keys | A pre-created vector of string that will be filled with the keys of each registered fill widget factory. |
- Note
- All registered factories will be consulted.
◆ m_factoryKey
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.
◆ sm_factory
◆ sm_factoryKey
| std::string te::qt::widgets::BasicFillWidgetFactory::sm_factoryKey |
|
staticprivate |
The documentation for this class was generated from the following file: