mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-15 00:04:00 -04:00
QWT now required
git-svn-id: http://svn.osgeo.org/qgis/trunk@14317 c8812cc2-4d05-0410-92ff-de0c093fc19c
This commit is contained in:
parent
25c2e8ffbd
commit
5efadc10d2
@ -58,8 +58,6 @@ IF (WITH_POSTGRESQL)
|
|||||||
SET (POSTGRESQL_PREFIX "" CACHE PATH "Path to POSTGRESQL base directory")
|
SET (POSTGRESQL_PREFIX "" CACHE PATH "Path to POSTGRESQL base directory")
|
||||||
ENDIF (WITH_POSTGRESQL)
|
ENDIF (WITH_POSTGRESQL)
|
||||||
|
|
||||||
SET (WITH_QWT TRUE CACHE BOOL "Determines whether QWT support should be included (currently used for GPS widget)")
|
|
||||||
|
|
||||||
SET (WITH_SPATIALITE TRUE CACHE BOOL "Determines whether SPATIALITE support should be built")
|
SET (WITH_SPATIALITE TRUE CACHE BOOL "Determines whether SPATIALITE support should be built")
|
||||||
|
|
||||||
IF (WITH_SPATIALITE)
|
IF (WITH_SPATIALITE)
|
||||||
@ -137,6 +135,7 @@ FIND_PACKAGE(Expat) # GPS importer plugin
|
|||||||
FIND_PACKAGE(GSL) # Georeferencer
|
FIND_PACKAGE(GSL) # Georeferencer
|
||||||
FIND_PACKAGE(GEOS)
|
FIND_PACKAGE(GEOS)
|
||||||
FIND_PACKAGE(GDAL)
|
FIND_PACKAGE(GDAL)
|
||||||
|
FIND_PACKAGE(QWT REQUIRED)
|
||||||
|
|
||||||
IF (NOT WITH_INTERNAL_SPATIALITE)
|
IF (NOT WITH_INTERNAL_SPATIALITE)
|
||||||
FIND_PACKAGE(Sqlite3)
|
FIND_PACKAGE(Sqlite3)
|
||||||
@ -149,9 +148,6 @@ ENDIF (NOT WITH_INTERNAL_SPATIALITE)
|
|||||||
IF (WITH_POSTGRESQL)
|
IF (WITH_POSTGRESQL)
|
||||||
FIND_PACKAGE(Postgres) # PostgreSQL provider, SPIT plugin
|
FIND_PACKAGE(Postgres) # PostgreSQL provider, SPIT plugin
|
||||||
ENDIF (WITH_POSTGRESQL)
|
ENDIF (WITH_POSTGRESQL)
|
||||||
IF (WITH_QWT)
|
|
||||||
FIND_PACKAGE(QWT)
|
|
||||||
ENDIF(WITH_QWT)
|
|
||||||
|
|
||||||
IF (WITH_SPATIALITE AND NOT WITH_INTERNAL_SPATIALITE)
|
IF (WITH_SPATIALITE AND NOT WITH_INTERNAL_SPATIALITE)
|
||||||
FIND_PACKAGE(SPATIALITE)
|
FIND_PACKAGE(SPATIALITE)
|
||||||
|
2
INSTALL
2
INSTALL
@ -185,6 +185,7 @@ for the existence of cmake and provides some clues to build QGIS.
|
|||||||
* GEOS >= 3.0
|
* GEOS >= 3.0
|
||||||
* Sqlite3 >= 3.0.0
|
* Sqlite3 >= 3.0.0
|
||||||
* GDAL/OGR >= 1.4.x
|
* GDAL/OGR >= 1.4.x
|
||||||
|
* Qwt >= 5.0
|
||||||
|
|
||||||
'''Optional dependencies:'''
|
'''Optional dependencies:'''
|
||||||
* for GRASS plugin - GRASS >= 6.0.0 (libraries compiled with exceptions support)
|
* for GRASS plugin - GRASS >= 6.0.0 (libraries compiled with exceptions support)
|
||||||
@ -193,7 +194,6 @@ for the existence of cmake and provides some clues to build QGIS.
|
|||||||
* for gps plugin - expat >= 1.95
|
* for gps plugin - expat >= 1.95
|
||||||
* for mapserver export and PyQGIS - Python >= 2.3 (2.5+ preferred)
|
* for mapserver export and PyQGIS - Python >= 2.3 (2.5+ preferred)
|
||||||
* for PyQGIS - SIP >= 4.8, PyQt >= must match Qt version
|
* for PyQGIS - SIP >= 4.8, PyQt >= must match Qt version
|
||||||
* for GPS tracking - Qwt >= 5.0
|
|
||||||
|
|
||||||
'''Recommended runtime deps:'''
|
'''Recommended runtime deps:'''
|
||||||
* for gps plugin - gpsbabel
|
* for gps plugin - gpsbabel
|
||||||
|
@ -101,6 +101,7 @@ for the existence of cmake and provides some clues to build QGIS.
|
|||||||
* GEOS >= 3.0
|
* GEOS >= 3.0
|
||||||
* Sqlite3 >= 3.0.0
|
* Sqlite3 >= 3.0.0
|
||||||
* GDAL/OGR >= 1.4.x
|
* GDAL/OGR >= 1.4.x
|
||||||
|
* Qwt >= 5.0
|
||||||
|
|
||||||
'''Optional dependencies:'''
|
'''Optional dependencies:'''
|
||||||
* for GRASS plugin - GRASS >= 6.0.0 (libraries compiled with exceptions support)
|
* for GRASS plugin - GRASS >= 6.0.0 (libraries compiled with exceptions support)
|
||||||
@ -109,7 +110,6 @@ for the existence of cmake and provides some clues to build QGIS.
|
|||||||
* for gps plugin - expat >= 1.95
|
* for gps plugin - expat >= 1.95
|
||||||
* for mapserver export and PyQGIS - Python >= 2.3 (2.5+ preferred)
|
* for mapserver export and PyQGIS - Python >= 2.3 (2.5+ preferred)
|
||||||
* for PyQGIS - SIP >= 4.8, PyQt >= must match Qt version
|
* for PyQGIS - SIP >= 4.8, PyQt >= must match Qt version
|
||||||
* for GPS tracking - Qwt >= 5.0
|
|
||||||
|
|
||||||
'''Recommended runtime deps:'''
|
'''Recommended runtime deps:'''
|
||||||
* for gps plugin - gpsbabel
|
* for gps plugin - gpsbabel
|
||||||
|
@ -127,6 +127,22 @@ SET(QGIS_APP_SRCS
|
|||||||
attributetable/qgsattributetablefiltermodel.cpp
|
attributetable/qgsattributetablefiltermodel.cpp
|
||||||
attributetable/qgsattributetableidcolumnpair.cpp
|
attributetable/qgsattributetableidcolumnpair.cpp
|
||||||
attributetable/qgsattributetabledelegate.cpp
|
attributetable/qgsattributetabledelegate.cpp
|
||||||
|
|
||||||
|
gps/qgsgpsinformationwidget.cpp
|
||||||
|
gps/qgsgpsmarker.cpp
|
||||||
|
gps/qwtpolar/qwt_polar_canvas.cpp
|
||||||
|
gps/qwtpolar/qwt_polar_curve.cpp
|
||||||
|
gps/qwtpolar/qwt_polar_fitter.cpp
|
||||||
|
gps/qwtpolar/qwt_polar_grid.cpp
|
||||||
|
gps/qwtpolar/qwt_polar_itemdict.cpp
|
||||||
|
gps/qwtpolar/qwt_polar_item.cpp
|
||||||
|
gps/qwtpolar/qwt_polar_layout.cpp
|
||||||
|
gps/qwtpolar/qwt_polar_magnifier.cpp
|
||||||
|
gps/qwtpolar/qwt_polar_marker.cpp
|
||||||
|
gps/qwtpolar/qwt_polar_panner.cpp
|
||||||
|
gps/qwtpolar/qwt_polar_plot.cpp
|
||||||
|
gps/qwtpolar/qwt_polar_point.cpp
|
||||||
|
gps/qwtpolar/qwt_polar_spectrogram.cpp
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
@ -231,40 +247,13 @@ SET (QGIS_APP_MOC_HDRS
|
|||||||
attributetable/qgsattributetabledialog.h
|
attributetable/qgsattributetabledialog.h
|
||||||
attributetable/qgsattributetabledelegate.h
|
attributetable/qgsattributetabledelegate.h
|
||||||
|
|
||||||
|
gps/qgsgpsinformationwidget.h
|
||||||
|
gps/qwtpolar/qwt_polar_canvas.h
|
||||||
|
gps/qwtpolar/qwt_polar_magnifier.h
|
||||||
|
gps/qwtpolar/qwt_polar_panner.h
|
||||||
|
gps/qwtpolar/qwt_polar_plot.h
|
||||||
)
|
)
|
||||||
|
|
||||||
IF( QWT_FOUND )
|
|
||||||
ADD_DEFINITIONS(-DHAVE_QWT)
|
|
||||||
|
|
||||||
SET(QGIS_APP_SRCS
|
|
||||||
${QGIS_APP_SRCS}
|
|
||||||
gps/qgsgpsinformationwidget.cpp
|
|
||||||
gps/qgsgpsmarker.cpp
|
|
||||||
gps/qwtpolar/qwt_polar_canvas.cpp
|
|
||||||
gps/qwtpolar/qwt_polar_curve.cpp
|
|
||||||
gps/qwtpolar/qwt_polar_fitter.cpp
|
|
||||||
gps/qwtpolar/qwt_polar_grid.cpp
|
|
||||||
gps/qwtpolar/qwt_polar_itemdict.cpp
|
|
||||||
gps/qwtpolar/qwt_polar_item.cpp
|
|
||||||
gps/qwtpolar/qwt_polar_layout.cpp
|
|
||||||
gps/qwtpolar/qwt_polar_magnifier.cpp
|
|
||||||
gps/qwtpolar/qwt_polar_marker.cpp
|
|
||||||
gps/qwtpolar/qwt_polar_panner.cpp
|
|
||||||
gps/qwtpolar/qwt_polar_plot.cpp
|
|
||||||
gps/qwtpolar/qwt_polar_point.cpp
|
|
||||||
gps/qwtpolar/qwt_polar_spectrogram.cpp
|
|
||||||
)
|
|
||||||
|
|
||||||
SET (QGIS_APP_MOC_HDRS
|
|
||||||
${QGIS_APP_MOC_HDRS}
|
|
||||||
gps/qgsgpsinformationwidget.h
|
|
||||||
gps/qwtpolar/qwt_polar_canvas.h
|
|
||||||
gps/qwtpolar/qwt_polar_magnifier.h
|
|
||||||
gps/qwtpolar/qwt_polar_panner.h
|
|
||||||
gps/qwtpolar/qwt_polar_plot.h
|
|
||||||
)
|
|
||||||
ENDIF( QWT_FOUND )
|
|
||||||
|
|
||||||
IF (POSTGRES_FOUND)
|
IF (POSTGRES_FOUND)
|
||||||
IF(HAVE_PGCONFIG)
|
IF(HAVE_PGCONFIG)
|
||||||
ADD_DEFINITIONS(-DHAVE_PGCONFIG=1)
|
ADD_DEFINITIONS(-DHAVE_PGCONFIG=1)
|
||||||
@ -388,13 +377,11 @@ TARGET_LINK_LIBRARIES(qgis
|
|||||||
qgis_gui
|
qgis_gui
|
||||||
)
|
)
|
||||||
|
|
||||||
IF( QWT_FOUND )
|
IF( WIN32 )
|
||||||
IF( WIN32 )
|
ADD_DEFINITIONS(-DQWT_DLL)
|
||||||
ADD_DEFINITIONS(-DQWT_DLL)
|
ENDIF( WIN32 )
|
||||||
ENDIF( WIN32 )
|
INCLUDE_DIRECTORIES(${QWT_INCLUDE_DIR})
|
||||||
INCLUDE_DIRECTORIES(${QWT_INCLUDE_DIR})
|
TARGET_LINK_LIBRARIES(qgis ${QWT_LIBRARY})
|
||||||
TARGET_LINK_LIBRARIES(qgis ${QWT_LIBRARY})
|
|
||||||
ENDIF( QWT_FOUND )
|
|
||||||
|
|
||||||
IF(NOT WITH_INTERNAL_SPATIALITE)
|
IF(NOT WITH_INTERNAL_SPATIALITE)
|
||||||
TARGET_LINK_LIBRARIES(qgis ${SQLITE_LIBRARY})
|
TARGET_LINK_LIBRARIES(qgis ${SQLITE_LIBRARY})
|
||||||
|
@ -160,10 +160,7 @@
|
|||||||
#include "qgstilescalewidget.h"
|
#include "qgstilescalewidget.h"
|
||||||
#include "qgsquerybuilder.h"
|
#include "qgsquerybuilder.h"
|
||||||
#include "qgsattributeaction.h"
|
#include "qgsattributeaction.h"
|
||||||
|
|
||||||
#ifdef HAVE_QWT
|
|
||||||
#include "qgsgpsinformationwidget.h"
|
#include "qgsgpsinformationwidget.h"
|
||||||
#endif
|
|
||||||
|
|
||||||
//
|
//
|
||||||
// Gdal/Ogr includes
|
// Gdal/Ogr includes
|
||||||
@ -372,9 +369,7 @@ QgisApp::QgisApp( QSplashScreen *splash, bool restorePlugins, QWidget * parent,
|
|||||||
#ifdef Q_OS_WIN
|
#ifdef Q_OS_WIN
|
||||||
, mSkipNextContextMenuEvent( 0 )
|
, mSkipNextContextMenuEvent( 0 )
|
||||||
#endif
|
#endif
|
||||||
#ifdef HAVE_QWT
|
|
||||||
, mpGpsWidget( NULL )
|
, mpGpsWidget( NULL )
|
||||||
#endif
|
|
||||||
{
|
{
|
||||||
if ( smInstance )
|
if ( smInstance )
|
||||||
{
|
{
|
||||||
@ -643,13 +638,11 @@ void QgisApp::readSettings()
|
|||||||
{
|
{
|
||||||
showTileScale();
|
showTileScale();
|
||||||
}
|
}
|
||||||
#if HAVE_QWT
|
|
||||||
// Restore state of GPS Tracker
|
// Restore state of GPS Tracker
|
||||||
if ( settings.value( "/gps/widgetEnabled", false ).toBool() )
|
if ( settings.value( "/gps/widgetEnabled", false ).toBool() )
|
||||||
{
|
{
|
||||||
showGpsTool();
|
showGpsTool();
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -1084,13 +1077,11 @@ void QgisApp::createActions()
|
|||||||
connect( mActionTileScale, SIGNAL( triggered() ), this, SLOT( showTileScale() ) );
|
connect( mActionTileScale, SIGNAL( triggered() ), this, SLOT( showTileScale() ) );
|
||||||
mActionTileScale->setEnabled( true );
|
mActionTileScale->setEnabled( true );
|
||||||
|
|
||||||
#ifdef HAVE_QWT
|
|
||||||
mActionGpsTool = new QAction( getThemeIcon( "mActionGpsTool.png" ), tr( "Live GPS tracking" ), this );
|
mActionGpsTool = new QAction( getThemeIcon( "mActionGpsTool.png" ), tr( "Live GPS tracking" ), this );
|
||||||
shortcuts->registerAction( mActionGpsTool, tr( "", "Live GPS tracking" ) );
|
shortcuts->registerAction( mActionGpsTool, tr( "", "Live GPS tracking" ) );
|
||||||
mActionGpsTool->setStatusTip( tr( "Show GPS tool" ) );
|
mActionGpsTool->setStatusTip( tr( "Show GPS tool" ) );
|
||||||
connect( mActionGpsTool, SIGNAL( triggered() ), this, SLOT( showGpsTool() ) );
|
connect( mActionGpsTool, SIGNAL( triggered() ), this, SLOT( showGpsTool() ) );
|
||||||
mActionGpsTool->setEnabled( true );
|
mActionGpsTool->setEnabled( true );
|
||||||
#endif
|
|
||||||
|
|
||||||
mActionLayerProperties = new QAction( tr( "Properties..." ), this );
|
mActionLayerProperties = new QAction( tr( "Properties..." ), this );
|
||||||
shortcuts->registerAction( mActionLayerProperties );
|
shortcuts->registerAction( mActionLayerProperties );
|
||||||
@ -1501,9 +1492,7 @@ void QgisApp::createMenus()
|
|||||||
|
|
||||||
mViewMenu->addAction( mActionTileScale );
|
mViewMenu->addAction( mActionTileScale );
|
||||||
|
|
||||||
#ifdef HAVE_QWT
|
|
||||||
mViewMenu->addAction( mActionGpsTool );
|
mViewMenu->addAction( mActionGpsTool );
|
||||||
#endif
|
|
||||||
|
|
||||||
// Layers Menu
|
// Layers Menu
|
||||||
|
|
||||||
@ -2426,7 +2415,6 @@ void QgisApp::saveWindowState()
|
|||||||
settings.setValue( "/UI/tileScaleEnabled", false );
|
settings.setValue( "/UI/tileScaleEnabled", false );
|
||||||
}
|
}
|
||||||
|
|
||||||
#if HAVE_QWT
|
|
||||||
// Persist state of GPS Tracker
|
// Persist state of GPS Tracker
|
||||||
if ( mpGpsWidget )
|
if ( mpGpsWidget )
|
||||||
{
|
{
|
||||||
@ -2437,7 +2425,6 @@ void QgisApp::saveWindowState()
|
|||||||
{
|
{
|
||||||
settings.setValue( "/gps/widgetEnabled", false );
|
settings.setValue( "/gps/widgetEnabled", false );
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
||||||
QgsPluginRegistry::instance()->unloadAll();
|
QgsPluginRegistry::instance()->unloadAll();
|
||||||
}
|
}
|
||||||
@ -2497,11 +2484,7 @@ void QgisApp::about()
|
|||||||
versionString += tr( "\nThis copy of QGIS has been built without SpatiaLite support." );
|
versionString += tr( "\nThis copy of QGIS has been built without SpatiaLite support." );
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef HAVE_QWT
|
versionString += tr( "\nThis copy of QGIS has been built with QWT %1." ).arg( QWT_VERSION_STR );
|
||||||
versionString += tr( "\nThis copy of QGIS has been built with QWT support (%1)." ).arg( QWT_VERSION_STR );
|
|
||||||
#else
|
|
||||||
versionString += tr( "\nThis copy of QGIS has been built without QWT support." );
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef QGISDEBUG
|
#ifdef QGISDEBUG
|
||||||
versionString += tr( "\nThis copy of QGIS writes debugging output." );
|
versionString += tr( "\nThis copy of QGIS writes debugging output." );
|
||||||
@ -5021,7 +5004,6 @@ void QgisApp::removeLayer()
|
|||||||
|
|
||||||
void QgisApp::showGpsTool()
|
void QgisApp::showGpsTool()
|
||||||
{
|
{
|
||||||
#ifdef HAVE_QWT
|
|
||||||
if ( !mpGpsWidget )
|
if ( !mpGpsWidget )
|
||||||
{
|
{
|
||||||
mpGpsWidget = new QgsGPSInformationWidget( mMapCanvas );
|
mpGpsWidget = new QgsGPSInformationWidget( mMapCanvas );
|
||||||
@ -5040,7 +5022,6 @@ void QgisApp::showGpsTool()
|
|||||||
{
|
{
|
||||||
mpGpsDock->setVisible( mpGpsDock->isHidden() );
|
mpGpsDock->setVisible( mpGpsDock->isHidden() );
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void QgisApp::showTileScale()
|
void QgisApp::showTileScale()
|
||||||
|
@ -67,9 +67,7 @@ class QNetworkReply;
|
|||||||
class QNetworkProxy;
|
class QNetworkProxy;
|
||||||
class QAuthenticator;
|
class QAuthenticator;
|
||||||
|
|
||||||
#ifdef HAVE_QWT
|
|
||||||
class QgsGPSInformationWidget;
|
class QgsGPSInformationWidget;
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <QMainWindow>
|
#include <QMainWindow>
|
||||||
#include <QToolBar>
|
#include <QToolBar>
|
||||||
@ -285,9 +283,7 @@ class QgisApp : public QMainWindow
|
|||||||
QAction *actionLayerSelectionSaveAs() { return mActionLayerSelectionSaveAs; }
|
QAction *actionLayerSelectionSaveAs() { return mActionLayerSelectionSaveAs; }
|
||||||
QAction *actionRemoveLayer() { return mActionRemoveLayer; }
|
QAction *actionRemoveLayer() { return mActionRemoveLayer; }
|
||||||
QAction *actionTileScale() { return mActionTileScale; }
|
QAction *actionTileScale() { return mActionTileScale; }
|
||||||
#ifdef HAVE_QWT
|
|
||||||
QAction *actionGpsTool() { return mActionGpsTool; }
|
QAction *actionGpsTool() { return mActionGpsTool; }
|
||||||
#endif
|
|
||||||
QAction *actionLayerProperties() { return mActionLayerProperties; }
|
QAction *actionLayerProperties() { return mActionLayerProperties; }
|
||||||
QAction *actionLayerSubsetString() { return mActionLayerSubsetString; }
|
QAction *actionLayerSubsetString() { return mActionLayerSubsetString; }
|
||||||
QAction *actionLayerSeparator2() { return mActionLayerSeparator2; }
|
QAction *actionLayerSeparator2() { return mActionLayerSeparator2; }
|
||||||
@ -944,9 +940,7 @@ class QgisApp : public QMainWindow
|
|||||||
QAction *mActionLayerSelectionSaveAs;
|
QAction *mActionLayerSelectionSaveAs;
|
||||||
QAction *mActionRemoveLayer;
|
QAction *mActionRemoveLayer;
|
||||||
QAction *mActionTileScale;
|
QAction *mActionTileScale;
|
||||||
#ifdef HAVE_QWT
|
|
||||||
QAction *mActionGpsTool;
|
QAction *mActionGpsTool;
|
||||||
#endif
|
|
||||||
QAction *mActionLayerProperties;
|
QAction *mActionLayerProperties;
|
||||||
QAction *mActionLayerSubsetString;
|
QAction *mActionLayerSubsetString;
|
||||||
QAction *mActionLayerSeparator2;
|
QAction *mActionLayerSeparator2;
|
||||||
@ -1009,9 +1003,7 @@ class QgisApp : public QMainWindow
|
|||||||
QDockWidget *mLegendDock;
|
QDockWidget *mLegendDock;
|
||||||
QDockWidget *mOverviewDock;
|
QDockWidget *mOverviewDock;
|
||||||
QDockWidget *mpTileScaleDock;
|
QDockWidget *mpTileScaleDock;
|
||||||
#ifdef HAVE_QWT
|
|
||||||
QDockWidget *mpGpsDock;
|
QDockWidget *mpGpsDock;
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef Q_WS_MAC
|
#ifdef Q_WS_MAC
|
||||||
//! Window menu action to select this window
|
//! Window menu action to select this window
|
||||||
@ -1172,10 +1164,8 @@ class QgisApp : public QMainWindow
|
|||||||
int mSkipNextContextMenuEvent; // ugly hack
|
int mSkipNextContextMenuEvent; // ugly hack
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef HAVE_QWT
|
|
||||||
//! Persistent GPS toolbox
|
//! Persistent GPS toolbox
|
||||||
QgsGPSInformationWidget * mpGpsWidget;
|
QgsGPSInformationWidget * mpGpsWidget;
|
||||||
#endif
|
|
||||||
|
|
||||||
QgsPalLabeling* mLBL;
|
QgsPalLabeling* mLBL;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user