69 m_gridGeodesic.clear();
91 m_update.setId(prop.
getId());
93 m_update.setName(prop.
getName());
99 if(!property.isNull())
101 if(property.getOptionChoices().empty())
103 if(property.getValue() != variant)
115 if(property.getOptionByCurrentChoice() != variant)
117 property.setOptionChoice(variant);
128 addUpdateGeodesicProperty(outsideModel, property, gridType);
132 addUpdatePlanarProperty(outsideModel, property, gridType);
139 if(m_gridGeodesic.isNull())
144 m_gridGeodesic.setId(prop.
getId());
146 m_gridGeodesic.setName(prop.
getName());
147 m_gridGeodesic.setValue(prop.
getValue());
152 if(m_gridGeodesic.containsSubProperty(subProperty))
154 m_gridGeodesic.removeSubProperty(subProperty);
156 m_gridGeodesic.addSubProperty(subProperty);
158 if(m_update.containsSubProperty(m_gridGeodesic))
160 m_update.removeSubProperty(m_gridGeodesic);
162 m_update.addSubProperty(m_gridGeodesic);
168 if(m_gridPlanar.isNull())
173 m_gridPlanar.setId(prop.
getId());
175 m_gridPlanar.setName(prop.
getName());
176 m_gridPlanar.setValue(prop.
getValue());
181 if(m_gridPlanar.containsSubProperty(subProperty))
183 m_gridPlanar.removeSubProperty(subProperty);
185 m_gridPlanar.addSubProperty(subProperty);
187 if(m_update.containsSubProperty(m_gridPlanar))
189 m_update.removeSubProperty(m_gridPlanar);
191 m_update.addSubProperty(m_gridPlanar);
virtual ~GridSettingsController()
AbstractOutsideFactory * getOutsideFactory()
virtual void clearUpdate()
virtual void addUpdatePlanarProperty(GridSettingsModel *outsideModel, Property subProperty, LayoutGridType gridType)
virtual Observer * make(LayoutAbstractObjectType type, OutsideParamsCreate params=OutsideParamsCreate())=0
GridSettingsController(Observable *o)
virtual void updateOutsideSubProperty(Property subProperty, LayoutGridType gridType)
void setValue(typename ValueType value, LayoutPropertyDataType type)
virtual te::layout::Property containsOutsideSubProperty(std::string name, LayoutGridType gridType)
virtual Property getProperty(std::string name, LayoutGridType gridType)
virtual Property updateProperty()
virtual void setPosition(const double &x, const double &y)
virtual void addUpdateProperty(std::string name, Variant variant, LayoutGridType gridType)
virtual void setPosition(const double &x, const double &y)
virtual void addUpdateGeodesicProperty(GridSettingsModel *outsideModel, Property subProperty, LayoutGridType gridType)
void setEditable(bool editable)
virtual Property containsGrid(LayoutGridType gridType)
static Context * getInstance()
This function is called to create an instance of the class.
LayoutGridType
Enum LayoutGridType. This is the enumeration of the grid types.
virtual Property getOutsideProperty()