PropertyLib::PropertyMachineFactory Class Reference
Factory to create property editors and property viewers. More...
#include <propertymachinefactory.h>
Collaboration diagram for PropertyLib::PropertyMachineFactory:

Public Member Functions | |
void | registerEditor (int type, createMachine creator) |
Registers property editor factory function for a type. | |
Machine * | machineForProperty (MultiProperty *property) |
Creates and returns the editor for given property type. | |
bool | hasDetailedEditors (int type) |
Static Public Member Functions | |
PropertyMachineFactory * | getInstance () |
Static Public Attributes | |
PropertyMachineFactory * | m_factory = 0 |
Private Member Functions | |
PropertyMachineFactory () | |
virtual | ~PropertyMachineFactory () |
Private Attributes | |
QMap< int, createMachine > | m_registeredForType |
Detailed Description
Factory to create property editors and property viewers.
Definition at line 69 of file propertymachinefactory.h.
Constructor & Destructor Documentation
|
Definition at line 60 of file propertymachinefactory.cpp. Referenced by getInstance(). |
|
Definition at line 64 of file propertymachinefactory.cpp. |
Member Function Documentation
|
Definition at line 182 of file propertymachinefactory.cpp. References m_factory, and PropertyMachineFactory(). |
|
Definition at line 189 of file propertymachinefactory.cpp. |
|
Creates and returns the editor for given property type. Warning: editor and viewer widgets won't have parent widget. Property editor cares about reparenting and deletion of returned widgets in machines. Definition at line 68 of file propertymachinefactory.cpp. References m_registeredForType, PropertyLib::MultiProperty::name(), PropertyLib::MultiProperty::type(), and PropertyLib::MultiProperty::valueList(). |
|
Registers property editor factory function for a type. This factory functions are considered before defaults when machineForProperty is called. |
Member Data Documentation
|
Definition at line 58 of file propertymachinefactory.cpp. Referenced by getInstance(). |
|
Definition at line 92 of file propertymachinefactory.h. Referenced by machineForProperty(). |
The documentation for this class was generated from the following files:
- lib/widgets/propeditor/propertymachinefactory.h
- lib/widgets/propeditor/propertymachinefactory.cpp