83 m_currentChoice = variant;
86 m_options.push_back(variant);
91 for(std::vector<Variant>::iterator it = m_options.begin(); it != m_options.end(); it++)
103 m_currentChoice = variant;
108 return m_currentChoice;
123 m_editable = editable;
128 m_subProperty.push_back(property);
133 for(std::vector<Property>::iterator it = m_subProperty.begin(); it != m_subProperty.end(); it++)
135 if((*it) == property)
137 m_subProperty.erase(it);
145 return m_subProperty;
154 if(!m_options.empty())
169 bool is_present =
false;
171 if(std::find(m_subProperty.begin(), m_subProperty.end(), subProperty) != m_subProperty.end())
184 if(std::find(m_subProperty.begin(), m_subProperty.end(), property) != m_subProperty.end())
186 std::vector<Property>::iterator it = std::find(m_subProperty.begin(), m_subProperty.end(), property);
191 property.setName(
"");
203 m_currentChoice.clear();
205 m_subProperty.clear();
void removeSubProperty(Property property)
void addSubProperty(Property property)
void addOption(Variant variant)
Variant getOptionByCurrentChoice()
void setValue(typename ValueType value, LayoutPropertyDataType type)
virtual bool containsSubProperty(Property subProperty)
std::vector< Variant > getOptionChoices()
void removeOption(Variant variant)
LayoutPropertyDataType getType()
LayoutPropertyDataType getType()
void setEditable(bool editable)
void setName(std::string name)
LayoutPropertyDataType
Enum LayoutPropertyDataType.
void setId(std::string id)
std::vector< te::layout::Property > getSubProperty()
void setOptionChoice(Variant variant)