30 #include "../../geometry/Envelope.h" 
   31 #include "../../color/RGBAColor.h" 
   32 #include "../../maptools/Canvas.h" 
   33 #include "../core/enum/Enums.h" 
   34 #include "../core/property/Property.h" 
   35 #include "../core/property/Properties.h" 
   36 #include "../core/property/TextGridSettingsConfigProperties.h" 
   39   m_textgridProperties(0),
 
   68   if(m_textgridProperties)
 
   70     delete m_textgridProperties;
 
   71     m_textgridProperties = 0;
 
   82   pro_title.
setName(m_textgridProperties->getTitle());
 
   85   m_properties->addProperty(pro_title);
 
   90   pro_textGrid.
setName(m_textgridProperties->getName());
 
   91   std::string sValuePlanar = 
"Settings";
 
   98   pro_spacing.
setName(m_textgridProperties->getSpacing());
 
  103   pro_padding.
setName(m_textgridProperties->getPadding());
 
  107   Property pro_tableColor(m_hashCode);
 
  108   pro_tableColor.
setName(m_textgridProperties->getTableColor());
 
  113   pro_width.
setName(m_textgridProperties->getWidth());
 
  118   pro_rowNumber.
setName(m_textgridProperties->getRowNumber());
 
  123   pro_evenRow.
setName(m_textgridProperties->getEvenRow());
 
  128   pro_oddRow.
setName(m_textgridProperties->getOddRow());
 
  132   Property pro_columnNumber(m_hashCode);
 
  133   pro_columnNumber.
setName(m_textgridProperties->getColumnNumber());
 
  137   Property pro_columnWidth(m_hashCode);
 
  138   pro_columnWidth.
setName(m_textgridProperties->getColumnWidth());
 
  142   Property pro_borderWidth(m_hashCode);
 
  143   pro_borderWidth.
setName(m_textgridProperties->getBorderWidth());
 
  147   Property pro_borderGridColor(m_hashCode);
 
  148   pro_borderGridColor.
setName(m_textgridProperties->getBorderGridColor());
 
  152   Property pro_headerHorizontalColor(m_hashCode);
 
  153   pro_headerHorizontalColor.
setName(m_textgridProperties->getHeaderHorizontalColor());
 
  157   Property headerVerticalColor(m_hashCode);
 
  158   headerVerticalColor.
setName(m_textgridProperties->getHeaderVerticalColor());
 
  162   m_properties->addProperty(pro_textGrid);
 
  175   Property pro_textGrid = vectorProps->
contains(m_textgridProperties->getName());
 
  193   if(!pro_tableColor.
isNull())
 
  207   if(!pro_rowNumber.
isNull())
 
  228   if(!pro_columnNumber.
isNull())
 
  235   if(!pro_columnWidth.
isNull())
 
  242   if(!pro_borderWidth.
isNull())
 
  249   if(!pro_borderGridColor.
isNull())
 
  256   if(!pro_headerHorizontalColor.
isNull())
 
  258     m_headerHorizontalColor = pro_headerHorizontalColor.
getValue().
toColor();
 
  263   if(!pro_headerVerticalColor.
isNull())
 
  301   m_columnNumber = value;
 
  306   return m_columnNumber;
 
  321   m_tableColor = color;
 
  361   m_columnWidth = width;
 
  366   return m_columnWidth;
 
  371   m_borderWidth = width;
 
  376   return m_borderWidth;
 
  381   m_borderGridColor = color;
 
  386   return m_borderGridColor;
 
  391   m_headerHorizontalColor = color;
 
  396   return m_headerHorizontalColor;
 
  401   m_headerVerticalColor = color;
 
  406   return m_headerVerticalColor;
 
virtual double getSpacing()
 
virtual double getBorderWidth()
 
virtual int getNumberColumns()
 
virtual te::color::RGBAColor getTableColor()
 
virtual te::color::RGBAColor getEvenRow()
 
Variant getValue()
Returns stored value. 
 
virtual EnumDataType * getEnumDataType()
Returns data type enumeration. 
 
void setColor(const std::string &hexColor)
It sets the color using a two hexadecimal RGB-encoded color. 
 
void addSubProperty(Property property)
 
virtual void setBorderWidth(double width)
 
virtual void setNumberRows(int value)
 
virtual EnumType * getDataTypeDouble() const 
Returns value that represents type double belonging to enumeration. 
 
virtual void setColumnWidth(double width)
 
virtual double getPadding()
 
bool isNull()
Returns true if no value has been set, false otherwise. 
 
virtual te::color::RGBAColor getOddRow()
 
virtual EnumType * getDataTypeInt() const 
Returns value that represents type integer belonging to enumeration. 
 
virtual void setPadding(double value)
 
The Properties class represents a persistent set of properties. The Properties can be saved to a file...
 
EnumType * m_type
type of the MVC component 
 
virtual void setEvenRow(te::color::RGBAColor color)
 
virtual te::layout::Properties * getProperties() const 
Reimplemented from Observable. 
 
virtual void updateProperties(te::layout::Properties *properties)
Reimplemented from Observable. 
 
virtual void setOddRow(te::color::RGBAColor color)
 
virtual te::color::RGBAColor getBorderGridColor()
 
te::color::RGBAColor m_tableColor
 
virtual void setNumberColumns(int value)
 
virtual void setTableColor(te::color::RGBAColor color)
 
Class that represents a "Model" part of Title MVC component. Its coordinate system is the same of sce...
 
virtual void setSpacing(double value)
 
virtual void setWidth(double width)
 
static Enums & getInstance()
It returns a reference to the singleton instance. 
 
An Envelope defines a 2D rectangular region. 
 
virtual void setHeaderVerticalColor(te::color::RGBAColor color)
 
Class to represent a data type enumeration. Ex.: int, double, bool, te::color::RGBAColor (color)...
 
te::gm::Envelope m_box
bounding rectangle 
 
te::color::RGBAColor m_headerHorizontalColor
 
te::color::RGBAColor m_borderGridColor
 
virtual EnumType * getDataTypeColor() const 
Returns value that represents type te::color::RGBAColor** (color) belonging to enumeration. 
 
virtual int getNumberRows()
 
virtual void setTitle(std::string title)
 
virtual EnumType * getDataTypeTextGridSettings() const 
Returns value that represents type TextGridSettings (string) belonging to enumeration. 
 
double toDouble()
Returns the value of double type. (The setValue method received a double) 
 
virtual bool containsSubProperty(Property subProperty)
 
virtual te::color::RGBAColor getHeaderVerticalColor()
 
void setValue(ValueType value, EnumType *type)
Stores a copy of value. 
 
virtual std::string getTitle()
 
A helper class for 32-bit RGBA (Red-Green-Blue-Alpha channel) color. 
 
TextGridSettingsConfigProperties * m_textgridProperties
 
virtual double getWidth()
 
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. 
 
te::color::RGBAColor toColor()
Returns the value of te::color::RGBAColor type. (The setValue method received a te::color::RGBAColor)...
 
virtual te::layout::Properties * getProperties() const 
Reimplemented from Observable. 
 
virtual EnumType * getDataTypeString() const 
Returns value that represents type string belonging to enumeration. 
 
virtual ~TitleModel()
Destructor. 
 
virtual void updateProperties(te::layout::Properties *properties)
Reimplemented from Observable. 
 
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. 
 
int toInt()
Returns the value of int type. (The setValue method received a int) 
 
virtual te::color::RGBAColor getHeaderHorizontalColor()
 
virtual void setHeaderHorizontalColor(te::color::RGBAColor color)
 
te::color::RGBAColor m_headerVerticalColor
 
virtual void setBorderGridColor(te::color::RGBAColor color)
 
virtual double getColumnWidth()