Skip to content

Commit

Permalink
forward declaration of QgsMapMouseEvent
Browse files Browse the repository at this point in the history
  • Loading branch information
3nids committed Oct 9, 2018
1 parent ef1efeb commit 7fb3a92
Show file tree
Hide file tree
Showing 73 changed files with 181 additions and 111 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@




class QgsAdvancedDigitizingDockWidget : QgsDockWidget
{
%Docstring
Expand Down
2 changes: 1 addition & 1 deletion src/app/qgsmaptooladdpart.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@
#include "qgsvectorlayer.h"
#include "qgslogger.h"
#include "qgisapp.h"
#include "qgsmapmouseevent.h"

#include <QMouseEvent>

QgsMapToolAddPart::QgsMapToolAddPart( QgsMapCanvas *canvas )
: QgsMapToolCapture( canvas, QgisApp::instance()->cadDockWidget(), CaptureNone )
Expand Down
2 changes: 1 addition & 1 deletion src/app/qgsmaptooladdring.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
* *
***************************************************************************/

#include <QMouseEvent>

#include "qgsmaptooladdring.h"
#include "qgsgeometry.h"
Expand All @@ -23,6 +22,7 @@
#include "qgsvectordataprovider.h"
#include "qgsvectorlayer.h"
#include "qgisapp.h"
#include "qgsmapmouseevent.h"


QgsMapToolAddRing::QgsMapToolAddRing( QgsMapCanvas *canvas )
Expand Down
7 changes: 5 additions & 2 deletions src/app/qgsmaptoolannotation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@
* *
***************************************************************************/

#include <QDialog>
#include <QMouseEvent>

#include "qgsmaptoolannotation.h"
#include "qgsannotation.h"
#include "qgsformannotationdialog.h"
Expand All @@ -30,8 +33,8 @@
#include "qgsproject.h"
#include "qgsexception.h"
#include "qgsannotationmanager.h"
#include <QDialog>
#include <QMouseEvent>
#include "qgsmapmouseevent.h"


QgsMapToolAnnotation::QgsMapToolAnnotation( QgsMapCanvas *canvas )
: QgsMapTool( canvas )
Expand Down
1 change: 1 addition & 0 deletions src/app/qgsmaptoolchangelabelproperties.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
#include "qgsmapcanvas.h"
#include "qgsrubberband.h"
#include "qgsvectorlayer.h"
#include "qgsmapmouseevent.h"

QgsMapToolChangeLabelProperties::QgsMapToolChangeLabelProperties( QgsMapCanvas *canvas ): QgsMapToolLabel( canvas )
{
Expand Down
3 changes: 2 additions & 1 deletion src/app/qgsmaptoolcircle2points.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@
#include "qgsgeometryrubberband.h"
#include "qgsmapcanvas.h"
#include "qgspoint.h"
#include <QMouseEvent>
#include "qgsmapmouseevent.h"


QgsMapToolCircle2Points::QgsMapToolCircle2Points( QgsMapToolCapture *parentTool,
QgsMapCanvas *canvas, CaptureMode mode )
Expand Down
2 changes: 1 addition & 1 deletion src/app/qgsmaptoolcircle2tangentspoint.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
#include "qgsspinbox.h"
#include "qgsgeometryutils.h"
#include <memory>
#include <QMouseEvent>
#include "qgsmapmouseevent.h"

QgsMapToolCircle2TangentsPoint::QgsMapToolCircle2TangentsPoint( QgsMapToolCapture *parentTool,
QgsMapCanvas *canvas, CaptureMode mode )
Expand Down
2 changes: 1 addition & 1 deletion src/app/qgsmaptoolcircle3points.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
#include "qgslinestring.h"
#include "qgsmapcanvas.h"
#include "qgspoint.h"
#include <QMouseEvent>
#include "qgsmapmouseevent.h"

QgsMapToolCircle3Points::QgsMapToolCircle3Points( QgsMapToolCapture *parentTool,
QgsMapCanvas *canvas, CaptureMode mode )
Expand Down
3 changes: 2 additions & 1 deletion src/app/qgsmaptoolcircle3tangents.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@
#include "qgsmapcanvas.h"
#include "qgspoint.h"
#include "qgisapp.h"
#include <QMouseEvent>
#include "qgsmapmouseevent.h"


QgsMapToolCircle3Tangents::QgsMapToolCircle3Tangents( QgsMapToolCapture *parentTool,
QgsMapCanvas *canvas, CaptureMode mode )
Expand Down
4 changes: 2 additions & 2 deletions src/app/qgsmaptoolcirclecenterpoint.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@
#include "qgsgeometryrubberband.h"
#include "qgsmapcanvas.h"
#include "qgspoint.h"
#include <QMouseEvent>
#include "qgsmapmouseevent.h"


QgsMapToolCircleCenterPoint::QgsMapToolCircleCenterPoint( QgsMapToolCapture *parentTool,
QgsMapCanvas *canvas, CaptureMode mode )
: QgsMapToolAddCircle( parentTool, canvas, mode )
{

}

void QgsMapToolCircleCenterPoint::cadCanvasReleaseEvent( QgsMapMouseEvent *e )
Expand Down
3 changes: 2 additions & 1 deletion src/app/qgsmaptoolcircularstringcurvepoint.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@
#include "qgsgeometryrubberband.h"
#include "qgsmapcanvas.h"
#include "qgspoint.h"
#include <QMouseEvent>
#include "qgsmapmouseevent.h"


QgsMapToolCircularStringCurvePoint::QgsMapToolCircularStringCurvePoint( QgsMapToolCapture *parentTool,
QgsMapCanvas *canvas, CaptureMode mode )
Expand Down
3 changes: 2 additions & 1 deletion src/app/qgsmaptoolcircularstringradius.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,9 @@
#include "qgsmapcanvas.h"
#include "qgspoint.h"
#include "qgsstatusbar.h"
#include "qgsmapmouseevent.h"

#include <QDoubleSpinBox>
#include <QMouseEvent>
#include <cmath>

QgsMapToolCircularStringRadius::QgsMapToolCircularStringRadius( QgsMapToolCapture *parentTool, QgsMapCanvas *canvas, CaptureMode mode )
Expand Down
3 changes: 1 addition & 2 deletions src/app/qgsmaptooldeletepart.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@
#include "qgssnappingutils.h"
#include "qgstolerance.h"
#include "qgisapp.h"

#include <QMouseEvent>
#include "qgsmapmouseevent.h"

QgsMapToolDeletePart::QgsMapToolDeletePart( QgsMapCanvas *canvas )
: QgsMapToolEdit( canvas )
Expand Down
2 changes: 2 additions & 0 deletions src/app/qgsmaptooldeletepart.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@

#include "qgsmaptooledit.h"
#include "qgis_app.h"
#include "qgsfeatureid.h"
#include "qgsgeometry.h"

class QgsVertexMarker;

Expand Down
3 changes: 2 additions & 1 deletion src/app/qgsmaptooldeletering.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,11 @@
#include "qgsvectorlayer.h"
#include "qgisapp.h"
#include "qgsrubberband.h"
#include "qgsmapmouseevent.h"

#include <QMouseEvent>
#include <limits>


QgsMapToolDeleteRing::QgsMapToolDeleteRing( QgsMapCanvas *canvas )
: QgsMapToolEdit( canvas )
, mPressedFid( 0 )
Expand Down
3 changes: 3 additions & 0 deletions src/app/qgsmaptooldeletering.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@

#include "qgsmaptooledit.h"
#include "qgis_app.h"
#include "qgsgeometry.h"
#include "qgsfeatureid.h"


class QgsVertexMarker;
//! Map tool to delete vertices from line/polygon features
Expand Down
2 changes: 1 addition & 1 deletion src/app/qgsmaptoolellipsecenter2points.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
#include "qgslinestring.h"
#include "qgsmapcanvas.h"
#include "qgspoint.h"
#include <QMouseEvent>
#include "qgsmapmouseevent.h"
#include <memory>

QgsMapToolEllipseCenter2Points::QgsMapToolEllipseCenter2Points( QgsMapToolCapture *parentTool,
Expand Down
3 changes: 2 additions & 1 deletion src/app/qgsmaptoolellipsecenterpoint.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@
#include "qgsgeometryrubberband.h"
#include "qgsmapcanvas.h"
#include "qgspoint.h"
#include <QMouseEvent>
#include "qgsmapmouseevent.h"


QgsMapToolEllipseCenterPoint::QgsMapToolEllipseCenterPoint( QgsMapToolCapture *parentTool,
QgsMapCanvas *canvas, CaptureMode mode )
Expand Down
3 changes: 2 additions & 1 deletion src/app/qgsmaptoolellipseextent.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@
#include "qgspoint.h"
#include "qgsgeometryutils.h"
#include "qgslinestring.h"
#include <QMouseEvent>
#include "qgsmapmouseevent.h"


QgsMapToolEllipseExtent::QgsMapToolEllipseExtent( QgsMapToolCapture *parentTool,
QgsMapCanvas *canvas, CaptureMode mode )
Expand Down
2 changes: 1 addition & 1 deletion src/app/qgsmaptoolellipsefoci.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
#include "qgslinestring.h"
#include "qgsmapcanvas.h"
#include "qgspoint.h"
#include <QMouseEvent>
#include "qgsmapmouseevent.h"
#include <memory>

QgsMapToolEllipseFoci::QgsMapToolEllipseFoci( QgsMapToolCapture *parentTool,
Expand Down
2 changes: 1 addition & 1 deletion src/app/qgsmaptoolfeatureaction.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@
#include "qgisapp.h"
#include "qgsgui.h"
#include "qgsstatusbar.h"
#include "qgsmapmouseevent.h"

#include <QSettings>
#include <QMouseEvent>
#include <QStatusBar>

QgsMapToolFeatureAction::QgsMapToolFeatureAction( QgsMapCanvas *canvas )
Expand Down
2 changes: 1 addition & 1 deletion src/app/qgsmaptoolfillring.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@
#include "qgsattributedialog.h"
#include "qgisapp.h"
#include "qgsvectorlayerutils.h"
#include "qgsmapmouseevent.h"

#include <QMouseEvent>
#include <limits>

QgsMapToolFillRing::QgsMapToolFillRing( QgsMapCanvas *canvas )
Expand Down
4 changes: 2 additions & 2 deletions src/app/qgsmaptoolidentifyaction.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@
#include "qgsstatusbar.h"
#include "qgsactionscoperegistry.h"
#include "qgsproxyprogresstask.h"

#include "qgssettings.h"
#include <QMouseEvent>
#include "qgsmapmouseevent.h"

#include <QCursor>
#include <QPixmap>
#include <QStatusBar>
Expand Down
2 changes: 1 addition & 1 deletion src/app/qgsmaptoolmeasureangle.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@
#include "qgssnappingutils.h"
#include "qgssettings.h"
#include "qgssnapindicator.h"
#include "qgsmapmouseevent.h"

#include <QMouseEvent>
#include <cmath>

QgsMapToolMeasureAngle::QgsMapToolMeasureAngle( QgsMapCanvas *canvas )
Expand Down
2 changes: 1 addition & 1 deletion src/app/qgsmaptoolmovefeature.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@
#include "qgsvectorlayer.h"
#include "qgsvectorlayertools.h"
#include "qgssnapindicator.h"
#include "qgsmapmouseevent.h"

#include <QMessageBox>
#include <QMouseEvent>
#include <QSettings>
#include <limits>

Expand Down
2 changes: 2 additions & 0 deletions src/app/qgsmaptoolmovefeature.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@

#include "qgsmaptooladvanceddigitizing.h"
#include "qgis_app.h"
#include "qgspointxy.h"
#include "qgsfeatureid.h"

class QgsSnapIndicator;

Expand Down
3 changes: 2 additions & 1 deletion src/app/qgsmaptoolmovelabel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@
#include "qgsmapcanvas.h"
#include "qgsrubberband.h"
#include "qgsvectorlayer.h"
#include <QMouseEvent>
#include "qgsmapmouseevent.h"


QgsMapToolMoveLabel::QgsMapToolMoveLabel( QgsMapCanvas *canvas )
: QgsMapToolLabel( canvas )
Expand Down
3 changes: 1 addition & 2 deletions src/app/qgsmaptooloffsetcurve.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
***************************************************************************/

#include <QGraphicsProxyWidget>
#include <QMouseEvent>
#include <QGridLayout>
#include <QLabel>

Expand All @@ -30,7 +29,7 @@
#include "qgssnappingconfig.h"
#include "qgssettings.h"
#include "qgisapp.h"

#include "qgsmapmouseevent.h"
#include "qgslogger.h"

QgsMapToolOffsetCurve::QgsMapToolOffsetCurve( QgsMapCanvas *canvas )
Expand Down
1 change: 1 addition & 0 deletions src/app/qgsmaptooloffsetcurve.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
#include "qgsgeometry.h"
#include "qgis_app.h"
#include "ui_qgsoffsetuserinputwidget.h"
#include "qgspointlocator.h"

class QGridLayout;

Expand Down