27 #include "../../../se/Utils.h"
28 #include "../../../se.h"
29 #include "../../../xlink/SimpleLink.h"
30 #include "../propertybrowser/AbstractPropertyManager.h"
34 #include <QtPropertyBrowser/QtTreePropertyBrowser>
35 #include <QtPropertyBrowser/QtVariantPropertyManager>
42 m_setLocalGraphic(false), m_graphic(new
te::se::Graphic)
85 addProperty(generalProperty, tr(
"Graphic"), QColor(210, 210, 210));
98 m_setLocalGraphic =
true;
100 m_graphic = graphic->
clone();
104 m_setLocalGraphic =
false;
111 return m_graphic->
clone();
116 if(m_setLocalGraphic)
119 if(p == m_opacityProperty)
121 double opacity = value / 100.0;
123 emit graphicChanged();
129 if(m_setLocalGraphic)
133 valueStr.setNum(value);
135 if(p == m_sizeProperty)
138 emit graphicChanged();
140 else if(p == m_angleProperty)
143 emit graphicChanged();
149 if(m_setLocalGraphic)
153 xStr.setNum(value.x());
154 yStr.setNum(value.y());
TESEEXPORT double GetDouble(const te::se::ParameterValue *param)
It gets the parameter value as a double.
A Graphic is a graphic symbol with an inherent shape, color(s), and possibly size.
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.
Graphic * clone() const
It creates a new copy of this object.
static AbstractPropertyManager & getInstance()
It returns a reference to the singleton instance.