30 #include "../core/property/Property.h"
31 #include "../core/property/Properties.h"
32 #include "../core/property/SharedProperties.h"
33 #include "../core/enum/Enums.h"
34 #include "../core/pattern/singleton/Context.h"
67 m_properties->addProperty(pro_font);
73 m_properties->addProperty(pro_text);
virtual void setText(std::string txt)
virtual ~TextModel()
Destructor.
Variant getValue()
Returns stored value.
virtual EnumDataType * getEnumDataType()
Returns data type enumeration.
bool isNull()
Returns true if no value has been set, false otherwise.
virtual void setVisible(bool visible)
Sets the visibility of this property.
Class that represents a "Model" part of Text MVC component. Its coordinate system is the same of scen...
virtual std::string getText()
The Properties class represents a persistent set of properties. The Properties can be saved to a file...
void setPointSize(int point)
Sets point size of the font.
EnumType * m_type
type of the MVC component
virtual void updateProperties(te::layout::Properties *properties)
Reimplemented from Observable.
Font toFont()
Returns the value of te::layout::Font type. (The setValue method received a te::layout::Font). Complex type.
virtual void updateProperties(te::layout::Properties *properties)
Reimplemented from Observable.
static Enums & getInstance()
It returns a reference to the singleton instance.
An Envelope defines a 2D rectangular region.
Class to represent a data type enumeration. Ex.: int, double, bool, te::color::RGBAColor (color)...
te::gm::Envelope m_box
bounding rectangle
bool m_resizable
true if resizable, false otherwise
virtual Properties * getProperties() const
Reimplemented from Observable.
void setValue(ValueType value, EnumType *type)
Stores a copy of value.
virtual EnumType * getDataTypeFont() const
Returns value that represents type Font belonging to enumeration.
std::string toString()
Returns the value of string type. (The setValue method received a string)
void setName(std::string name)
Sets the name of this property.
virtual void setMenu(bool menu)
Sets true if property will be used in a menu, false otherwise.
virtual te::layout::Properties * getProperties() const
Reimplemented from Observable.
virtual EnumType * getDataTypeString() const
Returns value that represents type string belonging to enumeration.
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.
virtual void setFont(Font ft)