27 #include "../../../maptools/Utils.h"
28 #include "../../../se.h"
29 #include "../../../xlink/SimpleLink.h"
34 #include "../../../../../third-party/qt/propertybrowser/qtpropertybrowser.h"
41 m_setLocalGraphic(false), m_graphic(new te::se::Graphic)
84 addProperty(generalProperty, tr(
"Graphic"), QColor(210, 210, 210));
97 m_setLocalGraphic =
true;
99 m_graphic = graphic->
clone();
103 m_setLocalGraphic =
false;
110 return m_graphic->
clone();
115 if(m_setLocalGraphic)
118 if(p == m_opacityProperty)
120 double opacity = value / 100.0;
122 emit graphicChanged();
128 if(m_setLocalGraphic)
132 valueStr.setNum(value);
134 if(p == m_sizeProperty)
137 emit graphicChanged();
139 else if(p == m_angleProperty)
142 emit graphicChanged();
148 if(m_setLocalGraphic)
152 xStr.setNum(value.x());
153 yStr.setNum(value.y());
QtIntPropertyManager * m_intSliderManager
~GraphicPropertyItem()
Destructor.
TEMAPEXPORT double GetDouble(const te::se::ParameterValue *param)
Gets the parameter value as double.
te::se::Graphic * getGraphic() const
QtDoublePropertyManager * m_doubleManager
Graphic * clone() const
It creates a new copy of this object.
bool setGraphic(const te::se::Graphic *graphic)
void updateUi()
Updates the widget form based on internal graphic element.
QtProperty * m_angleProperty
A widget used to define the main property items that can be used to describe a se object...
virtual void valueChanged(QtProperty *p, int value)
QtProperty * m_sizeProperty
void addProperty(QtProperty *property, const QString &id, QColor c)
static AbstractPropertyManager & getInstance()
It returns a reference to the singleton instance.
GraphicPropertyItem(QtTreePropertyBrowser *pb, QColor c=QColor())
Constructor.
A Graphic is a graphic symbol with an inherent shape, color(s), and possibly size.
QtProperty * m_opacityProperty
The "ParameterValueType" uses WFS-Filter expressions to give values for SE graphic parameters...
A widget used to define the general properties of a se object.