te::qt::widgets::BasicStrokePropertyItem Class Reference

#include <BasicStrokePropertyItem.h>

Inheritance diagram for te::qt::widgets::BasicStrokePropertyItem:
te::qt::widgets::CheckboxStylePropertyItem te::qt::widgets::StylePropertyItem te::qt::widgets::AbstractPropertyItem

Initializer Methods

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)
 

Initializer Methods

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::StrokegetStroke () 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 ()
 

Initializer Methods

Methods related to instantiation and destruction.

bool isChecked () const
 
void setChecked (bool checked)
 
virtual void valueChanged (QtProperty *p, bool value)
 
QtProperty * m_checkableProperty
 
void checkedStateChanged (CheckboxStylePropertyItem *stylePropertyItem)
 
void setCheckableProperty (QtProperty *qtProperty)
 

Initializer Methods

Methods related to instantiation and destruction.

StylePropertyItemListenerm_listener
 
std::vector< QtProperty * > m_vecProperties
 
void addListenerToProperty (QtProperty *p)
 
bool propertyHasListener (QtProperty *p)
 

Detailed Description

Definition at line 58 of file BasicStrokePropertyItem.h.

Constructor & Destructor Documentation

◆ BasicStrokePropertyItem()

te::qt::widgets::BasicStrokePropertyItem::BasicStrokePropertyItem ( QtProperty *  parent,
QtTreePropertyBrowser *  pb,
StylePropertyItemListener listener,
QColor  c = QColor() 
)

Constructor.

◆ ~BasicStrokePropertyItem()

te::qt::widgets::BasicStrokePropertyItem::~BasicStrokePropertyItem ( )

Destructor.

Member Function Documentation

◆ 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

void te::qt::widgets::CheckboxStylePropertyItem::checkedStateChanged ( CheckboxStylePropertyItem stylePropertyItem)
signalinherited

◆ 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
strokeA 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

Member Data Documentation

◆ m_capMap

std::map<int, std::string> te::qt::widgets::BasicStrokePropertyItem::m_capMap
protected

Definition at line 126 of file BasicStrokePropertyItem.h.

◆ m_capProperty

QtProperty* te::qt::widgets::BasicStrokePropertyItem::m_capProperty
protected

Definition at line 118 of file BasicStrokePropertyItem.h.

◆ m_checkableProperty

QtProperty* te::qt::widgets::CheckboxStylePropertyItem::m_checkableProperty
privateinherited

Definition at line 82 of file CheckboxStylePropertyItem.h.

◆ m_color

QColor te::qt::widgets::BasicStrokePropertyItem::m_color
protected

Auxiliary color attribute.

Definition at line 122 of file BasicStrokePropertyItem.h.

◆ m_colorParent

QColor te::qt::widgets::AbstractPropertyItem::m_colorParent
protectedinherited

Definition at line 123 of file AbstractPropertyItem.h.

◆ m_colorProperty

QtProperty* te::qt::widgets::BasicStrokePropertyItem::m_colorProperty
protected

Definition at line 114 of file BasicStrokePropertyItem.h.

◆ m_dashes

std::vector<std::string> te::qt::widgets::BasicStrokePropertyItem::m_dashes
protected

Predefined dash styles. TODO: it can be filled out, based on a file, etc (?)

Definition at line 124 of file BasicStrokePropertyItem.h.

◆ m_dashOffsetProperty

QtProperty* te::qt::widgets::BasicStrokePropertyItem::m_dashOffsetProperty
protected

Definition at line 120 of file BasicStrokePropertyItem.h.

◆ m_dashProperty

QtProperty* te::qt::widgets::BasicStrokePropertyItem::m_dashProperty
protected

Definition at line 119 of file BasicStrokePropertyItem.h.

◆ m_enableListeners

bool te::qt::widgets::AbstractPropertyItem::m_enableListeners
protectedinherited

Definition at line 124 of file AbstractPropertyItem.h.

◆ m_itemProperty

QtProperty* te::qt::widgets::AbstractPropertyItem::m_itemProperty
protectedinherited

Definition at line 125 of file AbstractPropertyItem.h.

◆ m_joinMap

std::map<int, std::string> te::qt::widgets::BasicStrokePropertyItem::m_joinMap
protected

Definition at line 125 of file BasicStrokePropertyItem.h.

◆ m_joinProperty

QtProperty* te::qt::widgets::BasicStrokePropertyItem::m_joinProperty
protected

Definition at line 117 of file BasicStrokePropertyItem.h.

◆ m_listener

StylePropertyItemListener* te::qt::widgets::StylePropertyItem::m_listener
protectedinherited

Definition at line 90 of file StylePropertyItem.h.

◆ m_opacityProperty

QtProperty* te::qt::widgets::BasicStrokePropertyItem::m_opacityProperty
protected

Definition at line 115 of file BasicStrokePropertyItem.h.

◆ m_propertyBrowser

QtTreePropertyBrowser* te::qt::widgets::AbstractPropertyItem::m_propertyBrowser
protectedinherited

Definition at line 121 of file AbstractPropertyItem.h.

◆ m_vecProperties

std::vector<QtProperty*> te::qt::widgets::StylePropertyItem::m_vecProperties
protectedinherited

Definition at line 91 of file StylePropertyItem.h.

◆ m_widthProperty

QtProperty* te::qt::widgets::BasicStrokePropertyItem::m_widthProperty
protected

Definition at line 116 of file BasicStrokePropertyItem.h.


The documentation for this class was generated from the following file: