|
#include <ArmarXGui/gui-plugins/ScenarioManager/gui/OptionalPropertyManager.h>
Public Slots | |
void | setAttribute (QtProperty *property, const QString &attribute, const QVariant &value) override |
void | setValue (QtProperty *property, const QVariant &val) override |
![]() | |
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 |
![]() | |
virtual QtVariantProperty * | addProperty (int propertyType, const QString &name=QString()) |
int | propertyType (const QtProperty *property) const |
QtVariantPropertyManager (QObject *parent=0) | |
int | valueType (const QtProperty *property) const |
QtVariantProperty * | variantProperty (const QtProperty *property) const |
~QtVariantPropertyManager () override | |
![]() | |
QtProperty * | addProperty (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 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 |
![]() | |
QtProperty * | createProperty () 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 |
![]() | |
virtual QString | displayText (const QtProperty *property) const |
virtual EchoMode | echoMode (const QtProperty *) const |
Additional Inherited Members | |
![]() | |
void | attributeChanged (QtProperty *property, const QString &attribute, const QVariant &val) |
void | valueChanged (QtProperty *property, const QVariant &val) |
![]() | |
void | propertyChanged (QtProperty *property) |
void | propertyDestroyed (QtProperty *property) |
void | propertyInserted (QtProperty *property, QtProperty *parent, QtProperty *after) |
void | propertyRemoved (QtProperty *property, QtProperty *parent) |
Definition at line 30 of file OptionalPropertyManager.h.
OptionalVariantManager | ( | QObject * | parent = 0 | ) |
Definition at line 68 of file OptionalPropertyManager.cpp.
|
overridevirtual |
Returns a list of the given propertyType 's attributes.
Reimplemented from QtVariantPropertyManager.
Definition at line 112 of file OptionalPropertyManager.cpp.
|
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.
Reimplemented from QtVariantPropertyManager.
Definition at line 124 of file OptionalPropertyManager.cpp.
|
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.
Reimplemented from QtVariantPropertyManager.
Definition at line 138 of file OptionalPropertyManager.cpp.
|
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.
Implements QtAbstractPropertyManager.
Definition at line 238 of file OptionalPropertyManager.cpp.
|
overridevirtual |
Returns true if the given propertyType is supported by this variant manager; otherwise false.
Reimplemented from QtVariantPropertyManager.
Definition at line 82 of file OptionalPropertyManager.cpp.
|
static |
Definition at line 76 of file OptionalPropertyManager.cpp.
|
overrideslot |
Definition at line 201 of file OptionalPropertyManager.cpp.
|
overrideslot |
Definition at line 177 of file OptionalPropertyManager.cpp.
|
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.
Reimplemented from QtAbstractPropertyManager.
Definition at line 248 of file OptionalPropertyManager.cpp.
|
overridevirtual |
Returns the given property's value.
If the given property is not managed by this manager, this function returns an invalid variant.
Reimplemented from QtVariantPropertyManager.
Definition at line 102 of file OptionalPropertyManager.cpp.
|
overrideprotectedvirtual |
Returns an icon representing the current state of the given property.
The default implementation of this function returns an invalid icon.
Reimplemented from QtAbstractPropertyManager.
Definition at line 158 of file OptionalPropertyManager.cpp.
|
overrideprotectedvirtual |
Returns a string representing the current state of the given property.
The default implementation of this function returns an empty string.
Reimplemented from QtAbstractPropertyManager.
Definition at line 148 of file OptionalPropertyManager.cpp.
|
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 92 of file OptionalPropertyManager.cpp.