28 #ifndef __TERRALIB_LAYOUT_INTERNAL_ABSTRACT_PROPERTIES_BROWSER_H
29 #define __TERRALIB_LAYOUT_INTERNAL_ABSTRACT_PROPERTIES_BROWSER_H
32 #include "../../../core/property/Property.h"
33 #include "../../../core/Config.h"
45 #include <QtPropertyBrowser/QtVariantProperty>
46 #include <QtPropertyBrowser/QtProperty>
71 virtual QtProperty* addProperty(
Property property) = 0;
73 virtual bool updateProperty(
Property property) = 0;
75 virtual void clearAll();
77 virtual Property getProperty(std::string name) = 0;
79 virtual EnumType* getLayoutType(QVariant::Type type, std::string name =
"") = 0;
81 virtual int getVariantType(
EnumType* dataType) = 0;
83 virtual QVariant findPropertyValue(std::string name);
85 virtual QtProperty* findProperty(std::string name);
87 virtual bool removeProperty(QtProperty* prop);
91 virtual void createManager() = 0;
93 virtual void addPropertyItem(QtProperty *property,
const QString &
id);
95 virtual QVariant checkComplexType(QtVariantProperty* property);
#define TELAYOUTEXPORT
You can use this macro in order to export/import classes and functions from this module.
QMap< QString, QtProperty * > m_idToProperty
Class that represents the value of an enumeration. An enumeration is made of "1..n" objects EnumType...
QMap< QtProperty *, QString > m_propertyToId
Manage properties variants values.
A property acts like a attribute member of a object and stores the state of this attribute. A set of properties stores the state of an object. Any data type, not included in the convertValue method in the class te::layout::Variant, it will be by default "std::string" value.