OptionalVariantManager Class Reference

#include <ArmarXGui/gui-plugins/ScenarioManager/gui/OptionalPropertyManager.h>

+ Inheritance diagram for OptionalVariantManager:

Public Slots

void setAttribute (QtProperty *property, const QString &attribute, const QVariant &value) override
 
void setValue (QtProperty *property, const QVariant &val) override
 
- Public Slots inherited from QtVariantPropertyManager
virtual void setAttribute (QtProperty *property, const QString &attribute, const QVariant &value)
 
virtual void setValue (QtProperty *property, const QVariant &val)
 

Public Member Functions

QStringList attributes (int propertyType) const override
 
int attributeType (int propertyType, const QString &attribute) const override
 
QVariant attributeValue (const QtProperty *property, const QString &attribute) const override
 
bool isPropertyTypeSupported (int propertyType) const override
 
 OptionalVariantManager (QObject *parent=0)
 
QVariant value (const QtProperty *property) const override
 
int valueType (int propertyType) const override
 
- Public Member Functions inherited from QtVariantPropertyManager
virtual QtVariantPropertyaddProperty (int propertyType, const QString &name=QString())
 
int propertyType (const QtProperty *property) const
 
 QtVariantPropertyManager (QObject *parent=0)
 
int valueType (const QtProperty *property) const
 
QtVariantPropertyvariantProperty (const QtProperty *property) const
 
 ~QtVariantPropertyManager () override
 
- Public Member Functions inherited from QtAbstractPropertyManager
QtPropertyaddProperty (const QString &name=QString())
 
void clear () const
 
QSet< QtProperty * > properties () const
 
 QtAbstractPropertyManager (QObject *parent=0)
 
 ~QtAbstractPropertyManager () override
 

Static Public Member Functions

static int optionalProprtyTypeId ()
 
- Static Public Member Functions inherited from QtVariantPropertyManager
static int enumTypeId ()
 
static int flagTypeId ()
 
static int groupTypeId ()
 
static int iconMapTypeId ()
 

Protected Member Functions

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

Additional Inherited Members

- Signals inherited from QtVariantPropertyManager
void attributeChanged (QtProperty *property, const QString &attribute, const QVariant &val)
 
void valueChanged (QtProperty *property, const QVariant &val)
 
- Signals inherited from QtAbstractPropertyManager
void propertyChanged (QtProperty *property)
 
void propertyDestroyed (QtProperty *property)
 
void propertyInserted (QtProperty *property, QtProperty *parent, QtProperty *after)
 
void propertyRemoved (QtProperty *property, QtProperty *parent)
 

Detailed Description

Definition at line 29 of file OptionalPropertyManager.h.

Constructor & Destructor Documentation

◆ OptionalVariantManager()

OptionalVariantManager ( QObject *  parent = 0)

Definition at line 66 of file OptionalPropertyManager.cpp.

Member Function Documentation

◆ attributes()

QStringList attributes ( int  propertyType) const
overridevirtual

Returns a list of the given propertyType 's attributes.

See also
attributeValue(), attributeType()

Reimplemented from QtVariantPropertyManager.

Definition at line 104 of file OptionalPropertyManager.cpp.

+ Here is the call graph for this function:

◆ attributeType()

int attributeType ( int  propertyType,
const QString &  attribute 
) const
overridevirtual

Returns the type of the specified attribute of the given propertyType.

If the given propertyType is not supported by this manager, or if the given propertyType does not possess the specified attribute, this function returns QVariant::Invalid.

See also
attributes(), valueType()

Reimplemented from QtVariantPropertyManager.

Definition at line 115 of file OptionalPropertyManager.cpp.

+ Here is the call graph for this function:

◆ attributeValue()

QVariant attributeValue ( const QtProperty property,
const QString &  attribute 
) const
overridevirtual

Returns the given property's value for the specified attribute

If the given property was not created by this manager, or if the specified attribute does not exist, this function returns an invalid variant.

See also
attributes(), attributeType(), setAttribute()

Reimplemented from QtVariantPropertyManager.

Definition at line 128 of file OptionalPropertyManager.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ initializeProperty()

void initializeProperty ( QtProperty property)
overrideprotectedvirtual

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.

Definition at line 220 of file OptionalPropertyManager.cpp.

+ Here is the call graph for this function:

◆ isPropertyTypeSupported()

bool isPropertyTypeSupported ( int  propertyType) const
overridevirtual

Returns true if the given propertyType is supported by this variant manager; otherwise false.

See also
propertyType()

Reimplemented from QtVariantPropertyManager.

Definition at line 77 of file OptionalPropertyManager.cpp.

+ Here is the call graph for this function:

◆ optionalProprtyTypeId()

int optionalProprtyTypeId ( )
static

Definition at line 72 of file OptionalPropertyManager.cpp.

+ Here is the caller graph for this function:

◆ setAttribute

void setAttribute ( QtProperty property,
const QString &  attribute,
const QVariant &  value 
)
overrideslot

Definition at line 185 of file OptionalPropertyManager.cpp.

+ Here is the call graph for this function:

◆ setValue

void setValue ( QtProperty property,
const QVariant &  val 
)
overrideslot

Definition at line 162 of file OptionalPropertyManager.cpp.

+ Here is the call graph for this function:

◆ uninitializeProperty()

void uninitializeProperty ( QtProperty property)
overrideprotectedvirtual

This function is called just before the specified property is destroyed.

The purpose is to let the property manager know that the property is being destroyed so that it can remove the property's additional attributes.

See also
clear(), propertyDestroyed()

Reimplemented from QtAbstractPropertyManager.

Definition at line 229 of file OptionalPropertyManager.cpp.

+ Here is the call graph for this function:

◆ value()

QVariant value ( const QtProperty property) const
overridevirtual

Returns the given property's value.

If the given property is not managed by this manager, this function returns an invalid variant.

See also
setValue()

Reimplemented from QtVariantPropertyManager.

Definition at line 95 of file OptionalPropertyManager.cpp.

+ Here is the call graph for this function:

◆ valueIcon()

QIcon valueIcon ( const QtProperty property) const
overrideprotectedvirtual

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.

Definition at line 146 of file OptionalPropertyManager.cpp.

+ Here is the call graph for this function:

◆ valueText()

QString valueText ( const QtProperty property) const
overrideprotectedvirtual

Returns a string representing the current state of the given property.

The default implementation of this function returns an empty string.

See also
QtProperty::valueText()

Reimplemented from QtAbstractPropertyManager.

Definition at line 137 of file OptionalPropertyManager.cpp.

+ Here is the call graph for this function:

◆ valueType()

int valueType ( int  propertyType) const
overridevirtual

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

Returns the value type associated with the given propertyType.

Reimplemented from QtVariantPropertyManager.

Definition at line 86 of file OptionalPropertyManager.cpp.

+ Here is the call graph for this function:

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