A factory to build widget objects. More...
#include <SimplePropertyWidgetFactory.h>
Public Types | |
| typedef FactoryDictionary < AbstractFactory < te::qt::widgets::SimplePropertyWidget, int, std::less< int > >, int, std::less< int > > | dictionary_type |
| typedef AbstractFactory | factory_type |
Public Member Functions | |
| const int & | getKey () const |
| It returns the factory key associated to the concreate factory. More... | |
| virtual int | getType () const =0 |
| It returns the type of component widget that the factory knows how to create. More... | |
| virtual | ~SimplePropertyWidgetFactory () |
| Virtual destructor. More... | |
Static Public Member Functions | |
| static const factory_type * | find (const int &factoryKey) |
| static dictionary_type & | getDictionary () |
| It returns a reference to the internal dictionary of concrete factories. More... | |
| static te::qt::widgets::SimplePropertyWidget * | make (const int &type) |
| static te::qt::widgets::SimplePropertyWidget * | make (const int &type, QWidget *parent=0) |
Protected Member Functions | |
| virtual te::qt::widgets::SimplePropertyWidget * | build ()=0 |
| Concrete factories (derived from this one) must implement this method in order to create objects. More... | |
| virtual te::qt::widgets::SimplePropertyWidget * | create (QWidget *Parent=0)=0 |
| SimplePropertyWidgetFactory (const int &factoryKey) | |
| It creates the factory. More... | |
Protected Attributes | |
| int | m_factoryKey |
| The key that identifies the concrete factory: it will be used for unregistering the factory during destruction. More... | |
A factory to build widget objects.
Definition at line 49 of file SimplePropertyWidgetFactory.h.
|
inherited |
Definition at line 73 of file AbstractFactory.h.
|
inherited |
Definition at line 77 of file AbstractFactory.h.
|
virtual |
Virtual destructor.
Definition at line 49 of file SimplePropertyWidgetFactory.cpp.
|
protected |
It creates the factory.
The key of a ComponentWidgetFactory is a string.
| factoryKey | The key that identifies the factory. |
Definition at line 54 of file SimplePropertyWidgetFactory.cpp.
|
protectedpure virtualinherited |
Concrete factories (derived from this one) must implement this method in order to create objects.
Implemented in te::qt::widgets::DateTimePropertyWidgetFactory, te::qt::widgets::GeometryPropertyWidgetFactory, te::qt::widgets::NumericPropertyWidgetFactory, and te::qt::widgets::StringPropertyWidgetFactory.
|
protectedpure virtual |
|
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.
|
pure virtual |
It returns the type of component widget that the factory knows how to create.
Implemented in te::qt::widgets::DateTimePropertyWidgetFactory, te::qt::widgets::GeometryPropertyWidgetFactory, te::qt::widgets::NumericPropertyWidgetFactory, and te::qt::widgets::StringPropertyWidgetFactory.
|
static |
Definition at line 30 of file SimplePropertyWidgetFactory.cpp.
References te::common::AbstractFactory< TPRODUCT, TFACTORYKEY, TKEYCOMPARE >::make().
Referenced by te::qt::widgets::NewPropertyWidget::onDataTypeComboBoxActivated().
|
static |
Definition at line 35 of file SimplePropertyWidgetFactory.cpp.
References create(), te::common::FactoryDictionary< TFACTORY, TFACTORYKEY, TKEYCOMPARE >::find(), and te::common::AbstractFactory< TPRODUCT, TFACTORYKEY, TKEYCOMPARE >::getDictionary().
|
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.