itom
Loading...
Searching...
No Matches
ito::AbstractParamPropertyManager Class Referenceabstract
Inheritance diagram for ito::AbstractParamPropertyManager:
QtAbstractPropertyManager ito::ParamCharArrayPropertyManager ito::ParamCharPropertyManager ito::ParamDoubleArrayPropertyManager ito::ParamDoublePropertyManager ito::ParamIntArrayPropertyManager ito::ParamIntPropertyManager ito::ParamIntervalPropertyManager ito::ParamOtherPropertyManager ito::ParamRectPropertyManager ito::ParamStringListPropertyManager ito::ParamStringPropertyManager

Public Slots

virtual void setParam (QtProperty *property, const ito::Param &param)=0
 

Public Member Functions

 AbstractParamPropertyManager (QObject *parent=0)
 
 ~AbstractParamPropertyManager ()
 
const ito::ParamBaseparamBase (const QtProperty *property) const
 
const ito::Paramparam (const QtProperty *property) const
 
- Public Member Functions inherited from QtAbstractPropertyManager
 QtAbstractPropertyManager (QObject *parent=0)
 
 ~QtAbstractPropertyManager ()
 
QSet< QtProperty * > properties () const
 
void clear () const
 
QtPropertyaddProperty (const QString &name=QString())
 

Protected Member Functions

virtual QString valueText (const QtProperty *property) const
 
virtual QIcon valueIcon (const QtProperty *property) const
 
virtual void initializeProperty (QtProperty *property)=0
 
virtual void uninitializeProperty (QtProperty *property)
 
- Protected Member Functions inherited from QtAbstractPropertyManager
virtual bool hasValue (const QtProperty *property) const
 
virtual QString displayText (const QtProperty *property) const
 
virtual EchoMode echoMode (const QtProperty *) const
 
virtual QtPropertycreateProperty ()
 

Protected Attributes

AbstractParamPropertyManagerPrivated_ptr
 

Additional Inherited Members

- Signals inherited from QtAbstractPropertyManager
void propertyInserted (QtProperty *property, QtProperty *parent, QtProperty *after)
 
void propertyChanged (QtProperty *property)
 
void propertyRemoved (QtProperty *property, QtProperty *parent)
 
void propertyDestroyed (QtProperty *property)
 

Constructor & Destructor Documentation

◆ AbstractParamPropertyManager()

ito::AbstractParamPropertyManager::AbstractParamPropertyManager ( QObject * parent = 0)

Creates a manager with the given parent.

◆ ~AbstractParamPropertyManager()

ito::AbstractParamPropertyManager::~AbstractParamPropertyManager ( )

Destroys this manager, and all the properties it has created.

Member Function Documentation

◆ initializeProperty()

virtual void ito::AbstractParamPropertyManager::initializeProperty ( QtProperty * property)
protectedpure virtual

This function is called whenever a new valid property pointer has been created, passing the pointer as parameter.

The purpose is to let the manager know that the property has been created so that it can provide additional attributes for the new property, e.g. QtIntPropertyManager adds \l {QtIntPropertyManager::value()}{value}, \l {QtIntPropertyManager::minimum()}{minimum} and \l {QtIntPropertyManager::maximum()}{maximum} attributes. Since each manager subclass adds type specific attributes, this function is pure virtual and must be reimplemented when deriving from the QtAbstractPropertyManager class.

See also
addProperty(), createProperty()

Implements QtAbstractPropertyManager.

Implemented in ito::ParamCharArrayPropertyManager, ito::ParamCharPropertyManager, ito::ParamDoubleArrayPropertyManager, ito::ParamDoublePropertyManager, ito::ParamIntArrayPropertyManager, ito::ParamIntervalPropertyManager, ito::ParamIntPropertyManager, ito::ParamOtherPropertyManager, ito::ParamRectPropertyManager, ito::ParamStringListPropertyManager, and ito::ParamStringPropertyManager.

◆ uninitializeProperty()

void ito::AbstractParamPropertyManager::uninitializeProperty ( QtProperty * property)
protectedvirtual

◆ valueIcon()

QIcon ito::AbstractParamPropertyManager::valueIcon ( const QtProperty * property) const
protectedvirtual

Returns an icon representing the current state of the given property.

The default implementation of this function returns an invalid icon.

See also
QtProperty::valueIcon()

Reimplemented from QtAbstractPropertyManager.

Reimplemented in ito::ParamCharPropertyManager, ito::ParamDoublePropertyManager, and ito::ParamIntPropertyManager.

◆ valueText()

QString ito::AbstractParamPropertyManager::valueText ( const QtProperty * property) const
protectedvirtual

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