All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
te::layout::EnumDataType Class Reference

Class to represent a data type enumeration. Ex.: int, double, bool, te::color::RGBAColor (color), etc. More...

#include <EnumDataType.h>

Inheritance diagram for te::layout::EnumDataType:
te::layout::AbstractEnum

Public Member Functions

 EnumDataType ()
 Constructor. More...
 
virtual EnumTypegetDataTypeBool () const
 Returns value that represents type bool belonging to enumeration. More...
 
virtual EnumTypegetDataTypeColor () const
 Returns value that represents type te::color::RGBAColor** (color) belonging to enumeration. More...
 
virtual EnumTypegetDataTypeDouble () const
 Returns value that represents type double belonging to enumeration. More...
 
virtual EnumTypegetDataTypeFloat () const
 Returns value that represents type float belonging to enumeration. More...
 
virtual EnumTypegetDataTypeFont () const
 Returns value that represents type Font belonging to enumeration. More...
 
virtual EnumTypegetDataTypeGridSettings () const
 Returns value that represents type GridSettings (string) belonging to enumeration. More...
 
virtual EnumTypegetDataTypeGroup () const
 Returns value that represents type Group (string) belonging to enumeration. More...
 
virtual EnumTypegetDataTypeImage () const
 Returns value that represents type image (string) belonging to enumeration. More...
 
virtual EnumTypegetDataTypeInt () const
 Returns value that represents type integer belonging to enumeration. More...
 
virtual EnumTypegetDataTypeLong () const
 Returns value that represents type long belonging to enumeration. More...
 
virtual EnumTypegetDataTypeNone () const
 Returns value that represents type none belonging to enumeration. More...
 
virtual EnumTypegetDataTypeString () const
 Returns value that represents type string belonging to enumeration. More...
 
virtual EnumTypegetDataTypeStringList () const
 Returns value that represents type StringList (string) belonging to enumeration. More...
 
virtual EnumTypegetDataTypeTextGridSettings () const
 Returns value that represents type TextGridSettings (string) belonging to enumeration. More...
 
virtual EnumTypegetEnum (int enumId) const
 Searching for a value of the enumeration by id. More...
 
virtual EnumTypegetEnum (std::string name) const
 Searching for an enumeration value by name. More...
 
virtual int maxId ()
 Searching for a max value of the id. More...
 
virtual int minId ()
 Searching for a min value of the id. More...
 
virtual EnumTypesearchLabel (std::string label) const
 Searching for an enumeration value by name. More...
 
virtual int size ()
 
virtual ~EnumDataType ()
 Destructor. More...
 

Protected Member Functions

virtual void init ()
 Reimplemented from AbstractEnum. More...
 

Protected Attributes

EnumTypem_dataTypeBool
 value that represents type bool belonging to enumeration More...
 
EnumTypem_dataTypeColor
 value that represents type te::color::RGBAColor** (color) belonging to enumeration More...
 
EnumTypem_dataTypeDouble
 value that represents type double belonging to enumeration More...
 
EnumTypem_dataTypeFloat
 value that represents type float belonging to enumeration More...
 
EnumTypem_dataTypeFont
 value that represents type Font belonging to enumeration More...
 
EnumTypem_dataTypeGridSettings
 value that represents type GridSettings (string) belonging to enumeration More...
 
EnumTypem_dataTypeGroup
 value that represents type Group (string) belonging to enumeration More...
 
EnumTypem_dataTypeImage
 value that represents type image (string) belonging to enumeration More...
 
EnumTypem_dataTypeInt
 value that represents type integer belonging to enumeration More...
 
EnumTypem_dataTypeLong
 value that represents type long belonging to enumeration More...
 
EnumTypem_dataTypeNone
 value that represents type none belonging to enumeration More...
 
EnumTypem_dataTypeString
 value that represents type string belonging to enumeration More...
 
EnumTypem_dataTypeStringList
 value that represents type StringList (string) belonging to enumeration. More...
 
EnumTypem_dataTypeTextGridSettings
 value that represents type TextGridSettings (string) belonging to enumeration More...
 
std::vector< EnumType * > m_enums
 list of enumeration values More...
 

