A widget used to define a local image graphic for a se symbolizer. More...
#include <LocalImagePropertyItem.h>
Public Slots | |
| void | setDlg (QWidget *parent, QtProperty *prop) |
| void | showImgDlg () |
| virtual void | valueChanged (QtProperty *p, int value) |
| virtual void | valueChanged (QtProperty *p, double value) |
| virtual void | valueChanged (QtProperty *p, bool 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, const QString &value) |
Signals | |
| void | externalGraphicChanged () |
| This signal is emitted when the internal external graphic element is changed. More... | |
Public Member Functions | |
| te::se::ExternalGraphic * | getExternalGraphic () const |
| Gets the configured mark element. More... | |
| void | setExternalGraphic (const te::se::ExternalGraphic *eg) |
| Sets a mark element to this widget. More... | |
Initializer Methods | |
Methods related to instantiation and destruction. | |
| LocalImagePropertyItem (QtTreePropertyBrowser *pb, QColor c=QColor()) | |
| Constructor. More... | |
| ~LocalImagePropertyItem () | |
| Destructor. More... | |
Protected Member Functions | |
| void | addProperty (QtProperty *property, const QString &id, QColor c) |
| void | setExpandedStatus (QtBrowserItem *item, bool status) |
| void | updateUi () |
| Updates the widget form based on internal mark element. More... | |
Protected Attributes | |
| QColor | m_colorParent |
| QWidget * | m_dlg |
| te::se::ExternalGraphic * | m_eg |
| Mark element that will be configured by this widget. More... | |
| QMap< QString, QtProperty * > | m_idToProperty |
| QtProperty * | m_imgProperty |
| QtTreePropertyBrowser * | m_propertyBrowser |
| QMap< QtProperty *, QString > | m_propertyToId |
| bool | m_update |
A widget used to define a local image graphic for a se symbolizer.
Definition at line 52 of file LocalImagePropertyItem.h.
| te::qt::widgets::LocalImagePropertyItem::LocalImagePropertyItem | ( | QtTreePropertyBrowser * | pb, |
| QColor | c = QColor() |
||
| ) |
Constructor.
Definition at line 51 of file LocalImagePropertyItem.cpp.
References te::qt::widgets::AbstractPropertyItem::addProperty(), te::common::Singleton< AbstractPropertyManager >::getInstance(), m_imgProperty, setDlg(), and ~LocalImagePropertyItem().
|
default |
Destructor.
Referenced by LocalImagePropertyItem().
|
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(), 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(), te::qt::widgets::TextPropertyItem::TextPropertyItem(), and te::qt::widgets::WellKnownMarkPropertyItem::WellKnownMarkPropertyItem().
|
signal |
This signal is emitted when the internal external graphic element is changed.
| size | The size of selected image. |
Referenced by showImgDlg().
| te::se::ExternalGraphic * te::qt::widgets::LocalImagePropertyItem::getExternalGraphic | ( | ) | const |
Gets the configured mark element.
Definition at line 79 of file LocalImagePropertyItem.cpp.
References te::se::ExternalGraphic::clone(), and m_eg.
Referenced by te::qt::widgets::GraphicProperty::onLocalImageChanged().
|
slot |
Definition at line 100 of file LocalImagePropertyItem.cpp.
References m_dlg, m_imgProperty, and showImgDlg().
Referenced by LocalImagePropertyItem().
|
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::LocalImagePropertyItem::setExternalGraphic | ( | const te::se::ExternalGraphic * | eg | ) |
Sets a mark element to this widget.
| mark | A valid mark element. |
Definition at line 68 of file LocalImagePropertyItem.cpp.
References te::se::ExternalGraphic::clone(), m_eg, and updateUi().
Referenced by te::qt::widgets::GraphicProperty::setGraphic().
|
slot |
Definition at line 110 of file LocalImagePropertyItem.cpp.
References externalGraphicChanged(), link, m_eg, te::se::ExternalGraphic::setFormat(), te::xl::SimpleLink::setHref(), te::se::ExternalGraphic::setOnlineResource(), and updateUi().
Referenced by setDlg().
|
protected |
Updates the widget form based on internal mark element.
Definition at line 84 of file LocalImagePropertyItem.cpp.
References te::xl::SimpleLink::getHref(), te::common::Singleton< AbstractPropertyManager >::getInstance(), te::se::ExternalGraphic::getOnlineResource(), link, m_eg, and m_imgProperty.
Referenced by setExternalGraphic(), and showImgDlg().
|
virtualslotinherited |
Definition at line 83 of file AbstractPropertyItem.cpp.
Referenced by te::qt::widgets::AbstractPropertyItem::AbstractPropertyItem().
|
virtualslotinherited |
Definition at line 88 of file AbstractPropertyItem.cpp.
|
virtualslotinherited |
Definition at line 93 of file AbstractPropertyItem.cpp.
|
virtualslotinherited |
Definition at line 103 of file AbstractPropertyItem.cpp.
|
virtualslotinherited |
Definition at line 108 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 94 of file LocalImagePropertyItem.cpp.
|
protectedinherited |
Definition at line 97 of file AbstractPropertyItem.h.
Referenced by te::qt::widgets::AbstractPropertyItem::addProperty().
|
protected |
Definition at line 117 of file LocalImagePropertyItem.h.
Referenced by setDlg().
|
protected |
Mark element that will be configured by this widget.
Definition at line 119 of file LocalImagePropertyItem.h.
Referenced by getExternalGraphic(), setExternalGraphic(), showImgDlg(), and updateUi().
|
protectedinherited |
Definition at line 95 of file AbstractPropertyItem.h.
Referenced by te::qt::widgets::AbstractPropertyItem::addProperty().
|
protected |
Definition at line 115 of file LocalImagePropertyItem.h.
Referenced by LocalImagePropertyItem(), setDlg(), and updateUi().
|
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(), te::qt::widgets::TextPropertyItem::TextPropertyItem(), and te::qt::widgets::WellKnownMarkPropertyItem::WellKnownMarkPropertyItem().
|
protectedinherited |
Definition at line 94 of file AbstractPropertyItem.h.
Referenced by te::qt::widgets::AbstractPropertyItem::addProperty().
|
protected |
Definition at line 121 of file LocalImagePropertyItem.h.