27 #include "../../../se/LineSymbolizer.h"
30 #include "ui_LineSymbolizerWidgetForm.h"
39 m_ui(new Ui::LineSymbolizerWidgetForm),
40 m_symb(new te::se::LineSymbolizer)
45 m_ui->m_lkineSymbolizerTypeComboBox->addItem(tr(
"Basic Line"));
51 QGridLayout* layout =
new QGridLayout(
m_ui->m_strokeGroupBox);
53 layout->setAlignment(Qt::AlignTop);
81 return m_symb->
clone();
89 m_strokeWidget->setStroke(stroke);
90 m_ui->m_strokeGroupBox->setChecked(
true);
93 m_ui->m_strokeGroupBox->setChecked(
false);
98 m_symb->setStroke(m_strokeWidget->getStroke());
99 emit symbolizerChanged();
105 m_symb->setStroke(0);
107 m_symb->setStroke(m_strokeWidget->getStroke());
109 emit symbolizerChanged();
A LineSymbolizer is used to style a stroke along a linear geometry type, such as a string of line seg...
A widget used to build a basic stroke element.
void updateUi()
Updates the widget form based on internal line symbolizer element.
te::qt::widgets::BasicStrokeWidget * m_strokeWidget
Basic Stroke Widget used to configure the line symbolizer stroke element.
te::se::Stroke * getStroke() const
Gets the configured stroke element.
A Symbolizer describes how a feature is to appear on a map.
Symbolizer * clone() const
It creates a new copy of this object.
A Stroke specifies the appearance of a linear geometry.
A widget used to build a basic stroke element.
te::se::LineSymbolizer * m_symb
Line symbolizer element that will be configured by this widget.
LineSymbolizerWidget(QWidget *parent=0, Qt::WindowFlags f=0)
Constructs a line symbolizer widget which is a child of parent, with widget flags set to f...
virtual Symbolizer * clone() const =0
It creates a new copy of this object.
void setSymbolizer(const te::se::LineSymbolizer *symb)
Sets a line symbolizer element to this widget.
te::se::Symbolizer * getSymbolizer() const
Gets the configured line symbolizer element.
std::auto_ptr< Ui::LineSymbolizerWidgetForm > m_ui
Widget form.
~LineSymbolizerWidget()
Destructor.
void onStrokeGroupBoxToggled(bool on)
void setStroke(Stroke *stroke)
A Stroke specifies the appearance of a linear geometry. The Stroke element is optional inside of Line...
A widget used to build a line symbolizer element.