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

Public Slots

void valueChanged (QtProperty *p, const QVariant &qVariant) override
 
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)
 

Public Member Functions

void addListenerToProperty (QtProperty *p)
 
void addProperty (QtProperty *qProperty, const QColor &qColor)
 
void addSubProperty (QtProperty *qPropertyParent, QtProperty *qProperty, const QColor &qColor)
 
QtProperty * getItemProperty () const
 
te::se::StrokegetStroke () const
 Gets the configured stroke element. More...
 
bool propertyHasListener (QtProperty *p)
 
void setChildrenEnabled (bool enabled)
 
void setExpandedStatus (QtBrowserItem *item, bool status, bool applyToChildren)
 
void setExpandedStatus (bool status, bool applyToChildren)
 
void setPropertyColor (QtProperty *property, QColor c)
 
void setStroke (const te::se::Stroke *stroke)
 Sets a stroke element to this widget. More...
 
Initializer Methods

Methods related to instantiation and destruction.

 BasicStrokePropertyItem (QtProperty *parent, QtTreePropertyBrowser *pb, StylePropertyItemListener *listener, QColor c=QColor())
 Constructor. More...
 
 ~BasicStrokePropertyItem ()
 Destructor. More...
 

Static Public Member Functions

static QString getValueFromEnumProperty (QtProperty *enumPropertyItem)
 
static void setValueToEnumProperty (QtProperty *enumPropertyItem, const QString &value)
 

Protected Member Functions

QMap< int, QIcon > getCapIcons ()
 
QStringList getCapNames ()
 
QMap< int, QIcon > getDashIcons ()
 
QStringList getDashIconsNames ()
 
QMap< int, QIcon > getJoinIcons ()
 
QStringList getJoinNames ()
 
void init (QtProperty *property)
 

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_dashOffsetProperty
 
QtProperty * m_dashProperty
 
bool m_enableListeners
 
QtProperty * m_itemProperty
 
std::map< int, std::string > m_joinMap
 
QtProperty * m_joinProperty
 
StylePropertyItemListenerm_listener
 
QtProperty * m_opacityProperty
 
QtTreePropertyBrowser * m_propertyBrowser
 
std::vector< QtProperty * > m_vecProperties
 
QtProperty * m_widthProperty
 

Initializer Methods

Methods related to instantiation and destruction.

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

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

◆ 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 ( QtBrowserItem *  item,
bool  status,
bool  applyToChildren 
)
inherited

◆ setExpandedStatus() [2/2]

void te::qt::widgets::AbstractPropertyItem::setExpandedStatus ( 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]

void te::qt::widgets::BasicStrokePropertyItem::valueChanged ( QtProperty *  p,
const QVariant &  qVariant 
)
overrideslot

◆ valueChanged [3/10]

virtual void te::qt::widgets::AbstractPropertyItem::valueChanged ( QtProperty *  p,
int  value 
)
virtualslotinherited

◆ valueChanged [4/10]

virtual void te::qt::widgets::AbstractPropertyItem::valueChanged ( QtProperty *  p,
double  value 
)
virtualslotinherited

◆ valueChanged [5/10]

virtual void te::qt::widgets::AbstractPropertyItem::valueChanged ( QtProperty *  p,
const QString &  value 
)
virtualslotinherited

◆ valueChanged [6/10]

virtual void te::qt::widgets::AbstractPropertyItem::valueChanged ( QtProperty *  p,
const QColor &  value 
)
virtualslotinherited

◆ valueChanged [7/10]

virtual void te::qt::widgets::AbstractPropertyItem::valueChanged ( QtProperty *  p,
const QFont &  value 
)
virtualslotinherited

◆ valueChanged [8/10]

virtual void te::qt::widgets::AbstractPropertyItem::valueChanged ( QtProperty *  p,
const QSize &  value 
)
virtualslotinherited

◆ valueChanged [9/10]

virtual void te::qt::widgets::AbstractPropertyItem::valueChanged ( QtProperty *  p,
const QSizeF &  value 
)
virtualslotinherited

◆ valueChanged [10/10]

virtual void te::qt::widgets::AbstractPropertyItem::valueChanged ( QtProperty *  p,
const QPointF &  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_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: