#include <BasicStrokePropertyItem.h>
Public Slots | |
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 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... | |
void | updateUiStrokeColor () |
Updates the widget form element used to visualize the stroke color. 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 48 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 | ( | ) |
Destructor.
Definition at line 99 of file BasicStrokePropertyItem.cpp.
|
protectedinherited |
Definition at line 53 of file AbstractPropertyItem.cpp.
Referenced by te::qt::widgets::BasicFillPropertyItem::BasicFillPropertyItem(), BasicStrokePropertyItem(), te::qt::widgets::GlyphMarkPropertyItem::GlyphMarkPropertyItem(), te::qt::widgets::GraphicPropertyItem::GraphicPropertyItem(), te::qt::widgets::LayerPropertiesInfo::LayerPropertiesInfo(), te::qt::widgets::LocalImagePropertyItem::LocalImagePropertyItem(), and te::qt::widgets::WellKnownMarkPropertyItem::WellKnownMarkPropertyItem().
|
protected |
Definition at line 347 of file BasicStrokePropertyItem.cpp.
Referenced by BasicStrokePropertyItem().
|
protected |
Definition at line 391 of file BasicStrokePropertyItem.cpp.
References TE_SE_BUTT_CAP, TE_SE_ROUND_CAP, and TE_SE_SQUARE_CAP.
Referenced by BasicStrokePropertyItem().
|
protected |
Definition at line 297 of file BasicStrokePropertyItem.cpp.
References te::map::GetDashStyle().
Referenced by BasicStrokePropertyItem().
|
protected |
Definition at line 358 of file BasicStrokePropertyItem.cpp.
Referenced by BasicStrokePropertyItem().
|
protected |
Definition at line 336 of file BasicStrokePropertyItem.cpp.
Referenced by BasicStrokePropertyItem().
|
protected |
Definition at line 376 of file BasicStrokePropertyItem.cpp.
References 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 115 of file BasicStrokePropertyItem.cpp.
References te::se::Stroke::clone().
Referenced by te::qt::widgets::WellKnownMarkPropertyItem::WellKnownMarkPropertyItem().
|
protectedinherited |
Definition at line 70 of file AbstractPropertyItem.cpp.
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 104 of file BasicStrokePropertyItem.cpp.
References te::se::Stroke::clone().
|
signal |
This signal is emitted when the internal stroke element is changed.
|
protected |
Updates the widget form based on internal stroke element.
Definition at line 120 of file BasicStrokePropertyItem.cpp.
References te::color::RGBAColor::getAlpha(), te::se::GetColor(), te::se::GetDouble(), te::common::Singleton< AbstractPropertyManager >::getInstance(), te::color::RGBAColor::getRgba(), te::se::GetString(), te::qt::widgets::AbstractPropertyManager::m_doubleManager, te::qt::widgets::AbstractPropertyManager::m_enumManager, te::qt::widgets::AbstractPropertyManager::m_intSliderManager, TE_OPAQUE, and TE_SE_DEFAULT_STROKE_BASIC_COLOR.
|
protected |
Updates the widget form element used to visualize the stroke color.
Definition at line 203 of file BasicStrokePropertyItem.cpp.
References te::common::Singleton< AbstractPropertyManager >::getInstance(), and te::qt::widgets::AbstractPropertyManager::m_colorManager.
|
virtualslotinherited |
Definition at line 90 of file AbstractPropertyItem.cpp.
|
virtualslotinherited |
Definition at line 98 of file AbstractPropertyItem.cpp.
|
virtualslotinherited |
Definition at line 102 of file AbstractPropertyItem.cpp.
|
virtualslotinherited |
Definition at line 106 of file AbstractPropertyItem.cpp.
|
virtualslot |
Definition at line 208 of file BasicStrokePropertyItem.cpp.
|
virtualslot |
Definition at line 251 of file BasicStrokePropertyItem.cpp.
|
virtualslot |
Definition at line 270 of file BasicStrokePropertyItem.cpp.
References te::common::Singleton< AbstractPropertyManager >::getInstance(), and te::qt::widgets::AbstractPropertyManager::m_intSliderManager.
|
protected |
Definition at line 135 of file BasicStrokePropertyItem.h.
|
protected |
Definition at line 127 of file BasicStrokePropertyItem.h.
Referenced by BasicStrokePropertyItem().
|
protected |
Auxiliary color attribute.
Definition at line 129 of file BasicStrokePropertyItem.h.
|
protectedinherited |
Definition at line 95 of file AbstractPropertyItem.h.
|
protected |
Definition at line 122 of file BasicStrokePropertyItem.h.
Referenced by BasicStrokePropertyItem().
|
protected |
Predefined dash styles. TODO: it can be filled out, based on a file, etc (?)
Definition at line 133 of file BasicStrokePropertyItem.h.
|
protected |
Definition at line 125 of file BasicStrokePropertyItem.h.
Referenced by BasicStrokePropertyItem().
|
protectedinherited |
Definition at line 93 of file AbstractPropertyItem.h.
|
protected |
Definition at line 134 of file BasicStrokePropertyItem.h.
|
protected |
Definition at line 126 of file BasicStrokePropertyItem.h.
Referenced by BasicStrokePropertyItem().
|
protected |
Definition at line 123 of file BasicStrokePropertyItem.h.
Referenced by BasicStrokePropertyItem().
|
protectedinherited |
Definition at line 90 of file AbstractPropertyItem.h.
Referenced by te::qt::widgets::AbstractPropertyItem::AbstractPropertyItem(), and te::qt::widgets::WellKnownMarkPropertyItem::WellKnownMarkPropertyItem().
|
protectedinherited |
Definition at line 92 of file AbstractPropertyItem.h.
|
protected |
Stroke element that will be configured by this widget.
Definition at line 131 of file BasicStrokePropertyItem.h.
|
protected |
Definition at line 137 of file BasicStrokePropertyItem.h.
Referenced by BasicStrokePropertyItem().
|
protected |
Definition at line 124 of file BasicStrokePropertyItem.h.
Referenced by BasicStrokePropertyItem().