30 #include "../core/pattern/mvc/OutsideModelObservable.h"
31 #include "../core/pattern/mvc/Observable.h"
69 m_update.setName(prop.
getName());
75 if(!property.isNull())
77 if(property.getOptionChoices().empty())
79 if(property.getValue() != variant)
91 if(property.getOptionByCurrentChoice() != variant)
93 property.setOptionChoice(variant);
102 addUpdateTextGridProperty(property);
119 if(m_textGridSettings.isNull())
124 m_textGridSettings.setName(prop.
getName());
125 m_textGridSettings.setValue(prop.
getValue());
130 if(m_textGridSettings.containsSubProperty(subProperty))
132 m_textGridSettings.removeSubProperty(subProperty);
134 m_textGridSettings.addSubProperty(subProperty);
136 if(m_update.containsSubProperty(subProperty))
138 m_update.removeSubProperty(subProperty);
140 m_update.addSubProperty(subProperty);
147 m_textGridSettings.clear();
Abstract class to represent an observable. "Model" part of MVC component.
std::string getName()
Method that returns the name of this property.
Variant getValue()
Returns stored value.
virtual Property getProperty(std::string name)
bool isNull()
Returns true if no value has been set, false otherwise.
virtual void addUpdateProperty(std::string name, Variant variant)
virtual Property getOutsideProperty()
virtual void updateOutsideSubProperty(Property subProperty)
virtual void clearUpdate()
Class acts like a union for some C++/TerraLib5 data types. Responsible for storing the value...
virtual Property updateProperty()
bool isEditable()
Returns true if property is editable, false otherwise.
TextGridSettingsController(Observable *o)
virtual ~TextGridSettingsController()
Abstract class to represent an observable. "Model" part of MVC widget. All classes representing the m...
void setValue(ValueType value, EnumType *type)
Stores a copy of value.
void setEditable(bool editable)
Sets true if property is editable, false otherwise.
Abstract class to represent a controller. "Controller" part of MVC widget. All classes representing t...
virtual te::layout::Property containsOutsideSubProperty(std::string name)
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.
virtual void addUpdateTextGridProperty(Property subProperty)