30 #include "../../../se/Fill.h"
31 #include "../../../se/PolygonSymbolizer.h"
38 #include <QGridLayout>
42 #include <QtPropertyBrowser/QtTreePropertyBrowser>
43 #include <QtPropertyBrowser/QtVariantPropertyManager>
50 QGridLayout* layout =
new QGridLayout(
this);
51 this->setLayout(layout);
53 QToolBox* tb =
new QToolBox(
this);
54 layout->addWidget(tb);
56 QtTreePropertyBrowser* basicPropBrowser =
new QtTreePropertyBrowser(
this);
57 basicPropBrowser->setIndentation(10);
58 basicPropBrowser->setPropertiesWithoutValueMarked(
true);
59 basicPropBrowser->setRootIsDecorated(
false);
60 basicPropBrowser->setResizeMode(QtTreePropertyBrowser::ResizeToContents);
62 layout->addWidget(basicPropBrowser);
67 tb->addItem(basicPropBrowser,
"Basic Symbology");
71 tb->addItem(
m_graph,
"Graphic Symbology");
86 m_setLocalSymbol =
true;
90 if(m_symb->getFill()->getGraphicFill())
91 m_graph->setGraphic(m_symb->getFill()->getGraphicFill());
93 m_bf->
setFill(m_symb->getFill());
96 if(m_symb->getStroke())
97 m_bs->setStroke(m_symb->getStroke());
99 m_setLocalSymbol =
false;
109 m_symb->setStroke(m_bs->getStroke());
111 emit symbolizerChanged();
116 m_symb->setFill(m_bf->getFill());
118 emit symbolizerChanged();
123 if(m_symb->getFill())
129 m_symb->setFill(fill);
131 if(!m_setLocalSymbol)
132 emit symbolizerChanged();
A PolygonSymbolizer is used to draw a polygon (or other area-type geometries), including filling its ...
A Symbolizer describes how a feature is to appear on a map.
A widget used to define the basic fill se object.
A Fill specifies the pattern for filling an area geometry.
void setGraphicFill(Graphic *g)
Sets the GraphicFill element to this Fill. GraphicFill defines that the pixels of the area will be dr...
Fill * clone() const
It creates a new copy of this object.
void setFill(Fill *f)
A Fill specifies the pattern for filling an area geometry.
A widget used to define the basic fill se object.
A widget used to define the polygon symbolizer properties, such as: