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

#include <BasicStrokePropertyItem.h>

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

Public Slots

virtual void valueChanged (QtProperty *p, bool value)
 
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 QSizeF &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 ( )

Destructor.

Definition at line 100 of file BasicStrokePropertyItem.cpp.

References m_stroke.

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

Definition at line 372 of file BasicStrokePropertyItem.cpp.

Referenced by BasicStrokePropertyItem().

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

Definition at line 320 of file BasicStrokePropertyItem.cpp.

References te::map::GetDashStyle(), line, and m_dashes.

Referenced by BasicStrokePropertyItem().

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

Definition at line 383 of file BasicStrokePropertyItem.cpp.

References m_dashes.

Referenced by BasicStrokePropertyItem().

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

Definition at line 361 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 116 of file BasicStrokePropertyItem.cpp.

References te::se::Stroke::clone(), and m_stroke.

Referenced by te::qt::widgets::LineSymbolizerProperty::onStrokeChanged(), te::qt::widgets::WellKnownMarkPropertyItem::onStrokeChanged(), te::qt::widgets::PolygonSymbolizerProperty::onStrokeChanged(), and te::qt::widgets::WellKnownMarkPropertyItem::WellKnownMarkPropertyItem().

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.

Definition at line 105 of file BasicStrokePropertyItem.cpp.

References te::se::Stroke::clone(), m_stroke, and updateUi().

Referenced by te::qt::widgets::LineSymbolizerProperty::setSymbolizer(), te::qt::widgets::PolygonSymbolizerProperty::setSymbolizer(), and te::qt::widgets::WellKnownMarkPropertyItem::updateUi().

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

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

Referenced by valueChanged().

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

Definition at line 93 of file AbstractPropertyItem.cpp.

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

Definition at line 98 of file AbstractPropertyItem.cpp.

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

Definition at line 108 of file AbstractPropertyItem.cpp.

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

Definition at line 113 of file AbstractPropertyItem.cpp.

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

Definition at line 118 of file AbstractPropertyItem.cpp.

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

Definition at line 123 of file AbstractPropertyItem.cpp.

void te::qt::widgets::BasicStrokePropertyItem::valueChanged ( QtProperty *  p,
double  value 
)
virtualslot
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.

Referenced by getCapNames(), updateUi(), and valueChanged().

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

Definition at line 124 of file BasicStrokePropertyItem.h.

Referenced by BasicStrokePropertyItem(), updateUi(), and valueChanged().

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

Auxiliary color attribute.

Definition at line 126 of file BasicStrokePropertyItem.h.

Referenced by valueChanged().

QColor te::qt::widgets::AbstractPropertyItem::m_colorParent
protectedinherited
QtProperty* te::qt::widgets::BasicStrokePropertyItem::m_colorProperty
protected

Definition at line 119 of file BasicStrokePropertyItem.h.

Referenced by BasicStrokePropertyItem(), updateUi(), and valueChanged().

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.

Referenced by getDashIcons(), getDashIconsNames(), updateUi(), and valueChanged().

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

Definition at line 122 of file BasicStrokePropertyItem.h.

Referenced by BasicStrokePropertyItem(), updateUi(), and valueChanged().

QMap<QString, QtProperty *> te::qt::widgets::AbstractPropertyItem::m_idToProperty
protectedinherited
std::map<int, std::string> te::qt::widgets::BasicStrokePropertyItem::m_joinMap
protected

Definition at line 131 of file BasicStrokePropertyItem.h.

Referenced by getJoinNames(), updateUi(), and valueChanged().

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

Definition at line 123 of file BasicStrokePropertyItem.h.

Referenced by BasicStrokePropertyItem(), updateUi(), and valueChanged().

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

Definition at line 120 of file BasicStrokePropertyItem.h.

Referenced by BasicStrokePropertyItem(), updateUi(), and valueChanged().

QMap<QtProperty *, QString> te::qt::widgets::AbstractPropertyItem::m_propertyToId
protectedinherited
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.

Referenced by getStroke(), setStroke(), updateUi(), valueChanged(), and ~BasicStrokePropertyItem().

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

Definition at line 134 of file BasicStrokePropertyItem.h.

Referenced by BasicStrokePropertyItem(), and valueChanged().

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

Definition at line 121 of file BasicStrokePropertyItem.h.

Referenced by BasicStrokePropertyItem(), updateUi(), and valueChanged().


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