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

#include <BasicStrokePropertyItem.h>

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

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::StrokegetStroke () 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::Strokem_stroke
 Stroke element that will be configured by this widget. More...
 
bool m_update
 
QtProperty * m_widthProperty
 

Detailed Description

Definition at line 52 of file BasicStrokePropertyItem.h.

Constructor & Destructor Documentation

te::qt::widgets::BasicStrokePropertyItem::BasicStrokePropertyItem ( QtTreePropertyBrowser *  pb,
QColor  c = QColor() 
)

Constructor.

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

Destructor.

Member Function Documentation

void te::qt::widgets::AbstractPropertyItem::addProperty ( QtProperty *  property,
const QString &  id,
QColor  c 
)
protectedinherited
QMap<int, QIcon> te::qt::widgets::BasicStrokePropertyItem::getCapIcons ( )
protected
QStringList te::qt::widgets::BasicStrokePropertyItem::getCapNames ( )
protected
QMap<int, QIcon> te::qt::widgets::BasicStrokePropertyItem::getDashIcons ( )
protected
QStringList te::qt::widgets::BasicStrokePropertyItem::getDashIconsNames ( )
protected
QMap<int, QIcon> te::qt::widgets::BasicStrokePropertyItem::getJoinIcons ( )
protected
QStringList te::qt::widgets::BasicStrokePropertyItem::getJoinNames ( )
protected
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.
void te::qt::widgets::AbstractPropertyItem::setExpandedStatus ( QtBrowserItem *  item,
bool  status 
)
protectedinherited
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.
void te::qt::widgets::BasicStrokePropertyItem::strokeChanged ( )
signal

This signal is emitted when the internal stroke element is changed.

void te::qt::widgets::BasicStrokePropertyItem::updateUi ( )
protected

Updates the widget form based on internal stroke element.

virtual void te::qt::widgets::AbstractPropertyItem::valueChanged ( QtProperty *  p,
const QString &  value 
)
virtualslotinherited
virtual void te::qt::widgets::AbstractPropertyItem::valueChanged ( QtProperty *  p,
const QFont &  value 
)
virtualslotinherited
virtual void te::qt::widgets::AbstractPropertyItem::valueChanged ( QtProperty *  p,
const QSize &  value 
)
virtualslotinherited
virtual void te::qt::widgets::AbstractPropertyItem::valueChanged ( QtProperty *  p,
const QPointF &  value 
)
virtualslotinherited
virtual void te::qt::widgets::BasicStrokePropertyItem::valueChanged ( QtProperty *  p,
int  value 
)
virtualslot
virtual void te::qt::widgets::BasicStrokePropertyItem::valueChanged ( QtProperty *  p,
double  value 
)
virtualslot
virtual void te::qt::widgets::BasicStrokePropertyItem::valueChanged ( QtProperty *  p,
const QColor &  value 
)
virtualslot

Member Data Documentation

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

Definition at line 132 of file BasicStrokePropertyItem.h.

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

Definition at line 124 of file BasicStrokePropertyItem.h.

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

Auxiliary color attribute.

Definition at line 126 of file BasicStrokePropertyItem.h.

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

Definition at line 95 of file AbstractPropertyItem.h.

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

Definition at line 119 of file BasicStrokePropertyItem.h.

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 130 of file BasicStrokePropertyItem.h.

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

Definition at line 122 of file BasicStrokePropertyItem.h.

QMap<QString, QtProperty *> te::qt::widgets::AbstractPropertyItem::m_idToProperty
protectedinherited

Definition at line 93 of file AbstractPropertyItem.h.

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

Definition at line 131 of file BasicStrokePropertyItem.h.

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

Definition at line 123 of file BasicStrokePropertyItem.h.

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

Definition at line 120 of file BasicStrokePropertyItem.h.

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

Definition at line 90 of file AbstractPropertyItem.h.

QMap<QtProperty *, QString> te::qt::widgets::AbstractPropertyItem::m_propertyToId
protectedinherited

Definition at line 92 of file AbstractPropertyItem.h.

te::se::Stroke* te::qt::widgets::BasicStrokePropertyItem::m_stroke
protected

Stroke element that will be configured by this widget.

Definition at line 128 of file BasicStrokePropertyItem.h.

bool te::qt::widgets::BasicStrokePropertyItem::m_update
protected

Definition at line 134 of file BasicStrokePropertyItem.h.

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

Definition at line 121 of file BasicStrokePropertyItem.h.


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