A concrete factory that builds a graphic widget used to configure a graphic associate with an external graphic element that references a local image. e.g. a SVG file, a PNG file, etc.
More...
#include <LocalGraphicWidgetFactory.h>
|
std::string | m_factoryKey |
| The key that identifies the concrete factory: it will be used for unregistering the factory during destruction. More...
|
|
A concrete factory that builds a graphic widget used to configure a graphic associate with an external graphic element that references a local image. e.g. a SVG file, a PNG file, etc.
- See also
- AbstractGraphicWidgetFactory
Definition at line 48 of file LocalGraphicWidgetFactory.h.
te::qt::widgets::LocalGraphicWidgetFactory::~LocalGraphicWidgetFactory |
( |
| ) |
|
Destructor.
- Note
- It will automatically unregister the factory from the dictionary.
te::qt::widgets::LocalGraphicWidgetFactory::LocalGraphicWidgetFactory |
( |
| ) |
|
|
protected |
It creates the factory.
The key of a LocalGraphicWidgetFactory is a string.
- Parameters
-
factoryKey | The key that identifies the factory. |
static void te::qt::widgets::LocalGraphicWidgetFactory::finalize |
( |
| ) |
|
|
static |
It finalizes the factory: the singleton instance will be destroyed and will be unregistered from the abstract factory AbstractGraphicWidgetFactory.
It returns a reference to the internal dictionary of concrete factories.
The dictionary is a singleton.
- Returns
- A reference to the internal dictionary.
It returns the factory key associated to the concreate factory.
- Returns
- The factory key associated to the concreate factory.
static void te::qt::widgets::LocalGraphicWidgetFactory::initialize |
( |
| ) |
|
|
static |
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.
static void te::qt::widgets::AbstractGraphicWidgetFactory::RegisteredWidgets |
( |
std::vector< std::string > & |
keys | ) |
|
|
staticinherited |
It informs the key of each registered graphic widget factory.
- Parameters
-
keys | A pre-created vector of string that will be filled with the keys of each registered graphic widget factory. |
- Note
- All registered factories will be consulted.
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.
std::string te::qt::widgets::LocalGraphicWidgetFactory::sm_factoryKey |
|
staticprivate |
The documentation for this class was generated from the following file: