30 #include "../../../../../third-party/qt/propertybrowser/qttreepropertybrowser.h"
31 #include "../../../se/Fill.h"
32 #include "../../../se/PolygonSymbolizer.h"
39 #include <QtGui/QGridLayout>
40 #include <QtGui/QToolBox>
47 QGridLayout* layout =
new QGridLayout(
this);
48 this->setLayout(layout);
50 QToolBox* tb =
new QToolBox(
this);
51 layout->addWidget(tb);
53 QtTreePropertyBrowser* basicPropBrowser =
new QtTreePropertyBrowser(
this);
54 basicPropBrowser->setIndentation(10);
55 basicPropBrowser->setPropertiesWithoutValueMarked(
true);
56 basicPropBrowser->setRootIsDecorated(
false);
57 basicPropBrowser->setResizeMode(QtTreePropertyBrowser::ResizeToContents);
59 layout->addWidget(basicPropBrowser);
64 tb->addItem(basicPropBrowser,
"Basic Symbology");
68 tb->addItem(
m_graph,
"Graphic Symbology");
83 m_setLocalSymbol =
true;
87 if(m_symb->getFill()->getGraphicFill())
88 m_graph->setGraphic(m_symb->getFill()->getGraphicFill());
90 m_bf->
setFill(m_symb->getFill());
93 if(m_symb->getStroke())
94 m_bs->setStroke(m_symb->getStroke());
96 m_setLocalSymbol =
false;
106 m_symb->setStroke(m_bs->getStroke());
108 emit symbolizerChanged();
113 m_symb->setFill(m_bf->getFill());
115 emit symbolizerChanged();
120 if(m_symb->getFill())
126 m_symb->setFill(fill);
128 if(!m_setLocalSymbol)
129 emit symbolizerChanged();
te::se::Symbolizer * getSymbolizer() const
Gets the configured polygon symbolizer element.
A Fill specifies the pattern for filling an area geometry.
te::qt::widgets::BasicFillPropertyItem * m_bf
PolygonSymbolizerProperty(QWidget *parent)
Constructor.
A Symbolizer describes how a feature is to appear on a map.
A PolygonSymbolizer is used to draw a polygon (or other area-type geometries), including filling its ...
~PolygonSymbolizerProperty()
Destructor.
A widget used to define the general properties of a se object.
Fill * clone() const
It creates a new copy of this object.
te::qt::widgets::GraphicProperty * m_graph
A widget used to define the basic fill se object.
void setGraphicFill(Graphic *g)
Sets the GraphicFill element to this Fill. GraphicFill defines that the pixels of the area will be dr...
A widget used to define the basic fill se object.
void setFill(Fill *f)
A Fill specifies the pattern for filling an area geometry.
A widget used to define the polygon symbolizer properties, such as:
te::qt::widgets::BasicStrokePropertyItem * m_bs
void onPolyGraphicChanged()
void setSymbolizer(te::se::PolygonSymbolizer *symb)
Sets a polygon symbolizer element to this widget.
A widget used to define the basic fill se object.