30 #include "../core/property/Property.h"
31 #include "../core/property/Properties.h"
32 #include "../core/property/PlanarGridSettingsConfigProperties.h"
33 #include "../core/property/GeodesicGridSettingsConfigProperties.h"
34 #include "../core/enum/Enums.h"
50 m_properties = properties;
93 std::vector<Properties*>::iterator it = m_properties.begin();
94 for(; it != m_properties.end() ; ++it)
std::string getName()
Method that returns the name of this property.
virtual bool addProperty(Property property)
Adds the specified property to the set of properties for this object.
virtual bool updateProperty(Property prop, EnumType *enumType)
EnumType * m_type
type of the MVC widget
virtual ~GridSettingsModel()
virtual bool removeProperty(std::string name)
Removes a property from the set of properties of this object.
The Properties class represents a persistent set of properties. The Properties can be saved to a file...
virtual te::layout::Property containsProperty(std::string name, EnumType *enumType)
static Enums & getInstance()
It returns a reference to the singleton instance.
An Envelope defines a 2D rectangular region.
virtual EnumType * getTypeObj()
Returns object type that owns these properties.
Class that represents the value of an enumeration. An enumeration is made of "1..n" objects EnumType...
virtual void setProperties(std::vector< te::layout::Properties * > properties)
virtual te::layout::Properties * containsGrid(EnumType *enumType)
virtual bool contains(Property property)
Checks if the property is contained within the set of properties.
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.
te::gm::Envelope m_box
bounding rectangle