26 #ifndef __TERRALIB_QT_WIDGETS_SE_INTERNAL_BASICSTROKEWIDGET_H
27 #define __TERRALIB_QT_WIDGETS_SE_INTERNAL_BASICSTROKEWIDGET_H
30 #include "../Config.h"
33 #include <QtGui/QWidget>
42 namespace Ui {
class BasicStrokeWidgetForm; }
57 class ColorPickerToolButton;
113 void updateUiStrokeColor();
120 void updateUiDashStyle(
const std::string& pattern);
127 void updateUiJoinStyle(
const std::string& style);
134 void updateUiCapStyle(
const std::string& style);
137 void fillStrokeDashStyleComboBox();
141 void onColorChanged(
const QColor& color);
143 void onStrokeOpacitySliderValueChanged(
int value);
145 void onStrokeWidthDoubleSpinBoxValueChanged(
const QString& text);
147 void onStrokeDashComboBoxCurrentIndexChanged(
int index);
149 void onStrokeJoinStyleChanged(
int style);
151 void onStrokeCapStyleChanged(
int style);
156 void strokeChanged();
160 std::auto_ptr<Ui::BasicStrokeWidgetForm>
m_ui;
173 #endif // __TERRALIB_QT_WIDGETS_SE_INTERNAL_BASICSTROKEWIDGET_H
#define TEQTWIDGETSEXPORT
You can use this macro in order to export/import classes and functions from this module.
QColor m_color
Auxiliary color attribute.
ColorPickerToolButton * m_colorPicker
Widget used to pick a color.
A Stroke specifies the appearance of a linear geometry.
QButtonGroup * m_strokeJoinStyleButtonGroup
Button group used to control the join styles.
A widget used to build a basic stroke element.
std::auto_ptr< Ui::BasicStrokeWidgetForm > m_ui
Widget form.
Custom tool button used to pick a color.
std::vector< std::string > m_dashes
Predefined dash styles. TODO: it can be filled out, based on a file, etc (?)
te::se::Stroke * m_stroke
Stroke element that will be configured by this widget.
QButtonGroup * m_strokeCapStyleButtonGroup
Button group used to control the cap styles.