Skip to content

Commit

Permalink
debian packaging update
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk@13438 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
jef committed May 8, 2010
1 parent 94ec3d0 commit 8d89272
Show file tree
Hide file tree
Showing 14 changed files with 62 additions and 6,898 deletions.
3 changes: 2 additions & 1 deletion debian/changelog
Expand Up @@ -8,8 +8,9 @@ qgis (1.5.0) UNRELEASED; urgency=low
libgdal1-$VERSION-grass libgdal1-$VERSION-grass
* add spatialquery plugin * add spatialquery plugin
* include qgis.g.browser in grass plugin * include qgis.g.browser in grass plugin
* drop symbol tracking, C++ ABIs change too frequently


-- Jürgen E. Fischer <jef@norbit.de> Fri, 07 May 2010 13:11:22 +0200 -- Jürgen E. Fischer <jef@norbit.de> Sat, 08 May 2010 13:26:13 +0200


qgis (1.4.0) UNRELEASED; urgency=low qgis (1.4.0) UNRELEASED; urgency=low


Expand Down
6,828 changes: 0 additions & 6,828 deletions debian/libqgis{QGIS_ABI}.symbols

This file was deleted.

1 change: 1 addition & 0 deletions scripts/spelling.dat
Expand Up @@ -284,6 +284,7 @@ logile:logfile
protecion:protection protecion:protection
aritmetic:arithmetic aritmetic:arithmetic
futhermore:furthermore futhermore:furthermore
futher:further
initializiation:initialization initializiation:initialization
pronouce:pronounce pronouce:pronounce
expecially:especially expecially:especially
Expand Down
21 changes: 12 additions & 9 deletions src/app/qgisapp.cpp
Expand Up @@ -154,9 +154,12 @@
#include "qgsattributetabledialog.h" #include "qgsattributetabledialog.h"
#include "qgsvectorfilewriter.h" #include "qgsvectorfilewriter.h"
#include "qgscredentialdialog.h" #include "qgscredentialdialog.h"
#include "qgsnetworkproxyfactory.h"
#include "qgstilescalewidget.h" #include "qgstilescalewidget.h"


#if QT_VERSION >= 0x40500
#include "qgsnetworkproxyfactory.h"
#endif

#ifdef HAVE_QWT #ifdef HAVE_QWT
#include "qgsgpsinformationwidget.h" #include "qgsgpsinformationwidget.h"
#endif #endif
Expand Down Expand Up @@ -362,9 +365,6 @@ QgisApp::QgisApp( QSplashScreen *splash, bool restorePlugins, QWidget * parent,
, mPythonUtils( NULL ) , mPythonUtils( NULL )
, mNAM( NULL ) , mNAM( NULL )
, mpTileScaleWidget( NULL ) , mpTileScaleWidget( NULL )
#if QT_VERSION >= 0x40500
, mProxyFactory( NULL )
#endif
#ifdef HAVE_QWT #ifdef HAVE_QWT
, mpGpsWidget( NULL ) , mpGpsWidget( NULL )
#endif #endif
Expand Down Expand Up @@ -6627,13 +6627,16 @@ void QgisApp::namUpdate()
} }


#if QT_VERSION >= 0x40500 #if QT_VERSION >= 0x40500
if ( !mProxyFactory ) if( !mNAM->proxyFactory() )
{ {
mProxyFactory = new QgsNetworkProxyFactory(); mNAM->setProxyFactory( new QgsNetworkProxyFactory() );
mNAM->setProxyFactory( mProxyFactory ); }
}


mProxyFactory->setProxyAndExcludes( proxy, excludes ); QgsNetworkProxyFactory *pf = dynamic_cast<QgsNetworkProxyFactory *>( mNAM->proxyFactory() );
if( pf )
{
pf->setProxyAndExcludes( proxy, excludes );
}


QNetworkDiskCache *cache = qobject_cast<QNetworkDiskCache*>( nam()->cache() ); QNetworkDiskCache *cache = qobject_cast<QNetworkDiskCache*>( nam()->cache() );
if ( !cache ) if ( !cache )
Expand Down
8 changes: 0 additions & 8 deletions src/app/qgisapp.h
Expand Up @@ -80,10 +80,6 @@ class QgsGPSInformationWidget;
#include "qgsfeature.h" #include "qgsfeature.h"
#include "qgspoint.h" #include "qgspoint.h"


#if QT_VERSION >= 0x40500
class QgsNetworkProxyFactory;
#endif

