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

#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< VariantgetOptionChoices ()
 
std::vector< te::layout::PropertygetSubProperty ()
 
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< Variantm_options
 
std::vector< te::layout::Propertym_subProperty
 
LayoutPropertyDataType m_type
 
Variant m_value
 

Detailed Description

Definition at line 38 of file Property.h.

Constructor & Destructor Documentation

te::layout::Property::Property ( )

Definition at line 35 of file Property.cpp.

te::layout::Property::~Property ( )
virtual

Definition at line 44 of file Property.cpp.

Member Function Documentation

void te::layout::Property::addOption ( Variant  variant)
void te::layout::Property::addSubProperty ( Property  property)
void te::layout::Property::clear ( )
te::layout::Property te::layout::Property::containsSubProperty ( std::string  name)
virtual

Definition at line 179 of file Property.cpp.

References setName().

te::layout::Variant te::layout::Property::getOptionByCurrentChoice ( )
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().

bool te::layout::Property::operator== ( const Property other)
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)
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)
void te::layout::Property::setValue ( Variant  variant)

Definition at line 208 of file Property.cpp.

References te::layout::Variant::getType().

Member Data Documentation

Variant te::layout::Property::m_currentChoice
protected

Definition at line 99 of file Property.h.

bool te::layout::Property::m_editable
protected

Definition at line 100 of file Property.h.

std::string te::layout::Property::m_id
protected

Definition at line 97 of file Property.h.

std::string te::layout::Property::m_name
protected

Definition at line 95 of file Property.h.

std::vector<Variant> te::layout::Property::m_options
protected

Definition at line 101 of file Property.h.

std::vector<te::layout::Property> te::layout::Property::m_subProperty
protected

Definition at line 102 of file Property.h.

LayoutPropertyDataType te::layout::Property::m_type
protected

Definition at line 96 of file Property.h.

Variant te::layout::Property::m_value
protected

Definition at line 98 of file Property.h.


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