Seamly2D
Code documentation
VPE::VStandardPropertyFactory Class Reference

The standard property factory is able to create all the properties that are included in VPropertyExplorer by default. More...

#include <vstandardpropertyfactory.h>

Inheritance diagram for VPE::VStandardPropertyFactory:
Collaboration diagram for VPE::VStandardPropertyFactory:

Public Member Functions

 VStandardPropertyFactory ()
 Constructor. More...
 
 VStandardPropertyFactory (VPropertyFactoryManager *manager)
 Constructor. More...
 
virtual Q_REQUIRED_RESULT VPropertycreateProperty (const QString &type, const QString &name) Q_DECL_OVERRIDE
 Creates a new property of a certain type and assigns a name and description (otionally) More...
 
- Public Member Functions inherited from VPE::VAbstractPropertyFactory
virtual ~VAbstractPropertyFactory ()
 Empty virtual destructor. More...
 

Detailed Description

The standard property factory is able to create all the properties that are included in VPropertyExplorer by default.

Definition at line 36 of file vstandardpropertyfactory.h.

Constructor & Destructor Documentation

◆ VStandardPropertyFactory() [1/2]

VPE::VStandardPropertyFactory::VStandardPropertyFactory ( )

Constructor.

Definition at line 34 of file vstandardpropertyfactory.cpp.

◆ VStandardPropertyFactory() [2/2]

VPE::VStandardPropertyFactory::VStandardPropertyFactory ( VPropertyFactoryManager manager)
explicit

Constructor.

Parameters
managerRegisters this factory at the manager for all it's types

Definition at line 39 of file vstandardpropertyfactory.cpp.

References VPE::VPropertyFactoryManager::registerFactory().

Member Function Documentation

◆ createProperty()

VPE::VProperty * VPE::VStandardPropertyFactory::createProperty ( const QString &  type,
const QString &  name 
)
virtual

Creates a new property of a certain type and assigns a name and description (otionally)

Parameters
typeThe type of the property as string
Returns
Returns the created property or NULL if it couldn't be be created

Implements VPE::VAbstractPropertyFactory.

Definition at line 57 of file vstandardpropertyfactory.cpp.


The documentation for this class was generated from the following files: