Public Member Functions |
Static Public Member Functions |
Static Public Attributes |
List of all members
PropertyLib::PropertyMachineFactory Class Reference
#include <propertymachinefactory.h>
Public Member Functions | |
void | registerEditor (int type, createMachine creator) |
Machine * | machineForProperty (MultiProperty *property) |
bool | hasDetailedEditors (int type) |
Static Public Member Functions | |
static PropertyMachineFactory * | getInstance () |
Static Public Attributes | |
static PropertyMachineFactory * | m_factory = 0 |
Detailed Description
Factory to create property editors and property viewers.
Definition at line 69 of file propertymachinefactory.h.
Member Function Documentation
◆ getInstance()
|
static |
- Returns
- a pointer to a property machine factory instance.
Definition at line 192 of file propertymachinefactory.cpp.
◆ machineForProperty()
Machine * PropertyLib::PropertyMachineFactory::machineForProperty | ( | MultiProperty * | property | ) |
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 73 of file propertymachinefactory.cpp.
◆ registerEditor()
void PropertyLib::PropertyMachineFactory::registerEditor | ( | int | type, |
createMachine | creator | ||
) |
Registers property editor factory function for a type.
This factory functions are considered before defaults when machineForProperty is called.
The documentation for this class was generated from the following files: