diff --git a/python/core/qgis.sip b/python/core/qgis.sip index f9d24d531b5..c3f6fdc7e59 100644 --- a/python/core/qgis.sip +++ b/python/core/qgis.sip @@ -148,6 +148,8 @@ class QGis static const double DEFAULT_IDENTIFY_RADIUS; + static const double DEFAULT_SEARCH_RADIUS_MM; + //! Default threshold between map coordinates and device coordinates for map2pixel simplification static const float DEFAULT_MAPTOPIXEL_THRESHOLD; }; diff --git a/python/gui/qgshighlight.sip b/python/gui/qgshighlight.sip index 68e95d84782..66cd5b56308 100644 --- a/python/gui/qgshighlight.sip +++ b/python/gui/qgshighlight.sip @@ -9,9 +9,15 @@ class QgsHighlight : QgsMapCanvasItem void setColor( const QColor & color ); + void setFillColor( const QColor & fillColor ); + /** Set width. Ignored in feature mode. */ void setWidth( int width ); + void setBuffer( double buffer ); + + void setMinWidth( double width ); + protected: virtual void paint( QPainter* p ); diff --git a/python/gui/qgsmaptool.sip b/python/gui/qgsmaptool.sip index 249456ad0d3..d19466a78a9 100644 --- a/python/gui/qgsmaptool.sip +++ b/python/gui/qgsmaptool.sip @@ -111,6 +111,12 @@ class QgsMapTool : QObject */ QString toolName(); + static double searchRadiusMM(); + + static double searchRadiusMU( const QgsRenderContext& context ); + + static double searchRadiusMU( QgsMapCanvas * canvas ); + signals: //! emit a message void messageEmitted( QString message, QgsMessageBar::MessageLevel = QgsMessageBar::INFO );