te::qt::widgets::WellKnownMarkPropertyItem Class Reference

A widget used to define the mark se properties. More...

#include <WellKnownMarkPropertyItem.h>

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

Public Slots

void onFillChanged ()
 
void onStrokeChanged ()
 
virtual void valueChanged (QtProperty *p, double value)
 
virtual void valueChanged (QtProperty *p, bool 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)
 
virtual void valueChanged (QtProperty *p, int value)
 

Signals

void markChanged ()
 

Public Member Functions

te::se::MarkgetMark () const
 Gets the configured mark element. More...
 
void setMark (const te::se::Mark *mark)
 Sets a mark element to this widget. More...
 
Initializer Methods

Methods related to instantiation and destruction.

 WellKnownMarkPropertyItem (QtTreePropertyBrowser *pb, QColor c=QColor())
 Constructor. More...
 
 ~WellKnownMarkPropertyItem ()
 Destructor. More...
 

Protected Member Functions

void addProperty (QtProperty *property, const QString &id, QColor c)
 
QStringList getTypeNames ()
 
void setExpandedStatus (QtBrowserItem *item, bool status)
 
void updateUi ()
 Updates the widget form based on internal mark element. More...
 

Protected Attributes

te::qt::widgets::BasicFillPropertyItemm_bf
 
te::qt::widgets::BasicStrokePropertyItemm_bs
 
QColor m_colorParent
 
QMap< QString, QtProperty * > m_idToProperty
 
te::se::Markm_mark
 Mark element that will be configured by this widget. More...
 
QtTreePropertyBrowser * m_propertyBrowser
 
QMap< QtProperty *, QString > m_propertyToId
 
bool m_setLocalMark
 
std::vector< std::string > m_supportedMarks
 Names of supported marks. More...
 
std::map< int, std::string > m_supportedMarksMap
 
QtProperty * m_typeProperty
 

Detailed Description

A widget used to define the mark se properties.

Definition at line 56 of file WellKnownMarkPropertyItem.h.

Constructor & Destructor Documentation

te::qt::widgets::WellKnownMarkPropertyItem::~WellKnownMarkPropertyItem ( )
default

Destructor.

Referenced by WellKnownMarkPropertyItem().

Member Function Documentation

void te::qt::widgets::AbstractPropertyItem::addProperty ( QtProperty *  property,
const QString &  id,
QColor  c 
)
protectedinherited
te::se::Mark * te::qt::widgets::WellKnownMarkPropertyItem::getMark ( ) const

Gets the configured mark element.

Returns
The configured mark element.
Note
The caller will take the ownership of the returned mark.

Definition at line 84 of file WellKnownMarkPropertyItem.cpp.

References te::se::Mark::clone(), and m_mark.

Referenced by te::qt::widgets::GraphicProperty::GraphicProperty(), and te::qt::widgets::GraphicProperty::onWellKnownMarkChanged().

QStringList te::qt::widgets::WellKnownMarkPropertyItem::getTypeNames ( )
protected
void te::qt::widgets::WellKnownMarkPropertyItem::markChanged ( )
signal

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

Referenced by onFillChanged(), onStrokeChanged(), and valueChanged().

void te::qt::widgets::WellKnownMarkPropertyItem::onFillChanged ( )
slot
void te::qt::widgets::WellKnownMarkPropertyItem::onStrokeChanged ( )
slot
void te::qt::widgets::AbstractPropertyItem::setExpandedStatus ( QtBrowserItem *  item,
bool  status 
)
protectedinherited
void te::qt::widgets::WellKnownMarkPropertyItem::setMark ( const te::se::Mark mark)

Sets a mark element to this widget.

Parameters
markA valid mark element.
Note
The widget will NOT take the ownership of the given mark.
The widget form will be update based on given mark parameters.

Definition at line 69 of file WellKnownMarkPropertyItem.cpp.

References te::se::Mark::clone(), m_mark, m_setLocalMark, and updateUi().

Referenced by te::qt::widgets::GraphicProperty::setGraphic().

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

Definition at line 88 of file AbstractPropertyItem.cpp.

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 QColor &  value 
)
virtualslotinherited

Definition at line 103 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::WellKnownMarkPropertyItem::valueChanged ( QtProperty *  p,
int  value 
)
virtualslot

Member Data Documentation

te::qt::widgets::BasicFillPropertyItem* te::qt::widgets::WellKnownMarkPropertyItem::m_bf
protected

Definition at line 119 of file WellKnownMarkPropertyItem.h.

Referenced by onFillChanged(), updateUi(), and WellKnownMarkPropertyItem().

te::qt::widgets::BasicStrokePropertyItem* te::qt::widgets::WellKnownMarkPropertyItem::m_bs
protected
QColor te::qt::widgets::AbstractPropertyItem::m_colorParent
protectedinherited
QMap<QString, QtProperty *> te::qt::widgets::AbstractPropertyItem::m_idToProperty
protectedinherited
te::se::Mark* te::qt::widgets::WellKnownMarkPropertyItem::m_mark
protected

Mark element that will be configured by this widget.

Definition at line 122 of file WellKnownMarkPropertyItem.h.

Referenced by getMark(), onFillChanged(), onStrokeChanged(), setMark(), updateUi(), valueChanged(), and WellKnownMarkPropertyItem().

QMap<QtProperty *, QString> te::qt::widgets::AbstractPropertyItem::m_propertyToId
protectedinherited
bool te::qt::widgets::WellKnownMarkPropertyItem::m_setLocalMark
protected

Definition at line 124 of file WellKnownMarkPropertyItem.h.

Referenced by onFillChanged(), onStrokeChanged(), setMark(), and valueChanged().

std::vector<std::string> te::qt::widgets::WellKnownMarkPropertyItem::m_supportedMarks
protected

Names of supported marks.

Definition at line 126 of file WellKnownMarkPropertyItem.h.

Referenced by getTypeNames(), and WellKnownMarkPropertyItem().

std::map<int, std::string> te::qt::widgets::WellKnownMarkPropertyItem::m_supportedMarksMap
protected

Definition at line 127 of file WellKnownMarkPropertyItem.h.

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

QtProperty* te::qt::widgets::WellKnownMarkPropertyItem::m_typeProperty
protected

Definition at line 117 of file WellKnownMarkPropertyItem.h.

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


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