A widget used to define the general properties of a se object. More...
#include <GraphicPropertyItem.h>
Public Slots | |
| 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, int value) |
| virtual void | valueChanged (QtProperty *p, double value) |
| virtual void | valueChanged (QtProperty *p, const QPointF &value) |
Signals | |
| void | graphicChanged () |
Public Member Functions | |
Initializer Methods | |
Methods related to instantiation and destruction. | |
| GraphicPropertyItem (QtTreePropertyBrowser *pb, QColor c=QColor()) | |
| Constructor. More... | |
| ~GraphicPropertyItem () | |
| Destructor. More... | |
Re-implementation of Pure Virtual Method | |
AbstractGraphicWidget methods. | |
| bool | setGraphic (const te::se::Graphic *graphic) |
| te::se::Graphic * | getGraphic () const |
Protected Member Functions | |
| void | addProperty (QtProperty *property, const QString &id, QColor c) |
| void | setExpandedStatus (QtBrowserItem *item, bool status) |
Protected Attributes | |
| QtProperty * | m_angleProperty |
| QColor | m_colorParent |
| te::se::Graphic * | m_graphic |
| QMap< QString, QtProperty * > | m_idToProperty |
| QtProperty * | m_opacityProperty |
| QtTreePropertyBrowser * | m_propertyBrowser |
| QMap< QtProperty *, QString > | m_propertyToId |
| bool | m_setLocalGraphic |
| QtProperty * | m_sizeProperty |
Private Member Functions | |
| void | updateUi () |
| Updates the widget form based on internal graphic element. More... | |
A widget used to define the general properties of a se object.
Definition at line 52 of file GraphicPropertyItem.h.
| te::qt::widgets::GraphicPropertyItem::GraphicPropertyItem | ( | QtTreePropertyBrowser * | pb, |
| QColor | c = QColor() |
||
| ) |
Constructor.
Definition at line 41 of file GraphicPropertyItem.cpp.
References te::qt::widgets::AbstractPropertyItem::addProperty(), te::common::Singleton< AbstractPropertyManager >::getInstance(), m_angleProperty, m_opacityProperty, m_sizeProperty, and ~GraphicPropertyItem().
|
default |
Destructor.
Referenced by GraphicPropertyItem().
|
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(), 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(), te::qt::widgets::TextPropertyItem::TextPropertyItem(), and te::qt::widgets::WellKnownMarkPropertyItem::WellKnownMarkPropertyItem().
| te::se::Graphic * te::qt::widgets::GraphicPropertyItem::getGraphic | ( | ) | const |
Definition at line 107 of file GraphicPropertyItem.cpp.
References te::se::Graphic::clone(), and m_graphic.
Referenced by te::qt::widgets::GraphicProperty::onGraphicPropertyChanged().
|
signal |
This signal is emitted when the internal graphic element is changed.
Referenced by valueChanged().
|
protectedinherited |
Definition at line 70 of file AbstractPropertyItem.cpp.
References te::qt::widgets::AbstractPropertyItem::m_propertyBrowser.
Referenced by te::qt::widgets::AbstractPropertyItem::addProperty().
| bool te::qt::widgets::GraphicPropertyItem::setGraphic | ( | const te::se::Graphic * | graphic | ) |
Definition at line 90 of file GraphicPropertyItem.cpp.
References te::se::Graphic::clone(), m_graphic, m_setLocalGraphic, and updateUi().
Referenced by te::qt::widgets::GraphicProperty::setGraphic().
|
private |
Updates the widget form based on internal graphic element.
Definition at line 175 of file GraphicPropertyItem.cpp.
References te::se::GetDouble(), te::common::Singleton< AbstractPropertyManager >::getInstance(), te::se::Graphic::getOpacity(), te::se::Graphic::getRotation(), te::se::Graphic::getSize(), m_angleProperty, m_graphic, m_opacityProperty, and m_sizeProperty.
Referenced by setGraphic().
|
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 108 of file AbstractPropertyItem.cpp.
|
virtualslotinherited |
Definition at line 113 of file AbstractPropertyItem.cpp.
|
virtualslotinherited |
Definition at line 118 of file AbstractPropertyItem.cpp.
|
virtualslot |
Definition at line 112 of file GraphicPropertyItem.cpp.
References graphicChanged(), m_graphic, m_opacityProperty, m_setLocalGraphic, and te::se::Graphic::setOpacity().
|
virtualslot |
Definition at line 125 of file GraphicPropertyItem.cpp.
References graphicChanged(), m_angleProperty, m_graphic, m_setLocalGraphic, m_sizeProperty, te::se::Graphic::setRotation(), and te::se::Graphic::setSize().
|
virtualslot |
Definition at line 145 of file GraphicPropertyItem.cpp.
References m_setLocalGraphic.
|
protected |
Definition at line 102 of file GraphicPropertyItem.h.
Referenced by GraphicPropertyItem(), updateUi(), and valueChanged().
|
protectedinherited |
Definition at line 97 of file AbstractPropertyItem.h.
Referenced by te::qt::widgets::AbstractPropertyItem::addProperty().
|
protected |
Definition at line 109 of file GraphicPropertyItem.h.
Referenced by getGraphic(), setGraphic(), updateUi(), and valueChanged().
|
protectedinherited |
Definition at line 95 of file AbstractPropertyItem.h.
Referenced by te::qt::widgets::AbstractPropertyItem::addProperty().
|
protected |
Definition at line 103 of file GraphicPropertyItem.h.
Referenced by GraphicPropertyItem(), 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(), 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 107 of file GraphicPropertyItem.h.
Referenced by setGraphic(), and valueChanged().
|
protected |
Definition at line 101 of file GraphicPropertyItem.h.
Referenced by GraphicPropertyItem(), updateUi(), and valueChanged().