Skip to content

Commit

Permalink
Rename qgspoint.h and qgspointv2.h
Browse files Browse the repository at this point in the history
To qgspointxy.h
And qgspoint.h
  • Loading branch information
m-kuhn committed Jun 2, 2017
1 parent 4f3cd3e commit 2bbadba
Show file tree
Hide file tree
Showing 96 changed files with 124 additions and 119 deletions.
4 changes: 2 additions & 2 deletions python/core/conversions.sip
Expand Up @@ -259,7 +259,7 @@ template <TYPE>
{
%TypeHeaderCode
#include <QList>
#include "qgspointv2.h"
#include "qgspoint.h"
%End

%ConvertFromTypeCode
Expand Down Expand Up @@ -333,7 +333,7 @@ template <TYPE>
{
%TypeHeaderCode
#include <QList>
#include "qgspointv2.h"
#include "qgspoint.h"
%End

%ConvertFromTypeCode
Expand Down
2 changes: 1 addition & 1 deletion python/core/geometry/qgspointv2.sip
Expand Up @@ -18,7 +18,7 @@ class QgsPoint: QgsAbstractGeometry
%End

%TypeHeaderCode
#include "qgspointv2.h"
#include "qgspoint.h"
%End
public:

Expand Down
2 changes: 1 addition & 1 deletion python/core/qgspoint.sip
Expand Up @@ -20,7 +20,7 @@ class QgsPointXY
%End

%TypeHeaderCode
#include "qgspoint.h"
#include "qgspointxy.h"
%End
public:
QgsPointXY();
Expand Down
2 changes: 1 addition & 1 deletion src/analysis/network/qgsgraph.h
Expand Up @@ -29,7 +29,7 @@
#include <QVector>
#include <QVariant>

#include "qgspoint.h"
#include "qgspointxy.h"
#include "qgis_analysis.h"

class QgsGraphVertex;
Expand Down
2 changes: 1 addition & 1 deletion src/analysis/openstreetmap/qgsosmbase.h
Expand Up @@ -17,7 +17,7 @@

#include <QString>

#include "qgspoint.h"
#include "qgspointxy.h"

#include <sqlite3.h>
#include "qgis_analysis.h"
Expand Down
2 changes: 1 addition & 1 deletion src/analysis/vector/qgsgeometrysnapper.h
Expand Up @@ -22,7 +22,7 @@
#include <QStringList>
#include "qgsspatialindex.h"
#include "qgsabstractgeometry.h"
#include "qgspointv2.h"
#include "qgspoint.h"
#include "qgsgeometry.h"
#include "qgis_analysis.h"

Expand Down
2 changes: 1 addition & 1 deletion src/app/composer/qgscomposeritemwidget.cpp
Expand Up @@ -20,7 +20,7 @@
#include "qgscomposermap.h"
#include "qgsatlascomposition.h"
#include "qgscomposition.h"
#include "qgspoint.h"
#include "qgspointxy.h"
#include "qgspropertyoverridebutton.h"
#include "qgsexpressioncontext.h"
#include "qgsproject.h"
Expand Down
2 changes: 1 addition & 1 deletion src/app/dwg/qgsdwgimporter.cpp
Expand Up @@ -22,7 +22,7 @@
#include "libdwgr.h"
#include "libdxfrw.h"
#include "qgis.h"
#include "qgspointv2.h"
#include "qgspoint.h"
#include "qgslinestring.h"
#include "qgscircularstring.h"
#include "qgscurvepolygon.h"
Expand Down
2 changes: 1 addition & 1 deletion src/app/gps/qgsgpsinformationwidget.cpp
Expand Up @@ -29,7 +29,7 @@
#include "qgslogger.h"
#include "qgsmaptooladdfeature.h"
#include "qgsnmeaconnection.h"
#include "qgspoint.h"
#include "qgspointxy.h"
#include "qgsproject.h"
#include "qgsrubberband.h"
#include "qgsvectordataprovider.h"
Expand Down
2 changes: 1 addition & 1 deletion src/app/gps/qgsgpsmarker.h
Expand Up @@ -18,7 +18,7 @@

#include "qgsmapcanvasitem.h"
#include "qgscoordinatereferencesystem.h"
#include "qgspoint.h"
#include "qgspointxy.h"
#include <QSvgRenderer>

class QPainter;
Expand Down
2 changes: 1 addition & 1 deletion src/app/nodetool/qgsselectedfeature.cpp
Expand Up @@ -17,7 +17,7 @@
#include "nodetool/qgsvertexentry.h"

#include "qgsfeatureiterator.h"
#include "qgspointv2.h"
#include "qgspoint.h"
#include "qgssettings.h"
#include "qgslogger.h"
#include "qgsvertexmarker.h"
Expand Down
8 changes: 4 additions & 4 deletions src/app/nodetool/qgsvertexentry.h
Expand Up @@ -16,10 +16,10 @@
#ifndef QGSVERTEXENTRY_H
#define QGSVERTEXENTRY_H

#include <qgspointv2.h>
#include <qgsvertexmarker.h>
#include <qgsmapcanvas.h>
#include <qgsmaplayer.h>
#include "qgspoint.h"
#include "qgsvertexmarker.h"
#include "qgsmapcanvas.h"
#include "qgsmaplayer.h"

class QgsVertexEntry
{
Expand Down
2 changes: 1 addition & 1 deletion src/app/qgisapp.cpp
Expand Up @@ -218,7 +218,7 @@ Q_GUI_EXPORT extern int qt_defaultDpiX();
#include "qgspluginlayerregistry.h"
#include "qgspluginmanager.h"
#include "qgspluginregistry.h"
#include "qgspoint.h"
#include "qgspointxy.h"
#include "qgsruntimeprofiler.h"
#include "qgshandlebadlayers.h"
#include "qgsproject.h"
Expand Down
2 changes: 1 addition & 1 deletion src/app/qgisapp.h
Expand Up @@ -130,7 +130,7 @@ class QgsDataSourceManagerDialog;
#include "qgsauthmanager.h"
#include "qgsconfig.h"
#include "qgsfeature.h"
#include "qgspoint.h"
#include "qgspointxy.h"
#include "qgsmessagebar.h"
#include "qgsmimedatautils.h"
#include "qgswelcomepageitemsmodel.h"
Expand Down
2 changes: 1 addition & 1 deletion src/app/qgsdecorationgrid.cpp
Expand Up @@ -25,7 +25,7 @@
#include "qgsrasterlayer.h"
#include "qgsmaptopixel.h"
#include "qgspathresolver.h"
#include "qgspoint.h"
#include "qgspointxy.h"
#include "qgsproject.h"
#include "qgssymbollayerutils.h" //for pointOnLineWithDistance
#include "qgssymbol.h" //for symbology
Expand Down
2 changes: 1 addition & 1 deletion src/app/qgsdecorationitem.cpp
Expand Up @@ -24,7 +24,7 @@
#include "qgsmapdecoration.h"
#include "qgsmaplayer.h"
#include "qgsmaptopixel.h"
#include "qgspoint.h"
#include "qgspointxy.h"
#include "qgsproject.h"
#include "qgssymbollayerutils.h" //for pointOnLineWithDistance
#include "qgsunittypes.h"
Expand Down
2 changes: 1 addition & 1 deletion src/app/qgsdecorationscalebar.cpp
Expand Up @@ -29,7 +29,7 @@ email : sbr00pwb@users.sourceforge.net
#include "qgsmapcanvas.h"
#include "qgsmaplayer.h"
#include "qgsmaptopixel.h"
#include "qgspoint.h"
#include "qgspointxy.h"
#include "qgsproject.h"
#include "qgsunittypes.h"
#include "qgssettings.h"
Expand Down
2 changes: 1 addition & 1 deletion src/app/qgsmapcanvasdockwidget.h
Expand Up @@ -18,7 +18,7 @@
#include <ui_qgsmapcanvasdockwidgetbase.h>

#include "qgsdockwidget.h"
#include "qgspoint.h"
#include "qgspointxy.h"
#include "qgis_app.h"
#include <QWidgetAction>
#include <QTimer>
Expand Down
2 changes: 1 addition & 1 deletion src/app/qgsmaptooladdcircularstring.cpp
Expand Up @@ -21,7 +21,7 @@
#include "qgsgeometryutils.h"
#include "qgslinestring.h"
#include "qgsmapcanvas.h"
#include "qgspointv2.h"
#include "qgspoint.h"
#include "qgisapp.h"

QgsMapToolAddCircularString::QgsMapToolAddCircularString( QgsMapToolCapture *parentTool, QgsMapCanvas *canvas, CaptureMode mode )
Expand Down
2 changes: 1 addition & 1 deletion src/app/qgsmaptoolcircularstringcurvepoint.cpp
Expand Up @@ -17,7 +17,7 @@
#include "qgscompoundcurve.h"
#include "qgsgeometryrubberband.h"
#include "qgsmapcanvas.h"
#include "qgspointv2.h"
#include "qgspoint.h"
#include <QMouseEvent>

QgsMapToolCircularStringCurvePoint::QgsMapToolCircularStringCurvePoint( QgsMapToolCapture *parentTool,
Expand Down
2 changes: 1 addition & 1 deletion src/app/qgsmaptoolcircularstringradius.cpp
Expand Up @@ -20,7 +20,7 @@
#include "qgsgeometryutils.h"
#include "qgsgeometryrubberband.h"
#include "qgsmapcanvas.h"
#include "qgspointv2.h"
#include "qgspoint.h"
#include "qgsstatusbar.h"
#include <QDoubleSpinBox>
#include <QMouseEvent>
Expand Down
2 changes: 1 addition & 1 deletion src/app/qgsmaptoolcircularstringradius.h
Expand Up @@ -18,7 +18,7 @@
#define QGSMAPTOOLCIRCULARSTRINGRADIUS_H

#include "qgsmaptooladdcircularstring.h"
#include "qgspointv2.h"
#include "qgspoint.h"

class QDoubleSpinBox;

Expand Down
2 changes: 1 addition & 1 deletion src/app/qgsmaptoolmeasureangle.h
Expand Up @@ -17,7 +17,7 @@
#define QGSMAPTOOLMEASUREANGLE_H

#include "qgsmaptool.h"
#include "qgspoint.h"
#include "qgspointxy.h"
#include "qgsdistancearea.h"
#include "qgis_app.h"

Expand Down
2 changes: 1 addition & 1 deletion src/app/qgsmaptoolselect.cpp
Expand Up @@ -20,7 +20,7 @@
#include "qgsmapcanvas.h"
#include "qgsvectorlayer.h"
#include "qgsgeometry.h"
#include "qgspoint.h"
#include "qgspointxy.h"
#include "qgis.h"

#include <QMouseEvent>
Expand Down
2 changes: 1 addition & 1 deletion src/app/qgsmaptoolselectradius.h
Expand Up @@ -18,7 +18,7 @@ email : jpalmer at linz dot govt dot nz


#include "qgsmaptool.h"
#include "qgspoint.h"
#include "qgspointxy.h"
#include "qgis_app.h"

class QgsMapCanvas;
Expand Down
2 changes: 1 addition & 1 deletion src/app/qgsmaptoolselectrectangle.cpp
Expand Up @@ -22,7 +22,7 @@
#include "qgsvectorlayer.h"
#include "qgscursors.h"
#include "qgsgeometry.h"
#include "qgspoint.h"
#include "qgspointxy.h"
#include "qgis.h"

#include <QMouseEvent>
Expand Down
2 changes: 1 addition & 1 deletion src/app/qgsmeasuredialog.h
Expand Up @@ -19,7 +19,7 @@

#include "ui_qgsmeasurebase.h"

#include "qgspoint.h"
#include "qgspointxy.h"
#include "qgsdistancearea.h"
#include "qgshelp.h"
#include "qgis_app.h"
Expand Down
8 changes: 4 additions & 4 deletions src/core/CMakeLists.txt
Expand Up @@ -224,7 +224,7 @@ SET(QGIS_CORE_SRCS
qgspathresolver.cpp
qgspluginlayer.cpp
qgspluginlayerregistry.cpp
qgspoint.cpp
qgspointxy.cpp
qgspointlocator.cpp
qgsproject.cpp
qgsprojectbadlayerhandler.cpp
Expand Down Expand Up @@ -413,7 +413,7 @@ SET(QGIS_CORE_SRCS
geometry/qgsmultipoint.cpp
geometry/qgsmultipolygon.cpp
geometry/qgsmultisurface.cpp
geometry/qgspointv2.cpp
geometry/qgspoint.cpp
geometry/qgspolygon.cpp
geometry/qgsrectangle.cpp
geometry/qgsregularpolygon.cpp
Expand Down Expand Up @@ -559,7 +559,7 @@ SET(QGIS_CORE_MOC_HDRS
qgsofflineediting.h
qgsowsconnection.h
qgspluginlayer.h
qgspoint.h
qgspointxy.h
qgspointlocator.h
qgsproject.h
qgsrelationmanager.h
Expand Down Expand Up @@ -641,7 +641,7 @@ SET(QGIS_CORE_MOC_HDRS
raster/qgsrasterlayer.h
raster/qgsrasterdataprovider.h

geometry/qgspointv2.h
geometry/qgspoint.h

gps/qgsgpsconnection.h
gps/qgsgpsdetector.h
Expand Down
2 changes: 1 addition & 1 deletion src/core/annotations/qgsannotation.h
Expand Up @@ -20,7 +20,7 @@

#include "qgis_core.h"
#include "qgis.h"
#include "qgspoint.h"
#include "qgspointxy.h"
#include "qgscoordinatereferencesystem.h"
#include "qgsrendercontext.h"
#include "qgssymbol.h"
Expand Down
4 changes: 2 additions & 2 deletions src/core/dxf/qgsdxfexport.cpp
Expand Up @@ -29,7 +29,7 @@
#include "qgsdxfexport.h"
#include "qgsdxfpallabeling.h"
#include "qgsvectordataprovider.h"
#include "qgspoint.h"
#include "qgspointxy.h"
#include "qgsproject.h"
#include "qgsrenderer.h"
#include "qgssymbollayer.h"
Expand All @@ -44,7 +44,7 @@
#include "qgsmaplayerstylemanager.h"

#include "qgswkbtypes.h"
#include "qgspointv2.h"
#include "qgspoint.h"
#include "qgsgeos.h"

#include "pal/feature.h"
Expand Down
2 changes: 1 addition & 1 deletion src/core/dxf/qgsdxfpaintengine.h
Expand Up @@ -21,7 +21,7 @@
#include "qgis_core.h"
#include <QPaintEngine>
#include "qgsabstractgeometry.h"
#include "qgspointv2.h"
#include "qgspoint.h"

class QgsDxfExport;
class QgsDxfPaintDevice;
Expand Down
2 changes: 1 addition & 1 deletion src/core/geometry/qgsabstractgeometry.cpp
Expand Up @@ -18,7 +18,7 @@ email : marco.hugentobler at sourcepole dot com
#include "qgswkbptr.h"
#include "qgsgeos.h"
#include "qgsmaptopixel.h"
#include "qgspointv2.h"
#include "qgspoint.h"

#include <limits>
#include <QTransform>
Expand Down
2 changes: 1 addition & 1 deletion src/core/geometry/qgsbox3d.h
Expand Up @@ -20,7 +20,7 @@

#include "qgis_core.h"
#include "qgsrectangle.h"
#include "qgspointv2.h"
#include "qgspoint.h"

/** \ingroup core
* A 3-dimensional box composed of x, y, z coordinates.
Expand Down
2 changes: 1 addition & 1 deletion src/core/geometry/qgscircle.h
Expand Up @@ -22,7 +22,7 @@

#include "qgis_core.h"
#include "qgsellipse.h"
#include "qgspointv2.h"
#include "qgspoint.h"
#include "qgspolygon.h"
#include "qgsrectangle.h"
#include "qgscircularstring.h"
Expand Down
2 changes: 1 addition & 1 deletion src/core/geometry/qgscircularstring.cpp
Expand Up @@ -21,7 +21,7 @@
#include "qgsgeometryutils.h"
#include "qgslinestring.h"
#include "qgsmaptopixel.h"
#include "qgspointv2.h"
#include "qgspoint.h"
#include "qgswkbptr.h"
#include <QPainter>
#include <QPainterPath>
Expand Down
2 changes: 1 addition & 1 deletion src/core/geometry/qgscurve.cpp
Expand Up @@ -17,7 +17,7 @@

#include "qgscurve.h"
#include "qgslinestring.h"
#include "qgspointv2.h"
#include "qgspoint.h"
#include "qgsmultipoint.h"

QgsCurve::QgsCurve(): QgsAbstractGeometry()
Expand Down
2 changes: 1 addition & 1 deletion src/core/geometry/qgsellipse.h
Expand Up @@ -21,7 +21,7 @@
#include <QString>

#include "qgis_core.h"
#include "qgspointv2.h"
#include "qgspoint.h"
#include "qgspolygon.h"
#include "qgslinestring.h"
#include "qgsrectangle.h"
Expand Down

4 comments on commit 2bbadba

@3nids
Copy link
Member

@3nids 3nids commented on 2bbadba Jun 2, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@m-kuhn there is a warning in the sip test:

4: *** Missing header: src/core/qgspoint.h for sipfile core/qgspoint.sip
4: *** Missing header: src/core/geometry/qgspointv2.h for sipfile core/geometry/qgspointv2.sip

you probably left the old sip files in there

@m-kuhn
Copy link
Member Author

@m-kuhn m-kuhn commented on 2bbadba Jun 3, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, coming along in 72952bc (#4677)

@mj10777
Copy link
Contributor

@mj10777 mj10777 commented on 2bbadba Jun 9, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'qgspoint.sip' must be changed to ' qgspointxy.sip' in core.sip

@m-kuhn
Copy link
Member Author

@m-kuhn m-kuhn commented on 2bbadba Jun 9, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

still being prepared in #4677 , almost ready

Please sign in to comment.