#include <BasicStrokePropertyItem.h>
|
Methods related to instantiation and destruction.
|
QtProperty * | m_colorProperty |
|
QtProperty * | m_opacityProperty |
|
QtProperty * | m_widthProperty |
|
QtProperty * | m_joinProperty |
|
QtProperty * | m_capProperty |
|
QtProperty * | m_dashProperty |
|
QtProperty * | m_dashOffsetProperty |
|
QColor | m_color |
| Auxiliary color attribute. More...
|
|
std::vector< std::string > | m_dashes |
| Predefined dash styles. TODO: it can be filled out, based on a file, etc (?) More...
|
|
std::map< int, std::string > | m_joinMap |
|
std::map< int, std::string > | m_capMap |
|
| BasicStrokePropertyItem (QtProperty *parent, QtTreePropertyBrowser *pb, StylePropertyItemListener *listener, QColor c=QColor()) |
| Constructor. More...
|
|
| ~BasicStrokePropertyItem () |
| Destructor. More...
|
|
void | setStroke (const te::se::Stroke *stroke) |
| Sets a stroke element to this widget. More...
|
|
te::se::Stroke * | getStroke () const |
| Gets the configured stroke element. More...
|
|
void | valueChanged (QtProperty *p, const QVariant &qVariant) override |
|
QMap< int, QIcon > | getDashIcons () |
|
QMap< int, QIcon > | getJoinIcons () |
|
QMap< int, QIcon > | getCapIcons () |
|
QStringList | getDashIconsNames () |
|
QStringList | getJoinNames () |
|
QStringList | getCapNames () |
|
|
Methods related to instantiation and destruction.
|
QtTreePropertyBrowser * | m_propertyBrowser |
|
QColor | m_colorParent |
|
bool | m_enableListeners |
|
QtProperty * | m_itemProperty |
|
QtProperty * | getItemProperty () const |
|
void | setPropertyColor (QtProperty *property, QColor c) |
|
void | addProperty (QtProperty *qProperty, const QColor &qColor) |
|
void | addSubProperty (QtProperty *qPropertyParent, QtProperty *qProperty, const QColor &qColor) |
|
void | setExpandedStatus (QtBrowserItem *item, bool status, bool applyToChildren) |
|
void | setExpandedStatus (bool status, bool applyToChildren) |
|
void | setChildrenEnabled (bool enabled) |
|
virtual void | valueChanged (QtProperty *p, int value) |
|
virtual void | valueChanged (QtProperty *p, double value) |
|
virtual void | valueChanged (QtProperty *p, const QString &value) |
|
virtual void | valueChanged (QtProperty *p, const QColor &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) |
|
void | init (QtProperty *property) |
|
static QString | getValueFromEnumProperty (QtProperty *enumPropertyItem) |
|
static void | setValueToEnumProperty (QtProperty *enumPropertyItem, const QString &value) |
|
Definition at line 58 of file BasicStrokePropertyItem.h.
◆ BasicStrokePropertyItem()
te::qt::widgets::BasicStrokePropertyItem::BasicStrokePropertyItem |
( |
QtProperty * |
parent, |
|
|
QtTreePropertyBrowser * |
pb, |
|
|
StylePropertyItemListener * |
listener, |
|
|
QColor |
c = QColor() |
|
) |
| |
◆ ~BasicStrokePropertyItem()
te::qt::widgets::BasicStrokePropertyItem::~BasicStrokePropertyItem |
( |
| ) |
|
◆ addListenerToProperty()
void te::qt::widgets::StylePropertyItem::addListenerToProperty |
( |
QtProperty * |
p | ) |
|
|
inherited |
◆ addProperty()
void te::qt::widgets::AbstractPropertyItem::addProperty |
( |
QtProperty * |
qProperty, |
|
|
const QColor & |
qColor |
|
) |
| |
|
inherited |
◆ addSubProperty()
void te::qt::widgets::AbstractPropertyItem::addSubProperty |
( |
QtProperty * |
qPropertyParent, |
|
|
QtProperty * |
qProperty, |
|
|
const QColor & |
qColor |
|
) |
| |
|
inherited |
◆ checkedStateChanged
◆ getCapIcons()
QMap<int, QIcon> te::qt::widgets::BasicStrokePropertyItem::getCapIcons |
( |
| ) |
|
|
protected |
◆ getCapNames()
QStringList te::qt::widgets::BasicStrokePropertyItem::getCapNames |
( |
| ) |
|
|
protected |
◆ getDashIcons()
QMap<int, QIcon> te::qt::widgets::BasicStrokePropertyItem::getDashIcons |
( |
| ) |
|
|
protected |
◆ getDashIconsNames()
QStringList te::qt::widgets::BasicStrokePropertyItem::getDashIconsNames |
( |
| ) |
|
|
protected |
◆ getItemProperty()
QtProperty* te::qt::widgets::AbstractPropertyItem::getItemProperty |
( |
| ) |
const |
|
inherited |
◆ getJoinIcons()
QMap<int, QIcon> te::qt::widgets::BasicStrokePropertyItem::getJoinIcons |
( |
| ) |
|
|
protected |
◆ getJoinNames()
QStringList te::qt::widgets::BasicStrokePropertyItem::getJoinNames |
( |
| ) |
|
|
protected |
◆ getStroke()
te::se::Stroke* te::qt::widgets::BasicStrokePropertyItem::getStroke |
( |
| ) |
const |
Gets the configured stroke element.
- Returns
- The configured stroke element.
- Note
- The caller will take the ownership of the returned stroke.
◆ getValueFromEnumProperty()
static QString te::qt::widgets::AbstractPropertyItem::getValueFromEnumProperty |
( |
QtProperty * |
enumPropertyItem | ) |
|
|
staticinherited |
◆ init()
void te::qt::widgets::AbstractPropertyItem::init |
( |
QtProperty * |
property | ) |
|
|
protectedinherited |
◆ isChecked()
bool te::qt::widgets::CheckboxStylePropertyItem::isChecked |
( |
| ) |
const |
|
inherited |
◆ propertyHasListener()
bool te::qt::widgets::StylePropertyItem::propertyHasListener |
( |
QtProperty * |
p | ) |
|
|
inherited |
◆ setCheckableProperty()
void te::qt::widgets::CheckboxStylePropertyItem::setCheckableProperty |
( |
QtProperty * |
qtProperty | ) |
|
|
privateinherited |
◆ setChecked()
void te::qt::widgets::CheckboxStylePropertyItem::setChecked |
( |
bool |
checked | ) |
|
|
inherited |
◆ setChildrenEnabled()
void te::qt::widgets::AbstractPropertyItem::setChildrenEnabled |
( |
bool |
enabled | ) |
|
|
inherited |
◆ setExpandedStatus() [1/2]
void te::qt::widgets::AbstractPropertyItem::setExpandedStatus |
( |
bool |
status, |
|
|
bool |
applyToChildren |
|
) |
| |
|
inherited |
◆ setExpandedStatus() [2/2]
void te::qt::widgets::AbstractPropertyItem::setExpandedStatus |
( |
QtBrowserItem * |
item, |
|
|
bool |
status, |
|
|
bool |
applyToChildren |
|
) |
| |
|
inherited |
◆ setPropertyColor()
void te::qt::widgets::AbstractPropertyItem::setPropertyColor |
( |
QtProperty * |
property, |
|
|
QColor |
c |
|
) |
| |
|
inherited |
◆ setStroke()
void te::qt::widgets::BasicStrokePropertyItem::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.
◆ setValueToEnumProperty()
static void te::qt::widgets::AbstractPropertyItem::setValueToEnumProperty |
( |
QtProperty * |
enumPropertyItem, |
|
|
const QString & |
value |
|
) |
| |
|
staticinherited |
◆ valueChanged [1/10]
virtual void te::qt::widgets::CheckboxStylePropertyItem::valueChanged |
( |
QtProperty * |
p, |
|
|
bool |
value |
|
) |
| |
|
virtualslotinherited |
◆ valueChanged [2/10]
virtual void te::qt::widgets::AbstractPropertyItem::valueChanged |
( |
QtProperty * |
p, |
|
|
const QColor & |
value |
|
) |
| |
|
virtualslotinherited |
◆ valueChanged [3/10]
virtual void te::qt::widgets::AbstractPropertyItem::valueChanged |
( |
QtProperty * |
p, |
|
|
const QFont & |
value |
|
) |
| |
|
virtualslotinherited |
◆ valueChanged [4/10]
virtual void te::qt::widgets::AbstractPropertyItem::valueChanged |
( |
QtProperty * |
p, |
|
|
const QPointF & |
value |
|
) |
| |
|
virtualslotinherited |
◆ valueChanged [5/10]
virtual void te::qt::widgets::AbstractPropertyItem::valueChanged |
( |
QtProperty * |
p, |
|
|
const QSize & |
value |
|
) |
| |
|
virtualslotinherited |
◆ valueChanged [6/10]
virtual void te::qt::widgets::AbstractPropertyItem::valueChanged |
( |
QtProperty * |
p, |
|
|
const QSizeF & |
value |
|
) |
| |
|
virtualslotinherited |
◆ valueChanged [7/10]
virtual void te::qt::widgets::AbstractPropertyItem::valueChanged |
( |
QtProperty * |
p, |
|
|
const QString & |
value |
|
) |
| |
|
virtualslotinherited |
◆ valueChanged [8/10]
void te::qt::widgets::BasicStrokePropertyItem::valueChanged |
( |
QtProperty * |
p, |
|
|
const QVariant & |
qVariant |
|
) |
| |
|
overrideslot |
◆ valueChanged [9/10]
virtual void te::qt::widgets::AbstractPropertyItem::valueChanged |
( |
QtProperty * |
p, |
|
|
double |
value |
|
) |
| |
|
virtualslotinherited |
◆ valueChanged [10/10]
virtual void te::qt::widgets::AbstractPropertyItem::valueChanged |
( |
QtProperty * |
p, |
|
|
int |
value |
|
) |
| |
|
virtualslotinherited |
◆ m_capMap
std::map<int, std::string> te::qt::widgets::BasicStrokePropertyItem::m_capMap |
|
protected |
◆ m_capProperty
QtProperty* te::qt::widgets::BasicStrokePropertyItem::m_capProperty |
|
protected |
◆ m_checkableProperty
QtProperty* te::qt::widgets::CheckboxStylePropertyItem::m_checkableProperty |
|
privateinherited |
◆ m_color
QColor te::qt::widgets::BasicStrokePropertyItem::m_color |
|
protected |
◆ m_colorParent
QColor te::qt::widgets::AbstractPropertyItem::m_colorParent |
|
protectedinherited |
◆ m_colorProperty
QtProperty* te::qt::widgets::BasicStrokePropertyItem::m_colorProperty |
|
protected |
◆ m_dashes
std::vector<std::string> te::qt::widgets::BasicStrokePropertyItem::m_dashes |
|
protected |
◆ m_dashOffsetProperty
QtProperty* te::qt::widgets::BasicStrokePropertyItem::m_dashOffsetProperty |
|
protected |
◆ m_dashProperty
QtProperty* te::qt::widgets::BasicStrokePropertyItem::m_dashProperty |
|
protected |
◆ m_enableListeners
bool te::qt::widgets::AbstractPropertyItem::m_enableListeners |
|
protectedinherited |
◆ m_itemProperty
QtProperty* te::qt::widgets::AbstractPropertyItem::m_itemProperty |
|
protectedinherited |
◆ m_joinMap
std::map<int, std::string> te::qt::widgets::BasicStrokePropertyItem::m_joinMap |
|
protected |
◆ m_joinProperty
QtProperty* te::qt::widgets::BasicStrokePropertyItem::m_joinProperty |
|
protected |
◆ m_listener
◆ m_opacityProperty
QtProperty* te::qt::widgets::BasicStrokePropertyItem::m_opacityProperty |
|
protected |
◆ m_propertyBrowser
QtTreePropertyBrowser* te::qt::widgets::AbstractPropertyItem::m_propertyBrowser |
|
protectedinherited |
◆ m_vecProperties
std::vector<QtProperty*> te::qt::widgets::StylePropertyItem::m_vecProperties |
|
protectedinherited |
◆ m_widthProperty
QtProperty* te::qt::widgets::BasicStrokePropertyItem::m_widthProperty |
|
protected |
The documentation for this class was generated from the following file: