A widget used to build a basic stroke element.
More...
#include <BasicStrokeWidget.h>
A widget used to build a basic stroke element.
Definition at line 64 of file BasicStrokeWidget.h.
te::qt::widgets::BasicStrokeWidget::BasicStrokeWidget |
( |
QWidget * |
parent = 0 , |
|
|
Qt::WindowFlags |
f = 0 |
|
) |
| |
Constructs a basic stroke widget which is a child of parent, with widget flags set to f.
te::qt::widgets::BasicStrokeWidget::~BasicStrokeWidget |
( |
| ) |
|
void te::qt::widgets::BasicStrokeWidget::fillStrokeDashStyleComboBox |
( |
| ) |
|
|
protected |
Fills the widget form element used to visualize the stroke cap style.
te::se::Stroke* te::qt::widgets::BasicStrokeWidget::getStroke |
( |
| ) |
const |
Gets the configured stroke element.
- Returns
- The configured stroke element.
- Note
- The caller will take the ownership of the returned stroke.
void te::qt::widgets::BasicStrokeWidget::initialize |
( |
| ) |
|
|
protected |
Internal method to initialize the widget (e.g.: color, combos, icons, etc.)
void te::qt::widgets::BasicStrokeWidget::onColorChanged |
( |
const QColor & |
color | ) |
|
|
protectedslot |
void te::qt::widgets::BasicStrokeWidget::onStrokeCapStyleChanged |
( |
int |
style | ) |
|
|
protectedslot |
void te::qt::widgets::BasicStrokeWidget::onStrokeDashComboBoxCurrentIndexChanged |
( |
int |
index | ) |
|
|
protectedslot |
void te::qt::widgets::BasicStrokeWidget::onStrokeJoinStyleChanged |
( |
int |
style | ) |
|
|
protectedslot |
void te::qt::widgets::BasicStrokeWidget::onStrokeOpacitySliderValueChanged |
( |
int |
value | ) |
|
|
protectedslot |
void te::qt::widgets::BasicStrokeWidget::onStrokeWidthDoubleSpinBoxValueChanged |
( |
const QString & |
text | ) |
|
|
protectedslot |
void te::qt::widgets::BasicStrokeWidget::setStroke |
( |
const te::se::Stroke * |
stroke | ) |
|
Sets a stroke element to this widget.
- Parameters
-
stroke | A valid stroke element. |
- Note
- The widget will NOT take the ownership of the given stroke.
-
The widget form will be update based on given stroke parameters.
void te::qt::widgets::BasicStrokeWidget::strokeChanged |
( |
| ) |
|
|
signal |
This signal is emitted when the internal stroke element is changed.
void te::qt::widgets::BasicStrokeWidget::updateUi |
( |
| ) |
|
|
protected |
Updates the widget form based on internal stroke element.
void te::qt::widgets::BasicStrokeWidget::updateUiCapStyle |
( |
const std::string & |
style | ) |
|
|
protected |
Updates the widget form element used to visualize the stroke cap style.
- Parameters
-
style | The stroke cap style type. |
void te::qt::widgets::BasicStrokeWidget::updateUiDashStyle |
( |
const std::string & |
pattern | ) |
|
|
protected |
Updates the widget form element used to visualize the stroke dash style.
- Parameters
-
pattern | The stroke dash style pattern. |
void te::qt::widgets::BasicStrokeWidget::updateUiJoinStyle |
( |
const std::string & |
style | ) |
|
|
protected |
Updates the widget form element used to visualize the stroke join style.
- Parameters
-
style | The stroke join style type. |
void te::qt::widgets::BasicStrokeWidget::updateUiStrokeColor |
( |
| ) |
|
|
protected |
Updates the widget form element used to visualize the stroke color.
QColor te::qt::widgets::BasicStrokeWidget::m_color |
|
private |
std::vector<std::string> te::qt::widgets::BasicStrokeWidget::m_dashes |
|
private |
Predefined dash styles. TODO: it can be filled out, based on a file, etc (?)
Definition at line 166 of file BasicStrokeWidget.h.
QButtonGroup* te::qt::widgets::BasicStrokeWidget::m_strokeCapStyleButtonGroup |
|
private |
QButtonGroup* te::qt::widgets::BasicStrokeWidget::m_strokeJoinStyleButtonGroup |
|
private |
std::auto_ptr<Ui::BasicStrokeWidgetForm> te::qt::widgets::BasicStrokeWidget::m_ui |
|
private |
The documentation for this class was generated from the following file:
- /home/castejon/castejon_files/develop/terralib5/git_master/src/terralib/qt/widgets/se/BasicStrokeWidget.h