#include <BasicStrokePropertyItem.h>
Public Slots | |
| virtual void | valueChanged (QtProperty *p, bool value) |
| virtual void | valueChanged (QtProperty *p, const QString &value) |
| virtual void | valueChanged (QtProperty *p, const QFont &value) |
| virtual void | valueChanged (QtProperty *p, const QSize &value) |
| virtual void | valueChanged (QtProperty *p, const QSizeF &value) |
| virtual void | valueChanged (QtProperty *p, const QPointF &value) |
| virtual void | valueChanged (QtProperty *p, int value) |
| virtual void | valueChanged (QtProperty *p, double value) |
| virtual void | valueChanged (QtProperty *p, const QColor &value) |
Signals | |
| void | strokeChanged () |
Public Member Functions | |
| te::se::Stroke * | getStroke () const |
| Gets the configured stroke element. More... | |
| void | setStroke (const te::se::Stroke *stroke) |
| Sets a stroke element to this widget. More... | |
Initializer Methods | |
Methods related to instantiation and destruction. | |
| BasicStrokePropertyItem (QtTreePropertyBrowser *pb, QColor c=QColor()) | |
| Constructor. More... | |
| ~BasicStrokePropertyItem () | |
| Destructor. More... | |
Protected Member Functions | |
| void | addProperty (QtProperty *property, const QString &id, QColor c) |
| QMap< int, QIcon > | getCapIcons () |
| QStringList | getCapNames () |
| QMap< int, QIcon > | getDashIcons () |
| QStringList | getDashIconsNames () |
| QMap< int, QIcon > | getJoinIcons () |
| QStringList | getJoinNames () |
| void | setExpandedStatus (QtBrowserItem *item, bool status) |
| void | updateUi () |
| Updates the widget form based on internal stroke element. More... | |
Protected Attributes | |
| std::map< int, std::string > | m_capMap |
| QtProperty * | m_capProperty |
| QColor | m_color |
| Auxiliary color attribute. More... | |
| QColor | m_colorParent |
| QtProperty * | m_colorProperty |
| std::vector< std::string > | m_dashes |
| Predefined dash styles. TODO: it can be filled out, based on a file, etc (?) More... | |
| QtProperty * | m_dashProperty |
| QMap< QString, QtProperty * > | m_idToProperty |
| std::map< int, std::string > | m_joinMap |
| QtProperty * | m_joinProperty |
| QtProperty * | m_opacityProperty |
| QtTreePropertyBrowser * | m_propertyBrowser |
| QMap< QtProperty *, QString > | m_propertyToId |
| te::se::Stroke * | m_stroke |
| Stroke element that will be configured by this widget. More... | |
| bool | m_update |
| QtProperty * | m_widthProperty |
Definition at line 52 of file BasicStrokePropertyItem.h.
| te::qt::widgets::BasicStrokePropertyItem::BasicStrokePropertyItem | ( | QtTreePropertyBrowser * | pb, |
| QColor | c = QColor() |
||
| ) |
Constructor.
Definition at line 49 of file BasicStrokePropertyItem.cpp.
References te::qt::widgets::AbstractPropertyItem::addProperty(), getCapIcons(), getCapNames(), getDashIcons(), getDashIconsNames(), te::common::Singleton< AbstractPropertyManager >::getInstance(), getJoinIcons(), getJoinNames(), m_capProperty, m_colorProperty, m_dashProperty, m_joinProperty, m_opacityProperty, m_update, m_widthProperty, and TE_SE_DEFAULT_FILL_BASIC_COLOR.
| te::qt::widgets::BasicStrokePropertyItem::~BasicStrokePropertyItem | ( | ) |
|
protectedinherited |
Definition at line 53 of file AbstractPropertyItem.cpp.
References te::qt::widgets::AbstractPropertyItem::m_colorParent, te::qt::widgets::AbstractPropertyItem::m_idToProperty, te::qt::widgets::AbstractPropertyItem::m_propertyBrowser, te::qt::widgets::AbstractPropertyItem::m_propertyToId, p, and te::qt::widgets::AbstractPropertyItem::setExpandedStatus().
Referenced by te::qt::widgets::BasicFillPropertyItem::BasicFillPropertyItem(), BasicStrokePropertyItem(), te::qt::widgets::GlyphMarkPropertyItem::GlyphMarkPropertyItem(), te::qt::widgets::GraphicPropertyItem::GraphicPropertyItem(), te::qt::widgets::GridPropertyBrowser::GridPropertyBrowser(), te::qt::widgets::HaloPropertyItem::HaloPropertyItem(), te::qt::widgets::LayerPropertiesInfo::LayerPropertiesInfo(), te::qt::widgets::LinePlacementPropertyItem::LinePlacementPropertyItem(), te::qt::widgets::LocalImagePropertyItem::LocalImagePropertyItem(), te::qt::widgets::PointPlacementPropertyItem::PointPlacementPropertyItem(), te::qt::plugins::pgisRaster::RasterPropertiesInfo::RasterPropertiesInfo(), te::qt::widgets::ScalePropertyBrowser::ScalePropertyBrowser(), te::qt::widgets::ScalePropertyItem::ScalePropertyItem(), te::qt::widgets::LayerPropertiesInfo::setLayerRasterProperties(), te::qt::widgets::LayerPropertiesInfo::setLayerVecProperties(), te::qt::widgets::TextPropertyItem::TextPropertyItem(), and te::qt::widgets::WellKnownMarkPropertyItem::WellKnownMarkPropertyItem().
|
protected |
Definition at line 372 of file BasicStrokePropertyItem.cpp.
Referenced by BasicStrokePropertyItem().
|
protected |
Definition at line 416 of file BasicStrokePropertyItem.cpp.
References m_capMap, TE_SE_BUTT_CAP, TE_SE_ROUND_CAP, and TE_SE_SQUARE_CAP.
Referenced by BasicStrokePropertyItem().
|
protected |
Definition at line 320 of file BasicStrokePropertyItem.cpp.
References te::map::GetDashStyle(), line, and m_dashes.
Referenced by BasicStrokePropertyItem().
|
protected |
Definition at line 383 of file BasicStrokePropertyItem.cpp.
References m_dashes.
Referenced by BasicStrokePropertyItem().
|
protected |
Definition at line 361 of file BasicStrokePropertyItem.cpp.
Referenced by BasicStrokePropertyItem().
|
protected |
Definition at line 401 of file BasicStrokePropertyItem.cpp.
References m_joinMap, TE_SE_BEVEL_JOIN, TE_SE_MITRE_JOIN, and TE_SE_ROUND_JOIN.
Referenced by BasicStrokePropertyItem().
| te::se::Stroke * te::qt::widgets::BasicStrokePropertyItem::getStroke | ( | ) | const |
Gets the configured stroke element.
Definition at line 116 of file BasicStrokePropertyItem.cpp.
References te::se::Stroke::clone(), and m_stroke.
Referenced by te::qt::widgets::LineSymbolizerProperty::onStrokeChanged(), te::qt::widgets::WellKnownMarkPropertyItem::onStrokeChanged(), te::qt::widgets::PolygonSymbolizerProperty::onStrokeChanged(), and te::qt::widgets::WellKnownMarkPropertyItem::WellKnownMarkPropertyItem().
|
protectedinherited |
Definition at line 70 of file AbstractPropertyItem.cpp.
References te::qt::widgets::AbstractPropertyItem::m_propertyBrowser.
Referenced by te::qt::widgets::AbstractPropertyItem::addProperty().
| void te::qt::widgets::BasicStrokePropertyItem::setStroke | ( | const te::se::Stroke * | stroke | ) |
Sets a stroke element to this widget.
| stroke | A valid stroke element. |
Definition at line 105 of file BasicStrokePropertyItem.cpp.
References te::se::Stroke::clone(), m_stroke, and updateUi().
Referenced by te::qt::widgets::LineSymbolizerProperty::setSymbolizer(), te::qt::widgets::PolygonSymbolizerProperty::setSymbolizer(), and te::qt::widgets::WellKnownMarkPropertyItem::updateUi().
|
signal |
This signal is emitted when the internal stroke element is changed.
Referenced by valueChanged().
|
protected |
Updates the widget form based on internal stroke element.
Definition at line 121 of file BasicStrokePropertyItem.cpp.
References te::se::GetColor(), te::se::Stroke::getDashArray(), te::se::GetDouble(), te::common::Singleton< AbstractPropertyManager >::getInstance(), te::se::Stroke::getLineCap(), te::se::Stroke::getLineJoin(), te::se::Stroke::getOpacity(), te::color::RGBAColor::getRgba(), te::se::GetString(), te::se::Stroke::getWidth(), m_capMap, m_capProperty, m_colorProperty, m_dashes, m_dashProperty, m_joinMap, m_joinProperty, m_opacityProperty, m_stroke, m_widthProperty, te::rst::Round(), TE_OPAQUE, and TE_SE_DEFAULT_STROKE_BASIC_COLOR.
Referenced by setStroke(), and valueChanged().
|
virtualslotinherited |
Definition at line 93 of file AbstractPropertyItem.cpp.
|
virtualslotinherited |
Definition at line 98 of file AbstractPropertyItem.cpp.
|
virtualslotinherited |
Definition at line 108 of file AbstractPropertyItem.cpp.
|
virtualslotinherited |
Definition at line 113 of file AbstractPropertyItem.cpp.
|
virtualslotinherited |
Definition at line 118 of file AbstractPropertyItem.cpp.
|
virtualslotinherited |
Definition at line 123 of file AbstractPropertyItem.cpp.
|
virtualslot |
Definition at line 211 of file BasicStrokePropertyItem.cpp.
References m_capMap, m_capProperty, m_color, m_dashes, m_dashProperty, m_joinMap, m_joinProperty, m_opacityProperty, m_stroke, m_update, te::se::Stroke::setDashArray(), te::se::Stroke::setLineCap(), te::se::Stroke::setLineJoin(), te::se::Stroke::setOpacity(), strokeChanged(), and updateUi().
|
virtualslot |
Definition at line 275 of file BasicStrokePropertyItem.cpp.
References m_stroke, m_update, m_widthProperty, te::se::Stroke::setWidth(), and strokeChanged().
|
virtualslot |
Definition at line 294 of file BasicStrokePropertyItem.cpp.
References m_color, m_colorProperty, m_stroke, m_update, te::se::Stroke::setColor(), te::se::Stroke::setOpacity(), strokeChanged(), and updateUi().
|
protected |
Definition at line 132 of file BasicStrokePropertyItem.h.
Referenced by getCapNames(), updateUi(), and valueChanged().
|
protected |
Definition at line 124 of file BasicStrokePropertyItem.h.
Referenced by BasicStrokePropertyItem(), updateUi(), and valueChanged().
|
protected |
Auxiliary color attribute.
Definition at line 126 of file BasicStrokePropertyItem.h.
Referenced by valueChanged().
|
protectedinherited |
Definition at line 97 of file AbstractPropertyItem.h.
Referenced by te::qt::widgets::AbstractPropertyItem::addProperty().
|
protected |
Definition at line 119 of file BasicStrokePropertyItem.h.
Referenced by BasicStrokePropertyItem(), updateUi(), and valueChanged().
|
protected |
Predefined dash styles. TODO: it can be filled out, based on a file, etc (?)
Definition at line 130 of file BasicStrokePropertyItem.h.
Referenced by getDashIcons(), getDashIconsNames(), updateUi(), and valueChanged().
|
protected |
Definition at line 122 of file BasicStrokePropertyItem.h.
Referenced by BasicStrokePropertyItem(), updateUi(), and valueChanged().
|
protectedinherited |
Definition at line 95 of file AbstractPropertyItem.h.
Referenced by te::qt::widgets::AbstractPropertyItem::addProperty().
|
protected |
Definition at line 131 of file BasicStrokePropertyItem.h.
Referenced by getJoinNames(), updateUi(), and valueChanged().
|
protected |
Definition at line 123 of file BasicStrokePropertyItem.h.
Referenced by BasicStrokePropertyItem(), updateUi(), and valueChanged().
|
protected |
Definition at line 120 of file BasicStrokePropertyItem.h.
Referenced by BasicStrokePropertyItem(), updateUi(), and valueChanged().
|
protectedinherited |
Definition at line 92 of file AbstractPropertyItem.h.
Referenced by te::qt::widgets::AbstractPropertyItem::AbstractPropertyItem(), te::qt::widgets::AbstractPropertyItem::addProperty(), te::qt::widgets::HaloPropertyItem::HaloPropertyItem(), te::qt::widgets::AbstractPropertyItem::setExpandedStatus(), te::qt::widgets::TextPropertyItem::TextPropertyItem(), and te::qt::widgets::WellKnownMarkPropertyItem::WellKnownMarkPropertyItem().
|
protectedinherited |
Definition at line 94 of file AbstractPropertyItem.h.
Referenced by te::qt::widgets::AbstractPropertyItem::addProperty().
|
protected |
Stroke element that will be configured by this widget.
Definition at line 128 of file BasicStrokePropertyItem.h.
Referenced by getStroke(), setStroke(), updateUi(), valueChanged(), and ~BasicStrokePropertyItem().
|
protected |
Definition at line 134 of file BasicStrokePropertyItem.h.
Referenced by BasicStrokePropertyItem(), and valueChanged().
|
protected |
Definition at line 121 of file BasicStrokePropertyItem.h.
Referenced by BasicStrokePropertyItem(), updateUi(), and valueChanged().