[QGIS Commit] r12693 - trunk/qgis/src/app

svn_qgis at osgeo.org svn_qgis at osgeo.org
Thu Jan 7 12:32:58 EST 2010


Author: timlinux
Date: 2010-01-07 12:32:58 -0500 (Thu, 07 Jan 2010)
New Revision: 12693

Modified:
   trunk/qgis/src/app/qgsmaptooladdfeature.h
Log:
[FEATURE] GPS Tracking widget added. This is a bug fix for a missing file that should have been updated in last commit

Modified: trunk/qgis/src/app/qgsmaptooladdfeature.h
===================================================================
--- trunk/qgis/src/app/qgsmaptooladdfeature.h	2010-01-07 17:06:16 UTC (rev 12692)
+++ trunk/qgis/src/app/qgsmaptooladdfeature.h	2010-01-07 17:32:58 UTC (rev 12693)
@@ -21,12 +21,15 @@
 {
     Q_OBJECT
   public:
-    QgsMapToolAddFeature( QgsMapCanvas* canvas, enum CaptureTool tool );
+    QgsMapToolAddFeature( QgsMapCanvas* canvas, enum CaptureMode tool );
     virtual ~QgsMapToolAddFeature();
     void canvasReleaseEvent( QMouseEvent * e );
-  private:
+    
     /**Modifies geometry to avoid intersections with the layers specified in project properties
-    @return 0 in case of success, 1 if geometry is not of polygon type, 2 if avoid intersection would change the geometry type, \
-    3 other error during intersection removal*/
-    int avoidIntersectons( QgsGeometry* g );
+    @return 0 in case of success, 
+    @return 1 if geometry is not of polygon type, 
+    @return 2 if avoid intersection would change the geometry type, \
+    3 other error during intersection removal
+    @note Consider moving this into analysis lib since it is now used by QgsGpsInformation too. */
+    static int avoidIntersectons( QgsGeometry* g );
 };



More information about the QGIS-commit mailing list