Skip to content

Commit 3d2b177

Browse files
author
jef
committed
spatial query plugin: fix warnings, reindent, include in debian package
git-svn-id: http://svn.osgeo.org/qgis/trunk@13360 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent e0ec67b commit 3d2b177

18 files changed

+1042
-1040
lines changed

debian/changelog

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,9 @@ qgis (1.5.0) UNRELEASED; urgency=low
55
* require CMake >2.6 and Qt 4.4 for sid
66
* remove circular dependencies
77
* integrate new GRASS raster provider
8+
* add spatialquery plugin
89

9-
-- Jürgen E. Fischer <jef@norbit.de> Thu, 04 Feb 2010 23:20:29 +0100
10+
-- Jürgen E. Fischer <jef@norbit.de> Sat, 24 Apr 2010 10:57:21 +0200
1011

1112
qgis (1.4.0) UNRELEASED; urgency=low
1213

debian/qgis.install

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ usr/lib/qgis/libevis.so
2626
usr/lib/qgis/libosmprovider.so
2727
usr/lib/qgis/librasterterrainplugin.so
2828
usr/lib/qgis/liblabelingplugin.so
29+
usr/lib/qgis/libspatialqueryplugin.so
2930
usr/share/pixmaps/qgis-icon.xpm
3031
usr/share/pixmaps/qgis-mime-icon.png
3132
usr/share/pixmaps/qgis-mime-icon.png usr/share/icons/crystalsvg/128x128/mimetypes

debian/rules

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
1010
DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
1111

1212
DISTRIBUTION := $(shell dpkg-parsechangelog --format rfc822 | sed -ne "s/^Distribution: //p")
13-
ifneq ($(DISTRIBUTION),$(findstring $(DISTRIBUTION),"lenny hardy intrepid jaunty karmic"))
13+
ifneq ($(DISTRIBUTION),$(findstring $(DISTRIBUTION),"lenny hardy intrepid jaunty karmic lucid"))
1414
DISTRIBUTION := sid
1515
endif
1616

