[QGIS Commit] r14455 - in trunk/qgis: cmake src/core

svn_qgis at osgeo.org svn_qgis at osgeo.org
Sat Oct 30 10:27:23 EDT 2010


Author: jef
Date: 2010-10-30 07:27:23 -0700 (Sat, 30 Oct 2010)
New Revision: 14455

Modified:
   trunk/qgis/cmake/FindGSL.cmake
   trunk/qgis/cmake/FindQWT.cmake
   trunk/qgis/src/core/qgsvectorlayer.h
Log:
fix lenny build

Modified: trunk/qgis/cmake/FindGSL.cmake
===================================================================
--- trunk/qgis/cmake/FindGSL.cmake	2010-10-30 11:22:42 UTC (rev 14454)
+++ trunk/qgis/cmake/FindGSL.cmake	2010-10-30 14:27:23 UTC (rev 14455)
@@ -122,7 +122,7 @@
 
     SET(GSL_FOUND 1)
     
-    MESSAGE(STATUS "Found GSL: ${GSL_LIB}")
+    MESSAGE(STATUS "Found GSL: ${GSL_LIBRARIES}")
 
   ENDIF(GSL_INCLUDE_DIR OR GSL_CXX_FLAGS)
 ENDIF(GSL_LIBRARIES)

Modified: trunk/qgis/cmake/FindQWT.cmake
===================================================================
--- trunk/qgis/cmake/FindQWT.cmake	2010-10-30 11:22:42 UTC (rev 14454)
+++ trunk/qgis/cmake/FindQWT.cmake	2010-10-30 14:27:23 UTC (rev 14455)
@@ -7,36 +7,26 @@
 # Once run this will define: 
 # 
 # QWT_FOUND       = system has QWT lib
-#
 # QWT_LIBRARY     = full path to the QWT library
+# QWT_INCLUDE_DIR = where to find headers 
 #
-# QWT_INCLUDE_DIR      = where to find headers 
-#
 
 
 #MESSAGE("Searching for QWT")
-FIND_PATH(QWT_INCLUDE_DIR qwt.h 
+FIND_PATH(QWT_INCLUDE_DIR NAMES qwt.h PATHS
   /usr/include
   /usr/local/include
   "$ENV{LIB_DIR}/include" 
   "$ENV{INCLUDE}" 
   PATH_SUFFIXES qwt-qt4 qwt
   )
-FIND_LIBRARY(QWT_LIBRARY NAMES qwt qwt5 PATHS 
+
+FIND_LIBRARY(QWT_LIBRARY NAMES qwt qwt5 qwt-qt4 qwt5-qt4 PATHS 
   /usr/lib
   /usr/local/lib
   "$ENV{LIB_DIR}/lib" 
   "$ENV{LIB}/lib" 
   )
-IF (NOT QWT_LIBRARY)
-  # try using ubuntu lib naming
-  FIND_LIBRARY(QWT_LIBRARY qwt-qt4 PATHS 
-    /usr/lib
-    /usr/local/lib
-    "$ENV{LIB_DIR}/lib" 
-    "$ENV{LIB}/lib" 
-    )
-ENDIF (NOT QWT_LIBRARY)
 
 IF (QWT_INCLUDE_DIR AND QWT_LIBRARY)
   SET(QWT_FOUND TRUE)

Modified: trunk/qgis/src/core/qgsvectorlayer.h
===================================================================
--- trunk/qgis/src/core/qgsvectorlayer.h	2010-10-30 11:22:42 UTC (rev 14454)
+++ trunk/qgis/src/core/qgsvectorlayer.h	2010-10-30 14:27:23 UTC (rev 14455)
@@ -170,18 +170,30 @@
     /** Sets the renderer. If a renderer is already present, it is deleted */
     void setRenderer( QgsRenderer * r );
 
-    /** Return renderer V2. Added in QGIS 1.4 */
+    /** Return renderer V2.
+     * @note added in 1.4 */
     QgsFeatureRendererV2* rendererV2();
-    /** Set renderer V2. Added in QGIS 1.4 */
+    /** Set renderer V2.
+     * @note ddded in 1.4
+     */
     void setRendererV2( QgsFeatureRendererV2* r );
-    /** Return whether using renderer V2. Added in QGIS 1.4 */
+    /** Return whether using renderer V2.
+     * @note added in 1.4
+     */
     bool isUsingRendererV2();
-    /** set whether to use renderer V2 for drawing. Added in QGIS 1.4 */
+    /** set whether to use renderer V2 for drawing.
+     * @note added in 1.4
+     */
     void setUsingRendererV2( bool usingRendererV2 );
 
-    /** Draw layer with renderer V2. Added in QGIS 1.4 */
+    /** Draw layer with renderer V2.
+     * @note added in 1.4
+     */
     void drawRendererV2( QgsRenderContext& rendererContext, bool labeling );
-    /** Draw layer with renderer V2 using symbol levels. Added in QGIS 1.4 */
+
+    /** Draw layer with renderer V2 using symbol levels.
+     * @note added in 1.4
+     */
     void drawRendererV2Levels( QgsRenderContext& rendererContext, bool labeling );
 
     /** Returns point, line or polygon */
@@ -248,11 +260,23 @@
      */
     virtual QString subsetString();
 
+    /**
+     * Select features with or without attributes in a given window.
+     * @param fetchAttributes indizes of attributes to fetch
+     * @param rect window (QgsRectangle() for all)
+     * @param fetchGeometry fetch features with geometry
+     * @param useIntersect fetch only features that actually intersect the window (not just the bounding box)
+     */
     void select( QgsAttributeList fetchAttributes,
                  QgsRectangle rect = QgsRectangle(),
                  bool fetchGeometry = true,
                  bool useIntersect = false );
 
+    /**
+     * fetch a feature (after select)
+     * @param feature buffer to read the feature into
+     * @return true, if a feature was fetched, false, if there are no more features
+     */
     bool nextFeature( QgsFeature& feature );
 
     /**Gets the feature at the given feature id. Considers the changed, added, deleted and permanent features
@@ -358,7 +382,8 @@
     /** Returns true if the provider is in editing mode */
     virtual bool isEditable() const;
 
-    /** Returns true if the provider is in read-only mode */
+    /** Returns true if the provider is in read-only mode
+     * @note added in 1.6 */
     virtual bool isReadOnly() const;
 
     /** Returns true if the provider has been modified since the last commit */
@@ -407,6 +432,7 @@
 
     /** Make layer read-only (editing disabled) or not
      *  @return false if the layer is in editing yet
+     *  @note added in 1.6
      */
     bool setReadOnly( bool readonly = true );
 



More information about the QGIS-commit mailing list