Class to represent a data type enumeration. Ex.: int, double, bool, te::color::RGBAColor (color), etc. More...
#include <EnumDataType.h>
Public Member Functions | |
EnumDataType () | |
Constructor. More... | |
virtual EnumType * | getDataTypeBool () const |
Returns value that represents type bool belonging to enumeration. More... | |
virtual EnumType * | getDataTypeColor () const |
Returns value that represents type te::color::RGBAColor** (color) belonging to enumeration. More... | |
virtual EnumType * | getDataTypeDouble () const |
Returns value that represents type double belonging to enumeration. More... | |
virtual EnumType * | getDataTypeFloat () const |
Returns value that represents type float belonging to enumeration. More... | |
virtual EnumType * | getDataTypeFont () const |
Returns value that represents type Font belonging to enumeration. More... | |
virtual EnumType * | getDataTypeGridSettings () const |
Returns value that represents type GridSettings (string) belonging to enumeration. More... | |
virtual EnumType * | getDataTypeGroup () const |
Returns value that represents type Group (string) belonging to enumeration. More... | |
virtual EnumType * | getDataTypeImage () const |
Returns value that represents type image (string) belonging to enumeration. More... | |
virtual EnumType * | getDataTypeInt () const |
Returns value that represents type integer belonging to enumeration. More... | |
virtual EnumType * | getDataTypeLong () const |
Returns value that represents type long belonging to enumeration. More... | |
virtual EnumType * | getDataTypeNone () const |
Returns value that represents type none belonging to enumeration. More... | |
virtual EnumType * | getDataTypeString () const |
Returns value that represents type string belonging to enumeration. More... | |
virtual EnumType * | getDataTypeStringList () const |
Returns value that represents type StringList (string) belonging to enumeration. More... | |
virtual EnumType * | getDataTypeTextGridSettings () const |
Returns value that represents type TextGridSettings (string) belonging to enumeration. More... | |
virtual EnumType * | getEnum (int enumId) const |
Searching for a value of the enumeration by id. More... | |
virtual EnumType * | getEnum (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 EnumType * | searchLabel (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 | |
EnumType * | m_dataTypeBool |
value that represents type bool belonging to enumeration More... | |
EnumType * | m_dataTypeColor |
value that represents type te::color::RGBAColor** (color) belonging to enumeration More... | |
EnumType * | m_dataTypeDouble |
value that represents type double belonging to enumeration More... | |
EnumType * | m_dataTypeFloat |
value that represents type float belonging to enumeration More... | |
EnumType * | m_dataTypeFont |
value that represents type Font belonging to enumeration More... | |
EnumType * | m_dataTypeGridSettings |
value that represents type GridSettings (string) belonging to enumeration More... | |
EnumType * | m_dataTypeGroup |
value that represents type Group (string) belonging to enumeration More... | |
EnumType * | m_dataTypeImage |
value that represents type image (string) belonging to enumeration More... | |
EnumType * | m_dataTypeInt |
value that represents type integer belonging to enumeration More... | |
EnumType * | m_dataTypeLong |
value that represents type long belonging to enumeration More... | |
EnumType * | m_dataTypeNone |
value that represents type none belonging to enumeration More... | |
EnumType * | m_dataTypeString |
value that represents type string belonging to enumeration More... | |
EnumType * | m_dataTypeStringList |
value that represents type StringList (string) belonging to enumeration. More... | |
EnumType * | m_dataTypeTextGridSettings |
value that represents type TextGridSettings (string) belonging to enumeration More... | |
std::vector< EnumType * > | m_enums |
list of enumeration values More... | |
Class to represent a data type enumeration. Ex.: int, double, bool, te::color::RGBAColor (color), etc.
Definition at line 48 of file EnumDataType.h.
te::layout::EnumDataType::EnumDataType | ( | ) |
|
virtual |
Destructor.
Definition at line 50 of file EnumDataType.cpp.
|
virtual |
Returns value that represents type bool belonging to enumeration.
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().
|
virtual |
Returns value that represents type te::color::RGBAColor** (color) belonging to enumeration.
Definition at line 199 of file EnumDataType.cpp.
Referenced by te::layout::VariantPropertiesBrowser::changeQtVariantPropertyValue(), te::layout::Variant::convertToString(), te::layout::Variant::convertValue(), te::layout::TextGridSettingsOutside::eventFilter(), te::layout::Variant::fromPtree(), te::layout::VariantPropertiesBrowser::getLayoutType(), te::layout::LineModel::getProperties(), te::layout::TitleModel::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::GridSettingsOutside::on_pbCornerTextGeoColor_clicked(), te::layout::GridSettingsOutside::on_pbGridTextGeoColor_clicked(), te::layout::GridSettingsOutside::on_pbGridTextPlanarColor_clicked(), te::layout::GridSettingsOutside::on_pbLineColor_clicked(), te::layout::GridSettingsOutside::on_pbPlanarLineColor_clicked(), and te::layout::MenuBuilder::onShowColorDlg().
|
virtual |
Returns value that represents type double belonging to enumeration.
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().
|
virtual |
Returns value that represents type float belonging to enumeration.
Definition at line 184 of file EnumDataType.cpp.
Referenced by te::layout::Variant::convertToString(), te::layout::Variant::convertValue(), and te::layout::Variant::fromPtree().
|
virtual |
Returns value that represents type Font belonging to enumeration.
Definition at line 214 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::TextModel::getProperties(), te::layout::LegendModel::getProperties(), te::layout::VariantPropertiesBrowser::getProperty(), te::layout::VariantPropertiesBrowser::getVariantType(), and te::layout::MenuBuilder::onShowFontDlg().
|
virtual |
Returns value that represents type GridSettings (string) belonging to enumeration.
Definition at line 204 of file EnumDataType.cpp.
Referenced by te::layout::DialogPropertiesBrowser::checkDlgType(), te::layout::DialogPropertiesBrowser::getLayoutType(), te::layout::GridMapModel::getProperties(), te::layout::DialogPropertiesBrowser::getProperty(), te::layout::DialogPropertiesBrowser::getVariantType(), and te::layout::DialogPropertiesBrowser::onSetDlg().
|
virtual |
Returns value that represents type Group (string) belonging to enumeration.
Definition at line 229 of file EnumDataType.cpp.
Referenced by te::layout::VariantPropertiesBrowser::changeQtVariantPropertyValue(), te::layout::VariantPropertiesBrowser::getLayoutType(), and te::layout::VariantPropertiesBrowser::getVariantType().
|
virtual |
Returns value that represents type image (string) belonging to enumeration.
Definition at line 219 of file EnumDataType.cpp.
Referenced by te::layout::DialogPropertiesBrowser::checkDlgType(), te::layout::DialogPropertiesBrowser::getLayoutType(), te::layout::ImageModel::getProperties(), te::layout::DialogPropertiesBrowser::getProperty(), te::layout::DialogPropertiesBrowser::getVariantType(), te::layout::DialogPropertiesBrowser::onSetDlg(), and te::layout::DialogPropertiesBrowser::onShowImageDlg().
|
virtual |
Returns value that represents type integer belonging to enumeration.
Definition at line 169 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::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_cmbGeoTextSize_currentIndexChanged(), te::layout::GridSettingsOutside::on_cmbPlanarLineWidth_currentIndexChanged(), te::layout::GridSettingsOutside::on_cmbPlanarTextSize_currentIndexChanged(), te::layout::TextGridSettingsOutside::on_lneEdtColumnsNumber_editingFinished(), and te::layout::TextGridSettingsOutside::on_lneEdtRowsNumber_editingFinished().
|
virtual |
Returns value that represents type long belonging to enumeration.
Definition at line 179 of file EnumDataType.cpp.
Referenced by te::layout::Variant::convertToString(), te::layout::Variant::convertValue(), and te::layout::Variant::fromPtree().
|
virtual |
Returns value that represents type none belonging to enumeration.
Definition at line 164 of file EnumDataType.cpp.
Referenced by te::layout::MenuBuilder::changePropertyValue(), te::layout::Property::clear(), te::layout::Variant::clear(), te::layout::Variant::convertToString(), te::layout::VariantPropertiesBrowser::getLayoutType(), te::layout::DialogPropertiesBrowser::getLayoutType(), te::layout::PropertiesOutside::onChangePropertyValue(), and te::layout::DialogPropertiesBrowser::onSetDlg().
|
virtual |
Returns value that represents type string belonging to enumeration.
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().
|
virtual |
Returns value that represents type StringList (string) belonging to enumeration.
Definition at line 209 of file EnumDataType.cpp.
Referenced by te::layout::VariantPropertiesBrowser::changeQtVariantPropertyValue(), te::layout::Variant::convertValue(), te::layout::VariantPropertiesBrowser::getLayoutType(), te::layout::ScaleModel::getProperties(), te::layout::LegendModel::getProperties(), te::layout::GridMapModel::getProperties(), te::layout::VariantPropertiesBrowser::getProperty(), te::layout::VariantPropertiesBrowser::getVariantType(), te::layout::PointModel::pointProperty(), and te::layout::ScaleModel::scaleProperty().
|
virtual |
Returns value that represents type TextGridSettings (string) belonging to enumeration.
Definition at line 224 of file EnumDataType.cpp.
Referenced by te::layout::DialogPropertiesBrowser::checkDlgType(), te::layout::TitleModel::getProperties(), and te::layout::DialogPropertiesBrowser::onSetDlg().
|
virtualinherited |
Searching for a value of the enumeration by id.
enumId | id |
Definition at line 42 of file AbstractEnum.cpp.
Referenced by te::layout::JSON::retrieve(), te::layout::JSON::retrieveSubPTree(), and te::layout::GridMapModel::updateProperties().
|
virtualinherited |
Searching for an enumeration value by name.
name |
Definition at line 58 of file AbstractEnum.cpp.
|
protectedvirtual |
Reimplemented from AbstractEnum.
Implements te::layout::AbstractEnum.
Definition at line 119 of file EnumDataType.cpp.
Referenced by EnumDataType().
|
virtualinherited |
Searching for a max value of the id.
Definition at line 90 of file AbstractEnum.cpp.
|
virtualinherited |
Searching for a min value of the id.
Definition at line 108 of file AbstractEnum.cpp.
|
virtualinherited |
Searching for an enumeration value by name.
name |
Definition at line 74 of file AbstractEnum.cpp.
|
virtualinherited |
Definition at line 128 of file AbstractEnum.cpp.
|
protected |
value that represents type bool belonging to enumeration
Definition at line 175 of file EnumDataType.h.
|
protected |
value that represents type te::color::RGBAColor** (color) belonging to enumeration
Definition at line 176 of file EnumDataType.h.
|
protected |
value that represents type double belonging to enumeration
Definition at line 171 of file EnumDataType.h.
|
protected |
value that represents type float belonging to enumeration
Definition at line 173 of file EnumDataType.h.
|
protected |
value that represents type Font belonging to enumeration
Definition at line 179 of file EnumDataType.h.
|
protected |
value that represents type GridSettings (string) belonging to enumeration
Definition at line 177 of file EnumDataType.h.
|
protected |
value that represents type Group (string) belonging to enumeration
Definition at line 182 of file EnumDataType.h.
|
protected |
value that represents type image (string) belonging to enumeration
Definition at line 180 of file EnumDataType.h.
|
protected |
value that represents type integer belonging to enumeration
Definition at line 170 of file EnumDataType.h.
|
protected |
value that represents type long belonging to enumeration
Definition at line 172 of file EnumDataType.h.
|
protected |
value that represents type none belonging to enumeration
Definition at line 169 of file EnumDataType.h.
|
protected |
value that represents type string belonging to enumeration
Definition at line 174 of file EnumDataType.h.
|
protected |
value that represents type StringList (string) belonging to enumeration.
Definition at line 178 of file EnumDataType.h.
|
protected |
value that represents type TextGridSettings (string) belonging to enumeration
Definition at line 181 of file EnumDataType.h.
|
protectedinherited |
list of enumeration values
Definition at line 112 of file AbstractEnum.h.