Detailed Description

Class to represent a data type enumeration. Ex.: int, double, bool, te::color::RGBAColor (color), etc.

See also
te::layout::AbstractEnum

Definition at line 48 of file EnumDataType.h.

Constructor & Destructor Documentation

te::layout::EnumDataType::EnumDataType ( )

Constructor.

Definition at line 31 of file EnumDataType.cpp.

References init().

te::layout::EnumDataType::~EnumDataType ( )
virtual

Destructor.

Definition at line 50 of file EnumDataType.cpp.

Member Function Documentation

te::layout::EnumType * te::layout::EnumDataType::getDataTypeBool ( ) const
virtual

Returns value that represents type bool belonging to enumeration.

Returns
enum value

Definition at line 194 of file EnumDataType.cpp.

Referenced by te::layout::VariantPropertiesBrowser::changeQtVariantPropertyValue(), te::layout::MenuBuilder::checkedBool(), te::layout::Variant::convertToString(), te::layout::Variant::convertValue(), te::layout::MenuBuilder::createMenu(), te::layout::Variant::fromPtree(), te::layout::VariantPropertiesBrowser::getLayoutType(), te::layout::MapModel::getProperties(), te::layout::ItemModelObservable::getProperties(), te::layout::GridMapModel::getProperties(), te::layout::VariantPropertiesBrowser::getProperty(), te::layout::VariantPropertiesBrowser::getVariantType(), te::layout::TextGridSettingsOutside::initCombo(), te::layout::GridSettingsOutside::initCombo(), te::layout::GridSettingsOutside::on_chkBottomGeoText_clicked(), te::layout::GridSettingsOutside::on_chkBottomPlanarText_clicked(), te::layout::GridSettingsOutside::on_chkBottomRotateGeoText_clicked(), te::layout::GridSettingsOutside::on_chkBottomRotatePlanarText_clicked(), te::layout::GridSettingsOutside::on_chkDegreesGeoText_clicked(), te::layout::GridSettingsOutside::on_chkLeftGeoText_clicked(), te::layout::GridSettingsOutside::on_chkLeftPlanarText_clicked(), te::layout::GridSettingsOutside::on_chkLeftRotateGeoText_clicked(), te::layout::GridSettingsOutside::on_chkLeftRotatePlanarText_clicked(), te::layout::GridSettingsOutside::on_chkLowerLeftCornerGeoText_clicked(), te::layout::GridSettingsOutside::on_chkLowerRightCornerGeoText_clicked(), te::layout::GridSettingsOutside::on_chkMinutesGeoText_clicked(), te::layout::GridSettingsOutside::on_chkRightGeoText_clicked(), te::layout::GridSettingsOutside::on_chkRightPlanarText_clicked(), te::layout::GridSettingsOutside::on_chkRightRotateGeoText_clicked(), te::layout::GridSettingsOutside::on_chkRightRotatePlanarText_clicked(), te::layout::GridSettingsOutside::on_chkSecondsGeoText_clicked(), te::layout::GridSettingsOutside::on_chkShowGeodesic_clicked(), te::layout::GridSettingsOutside::on_chkShowPlanar_clicked(), te::layout::GridSettingsOutside::on_chkSuperscriptGeoText_clicked(), te::layout::GridSettingsOutside::on_chkSuperscriptPlanarText_clicked(), te::layout::GridSettingsOutside::on_chkTopGeoText_clicked(), te::layout::GridSettingsOutside::on_chkTopPlanarText_clicked(), te::layout::GridSettingsOutside::on_chkTopRotateGeoText_clicked(), te::layout::GridSettingsOutside::on_chkTopRotatePlanarText_clicked(), te::layout::GridSettingsOutside::on_chkUpperLeftCornerGeoText_clicked(), te::layout::GridSettingsOutside::on_chkUpperRightCornerGeoText_clicked(), te::layout::GridSettingsOutside::on_chkVisibleCornerTextsGeoText_clicked(), te::layout::GridSettingsOutside::on_chkVisibleTextsGeoText_clicked(), te::layout::GridSettingsOutside::on_chkVisibleTextsPlanarText_clicked(), te::layout::GridSettingsOutside::on_ckbClip_clicked(), and te::layout::GridSettingsOutside::on_ckDefineScale_clicked().

te::layout::EnumType * te::layout::EnumDataType::getDataTypeDouble ( ) const
virtual

Returns value that represents type double belonging to enumeration.

Returns
enum value

Definition at line 174 of file EnumDataType.cpp.

Referenced by te::layout::VariantPropertiesBrowser::changeQtVariantPropertyValue(), te::layout::Variant::convertToString(), te::layout::Variant::convertValue(), te::layout::Variant::fromPtree(), te::layout::VariantPropertiesBrowser::getLayoutType(), te::layout::TitleModel::getProperties(), te::layout::MapModel::getProperties(), te::layout::ScaleModel::getProperties(), te::layout::ItemModelObservable::getProperties(), te::layout::GridMapModel::getProperties(), te::layout::VariantPropertiesBrowser::getProperty(), te::layout::VariantPropertiesBrowser::getVariantType(), te::layout::TextGridSettingsOutside::initCombo(), te::layout::GridSettingsOutside::initCombo(), te::layout::GridSettingsOutside::on_cmbLineWidth_currentIndexChanged(), te::layout::GridSettingsOutside::on_lneCornerHrzGeoDisplacement_editingFinished(), te::layout::GridSettingsOutside::on_lneCornerVrtGeoDisplacement_editingFinished(), te::layout::TextGridSettingsOutside::on_lneEdtBorderWidth_editingFinished(), te::layout::TextGridSettingsOutside::on_lneEdtColumnsWidth_editingFinished(), te::layout::TextGridSettingsOutside::on_lneEdtTablePadding_editingFinished(), te::layout::TextGridSettingsOutside::on_lneEdtTableSpacing_editingFinished(), te::layout::TextGridSettingsOutside::on_lneEdtTableWidth_editingFinished(), te::layout::GridSettingsOutside::on_lneHorizontalGap_editingFinished(), te::layout::GridSettingsOutside::on_lneHrzGeoDisplacement_editingFinished(), te::layout::GridSettingsOutside::on_lneHrzPlanarDisplacement_editingFinished(), te::layout::GridSettingsOutside::on_lneHrzPlanarGap_editingFinished(), te::layout::GridSettingsOutside::on_lneVerticalGap_editingFinished(), te::layout::GridSettingsOutside::on_lneVrtGeoDisplacement_editingFinished(), te::layout::GridSettingsOutside::on_lneVrtPlanarDisplacement_editingFinished(), te::layout::GridSettingsOutside::on_lneVrtPlanarGap_editingFinished(), te::layout::GridSettingsOutside::on_lneX1_editingFinished(), te::layout::GridSettingsOutside::on_lneX2_editingFinished(), te::layout::GridSettingsOutside::on_lneX3_editingFinished(), te::layout::GridSettingsOutside::on_lneX4_editingFinished(), te::layout::GridSettingsOutside::on_lneY1_editingFinished(), te::layout::GridSettingsOutside::on_lneY2_editingFinished(), te::layout::GridSettingsOutside::on_lneY3_editingFinished(), te::layout::GridSettingsOutside::on_lneY4_editingFinished(), te::layout::GridSettingsOutside::on_xGridInitialPoint_geo_textField_editingFinished(), te::layout::GridSettingsOutside::on_xGridInitialPoint_planar_textField_editingFinished(), te::layout::GridSettingsOutside::on_yGridInitialPoint_geo_textField_editingFinished(), and te::layout::GridSettingsOutside::on_yGridInitialPoint_planar_textField_editingFinished().

te::layout::EnumType * te::layout::EnumDataType::getDataTypeFloat ( ) const
virtual

Returns value that represents type float belonging to enumeration.

Returns
enum value

Definition at line 184 of file EnumDataType.cpp.

Referenced by te::layout::Variant::convertToString(), te::layout::Variant::convertValue(), and te::layout::Variant::fromPtree().

te::layout::EnumType * te::layout::EnumDataType::getDataTypeGridSettings ( ) const
virtual
te::layout::EnumType * te::layout::EnumDataType::getDataTypeGroup ( ) const
virtual

Returns value that represents type Group (string) belonging to enumeration.

Returns
enum value

Definition at line 229 of file EnumDataType.cpp.

Referenced by te::layout::VariantPropertiesBrowser::changeQtVariantPropertyValue(), te::layout::VariantPropertiesBrowser::getLayoutType(), and te::layout::VariantPropertiesBrowser::getVariantType().

te::layout::EnumType * te::layout::EnumDataType::getDataTypeLong ( ) const
virtual

Returns value that represents type long belonging to enumeration.

Returns
enum value

Definition at line 179 of file EnumDataType.cpp.

Referenced by te::layout::Variant::convertToString(), te::layout::Variant::convertValue(), and te::layout::Variant::fromPtree().

te::layout::EnumType * te::layout::EnumDataType::getDataTypeString ( ) const
virtual

Returns value that represents type string belonging to enumeration.

Returns
enum value

Definition at line 189 of file EnumDataType.cpp.

Referenced by te::layout::PropertiesUtils::addDynamicOptions(), te::layout::VariantPropertiesBrowser::changeQtVariantPropertyValue(), te::layout::Variant::convertToString(), te::layout::Variant::convertValue(), te::layout::ObjectInspectorOutside::createProperty(), te::layout::Variant::fromPtree(), te::layout::VariantPropertiesBrowser::getLayoutType(), te::layout::DialogPropertiesBrowser::getLayoutType(), te::layout::TitleModel::getProperties(), te::layout::TextModel::getProperties(), te::layout::ScaleModel::getProperties(), te::layout::MapModel::getProperties(), te::layout::LegendModel::getProperties(), te::layout::ItemModelObservable::getProperties(), te::layout::GridMapModel::getProperties(), te::layout::VariantPropertiesBrowser::getProperty(), te::layout::VariantPropertiesBrowser::getVariantType(), te::layout::TextGridSettingsOutside::initCombo(), te::layout::GridSettingsOutside::initCombo(), te::layout::TextGridSettingsOutside::on_cmbBorderStyle_currentIndexChanged(), te::layout::TextGridSettingsOutside::on_cmbCellAlign_currentIndexChanged(), te::layout::TextGridSettingsOutside::on_cmbColumnsWidthConstraints_currentIndexChanged(), te::layout::GridSettingsOutside::on_cmbCornerGeoFont_currentIndexChanged(), te::layout::GridSettingsOutside::on_cmbCornerGeoTextSize_currentIndexChanged(), te::layout::GridSettingsOutside::on_cmbGeoFont_currentIndexChanged(), te::layout::GridSettingsOutside::on_cmbGridStyle_currentIndexChanged(), te::layout::TextGridSettingsOutside::on_cmbHeaderAlign_currentIndexChanged(), te::layout::GridSettingsOutside::on_cmbLineType_currentIndexChanged(), te::layout::GridSettingsOutside::on_cmbPlanarFont_currentIndexChanged(), te::layout::GridSettingsOutside::on_cmbPlanarLineType_currentIndexChanged(), te::layout::GridSettingsOutside::on_cmbPlanarStyle_currentIndexChanged(), te::layout::GridSettingsOutside::on_cmbScale_currentIndexChanged(), te::layout::TextGridSettingsOutside::on_cmbTableWidthConstraints_currentIndexChanged(), te::layout::GridSettingsOutside::on_cmbUnit_currentIndexChanged(), te::layout::PointModel::pointProperty(), and te::layout::ScaleModel::scaleProperty().

te::layout::EnumType * te::layout::EnumDataType::getDataTypeTextGridSettings ( ) const
virtual

Returns value that represents type TextGridSettings (string) belonging to enumeration.

Returns
enum value

Definition at line 224 of file EnumDataType.cpp.

Referenced by te::layout::DialogPropertiesBrowser::checkDlgType(), te::layout::TitleModel::getProperties(), and te::layout::DialogPropertiesBrowser::onSetDlg().

te::layout::EnumType * te::layout::AbstractEnum::getEnum ( int  enumId) const
virtualinherited

Searching for a value of the enumeration by id.

Parameters
enumIdid
Returns
value found in the enumeration or null

Definition at line 42 of file AbstractEnum.cpp.

Referenced by te::layout::JSON::retrieve(), te::layout::JSON::retrieveSubPTree(), and te::layout::GridMapModel::updateProperties().

te::layout::EnumType * te::layout::AbstractEnum::getEnum ( std::string  name) const
virtualinherited

Searching for an enumeration value by name.

Parameters
name
Returns
value found in the enumeration or null

Definition at line 58 of file AbstractEnum.cpp.

void te::layout::EnumDataType::init ( )
protectedvirtual

Reimplemented from AbstractEnum.

Implements te::layout::AbstractEnum.

Definition at line 119 of file EnumDataType.cpp.

Referenced by EnumDataType().

int te::layout::AbstractEnum::maxId ( )
virtualinherited

Searching for a max value of the id.

Returns
-1 if no found, otherwise the id

Definition at line 90 of file AbstractEnum.cpp.

int te::layout::AbstractEnum::minId ( )
virtualinherited

Searching for a min value of the id.

Returns
-1 if no found, otherwise the id

Definition at line 108 of file AbstractEnum.cpp.

te::layout::EnumType * te::layout::AbstractEnum::searchLabel ( std::string  label) const
virtualinherited

Searching for an enumeration value by name.

Parameters
name
Returns
value found in the enumeration or null

Definition at line 74 of file AbstractEnum.cpp.

int te::layout::AbstractEnum::size ( )
virtualinherited

Definition at line 128 of file AbstractEnum.cpp.

Member Data Documentation

EnumType* te::layout::EnumDataType::m_dataTypeBool
protected

value that represents type bool belonging to enumeration

Definition at line 175 of file EnumDataType.h.

EnumType* te::layout::EnumDataType::m_dataTypeColor
protected

value that represents type te::color::RGBAColor** (color) belonging to enumeration

Definition at line 176 of file EnumDataType.h.

EnumType* te::layout::EnumDataType::m_dataTypeDouble
protected

value that represents type double belonging to enumeration

Definition at line 171 of file EnumDataType.h.

EnumType* te::layout::EnumDataType::m_dataTypeFloat
protected

value that represents type float belonging to enumeration

Definition at line 173 of file EnumDataType.h.

EnumType* te::layout::EnumDataType::m_dataTypeFont
protected

value that represents type Font belonging to enumeration

Definition at line 179 of file EnumDataType.h.

EnumType* te::layout::EnumDataType::m_dataTypeGridSettings
protected

value that represents type GridSettings (string) belonging to enumeration

Definition at line 177 of file EnumDataType.h.

EnumType* te::layout::EnumDataType::m_dataTypeGroup
protected

value that represents type Group (string) belonging to enumeration

Definition at line 182 of file EnumDataType.h.

EnumType* te::layout::EnumDataType::m_dataTypeImage
protected

value that represents type image (string) belonging to enumeration

Definition at line 180 of file EnumDataType.h.

EnumType* te::layout::EnumDataType::m_dataTypeInt
protected

value that represents type integer belonging to enumeration

Definition at line 170 of file EnumDataType.h.

EnumType* te::layout::EnumDataType::m_dataTypeLong
protected

value that represents type long belonging to enumeration

Definition at line 172 of file EnumDataType.h.

EnumType* te::layout::EnumDataType::m_dataTypeNone
protected

value that represents type none belonging to enumeration

Definition at line 169 of file EnumDataType.h.

EnumType* te::layout::EnumDataType::m_dataTypeString
protected

value that represents type string belonging to enumeration

Definition at line 174 of file EnumDataType.h.

EnumType* te::layout::EnumDataType::m_dataTypeStringList
protected

value that represents type StringList (string) belonging to enumeration.

Definition at line 178 of file EnumDataType.h.

EnumType* te::layout::EnumDataType::m_dataTypeTextGridSettings
protected

value that represents type TextGridSettings (string) belonging to enumeration

Definition at line 181 of file EnumDataType.h.

std::vector<EnumType*> te::layout::AbstractEnum::m_enums
protectedinherited

list of enumeration values

Definition at line 112 of file AbstractEnum.h.


The documentation for this class was generated from the following files: