#include <Property.h>
Public Member Functions | |
void | addOption (Variant variant) |
void | addSubProperty (Property property) |
void | clear () |
virtual bool | containsSubProperty (Property subProperty) |
virtual Property | containsSubProperty (std::string name) |
std::string | getId () |
std::string | getName () |
Variant | getOptionByCurrentChoice () |
std::vector< Variant > | getOptionChoices () |
std::vector< te::layout::Property > | getSubProperty () |
LayoutPropertyDataType | getType () |
Variant | getValue () |
bool | isEditable () |
bool | isNull () |
bool | operator== (const Property &other) |
Property () | |
void | removeOption (Variant variant) |
void | removeSubProperty (Property property) |
void | setEditable (bool editable) |
void | setId (std::string id) |
void | setName (std::string name) |
void | setOptionChoice (Variant variant) |
void | setOptionChoice (int numberOption) |
template<typename ValueType > | |
void | setValue (typename ValueType value, LayoutPropertyDataType type) |
void | setValue (Variant variant) |
virtual | ~Property () |
Protected Attributes | |
Variant | m_currentChoice |
bool | m_editable |
std::string | m_id |
std::string | m_name |
std::vector< Variant > | m_options |
std::vector< te::layout::Property > | m_subProperty |
LayoutPropertyDataType | m_type |
Variant | m_value |
Definition at line 38 of file Property.h.
te::layout::Property::Property | ( | ) |
Definition at line 35 of file Property.cpp.
|
virtual |
Definition at line 44 of file Property.cpp.
void te::layout::Property::addOption | ( | Variant | variant | ) |
Definition at line 79 of file Property.cpp.
Referenced by te::layout::ScaleModel::getProperties(), te::layout::LegendModel::getProperties(), and te::layout::PropertyBrowser::getProperty().
void te::layout::Property::addSubProperty | ( | Property | property | ) |
Definition at line 126 of file Property.cpp.
Referenced by te::layout::MapGridModel::getProperties(), te::layout::JSON::retrieveSubPTree(), and te::layout::GridSettingsModel::updateOutsideSubProperty().
void te::layout::Property::clear | ( | ) |
Definition at line 196 of file Property.cpp.
References te::layout::DataTypeNone.
Referenced by te::layout::GridGeodesicModel::getProperty(), te::layout::GridPlanarModel::getProperty(), and te::layout::JSON::retrieve().
|
virtual |
Definition at line 167 of file Property.cpp.
Referenced by te::layout::GridSettingsModel::containsGrid(), te::layout::GridSettingsModel::containsOutsideSubProperty(), te::layout::GridSettingsModel::updateOutsideSubProperty(), te::layout::MapGridModel::updateProperties(), te::layout::GridGeodesicModel::updateProperty(), and te::layout::GridPlanarModel::updateProperty().
|
virtual |
Definition at line 179 of file Property.cpp.
References setName().
std::string te::layout::Property::getId | ( | ) |
Definition at line 64 of file Property.cpp.
Referenced by te::layout::GridSettingsController::addUpdateGeodesicProperty(), te::layout::GridSettingsController::addUpdatePlanarProperty(), and te::layout::GridSettingsController::addUpdateProperty().
std::string te::layout::Property::getName | ( | ) |
Definition at line 49 of file Property.cpp.
Referenced by te::layout::PropertiesItemPropertyBrowser::addProperty(), te::layout::PropertyBrowser::addProperty(), te::layout::GridSettingsController::addUpdateGeodesicProperty(), te::layout::GridSettingsController::addUpdatePlanarProperty(), te::layout::GridSettingsController::addUpdateProperty(), te::layout::PropertiesOutside::changeMapVisitable(), te::layout::PropertiesOutside::checkDynamicProperty(), te::layout::JSON::loadFromProperties(), operator==(), te::layout::PropertiesOutside::sameProperties(), and te::layout::JSON::searchProperty().
te::layout::Variant te::layout::Property::getOptionByCurrentChoice | ( | ) |
Definition at line 106 of file Property.cpp.
Referenced by te::layout::ScaleModel::updateProperties(), and te::layout::LegendModel::updateProperties().
std::vector< te::layout::Variant > te::layout::Property::getOptionChoices | ( | ) |
Definition at line 111 of file Property.cpp.
std::vector< te::layout::Property > te::layout::Property::getSubProperty | ( | ) |
Definition at line 143 of file Property.cpp.
Referenced by te::layout::JSON::searchProperty().
te::layout::LayoutPropertyDataType te::layout::Property::getType | ( | ) |
Definition at line 59 of file Property.cpp.
Referenced by te::layout::PropertiesItemPropertyBrowser::addProperty(), te::layout::PropertyBrowser::addProperty(), te::layout::GridSettingsOutside::initCombo(), te::layout::JSON::loadFromProperties(), te::layout::PropertiesOutside::onChangePropertyValue(), and te::layout::JSON::searchProperty().
te::layout::Variant te::layout::Property::getValue | ( | ) |
Definition at line 74 of file Property.cpp.
Referenced by te::layout::PropertiesItemPropertyBrowser::addProperty(), te::layout::PropertyBrowser::addProperty(), te::layout::GridSettingsController::addUpdateGeodesicProperty(), te::layout::GridSettingsController::addUpdatePlanarProperty(), te::layout::GridSettingsController::addUpdateProperty(), te::layout::BuildGraphicsItem::findCoordinate(), te::layout::BuildGraphicsItem::findZValue(), te::layout::GridSettingsOutside::initBool(), te::layout::GridSettingsOutside::initColor(), te::layout::GridSettingsOutside::initCombo(), te::layout::GridSettingsOutside::initDouble(), te::layout::GridSettingsOutside::initInt(), te::layout::GridSettingsOutside::initString(), te::layout::JSON::loadFromProperties(), te::layout::JSON::searchProperty(), te::layout::ScaleModel::updateProperties(), te::layout::ItemModelObservable::updateProperties(), te::layout::GridGeodesicModel::updateProperty(), and te::layout::GridPlanarModel::updateProperty().
bool te::layout::Property::isEditable | ( | ) |
Definition at line 116 of file Property.cpp.
Referenced by te::layout::GridSettingsController::addUpdateGeodesicProperty(), te::layout::GridSettingsController::addUpdatePlanarProperty(), and te::layout::GridSettingsController::addUpdateProperty().
bool te::layout::Property::isNull | ( | ) |
Definition at line 148 of file Property.cpp.
Referenced by te::layout::GridSettingsController::addUpdateGeodesicProperty(), te::layout::GridSettingsController::addUpdatePlanarProperty(), te::layout::PropertiesOutside::contains(), te::layout::BuildGraphicsItem::findCoordinate(), te::layout::BuildGraphicsItem::findZValue(), te::layout::PropertiesItemPropertyBrowser::onUpdateGridSettingsProperty(), te::layout::GridSettingsModel::updateOutsideSubProperty(), te::layout::ScaleModel::updateProperties(), te::layout::LegendModel::updateProperties(), te::layout::MapGridModel::updateProperties(), te::layout::ItemModelObservable::updateProperties(), te::layout::GridGeodesicModel::updateProperty(), and te::layout::GridPlanarModel::updateProperty().
|
inline |
Definition at line 115 of file Property.h.
References getName().
void te::layout::Property::removeOption | ( | Variant | variant | ) |
Definition at line 89 of file Property.cpp.
void te::layout::Property::removeSubProperty | ( | Property | property | ) |
Definition at line 131 of file Property.cpp.
Referenced by te::layout::GridSettingsModel::updateOutsideSubProperty().
void te::layout::Property::setEditable | ( | bool | editable | ) |
Definition at line 121 of file Property.cpp.
Referenced by te::layout::GridSettingsController::addUpdateGeodesicProperty(), te::layout::GridSettingsController::addUpdatePlanarProperty(), and te::layout::GridSettingsController::addUpdateProperty().
void te::layout::Property::setId | ( | std::string | id | ) |
Definition at line 69 of file Property.cpp.
Referenced by te::layout::ScaleModel::getProperties(), te::layout::LegendModel::getProperties(), te::layout::ItemModelObservable::getProperties(), and te::layout::MapGridModel::getProperties().
void te::layout::Property::setName | ( | std::string | name | ) |
Definition at line 54 of file Property.cpp.
Referenced by te::layout::Properties::contains(), containsSubProperty(), te::layout::PageSetupModel::getProperties(), te::layout::ScaleModel::getProperties(), te::layout::ItemModelObservable::getProperties(), te::layout::LegendModel::getProperties(), te::layout::MapGridModel::getProperties(), te::layout::GridSettingsModel::getProperties(), te::layout::OutsideModelObservable::getProperties(), te::layout::GridGeodesicModel::getProperty(), te::layout::GridPlanarModel::getProperty(), te::layout::PropertyBrowser::getProperty(), te::layout::JSON::retrieve(), and te::layout::JSON::retrieveSubPTree().
void te::layout::Property::setOptionChoice | ( | Variant | variant | ) |
Definition at line 101 of file Property.cpp.
Referenced by te::layout::PropertyBrowser::getProperty().
void te::layout::Property::setOptionChoice | ( | int | numberOption | ) |
|
inline |
Definition at line 106 of file Property.h.
References te::layout::Variant::setValue().
Referenced by te::layout::GridSettingsController::addUpdateProperty(), te::layout::ScaleModel::getProperties(), te::layout::ItemModelObservable::getProperties(), te::layout::LegendModel::getProperties(), te::layout::MapGridModel::getProperties(), te::layout::GridGeodesicModel::getProperty(), te::layout::GridPlanarModel::getProperty(), te::layout::PropertyBrowser::getProperty(), te::layout::JSON::retrieve(), and te::layout::JSON::retrieveSubPTree().
void te::layout::Property::setValue | ( | Variant | variant | ) |
Definition at line 208 of file Property.cpp.
References te::layout::Variant::getType().
|
protected |
Definition at line 99 of file Property.h.
|
protected |
Definition at line 100 of file Property.h.
|
protected |
Definition at line 97 of file Property.h.
|
protected |
Definition at line 95 of file Property.h.
|
protected |
Definition at line 101 of file Property.h.
|
protected |
Definition at line 102 of file Property.h.
|
protected |
Definition at line 96 of file Property.h.
|
protected |
Definition at line 98 of file Property.h.