All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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...
 
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::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 ( )

Destructor.

Definition at line 99 of file BasicStrokePropertyItem.cpp.

Member Function Documentation

QMap< int, QIcon > te::qt::widgets::BasicStrokePropertyItem::getCapIcons ( )
protected

Definition at line 347 of file BasicStrokePropertyItem.cpp.

Referenced by BasicStrokePropertyItem().

QStringList te::qt::widgets::BasicStrokePropertyItem::getCapNames ( )
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().

QMap< int, QIcon > te::qt::widgets::BasicStrokePropertyItem::getDashIcons ( )
protected

Definition at line 297 of file BasicStrokePropertyItem.cpp.

References te::map::GetDashStyle().

Referenced by BasicStrokePropertyItem().

QStringList te::qt::widgets::BasicStrokePropertyItem::getDashIconsNames ( )
protected

Definition at line 358 of file BasicStrokePropertyItem.cpp.

Referenced by BasicStrokePropertyItem().

QMap< int, QIcon > te::qt::widgets::BasicStrokePropertyItem::getJoinIcons ( )
protected

Definition at line 336 of file BasicStrokePropertyItem.cpp.

Referenced by BasicStrokePropertyItem().

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.

Definition at line 115 of file BasicStrokePropertyItem.cpp.

References te::se::Stroke::clone().

Referenced by te::qt::widgets::WellKnownMarkPropertyItem::WellKnownMarkPropertyItem().

void te::qt::widgets::AbstractPropertyItem::setExpandedStatus ( QtBrowserItem *  item,
bool  status 
)
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.

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.

Definition at line 104 of file BasicStrokePropertyItem.cpp.

References te::se::Stroke::clone().

void te::qt::widgets::BasicStrokePropertyItem::strokeChanged ( )
signal

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

void te::qt::widgets::BasicStrokePropertyItem::updateUiStrokeColor ( )
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.

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

Definition at line 90 of file AbstractPropertyItem.cpp.

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

Definition at line 98 of file AbstractPropertyItem.cpp.

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

Definition at line 102 of file AbstractPropertyItem.cpp.

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

Definition at line 106 of file AbstractPropertyItem.cpp.

void te::qt::widgets::BasicStrokePropertyItem::valueChanged ( QtProperty *  p,
int  value 
)
virtualslot

Definition at line 208 of file BasicStrokePropertyItem.cpp.

void te::qt::widgets::BasicStrokePropertyItem::valueChanged ( QtProperty *  p,
double  value 
)
virtualslot

Definition at line 251 of file BasicStrokePropertyItem.cpp.

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

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

Definition at line 127 of file BasicStrokePropertyItem.h.

Referenced by BasicStrokePropertyItem().

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

Auxiliary color attribute.

Definition at line 129 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 122 of file BasicStrokePropertyItem.h.

Referenced by BasicStrokePropertyItem().

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

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

Definition at line 125 of file BasicStrokePropertyItem.h.

Referenced by BasicStrokePropertyItem().

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

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

Definition at line 126 of file BasicStrokePropertyItem.h.

Referenced by BasicStrokePropertyItem().

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

Definition at line 123 of file BasicStrokePropertyItem.h.

Referenced by BasicStrokePropertyItem().

QtTreePropertyBrowser* te::qt::widgets::AbstractPropertyItem::m_propertyBrowser
protectedinherited
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 131 of file BasicStrokePropertyItem.h.

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

Definition at line 137 of file BasicStrokePropertyItem.h.

Referenced by BasicStrokePropertyItem().

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

Definition at line 124 of file BasicStrokePropertyItem.h.

Referenced by BasicStrokePropertyItem().


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