A widget used to define the mark se properties. More...
#include <WellKnownMarkPropertyItem.h>
Public Slots | |
void | onFillChanged () |
void | onStrokeChanged () |
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 QPointF &value) |
virtual void | valueChanged (QtProperty *p, int value) |
Signals | |
void | markChanged () |
Public Member Functions | |
te::se::Mark * | getMark () 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::BasicFillPropertyItem * | m_bf |
te::qt::widgets::BasicStrokePropertyItem * | m_bs |
QColor | m_colorParent |
QMap< QString, QtProperty * > | m_idToProperty |
te::se::Mark * | m_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 |
A widget used to define the mark se properties.
Definition at line 56 of file WellKnownMarkPropertyItem.h.
te::qt::widgets::WellKnownMarkPropertyItem::WellKnownMarkPropertyItem | ( | QtTreePropertyBrowser * | pb, |
QColor | c = QColor() |
||
) |
Constructor.
Definition at line 38 of file WellKnownMarkPropertyItem.cpp.
References te::qt::widgets::AbstractPropertyItem::addProperty(), te::qt::widgets::BasicFillPropertyItem::getFill(), te::common::Singleton< AbstractPropertyManager >::getInstance(), te::qt::widgets::BasicStrokePropertyItem::getStroke(), getTypeNames(), m_bf, m_bs, m_mark, te::qt::widgets::AbstractPropertyItem::m_propertyBrowser, m_supportedMarks, m_typeProperty, onFillChanged(), onStrokeChanged(), te::se::Mark::setFill(), te::se::Mark::setStroke(), and te::se::Mark::setWellKnownName().
te::qt::widgets::WellKnownMarkPropertyItem::~WellKnownMarkPropertyItem | ( | ) |
Destructor.
Definition at line 64 of file WellKnownMarkPropertyItem.cpp.
|
protectedinherited |
Definition at line 53 of file AbstractPropertyItem.cpp.
Referenced by te::qt::widgets::BasicFillPropertyItem::BasicFillPropertyItem(), te::qt::widgets::BasicStrokePropertyItem::BasicStrokePropertyItem(), te::qt::widgets::GlyphMarkPropertyItem::GlyphMarkPropertyItem(), te::qt::widgets::GraphicPropertyItem::GraphicPropertyItem(), te::qt::widgets::LayerPropertiesInfo::LayerPropertiesInfo(), te::qt::widgets::LocalImagePropertyItem::LocalImagePropertyItem(), and WellKnownMarkPropertyItem().
te::se::Mark * te::qt::widgets::WellKnownMarkPropertyItem::getMark | ( | ) | const |
Gets the configured mark element.
Definition at line 83 of file WellKnownMarkPropertyItem.cpp.
References te::se::Mark::clone().
Referenced by te::qt::widgets::GraphicProperty::GraphicProperty().
|
protected |
Definition at line 125 of file WellKnownMarkPropertyItem.cpp.
References te::common::Singleton< MarkRendererManager >::getInstance().
Referenced by WellKnownMarkPropertyItem().
|
signal |
This signal is emitted when the internal mark element is changed.
|
slot |
Definition at line 149 of file WellKnownMarkPropertyItem.cpp.
Referenced by WellKnownMarkPropertyItem().
|
slot |
Definition at line 141 of file WellKnownMarkPropertyItem.cpp.
Referenced by WellKnownMarkPropertyItem().
|
protectedinherited |
Definition at line 70 of file AbstractPropertyItem.cpp.
void te::qt::widgets::WellKnownMarkPropertyItem::setMark | ( | const te::se::Mark * | mark | ) |
Sets a mark element to this widget.
mark | A valid mark element. |
Definition at line 68 of file WellKnownMarkPropertyItem.cpp.
References te::se::Mark::clone().
|
protected |
Updates the widget form based on internal mark element.
Definition at line 88 of file WellKnownMarkPropertyItem.cpp.
References te::common::Singleton< AbstractPropertyManager >::getInstance(), and te::qt::widgets::AbstractPropertyManager::m_enumManager.
|
virtualslotinherited |
Definition at line 86 of file AbstractPropertyItem.cpp.
|
virtualslotinherited |
Definition at line 90 of file AbstractPropertyItem.cpp.
|
virtualslotinherited |
Definition at line 94 of file AbstractPropertyItem.cpp.
|
virtualslotinherited |
Definition at line 98 of file AbstractPropertyItem.cpp.
|
virtualslotinherited |
Definition at line 102 of file AbstractPropertyItem.cpp.
|
virtualslotinherited |
Definition at line 106 of file AbstractPropertyItem.cpp.
|
virtualslot |
Definition at line 114 of file WellKnownMarkPropertyItem.cpp.
|
protected |
Definition at line 119 of file WellKnownMarkPropertyItem.h.
Referenced by WellKnownMarkPropertyItem().
|
protected |
Definition at line 120 of file WellKnownMarkPropertyItem.h.
Referenced by WellKnownMarkPropertyItem().
|
protectedinherited |
Definition at line 95 of file AbstractPropertyItem.h.
|
protectedinherited |
Definition at line 93 of file AbstractPropertyItem.h.
|
protected |
Mark element that will be configured by this widget.
Definition at line 122 of file WellKnownMarkPropertyItem.h.
Referenced by WellKnownMarkPropertyItem().
|
protectedinherited |
Definition at line 90 of file AbstractPropertyItem.h.
Referenced by te::qt::widgets::AbstractPropertyItem::AbstractPropertyItem(), and WellKnownMarkPropertyItem().
|
protectedinherited |
Definition at line 92 of file AbstractPropertyItem.h.
|
protected |
Definition at line 124 of file WellKnownMarkPropertyItem.h.
|
protected |
Names of supported marks.
Definition at line 126 of file WellKnownMarkPropertyItem.h.
Referenced by WellKnownMarkPropertyItem().
|
protected |
Definition at line 127 of file WellKnownMarkPropertyItem.h.
|
protected |
Definition at line 117 of file WellKnownMarkPropertyItem.h.
Referenced by WellKnownMarkPropertyItem().