/*! \class QgisApp /*! \class QgisApp
* \brief Main window for the Qgis application * \brief Main window for the Qgis application
*/ */
Expand Down Expand Up @@ -1100,10 +1096,6 @@ class QgisApp : public QMainWindow
//! Persistent tile scale slider //! Persistent tile scale slider
QgsTileScaleWidget * mpTileScaleWidget; QgsTileScaleWidget * mpTileScaleWidget;


#if QT_VERSION >= 0x40500
QgsNetworkProxyFactory *mProxyFactory;
#endif

int mLastComposerId; int mLastComposerId;


#ifdef HAVE_QWT #ifdef HAVE_QWT
Expand Down
18 changes: 9 additions & 9 deletions src/app/qgsmaptoolannotation.cpp
Expand Up @@ -25,7 +25,7 @@
#include <QDialog> #include <QDialog>
#include <QMouseEvent> #include <QMouseEvent>


QgsMapToolAnnotation::QgsMapToolAnnotation( QgsMapCanvas* canvas ): QgsMapTool( canvas ), \ QgsMapToolAnnotation::QgsMapToolAnnotation( QgsMapCanvas* canvas ): QgsMapTool( canvas ),
mActiveItem( 0 ), mCurrentMoveAction( QgsAnnotationItem::NoAction ), mLastMousePosition( 0, 0 ) mActiveItem( 0 ), mCurrentMoveAction( QgsAnnotationItem::NoAction ), mLastMousePosition( 0, 0 )
{ {
mCursor = QCursor( Qt::ArrowCursor ); mCursor = QCursor( Qt::ArrowCursor );
Expand Down Expand Up @@ -158,26 +158,26 @@ void QgsMapToolAnnotation::canvasMoveEvent( QMouseEvent * e )
double xmax = xmin + size.width(); double xmax = xmin + size.width();
double ymax = ymin + size.height(); double ymax = ymin + size.height();


if ( mCurrentMoveAction == QgsAnnotationItem::ResizeFrameRight || \ if ( mCurrentMoveAction == QgsAnnotationItem::ResizeFrameRight ||
mCurrentMoveAction == QgsAnnotationItem::ResizeFrameRightDown || \ mCurrentMoveAction == QgsAnnotationItem::ResizeFrameRightDown ||
mCurrentMoveAction == QgsAnnotationItem::ResizeFrameRightUp ) mCurrentMoveAction == QgsAnnotationItem::ResizeFrameRightUp )
{ {
xmax += e->posF().x() - mLastMousePosition.x(); xmax += e->posF().x() - mLastMousePosition.x();
} }
if ( mCurrentMoveAction == QgsAnnotationItem::ResizeFrameLeft || \ if ( mCurrentMoveAction == QgsAnnotationItem::ResizeFrameLeft ||
mCurrentMoveAction == QgsAnnotationItem::ResizeFrameLeftDown || \ mCurrentMoveAction == QgsAnnotationItem::ResizeFrameLeftDown ||
mCurrentMoveAction == QgsAnnotationItem::ResizeFrameLeftUp ) mCurrentMoveAction == QgsAnnotationItem::ResizeFrameLeftUp )
{ {
xmin += e->posF().x() - mLastMousePosition.x(); xmin += e->posF().x() - mLastMousePosition.x();
} }
if ( mCurrentMoveAction == QgsAnnotationItem::ResizeFrameUp || \ if ( mCurrentMoveAction == QgsAnnotationItem::ResizeFrameUp ||
mCurrentMoveAction == QgsAnnotationItem::ResizeFrameLeftUp || \ mCurrentMoveAction == QgsAnnotationItem::ResizeFrameLeftUp ||
mCurrentMoveAction == QgsAnnotationItem::ResizeFrameRightUp ) mCurrentMoveAction == QgsAnnotationItem::ResizeFrameRightUp )
{ {
ymin += e->posF().y() - mLastMousePosition.y(); ymin += e->posF().y() - mLastMousePosition.y();
} }
if ( mCurrentMoveAction == QgsAnnotationItem::ResizeFrameDown || \ if ( mCurrentMoveAction == QgsAnnotationItem::ResizeFrameDown ||
mCurrentMoveAction == QgsAnnotationItem::ResizeFrameLeftDown || \ mCurrentMoveAction == QgsAnnotationItem::ResizeFrameLeftDown ||
mCurrentMoveAction == QgsAnnotationItem::ResizeFrameRightDown ) mCurrentMoveAction == QgsAnnotationItem::ResizeFrameRightDown )
{ {
ymax += e->posF().y() - mLastMousePosition.y(); ymax += e->posF().y() - mLastMousePosition.y();
Expand Down
4 changes: 2 additions & 2 deletions src/app/qgsmaptoolrotatepointsymbols.cpp
Expand Up @@ -24,8 +24,8 @@
#include <QMessageBox> #include <QMessageBox>
#include <QMouseEvent> #include <QMouseEvent>


QgsMapToolRotatePointSymbols::QgsMapToolRotatePointSymbols( QgsMapCanvas* canvas ): QgsMapToolEdit( canvas ), \ QgsMapToolRotatePointSymbols::QgsMapToolRotatePointSymbols( QgsMapCanvas* canvas ): QgsMapToolEdit( canvas ),
mActiveLayer( 0 ), mFeatureNumber( 0 ), mCurrentMouseAzimut( 0.0 ), mCurrentRotationFeature( 0.0 ), \ mActiveLayer( 0 ), mFeatureNumber( 0 ), mCurrentMouseAzimut( 0.0 ), mCurrentRotationFeature( 0.0 ),
mRotating( false ), mRotationItem( 0 ), mCtrlPressed( false ) mRotating( false ), mRotationItem( 0 ), mCtrlPressed( false )
{ {


Expand Down
2 changes: 1 addition & 1 deletion src/app/qgsmaptoolsimplify.cpp
Expand Up @@ -166,7 +166,7 @@ bool QgsMapToolSimplify::calculateSliderBoudaries()
{ {
count++; count++;
if ( count == 30 && !maximized ) if ( count == 30 && !maximized )
{ //special case when tolerance is tool low to be correct so it's similat to 0 { //special case when tolerance is too low to be correct so it's near 0
// else in some special cases this algorithm would create infinite loop // else in some special cases this algorithm would create infinite loop
found = true; found = true;
minTolerance = 0; minTolerance = 0;
Expand Down
2 changes: 1 addition & 1 deletion src/app/qgsnetworkproxyfactory.cpp
Expand Up @@ -57,7 +57,7 @@ QList<QNetworkProxy> QgsNetworkProxyFactory::queryProxy( const QNetworkProxyQuer
} }


QgsDebugMsg( QString("using user proxy for %1").arg( url ) ); QgsDebugMsg( QString("using user proxy for %1").arg( url ) );
return QList<QNetworkProxy>() << mProxy; return QList<QNetworkProxy>() << mProxy;
} }


#endif // QT_VERSION >= 0x40500 #endif // QT_VERSION >= 0x40500
6 changes: 1 addition & 5 deletions src/app/qgsnetworkproxyfactory.h
Expand Up @@ -18,12 +18,10 @@
#ifndef QGSNETWORKPROXYFACTORY_H #ifndef QGSNETWORKPROXYFACTORY_H
#define QGSNETWORKPROXYFACTORY_H #define QGSNETWORKPROXYFACTORY_H


#if QT_VERSION >= 0x40500

#include <QNetworkProxyFactory> #include <QNetworkProxyFactory>
#include <QStringList> #include <QStringList>


class QgsNetworkProxyFactory : public QNetworkProxyFactory class QgsNetworkProxyFactory : public QObject, public QNetworkProxyFactory
{ {
public: public:
QgsNetworkProxyFactory(); QgsNetworkProxyFactory();
Expand All @@ -37,6 +35,4 @@ class QgsNetworkProxyFactory : public QNetworkProxyFactory
QNetworkProxy mProxy; QNetworkProxy mProxy;
}; };


#endif // QT_VERSION >= 0x40500

#endif #endif
2 changes: 2 additions & 0 deletions src/plugins/grass/qtermwidget/TerminalDisplay.cpp
Expand Up @@ -2423,6 +2423,8 @@ QVariant TerminalDisplay::inputMethodQuery( Qt::InputMethodQuery query ) const
case Qt::ImCurrentSelection: case Qt::ImCurrentSelection:
return QString(); return QString();
break; break;
default:
break;
} }


return QVariant(); return QVariant();
Expand Down
14 changes: 12 additions & 2 deletions src/plugins/spatialquery/qgsspatialquerydialog.cpp
Expand Up @@ -190,6 +190,7 @@ void QgsSpatialQueryDialog::runQuery()
buttonBox->button( QDialogButtonBox::Close )->show(); buttonBox->button( QDialogButtonBox::Close )->show();
buttonBox->button( QDialogButtonBox::Cancel )->hide(); buttonBox->button( QDialogButtonBox::Cancel )->hide();
buttonBox->button( QDialogButtonBox::Ok )->hide(); buttonBox->button( QDialogButtonBox::Ok )->hide();
adjustSize();
} // void QgsSpatialQueryDialog::runQuery() } // void QgsSpatialQueryDialog::runQuery()


void QgsSpatialQueryDialog::setInputsVisible( bool show ) void QgsSpatialQueryDialog::setInputsVisible( bool show )
Expand Down Expand Up @@ -586,8 +587,17 @@ void QgsSpatialQueryDialog::on_buttonBox_accepted()


void QgsSpatialQueryDialog::on_buttonBox_rejected() void QgsSpatialQueryDialog::on_buttonBox_rejected()
{ {
reject(); if ( grpResults->isHidden() )

reject();
else
{
grpResults->hide();
setInputsVisible( true );
progressBarStatus->show();
buttonBox->button( QDialogButtonBox::Close )->hide();
buttonBox->button( QDialogButtonBox::Cancel )->show();
buttonBox->button( QDialogButtonBox::Ok )->show();
}
} // void QgsSpatialQueryDialog::on_buttonBox_rejected() } // void QgsSpatialQueryDialog::on_buttonBox_rejected()


void QgsSpatialQueryDialog::on_targetLayerComboBox_currentIndexChanged( int index ) void QgsSpatialQueryDialog::on_targetLayerComboBox_currentIndexChanged( int index )
Expand Down
18 changes: 0 additions & 18 deletions src/plugins/spatialquery/qgsspatialquerydialogbase.ui
Expand Up @@ -315,22 +315,4 @@ p, li { white-space: pre-wrap; }
</layout> </layout>
</widget> </widget>
<resources/> <resources/>
<connections>
<connection>
<sender>buttonBox</sender>
<signal>rejected()</signal>
<receiver>QgsSpatialQueryDialogBase</receiver>
<slot>reject()</slot>
<hints>
<hint type="sourcelabel">
<x>288</x>
<y>438</y>
</hint>
<hint type="destinationlabel">
<x>292</x>
<y>459</y>
</hint>
</hints>
</connection>
</connections>
</ui> </ui>
33 changes: 19 additions & 14 deletions src/providers/wms/qgswmsprovider.cpp
Expand Up @@ -571,8 +571,6 @@ QImage *QgsWmsProvider::draw( QgsRectangle const &viewExtent, int pixelWidth, i
} }


double tres = mResolutions[i]; double tres = mResolutions[i];
double dx = mTileWidth * tres;
double dy = mTileHeight * tres;


// clip view extent to layer extent // clip view extent to layer extent
double xmin = std::max( viewExtent.xMinimum(), layerExtent.xMinimum() ); double xmin = std::max( viewExtent.xMinimum(), layerExtent.xMinimum() );
Expand All @@ -581,12 +579,12 @@ QImage *QgsWmsProvider::draw( QgsRectangle const &viewExtent, int pixelWidth, i
double ymax = std::min( viewExtent.yMaximum(), layerExtent.yMaximum() ); double ymax = std::min( viewExtent.yMaximum(), layerExtent.yMaximum() );


// snap to tile coordinates // snap to tile coordinates
double x0 = floor(( xmin - layerExtent.xMinimum() ) / dx ) * dx + layerExtent.xMinimum(); double x0 = floor(( xmin - layerExtent.xMinimum() ) / mTileWidth / tres ) * mTileWidth * tres + layerExtent.xMinimum();
double y0 = floor(( ymin - layerExtent.yMinimum() ) / dy ) * dy + layerExtent.yMinimum(); double y0 = floor(( ymin - layerExtent.yMinimum() ) / mTileHeight / tres ) * mTileHeight * tres + layerExtent.yMinimum();


#ifdef QGISDEBUG #ifdef QGISDEBUG
// calculate number of tiles // calculate number of tiles
int n = ceil(( xmax - xmin ) / dx ) * ceil(( ymax - ymin ) / dy ); int n = ceil(( xmax - xmin ) / mTileWidth / tres ) * ceil(( ymax - ymin ) / mTileHeight / tres );
#endif #endif


QgsDebugMsg( QString( "layer extent: %1,%2 %3x%4" ) QgsDebugMsg( QString( "layer extent: %1,%2 %3x%4" )
Expand All @@ -604,13 +602,13 @@ QImage *QgsWmsProvider::draw( QgsRectangle const &viewExtent, int pixelWidth, i
); );
QgsDebugMsg( QString( "tile extent: %1,%2 %3x%4 pixel:%5x%6 res:%7" ) QgsDebugMsg( QString( "tile extent: %1,%2 %3x%4 pixel:%5x%6 res:%7" )
.arg( x0, 0, 'f' ).arg( y0, 0, 'f' ) .arg( x0, 0, 'f' ).arg( y0, 0, 'f' )
.arg( dx, 0, 'f' ).arg( dy, 0, 'f' ) .arg( mTileWidth * tres, 0, 'f' ).arg( mTileHeight * tres, 0, 'f' )
.arg( mTileWidth ).arg( mTileHeight ) .arg( mTileWidth ).arg( mTileHeight )
.arg( tres, 0, 'f' ) .arg( tres, 0, 'f' )
); );
QgsDebugMsg( QString( "tile number: %1x%2 = %3" ) QgsDebugMsg( QString( "tile number: %1x%2 = %3" )
.arg( ceil(( xmax - xmin ) / dx ) ) .arg( ceil(( xmax - xmin ) / mTileWidth / tres ) )
.arg( ceil(( ymax - ymin ) / dy ) ) .arg( ceil(( ymax - ymin ) / mTileHeight / tres ) )
.arg( n ) .arg( n )
); );


Expand All @@ -635,33 +633,40 @@ QImage *QgsWmsProvider::draw( QgsRectangle const &viewExtent, int pixelWidth, i
urlargs += QString( "&FORMAT=%1" ).arg( imageMimeType ); urlargs += QString( "&FORMAT=%1" ).arg( imageMimeType );
urlargs += QString( "&TILED=true" ); urlargs += QString( "&TILED=true" );


i = 0;
int j = 0; int j = 0;
for ( double y = y0; y < ymax; y += dy ) double y = y0;
while ( y < ymax )
{ {
for ( double x = x0; x <= xmax; x += dx ) int k = 0;
double x = x0;
while ( x < xmax )
{ {
QString turl; QString turl;
turl += url; turl += url;
turl += QString( changeXY ? "&BBOX=%2,%1,%4,%3" : "&BBOX=%1,%2,%3,%4" ) turl += QString( changeXY ? "&BBOX=%2,%1,%4,%3" : "&BBOX=%1,%2,%3,%4" )
.arg( x, 0, 'f' ) .arg( x, 0, 'f' )
.arg( y, 0, 'f' ) .arg( y, 0, 'f' )
.arg( x + dx, 0, 'f' ) .arg( x + mTileWidth * tres, 0, 'f' )
.arg( y + dy, 0, 'f' ); .arg( y + mTileHeight * tres, 0, 'f' );
turl += urlargs; turl += urlargs;


QNetworkRequest request( turl ); QNetworkRequest request( turl );
QgsDebugMsg( QString( "tileRequest %1 %2/%3: %4" ).arg( mTileReqNo ).arg( j++ ).arg( n ).arg( turl ) ); QgsDebugMsg( QString( "tileRequest %1 %2/%3: %4" ).arg( mTileReqNo ).arg( i++ ).arg( n ).arg( turl ) );
request.setAttribute( QNetworkRequest::CacheLoadControlAttribute, QNetworkRequest::PreferCache ); request.setAttribute( QNetworkRequest::CacheLoadControlAttribute, QNetworkRequest::PreferCache );
request.setAttribute( QNetworkRequest::CacheSaveControlAttribute, true ); request.setAttribute( QNetworkRequest::CacheSaveControlAttribute, true );
request.setAttribute( static_cast<QNetworkRequest::Attribute>( QNetworkRequest::User + 0 ), mTileReqNo ); request.setAttribute( static_cast<QNetworkRequest::Attribute>( QNetworkRequest::User + 0 ), mTileReqNo );
request.setAttribute( static_cast<QNetworkRequest::Attribute>( QNetworkRequest::User + 1 ), j ); request.setAttribute( static_cast<QNetworkRequest::Attribute>( QNetworkRequest::User + 1 ), j );
request.setAttribute( static_cast<QNetworkRequest::Attribute>( QNetworkRequest::User + 2 ), QRectF( x, y, dx, dy ) ); request.setAttribute( static_cast<QNetworkRequest::Attribute>( QNetworkRequest::User + 2 ), QRectF( x, y, mTileWidth * tres, mTileHeight * tres ) );


QgsDebugMsg( QString( "gettile: %1" ).arg( turl ) ); QgsDebugMsg( QString( "gettile: %1" ).arg( turl ) );
QNetworkReply *reply = smNAM->get( request ); QNetworkReply *reply = smNAM->get( request );
tileReplies << reply; tileReplies << reply;
connect( reply, SIGNAL( finished() ), this, SLOT( tileReplyFinished() ) ); connect( reply, SIGNAL( finished() ), this, SLOT( tileReplyFinished() ) );

x = x0 + k++*mTileWidth * tres;
} }
y = y0 + j++*mTileHeight * tres;
} }


mWaiting = true; mWaiting = true;
Expand Down

0 comments on commit 8d89272

Please sign in to comment.