27 #include "../../../se/PolygonSymbolizer.h"
32 #include "ui_PolygonSymbolizerWidgetForm.h"
35 #include <QStackedWidget>
44 m_ui(new Ui::PolygonSymbolizerWidgetForm),
45 m_symb(new te::se::PolygonSymbolizer)
49 m_ui->m_mainLayout->setAlignment(Qt::AlignTop);
55 QGridLayout* fillLayout =
new QGridLayout(
m_ui->m_fillGroupBox);
57 fillLayout->setAlignment(Qt::AlignTop);
60 std::vector<std::string> keys;
62 std::vector<std::string>::iterator it;
63 for(it = keys.begin(); it != keys.end(); ++it)
75 QGridLayout* strokeLayout =
new QGridLayout(
m_ui->m_strokeGroupBox);
77 strokeLayout->setAlignment(Qt::AlignTop);
109 return m_symb->
clone();
117 m_strokeWidget->setStroke(stroke);
118 m_ui->m_strokeGroupBox->setChecked(
true);
121 m_ui->m_strokeGroupBox->setChecked(
false);
126 m_ui->m_fillGroupBox->setChecked(
false);
132 for(i = 0; i < m_fillWidgets->count(); ++i)
139 if(i == m_fillWidgets->count())
143 m_ui->m_polygonSymbolizerTypeComboBox->setCurrentIndex(i);
144 m_fillWidgets->setCurrentIndex(i);
149 m_fillWidgets->setCurrentIndex(index);
154 emit symbolizerChanged();
159 m_symb->setStroke(m_strokeWidget->getStroke());
160 emit symbolizerChanged();
166 m_symb->setStroke(0);
168 m_symb->setStroke(m_strokeWidget->getStroke());
170 emit symbolizerChanged();
178 emit symbolizerChanged();
191 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 Fill specifies the pattern for filling an area geometry.
static AbstractFillWidget * make(const std::string &factoryKey)
It creates an object with the appropriated factory.
A Stroke specifies the appearance of a linear geometry.
void setStroke(Stroke *stroke)
A Stroke specifies the appearance of a linear geometry.
Symbolizer * clone() const
It creates a new copy of this object.
void setFill(Fill *f)
A Fill specifies the pattern for filling an area geometry.
virtual Symbolizer * clone() const =0
It creates a new copy of this object.