Widget with propeties of a ScaleWidget for the users to change the presentation of the graphic scale. More...
#include <ScalePropertyWidget.h>
Public Slots | |
| virtual void | valueChanged (QtProperty *p, double value) |
| virtual void | valueChanged (QtProperty *p, const QString &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) |
Signals | |
Signals. | |
Emmited to the graphic scale to sinalizes the attributes that was changed. | |
| void | interactHandleChanged (const bool &) |
| Emmited when the interaction mode was changed. More... | |
| void | headerColorChanged (const QColor &) |
| Emmited when the header color was changed. More... | |
| void | rulerColorChanged (const QColor &) |
| Emmited when the ruler color was changed. More... | |
| void | footerColorChanged (const QColor &) |
| Emmited when the footer color was changed. More... | |
| void | headerFontChanged (const QFont &) |
| Emmited when the header font was changed. More... | |
| void | footerFontChanged (const QFont &) |
| Emmited when the footer font was changed. More... | |
| void | scaleTypeChanged (const int &) |
| Emmited when the ruler type was changed. More... | |
| void | numericScaleVisibilityChanged (const bool &) |
| Emmited when the footer visibility was changed. More... | |
| void | unitChanged (const QString &) |
| Emmited when the unit of measure of the graphic scale was changed. More... | |
| void | allIntermediaryValuesChanged (const bool &) |
| Emmited when the visibility of the intermediary values of the header was changed. More... | |
| void | rulerHeightChanged (const int &) |
| Emmited when the height of the ruler was changed. More... | |
| void | numberOfIntervalsChanged (const int &) |
| Emmited when the number of intervals in the ruler was changed. More... | |
| void | unitsPerGapChanged (const int &) |
| Emmited when the units per interval was changed. More... | |
Public Member Functions | |
Constructor and destructor methods. | |
Methods related to instantiation and destruction. | |
| ScalePropertyBrowser (QtTreePropertyBrowser *pb, ScaleWidget *wid) | |
| Constructor. More... | |
| ~ScalePropertyBrowser () | |
| Destructor. More... | |
Protected Slots | |
Protected slots. | |
Methods to update the internal attributes of the class, using the signal-slot mechanism of QT. | |
| void | valueChanged (QtProperty *p, bool value) |
| Called when a property of boolean type changed. More... | |
| void | valueChanged (QtProperty *p, const QColor &value) |
| Called when a property of color type changed. More... | |
| void | valueChanged (QtProperty *p, const QFont &value) |
| Called when a property of font type changed. More... | |
| void | valueChanged (QtProperty *p, int value) |
| Called when a property of int type changed. 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 |
Widget with propeties of a ScaleWidget for the users to change the presentation of the graphic scale.
Definition at line 97 of file ScalePropertyWidget.h.
| te::qt::widgets::ScalePropertyBrowser::ScalePropertyBrowser | ( | QtTreePropertyBrowser * | pb, |
| ScaleWidget * | wid | ||
| ) |
Constructor.
| pb | Property browser. |
| wid | ScaleWidget object to be used. |
Definition at line 71 of file ScalePropertyWidget.cpp.
References te::qt::widgets::AbstractPropertyItem::addProperty(), allIntermediaryValuesChanged(), footerColorChanged(), footerFontChanged(), te::qt::widgets::ScaleWidget::getAllHeaderIsVisible(), te::qt::widgets::ScaleWidget::getFooterColor(), te::qt::widgets::ScaleWidget::getFooterFont(), te::qt::widgets::ScaleWidget::getHeaderColor(), te::qt::widgets::ScaleWidget::getHeaderFont(), te::common::Singleton< AbstractPropertyManager >::getInstance(), te::qt::widgets::ScaleWidget::getNumberOfIntervals(), te::qt::widgets::ScaleWidget::getNumericScaleIsVisible(), te::qt::widgets::ScaleWidget::getRulerColor(), te::qt::widgets::ScaleWidget::getRulerHeightMM(), GetScalesIcons(), te::qt::widgets::ScaleWidget::getScaleType(), te::qt::widgets::ScaleWidget::getUnit(), te::qt::widgets::ScaleWidget::getUnitsPerGap(), headerColorChanged(), headerFontChanged(), interactHandleChanged(), numberOfIntervalsChanged(), numericScaleVisibilityChanged(), rulerColorChanged(), rulerHeightChanged(), scaleTypeChanged(), unitChanged(), unitsPerGapChanged(), and ~ScalePropertyBrowser().
|
default |
Destructor.
Referenced by ScalePropertyBrowser().
|
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(), 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 |
Emmited when the visibility of the intermediary values of the header was changed.
Referenced by ScalePropertyBrowser(), and valueChanged().
|
signal |
Emmited when the footer color was changed.
Referenced by ScalePropertyBrowser(), and valueChanged().
|
signal |
Emmited when the footer font was changed.
Referenced by ScalePropertyBrowser(), and valueChanged().
|
signal |
Emmited when the header color was changed.
Referenced by ScalePropertyBrowser(), and valueChanged().
|
signal |
Emmited when the header font was changed.
Referenced by ScalePropertyBrowser(), and valueChanged().
|
signal |
Emmited when the interaction mode was changed.
Referenced by ScalePropertyBrowser(), and valueChanged().
|
signal |
Emmited when the number of intervals in the ruler was changed.
Referenced by ScalePropertyBrowser(), and valueChanged().
|
signal |
Emmited when the footer visibility was changed.
Referenced by ScalePropertyBrowser(), and valueChanged().
|
signal |
Emmited when the ruler color was changed.
Referenced by ScalePropertyBrowser(), and valueChanged().
|
signal |
Emmited when the height of the ruler was changed.
Referenced by ScalePropertyBrowser(), and valueChanged().
|
signal |
Emmited when the ruler type was changed.
Referenced by ScalePropertyBrowser(), and valueChanged().
|
protectedinherited |
Definition at line 70 of file AbstractPropertyItem.cpp.
References te::qt::widgets::AbstractPropertyItem::m_propertyBrowser.
Referenced by te::qt::widgets::AbstractPropertyItem::addProperty().
|
signal |
Emmited when the unit of measure of the graphic scale was changed.
Referenced by ScalePropertyBrowser(), and valueChanged().
|
signal |
Emmited when the units per interval was changed.
Referenced by ScalePropertyBrowser(), and valueChanged().
|
virtualslotinherited |
Definition at line 88 of file AbstractPropertyItem.cpp.
|
virtualslotinherited |
Definition at line 98 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.
|
protectedslot |
Called when a property of boolean type changed.
| p | The property that was changed. |
| value | The new value. |
Definition at line 194 of file ScalePropertyWidget.cpp.
References allIntermediaryValuesChanged(), interactHandleChanged(), and numericScaleVisibilityChanged().
|
protectedslot |
Called when a property of color type changed.
| p | The property that was changed. |
| value | The new value. |
Definition at line 204 of file ScalePropertyWidget.cpp.
References footerColorChanged(), headerColorChanged(), and rulerColorChanged().
|
protectedslot |
Called when a property of font type changed.
| p | The property that was changed. |
| value | The new value. |
Definition at line 214 of file ScalePropertyWidget.cpp.
References footerFontChanged(), and headerFontChanged().
|
protectedslot |
Called when a property of int type changed.
| p | The property that was changed. |
| value | The new value. |
Definition at line 222 of file ScalePropertyWidget.cpp.
References numberOfIntervalsChanged(), rulerHeightChanged(), scaleTypeChanged(), unitChanged(), and unitsPerGapChanged().
|
protectedinherited |
Definition at line 97 of file AbstractPropertyItem.h.
Referenced by te::qt::widgets::AbstractPropertyItem::addProperty().
|
protectedinherited |
Definition at line 95 of file AbstractPropertyItem.h.
Referenced by te::qt::widgets::AbstractPropertyItem::addProperty().
|
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().