Skip to content

Commit 305272c

Browse files
author
jef
committed
add advanced selection tools from Jeremy Palmer. Thanks. (apply #2938)
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@14071 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent 1c804db commit 305272c

31 files changed

+1350
-156
lines changed

images/images.qrc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,10 @@
194194
<file>themes/default/mActionSaveMapAsImage.png</file>
195195
<file>themes/default/mActionScaleBar.png</file>
196196
<file>themes/default/mActionSelect.png</file>
197+
<file>themes/default/mActionSelectRectangle.png</file>
198+
<file>themes/default/mActionSelectFreehand.png</file>
199+
<file>themes/default/mActionSelectPolygon.png</file>
200+
<file>themes/default/mActionSelectRadius.png</file>
197201
<file>themes/default/mActionSelectedToTop.png</file>
198202
<file>themes/default/mActionSelectPan.png</file>
199203
<file>themes/default/mActionShowAllLayers.png</file>
224 Bytes
Loading
302 Bytes
Loading
2.01 KB
Loading
1.93 KB
Loading
1.92 KB
Loading
1.84 KB
Loading
Lines changed: 220 additions & 0 deletions
Loading

python/gui/qgisinterface.sip

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,10 @@ class QgisInterface : QObject
193193
virtual QAction *actionZoomIn() = 0;
194194
virtual QAction *actionZoomOut() = 0;
195195
virtual QAction *actionSelect() = 0;
196+
virtual QAction *actionSelectRectangle() = 0;
197+
virtual QAction *actionSelectPolygon() = 0;
198+
virtual QAction *actionSelectFreehand() = 0;
199+
virtual QAction *actionSelectRadius() = 0;
196200
virtual QAction *actionIdentify() = 0;
197201
virtual QAction *actionMeasure() = 0;
198202
virtual QAction *actionMeasureArea() = 0;

python/gui/qgsrubberband.sip

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,10 @@ class QgsRubberBand: QgsMapCanvasItem
5757

5858
/**Return vertex*/
5959
const QgsPoint *getPoint(int i, int j=0) const;
60+
61+
/**Returns the rubberband as a Geometry.
62+
* added in 1.6 */
63+
QgsGeometry* asGeometry();
6064

6165
protected:
6266
virtual void paint(QPainter* p);

0 commit comments

Comments
 (0)