A widget used to define the text se object. More...
#include <TextPropertyItem.h>
Public Slots | |
| 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 QSize &value) |
| virtual void | valueChanged (QtProperty *p, const QSizeF &value) |
| virtual void | valueChanged (QtProperty *p, const QPointF &value) |
Public Member Functions | |
Initializer Methods | |
Methods related to instantiation and destruction. | |
| TextPropertyItem (QtTreePropertyBrowser *pb, QColor c=QColor()) | |
| Constructor. More... | |
| ~TextPropertyItem () | |
| Destructor. More... | |
Protected Member Functions | |
| void | addProperty (QtProperty *property, const QString &id, QColor c) |
| void | setExpandedStatus (QtBrowserItem *item, bool status) |
Protected Attributes | |
| QColor | m_colorParent |
| QMap< QString, QtProperty * > | m_idToProperty |
| QtTreePropertyBrowser * | m_propertyBrowser |
| QMap< QtProperty *, QString > | m_propertyToId |
Re-implementation of Pure Virtual Method | |
AbstractFillWidget methods. | |
| te::qt::widgets::BasicFillPropertyItem * | m_bf |
| QtProperty * | m_labelProperty |
| QtProperty * | m_fontProperty |
| te::se::TextSymbolizer * | m_textSymbolizer |
| Fill element that will be configured by this widget. More... | |
| std::vector< std::string > | m_labels |
| bool | m_update |
| void | setTextSymbolizer (const te::se::TextSymbolizer *ts) |
| void | setLabels (std::vector< std::string > labels) |
| te::se::TextSymbolizer * | getTextSymbolizer () const |
| void | updateUi () |
| Updates the widget form based on internal fill element. More... | |
| virtual void | valueChanged (QtProperty *p, int value) |
| virtual void | valueChanged (QtProperty *p, const QFont &value) |
| void | onFillChanged () |
| void | textChanged () |
A widget used to define the text se object.
Definition at line 55 of file TextPropertyItem.h.
| te::qt::widgets::TextPropertyItem::TextPropertyItem | ( | QtTreePropertyBrowser * | pb, |
| QColor | c = QColor() |
||
| ) |
Constructor.
Definition at line 41 of file TextPropertyItem.cpp.
References te::qt::widgets::AbstractPropertyItem::addProperty(), te::qt::widgets::BasicFillPropertyItem::getFill(), te::common::Singleton< AbstractPropertyManager >::getInstance(), m_bf, m_fontProperty, m_labelProperty, te::qt::widgets::AbstractPropertyItem::m_propertyBrowser, m_textSymbolizer, m_update, onFillChanged(), and te::se::TextSymbolizer::setFill().
| te::qt::widgets::TextPropertyItem::~TextPropertyItem | ( | ) |
|
protectedinherited |
Definition at line 53 of file AbstractPropertyItem.cpp.
References te::qt::widgets::AbstractPropertyItem::m_colorParent, te::qt::widgets::AbstractPropertyItem::m_idToProperty, te::qt::widgets::AbstractPropertyItem::m_propertyBrowser, te::qt::widgets::AbstractPropertyItem::m_propertyToId, p, and te::qt::widgets::AbstractPropertyItem::setExpandedStatus().
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::GridPropertyBrowser::GridPropertyBrowser(), te::qt::widgets::HaloPropertyItem::HaloPropertyItem(), te::qt::widgets::LayerPropertiesInfo::LayerPropertiesInfo(), te::qt::widgets::LinePlacementPropertyItem::LinePlacementPropertyItem(), te::qt::widgets::LocalImagePropertyItem::LocalImagePropertyItem(), te::qt::widgets::PointPlacementPropertyItem::PointPlacementPropertyItem(), te::qt::plugins::pgisRaster::RasterPropertiesInfo::RasterPropertiesInfo(), te::qt::widgets::ScalePropertyBrowser::ScalePropertyBrowser(), te::qt::widgets::ScalePropertyItem::ScalePropertyItem(), te::qt::widgets::LayerPropertiesInfo::setLayerRasterProperties(), te::qt::widgets::LayerPropertiesInfo::setLayerVecProperties(), TextPropertyItem(), and te::qt::widgets::WellKnownMarkPropertyItem::WellKnownMarkPropertyItem().
| te::se::TextSymbolizer * te::qt::widgets::TextPropertyItem::getTextSymbolizer | ( | ) | const |
Definition at line 154 of file TextPropertyItem.cpp.
References te::se::TextSymbolizer::clone(), and m_textSymbolizer.
Referenced by te::qt::widgets::TextSymbolizerProperty::onTextChanged().
|
slot |
Definition at line 118 of file TextPropertyItem.cpp.
References te::qt::widgets::BasicFillPropertyItem::getFill(), m_bf, m_textSymbolizer, te::se::TextSymbolizer::setFill(), and textChanged().
Referenced by TextPropertyItem().
|
protectedinherited |
Definition at line 70 of file AbstractPropertyItem.cpp.
References te::qt::widgets::AbstractPropertyItem::m_propertyBrowser.
Referenced by te::qt::widgets::AbstractPropertyItem::addProperty().
| void te::qt::widgets::TextPropertyItem::setLabels | ( | std::vector< std::string > | labels | ) |
Definition at line 138 of file TextPropertyItem.cpp.
References te::common::Singleton< AbstractPropertyManager >::getInstance(), m_labelProperty, m_labels, and m_update.
Referenced by te::qt::widgets::TextSymbolizerProperty::setLabels().
| void te::qt::widgets::TextPropertyItem::setTextSymbolizer | ( | const te::se::TextSymbolizer * | ts | ) |
Definition at line 125 of file TextPropertyItem.cpp.
References te::se::TextSymbolizer::clone(), m_textSymbolizer, m_update, and updateUi().
Referenced by te::qt::widgets::TextSymbolizerProperty::setSymbolizer().
|
signal |
This signal is emitted when the internal fill element is changed.
Referenced by onFillChanged(), and valueChanged().
| void te::qt::widgets::TextPropertyItem::updateUi | ( | ) |
Updates the widget form based on internal fill element.
Definition at line 159 of file TextPropertyItem.cpp.
References te::at::Black, te::at::Bold, te::at::DemiBold, te::se::GetDouble(), te::se::Font::getFamily(), te::se::TextSymbolizer::getFill(), te::se::TextSymbolizer::getFont(), te::common::Singleton< AbstractPropertyManager >::getInstance(), te::se::GetInt(), te::se::TextSymbolizer::getLabel(), te::se::Font::getSize(), te::se::GetString(), te::se::Font::getStyle(), te::se::Font::getWeight(), te::at::Light, m_bf, m_fontProperty, m_labelProperty, m_labels, m_textSymbolizer, m_update, te::sa::Normal, te::se::Font::setFamily(), and te::qt::widgets::BasicFillPropertyItem::setFill().
Referenced by setTextSymbolizer().
|
virtualslotinherited |
Definition at line 88 of file AbstractPropertyItem.cpp.
|
virtualslotinherited |
Definition at line 93 of file AbstractPropertyItem.cpp.
|
virtualslotinherited |
Definition at line 98 of file AbstractPropertyItem.cpp.
|
virtualslotinherited |
Definition at line 103 of file AbstractPropertyItem.cpp.
|
virtualslotinherited |
Definition at line 113 of file AbstractPropertyItem.cpp.
|
virtualslotinherited |
Definition at line 118 of file AbstractPropertyItem.cpp.
|
virtualslotinherited |
Definition at line 123 of file AbstractPropertyItem.cpp.
|
virtualslot |
Definition at line 74 of file TextPropertyItem.cpp.
References m_labelProperty, m_labels, m_textSymbolizer, m_update, te::se::TextSymbolizer::setLabel(), and textChanged().
|
virtualslot |
Definition at line 90 of file TextPropertyItem.cpp.
References te::common::Convert2String(), m_fontProperty, m_textSymbolizer, m_update, te::se::Font::setFamily(), te::se::TextSymbolizer::setFont(), te::se::Font::setSize(), te::se::Font::setStyle(), te::se::Font::setWeight(), and textChanged().
|
protected |
Definition at line 102 of file TextPropertyItem.h.
Referenced by onFillChanged(), TextPropertyItem(), and updateUi().
|
protectedinherited |
Definition at line 97 of file AbstractPropertyItem.h.
Referenced by te::qt::widgets::AbstractPropertyItem::addProperty().
|
protected |
Definition at line 105 of file TextPropertyItem.h.
Referenced by TextPropertyItem(), updateUi(), and valueChanged().
|
protectedinherited |
Definition at line 95 of file AbstractPropertyItem.h.
Referenced by te::qt::widgets::AbstractPropertyItem::addProperty().
|
protected |
Definition at line 104 of file TextPropertyItem.h.
Referenced by setLabels(), TextPropertyItem(), updateUi(), and valueChanged().
|
protected |
Definition at line 109 of file TextPropertyItem.h.
Referenced by setLabels(), updateUi(), and valueChanged().
|
protectedinherited |
Definition at line 92 of file AbstractPropertyItem.h.
Referenced by te::qt::widgets::AbstractPropertyItem::AbstractPropertyItem(), te::qt::widgets::AbstractPropertyItem::addProperty(), te::qt::widgets::HaloPropertyItem::HaloPropertyItem(), te::qt::widgets::AbstractPropertyItem::setExpandedStatus(), TextPropertyItem(), and te::qt::widgets::WellKnownMarkPropertyItem::WellKnownMarkPropertyItem().
|
protectedinherited |
Definition at line 94 of file AbstractPropertyItem.h.
Referenced by te::qt::widgets::AbstractPropertyItem::addProperty().
|
protected |
Fill element that will be configured by this widget.
Definition at line 107 of file TextPropertyItem.h.
Referenced by getTextSymbolizer(), onFillChanged(), setTextSymbolizer(), TextPropertyItem(), updateUi(), valueChanged(), and ~TextPropertyItem().
|
protected |
Definition at line 111 of file TextPropertyItem.h.
Referenced by setLabels(), setTextSymbolizer(), TextPropertyItem(), updateUi(), and valueChanged().