src/plugins/spatialquery/CMakeLists.txt

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,6 @@ SET (SPATIALQUERY_SRCS
1414
SET (SPATIALQUERY_MOC_HDRS
1515
qgsspatialqueryplugin.h
1616
qgsspatialquerydialog.h
17-
qgsspatialquery.h
18-
qgsreaderfeatures.h
19-
qgsrubberselectid.h
20-
qgsgeometrycoordinatetransform.h
21-
qgsmngprogressbar.h
2217
)
2318

2419
SET( SPATIALQUERY_UIS qgsspatialquerydialogbase.ui)

src/plugins/spatialquery/qgsgeometrycoordinatetransform.cpp

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -23,33 +23,33 @@
2323

2424
QgsGeometryCoordinateTransform::~QgsGeometryCoordinateTransform()
2525
{
26-
delete mCoordTransform;
26+
delete mCoordTransform;
2727

2828
} // QgsGeometryCoordinateTransform::~QgsGeometryCoordinateTransform()
2929

30-
void QgsGeometryCoordinateTransform::setCoordinateTransform(QgsVectorLayer* lyrTarget, QgsVectorLayer* lyrReference)
30+
void QgsGeometryCoordinateTransform::setCoordinateTransform( QgsVectorLayer* lyrTarget, QgsVectorLayer* lyrReference )
3131
{
32-
// Transform Forward: Target to Reference
33-
// * Use srs() to use old versions QGis - will be deprecited in 2.0 (after use crs())
34-
QgsCoordinateReferenceSystem srsTarget = lyrTarget->srs();
35-
QgsCoordinateReferenceSystem srsReference = lyrReference->srs();
32+
// Transform Forward: Target to Reference
33+
// * Use srs() to use old versions QGis - will be deprecited in 2.0 (after use crs())
34+
QgsCoordinateReferenceSystem srsTarget = lyrTarget->srs();
35+
QgsCoordinateReferenceSystem srsReference = lyrReference->srs();
3636

37-
mCoordTransform = new QgsCoordinateTransform(srsTarget, srsReference);
37+
mCoordTransform = new QgsCoordinateTransform( srsTarget, srsReference );
3838

39-
mFuncTransform = ( srsTarget != srsReference)
39+
mFuncTransform = ( srsTarget != srsReference )
4040
? &QgsGeometryCoordinateTransform::setGeomTransform
4141
: &QgsGeometryCoordinateTransform::setNoneGeomTransform;
4242

4343
} // void QgsGeometryCoordinateTransform::setCoordinateTransform(QgsVectorLayer* lyrTarget, QgsVectorLayer* lyrReference)
4444

45-
void QgsGeometryCoordinateTransform::transform(QgsGeometry *geom)
45+
void QgsGeometryCoordinateTransform::transform( QgsGeometry *geom )
4646
{
47-
(this->*mFuncTransform)(geom);
47+
( this->*mFuncTransform )( geom );
4848

4949
} // void QgsGeometryCoordinateTransform::transformCoordenate()
5050

51-
void QgsGeometryCoordinateTransform::setGeomTransform(QgsGeometry *geom)
51+
void QgsGeometryCoordinateTransform::setGeomTransform( QgsGeometry *geom )
5252
{
53-
geom->transform(*mCoordTransform);
53+
geom->transform( *mCoordTransform );
5454

5555
} // void QgsGeometryCoordinateTransform::setGeomTransform(QgsGeometry *geom)

src/plugins/spatialquery/qgsgeometrycoordinatetransform.h

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -29,44 +29,44 @@
2929
*/
3030
class QgsGeometryCoordinateTransform
3131
{
32-
public:
32+
public:
3333
/**
3434
* \brief Constructor for a Geometry Coordinate Transform.
3535
*
3636
*/
37-
QgsGeometryCoordinateTransform () {};
37+
QgsGeometryCoordinateTransform() {};
3838

3939
/**
4040
* \brief Destructor
4141
*/
42-
~QgsGeometryCoordinateTransform ();
42+
~QgsGeometryCoordinateTransform();
4343

4444
/**
4545
* \brief Sets the coordinate reference system the target and reference layer
4646
* \param lyrTarget target layer.
4747
* \param lyrReference reference layer.
4848
*/
49-
void setCoordinateTransform(QgsVectorLayer* lyrTarget, QgsVectorLayer* lyrReference);
49+
void setCoordinateTransform( QgsVectorLayer* lyrTarget, QgsVectorLayer* lyrReference );
5050

5151
/**
5252
* \brief Transform the coordinates reference system of the geometry, if target have the different system of reference
5353
* \param geom Geometry
5454
*/
55-
void transform(QgsGeometry *geom);
56-
private:
55+
void transform( QgsGeometry *geom );
56+
private:
5757
/**
5858
* \brief Transform the coordinates reference system of the geometry (use by transform)
5959
* \param geom Geometry
6060
*/
61-
void setGeomTransform(QgsGeometry *geom);
61+
void setGeomTransform( QgsGeometry *geom );
6262
/**
6363
* \brief None transform the coordinates reference system of the geometry (use by transform)
6464
* \param geom Geometry
6565
*/
66-
void setNoneGeomTransform(QgsGeometry *geom) {};
66+
void setNoneGeomTransform( QgsGeometry *geom ) {};
6767

6868
QgsCoordinateTransform * mCoordTransform;
69-
void (QgsGeometryCoordinateTransform::* mFuncTransform)(QgsGeometry *);
69+
void ( QgsGeometryCoordinateTransform::* mFuncTransform )( QgsGeometry * );
7070
};
7171

7272
#endif // GEOMETRYCOORDINATETRANSFORM_H

src/plugins/spatialquery/qgsmngprogressbar.cpp

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -19,32 +19,32 @@
1919

2020
#include "qgsmngprogressbar.h"
2121

22-
MngProgressBar::MngProgressBar(QProgressBar *pb)
22+
MngProgressBar::MngProgressBar( QProgressBar *pb )
2323
{
24-
mPb = pb;
25-
mPb->reset();
24+
mPb = pb;
25+
mPb->reset();
2626
} // MngProgressBar::MngProgressBar(QProgressBar *pb)
2727

28-
void MngProgressBar::init(int minimum, int maximum)
28+
void MngProgressBar::init( int minimum, int maximum )
2929
{
30-
mPb->reset();
31-
mPb->setRange(minimum, maximum);
30+
mPb->reset();
31+
mPb->setRange( minimum, maximum );
3232

3333
} // void MngProgressBar::init(int minimum, int maximum)
3434

35-
void MngProgressBar::setFormat(QString format)
35+
void MngProgressBar::setFormat( QString format )
3636
{
3737
// special caracters:
3838
// %p - is replaced by the percentage completed.
3939
// %v - is replaced by the current value.
4040
// %m - is replaced by the total number of steps.
41-
mPb->setFormat(format);
41+
mPb->setFormat( format );
4242

4343
} // void MngProgressBar::setFormat(QString format)
4444

45-
void MngProgressBar::step(int step)
45+
void MngProgressBar::step( int step )
4646
{
47-
mPb->setValue(step);
48-
mPb->repaint();
47+
mPb->setValue( step );
48+
mPb->repaint();
4949

5050
} // void MngProgressBar::step()

src/plugins/spatialquery/qgsmngprogressbar.h

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -27,39 +27,39 @@
2727
*/
2828
class MngProgressBar
2929
{
30-
public:
30+
public:
3131
/**
3232
* \brief Constructor for a MngProgressBar.
3333
* \param pb Pointer to the MngProgressBar object.
3434
*/
35-
MngProgressBar(QProgressBar *pb);
35+
MngProgressBar( QProgressBar *pb );
3636
/**
3737
* \brief Destructor
3838
*/
3939
~MngProgressBar() { mPb->reset(); };
40-
40+
4141
/**
4242
* \brief Sets the progress bar's minimum and maximum values to minimum and maximum respectively
4343
* \param minimum minimun value.
4444
* \param maximum maximum value.
4545
*/
46-
void init(int minimum, int maximum);
46+
void init( int minimum, int maximum );
4747

4848
/**
4949
* \brief Sets the format the current text.
5050
* \param format This property holds the string used to generate the current text.
5151
*/
52-
void setFormat(QString format);
52+
void setFormat( QString format );
5353

5454
/**
5555
* \brief Sets current value progress bar's
5656
* \param step current value
5757
*/
58-
void step(int step );
58+
void step( int step );
5959

60-
private:
60+
private:
6161
QProgressBar * mPb;
62-
62+
6363
};
6464

6565
#endif // QGSMNGPROGRESSBAR_H

0 commit comments

Comments
 (0)