Skip to content

Commit

Permalink
fix lenny build
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@14455 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
jef committed Oct 30, 2010
1 parent 551edf2 commit 52108c1
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 22 deletions.
2 changes: 1 addition & 1 deletion cmake/FindGSL.cmake
Expand Up @@ -122,7 +122,7 @@ IF(GSL_LIBRARIES)

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)
Expand Down
18 changes: 4 additions & 14 deletions cmake/FindQWT.cmake
Expand Up @@ -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)
Expand Down
40 changes: 33 additions & 7 deletions src/core/qgsvectorlayer.h
Expand Up @@ -170,18 +170,30 @@ class CORE_EXPORT QgsVectorLayer : public QgsMapLayer
/** 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 */
Expand Down Expand Up @@ -248,11 +260,23 @@ class CORE_EXPORT QgsVectorLayer : public QgsMapLayer
*/
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
Expand Down Expand Up @@ -358,7 +382,8 @@ class CORE_EXPORT QgsVectorLayer : public QgsMapLayer
/** 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 */
Expand Down Expand Up @@ -407,6 +432,7 @@ class CORE_EXPORT QgsVectorLayer : public QgsMapLayer

/** 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 );

Expand Down

0 comments on commit 52108c1

Please sign in to comment.