Manage properties variants values. More...
#include <VariantPropertiesBrowser.h>
Public Member Functions | |
virtual QtVariantProperty * | addProperty (Property property) |
virtual bool | changeQtVariantPropertyValue (QtVariantProperty *vproperty, Property property) |
virtual void | clearAll () |
virtual QtProperty * | findProperty (std::string name) |
virtual QVariant | findPropertyValue (std::string name) |
virtual EnumType * | getLayoutType (QVariant::Type type, std::string name="") |
virtual Property | getProperty (std::string name) |
QtVariantEditorFactory * | getVariantEditorFactory () |
QtVariantPropertyManager * | getVariantPropertyManager () |
virtual int | getVariantType (EnumType *dataType) |
virtual bool | removeProperty (QtProperty *prop) |
virtual bool | updateProperty (Property property) |
VariantPropertiesBrowser (QObject *parent=0) | |
virtual | ~VariantPropertiesBrowser () |
Protected Member Functions | |
virtual void | addAttribute (QtVariantProperty *vproperty, Property property) |
virtual void | addPropertyItem (QtProperty *property, const QString &id) |
virtual QVariant | checkComplexType (QtVariantProperty *property) |
virtual void | createManager () |
Protected Attributes | |
bool | m_changeProperty |
QMap< QString, QtProperty * > | m_idToProperty |
QMap< QtProperty *, QString > | m_propertyToId |
QtVariantEditorFactory * | m_variantPropertyEditorFactory |
QtVariantPropertyManager * | m_variantPropertyEditorManager |
Manage properties variants values.
Definition at line 57 of file VariantPropertiesBrowser.h.
te::layout::VariantPropertiesBrowser::VariantPropertiesBrowser | ( | QObject * | parent = 0 | ) |
Definition at line 38 of file VariantPropertiesBrowser.cpp.
References createManager().
|
virtual |
Definition at line 46 of file VariantPropertiesBrowser.cpp.
|
protectedvirtual |
Definition at line 97 of file VariantPropertiesBrowser.cpp.
References te::layout::Variant::toString().
|
virtual |
Implements te::layout::AbstractPropertiesBrowser.
Definition at line 67 of file VariantPropertiesBrowser.cpp.
References te::layout::Enums::getEnumDataType(), te::common::Singleton< Enums >::getInstance(), te::layout::Property::getName(), and te::layout::Property::getType().
|
protectedvirtualinherited |
Definition at line 58 of file AbstractPropertiesBrowser.cpp.
|
virtual |
Definition at line 305 of file VariantPropertiesBrowser.cpp.
References te::color::RGBAColor::getAlpha(), te::color::RGBAColor::getBlue(), te::layout::EnumDataType::getDataTypeBool(), te::layout::EnumDataType::getDataTypeColor(), te::layout::EnumDataType::getDataTypeDouble(), te::layout::EnumDataType::getDataTypeFont(), te::layout::EnumDataType::getDataTypeGroup(), te::layout::EnumDataType::getDataTypeInt(), te::layout::EnumDataType::getDataTypeString(), te::layout::EnumDataType::getDataTypeStringList(), te::layout::Enums::getEnumDataType(), te::layout::Font::getFamily(), te::color::RGBAColor::getGreen(), te::common::Singleton< Enums >::getInstance(), te::layout::Property::getOptionByCurrentChoice(), te::layout::Font::getPointSize(), te::color::RGBAColor::getRed(), te::layout::Property::getType(), te::layout::Property::getValue(), te::layout::Font::isBold(), te::layout::Font::isItalic(), te::layout::Font::isKerning(), te::layout::Font::isStrikeout(), te::layout::Font::isUnderline(), te::layout::Font::setFamily(), te::layout::Variant::toBool(), te::layout::Variant::toDouble(), te::layout::Variant::toInt(), and te::layout::Variant::toString().
|
protectedvirtualinherited |
Definition at line 111 of file AbstractPropertiesBrowser.cpp.
|
virtualinherited |
Definition at line 64 of file AbstractPropertiesBrowser.cpp.
|
protectedvirtual |
Implements te::layout::AbstractPropertiesBrowser.
Definition at line 61 of file VariantPropertiesBrowser.cpp.
Referenced by VariantPropertiesBrowser().
|
virtualinherited |
Definition at line 98 of file AbstractPropertiesBrowser.cpp.
|
virtualinherited |
Definition at line 70 of file AbstractPropertiesBrowser.cpp.
|
virtual |
Implements te::layout::AbstractPropertiesBrowser.
Definition at line 203 of file VariantPropertiesBrowser.cpp.
References te::layout::EnumDataType::getDataTypeBool(), te::layout::EnumDataType::getDataTypeColor(), te::layout::EnumDataType::getDataTypeDouble(), te::layout::EnumDataType::getDataTypeFont(), te::layout::EnumDataType::getDataTypeGroup(), te::layout::EnumDataType::getDataTypeInt(), te::layout::EnumDataType::getDataTypeNone(), te::layout::EnumDataType::getDataTypeString(), te::layout::EnumDataType::getDataTypeStringList(), te::layout::Enums::getEnumDataType(), and te::common::Singleton< Enums >::getInstance().
|
virtual |
Implements te::layout::AbstractPropertiesBrowser.
Definition at line 111 of file VariantPropertiesBrowser.cpp.
References te::layout::Property::addOption(), te::layout::Variant::clear(), te::layout::EnumDataType::getDataTypeBool(), te::layout::EnumDataType::getDataTypeColor(), te::layout::EnumDataType::getDataTypeDouble(), te::layout::EnumDataType::getDataTypeFont(), te::layout::EnumDataType::getDataTypeInt(), te::layout::EnumDataType::getDataTypeString(), te::layout::EnumDataType::getDataTypeStringList(), te::layout::Enums::getEnumDataType(), te::common::Singleton< Enums >::getInstance(), te::layout::Font::setBold(), te::color::RGBAColor::setColor(), te::layout::Font::setFamily(), te::layout::Font::setItalic(), te::layout::Font::setKerning(), te::layout::Property::setName(), te::layout::Property::setOptionChoice(), te::layout::Font::setPointSize(), te::layout::Font::setStrikeout(), te::layout::Font::setUnderline(), te::layout::Property::setValue(), and te::layout::Variant::setValue().
QtVariantEditorFactory * te::layout::VariantPropertiesBrowser::getVariantEditorFactory | ( | ) |
Definition at line 379 of file VariantPropertiesBrowser.cpp.
QtVariantPropertyManager * te::layout::VariantPropertiesBrowser::getVariantPropertyManager | ( | ) |
Definition at line 384 of file VariantPropertiesBrowser.cpp.
|
virtual |
Implements te::layout::AbstractPropertiesBrowser.
Definition at line 258 of file VariantPropertiesBrowser.cpp.
References te::layout::EnumDataType::getDataTypeBool(), te::layout::EnumDataType::getDataTypeColor(), te::layout::EnumDataType::getDataTypeDouble(), te::layout::EnumDataType::getDataTypeFont(), te::layout::EnumDataType::getDataTypeGroup(), te::layout::EnumDataType::getDataTypeInt(), te::layout::EnumDataType::getDataTypeString(), te::layout::EnumDataType::getDataTypeStringList(), te::layout::Enums::getEnumDataType(), and te::common::Singleton< Enums >::getInstance().
|
virtualinherited |
Definition at line 130 of file AbstractPropertiesBrowser.cpp.
|
virtual |
Implements te::layout::AbstractPropertiesBrowser.
Definition at line 389 of file VariantPropertiesBrowser.cpp.
|
protectedinherited |
Definition at line 97 of file AbstractPropertiesBrowser.h.
|
protectedinherited |
Definition at line 99 of file AbstractPropertiesBrowser.h.
|
protectedinherited |
Definition at line 98 of file AbstractPropertiesBrowser.h.
|
protected |
Definition at line 90 of file VariantPropertiesBrowser.h.
|
protected |
Definition at line 89 of file VariantPropertiesBrowser.h.