Navigation Menu

Skip to content

Commit

Permalink
layerType -> mLayerType
Browse files Browse the repository at this point in the history
  • Loading branch information
lbartoletti authored and nyalldawson committed Sep 25, 2018
1 parent c0ff2f4 commit ad94cce
Show file tree
Hide file tree
Showing 27 changed files with 35 additions and 35 deletions.
2 changes: 1 addition & 1 deletion src/app/qgsmaptooladdcircle.cpp
Expand Up @@ -113,5 +113,5 @@ void QgsMapToolAddCircle::clean()

QgsVectorLayer *vLayer = static_cast<QgsVectorLayer *>( QgisApp::instance()->activeLayer() );
if ( vLayer )
layerType = vLayer->geometryType();
mLayerType = vLayer->geometryType();
}
4 changes: 2 additions & 2 deletions src/app/qgsmaptooladdcircle.h
Expand Up @@ -56,8 +56,8 @@ class APP_EXPORT QgsMapToolAddCircle: public QgsMapToolCapture
QgsGeometryRubberBand *mTempRubberBand = nullptr;
//! Circle
QgsCircle mCircle;
//! Layertype which will be used for rubberband
QgsWkbTypes::GeometryType layerType = QgsWkbTypes::LineGeometry;
//! Layer type which will be used for rubberband
QgsWkbTypes::GeometryType mLayerType = QgsWkbTypes::LineGeometry;

};

Expand Down
4 changes: 2 additions & 2 deletions src/app/qgsmaptooladdcircularstring.cpp
Expand Up @@ -109,7 +109,7 @@ void QgsMapToolAddCircularString::activate()

QgsVectorLayer *vLayer = static_cast<QgsVectorLayer *>( QgisApp::instance()->activeLayer() );
if ( vLayer )
layerType = vLayer->geometryType();
mLayerType = vLayer->geometryType();
if ( mParentTool )
{
mParentTool->deleteTempRubberBand();
Expand All @@ -128,7 +128,7 @@ void QgsMapToolAddCircularString::activate()
mPoints.append( QgsPoint( mapPoint ) );
if ( !mTempRubberBand )
{
mTempRubberBand = createGeometryRubberBand( layerType, true );
mTempRubberBand = createGeometryRubberBand( mLayerType, true );
mTempRubberBand->show();
}
QgsCircularString *c = new QgsCircularString();
Expand Down
4 changes: 2 additions & 2 deletions src/app/qgsmaptooladdcircularstring.h
Expand Up @@ -59,8 +59,8 @@ class APP_EXPORT QgsMapToolAddCircularString: public QgsMapToolCapture
void createCenterPointRubberBand();
void updateCenterPointRubberBand( const QgsPoint &pt );
void removeCenterPointRubberBand();
//! Layertype which will be used for rubberband
QgsWkbTypes::GeometryType layerType = QgsWkbTypes::LineGeometry;
//! Layer type which will be used for rubberband
QgsWkbTypes::GeometryType mLayerType = QgsWkbTypes::LineGeometry;
};

#endif // QGSMAPTOOLADDCIRCULARSTRING_H
2 changes: 1 addition & 1 deletion src/app/qgsmaptooladdellipse.cpp
Expand Up @@ -113,5 +113,5 @@ void QgsMapToolAddEllipse::clean()

QgsVectorLayer *vLayer = static_cast<QgsVectorLayer *>( QgisApp::instance()->activeLayer() );
if ( vLayer )
layerType = vLayer->geometryType();
mLayerType = vLayer->geometryType();
}
4 changes: 2 additions & 2 deletions src/app/qgsmaptooladdellipse.h
Expand Up @@ -54,8 +54,8 @@ class APP_EXPORT QgsMapToolAddEllipse: public QgsMapToolCapture
QgsEllipse mEllipse;
//! convenient method to return the number of segments
unsigned int segments( ) { return QgsSettings().value( QStringLiteral( "/qgis/digitizing/offset_quad_seg" ), 8 ).toInt() * 12; }
//! Layertype which will be used for rubberband
QgsWkbTypes::GeometryType layerType = QgsWkbTypes::LineGeometry;
//! Layer type which will be used for rubberband
QgsWkbTypes::GeometryType mLayerType = QgsWkbTypes::LineGeometry;

};

Expand Down
2 changes: 1 addition & 1 deletion src/app/qgsmaptooladdrectangle.cpp
Expand Up @@ -186,5 +186,5 @@ void QgsMapToolAddRectangle::clean()

QgsVectorLayer *vLayer = static_cast<QgsVectorLayer *>( QgisApp::instance()->activeLayer() );
if ( vLayer )
layerType = vLayer->geometryType();
mLayerType = vLayer->geometryType();
}
4 changes: 2 additions & 2 deletions src/app/qgsmaptooladdrectangle.h
Expand Up @@ -77,8 +77,8 @@ class APP_EXPORT QgsMapToolAddRectangle: public QgsMapToolCapture
//! Returns the side. \see mSide
int side( ) const { return mSide; }

//! Layertype which will be used for rubberband
QgsWkbTypes::GeometryType layerType = QgsWkbTypes::LineGeometry;
//! Layer type which will be used for rubberband
QgsWkbTypes::GeometryType mLayerType = QgsWkbTypes::LineGeometry;

private:
//! Convenient member for the azimuth of the rotated rectangle or when map is rotated.
Expand Down
2 changes: 1 addition & 1 deletion src/app/qgsmaptooladdregularpolygon.cpp
Expand Up @@ -138,5 +138,5 @@ void QgsMapToolAddRegularPolygon::clean()

QgsVectorLayer *vLayer = static_cast<QgsVectorLayer *>( QgisApp::instance()->activeLayer() );
if ( vLayer )
layerType = vLayer->geometryType();
mLayerType = vLayer->geometryType();
}
4 changes: 2 additions & 2 deletions src/app/qgsmaptooladdregularpolygon.h
Expand Up @@ -62,8 +62,8 @@ class APP_EXPORT QgsMapToolAddRegularPolygon: public QgsMapToolCapture
//! Regular shape as a regular polygon
QgsRegularPolygon mRegularPolygon;

//! Layertype which will be used for rubberband
QgsWkbTypes::GeometryType layerType = QgsWkbTypes::LineGeometry;
//! Layer type which will be used for rubberband
QgsWkbTypes::GeometryType mLayerType = QgsWkbTypes::LineGeometry;

};

Expand Down
2 changes: 1 addition & 1 deletion src/app/qgsmaptoolcircle2points.cpp
Expand Up @@ -36,7 +36,7 @@ void QgsMapToolCircle2Points::cadCanvasReleaseEvent( QgsMapMouseEvent *e )

if ( !mPoints.isEmpty() && !mTempRubberBand )
{
mTempRubberBand = createGeometryRubberBand( layerType, true );
mTempRubberBand = createGeometryRubberBand( mLayerType, true );
mTempRubberBand->show();
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/app/qgsmaptoolcircle2tangentspoint.cpp
Expand Up @@ -108,7 +108,7 @@ void QgsMapToolCircle2TangentsPoint::cadCanvasMoveEvent( QgsMapMouseEvent *e )
{
if ( !mTempRubberBand )
{
mTempRubberBand = createGeometryRubberBand( layerType, true );
mTempRubberBand = createGeometryRubberBand( mLayerType, true );
mTempRubberBand->show();
}
else
Expand Down
2 changes: 1 addition & 1 deletion src/app/qgsmaptoolcircle3points.cpp
Expand Up @@ -37,7 +37,7 @@ void QgsMapToolCircle3Points::cadCanvasReleaseEvent( QgsMapMouseEvent *e )
mPoints.append( point );
if ( !mPoints.isEmpty() && !mTempRubberBand )
{
mTempRubberBand = createGeometryRubberBand( layerType, true );
mTempRubberBand = createGeometryRubberBand( mLayerType, true );
mTempRubberBand->show();
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/app/qgsmaptoolcircle3tangents.cpp
Expand Up @@ -79,7 +79,7 @@ void QgsMapToolCircle3Tangents::cadCanvasMoveEvent( QgsMapMouseEvent *e )

if ( !mTempRubberBand )
{
mTempRubberBand = createGeometryRubberBand( layerType, true );
mTempRubberBand = createGeometryRubberBand( mLayerType, true );
mTempRubberBand->show();
}
else
Expand Down
2 changes: 1 addition & 1 deletion src/app/qgsmaptoolcirclecenterpoint.cpp
Expand Up @@ -37,7 +37,7 @@ void QgsMapToolCircleCenterPoint::cadCanvasReleaseEvent( QgsMapMouseEvent *e )

if ( !mPoints.isEmpty() && !mTempRubberBand )
{
mTempRubberBand = createGeometryRubberBand( layerType, true );
mTempRubberBand = createGeometryRubberBand( mLayerType, true );
mTempRubberBand->show();
}

Expand Down
4 changes: 2 additions & 2 deletions src/app/qgsmaptoolcircularstringcurvepoint.cpp
Expand Up @@ -43,7 +43,7 @@ void QgsMapToolCircularStringCurvePoint::cadCanvasReleaseEvent( QgsMapMouseEvent
{
if ( !mTempRubberBand )
{
mTempRubberBand = createGeometryRubberBand( layerType, true );
mTempRubberBand = createGeometryRubberBand( mLayerType, true );
mTempRubberBand->show();
}

Expand All @@ -57,7 +57,7 @@ void QgsMapToolCircularStringCurvePoint::cadCanvasReleaseEvent( QgsMapMouseEvent
{
if ( !mRubberBand )
{
mRubberBand = createGeometryRubberBand( layerType );
mRubberBand = createGeometryRubberBand( mLayerType );
mRubberBand->show();
}

Expand Down
4 changes: 2 additions & 2 deletions src/app/qgsmaptoolcircularstringradius.cpp
Expand Up @@ -110,7 +110,7 @@ void QgsMapToolCircularStringRadius::recalculateRubberBand()
int rubberBandSize = mPoints.size() - ( mPoints.size() + 1 ) % 2;
cString->setPoints( mPoints.mid( 0, rubberBandSize ) );
delete mRubberBand;
mRubberBand = createGeometryRubberBand( layerType );
mRubberBand = createGeometryRubberBand( mLayerType );
mRubberBand->setGeometry( cString );
mRubberBand->show();
}
Expand Down Expand Up @@ -141,7 +141,7 @@ void QgsMapToolCircularStringRadius::recalculateTempRubberBand( const QgsPointXY
QgsCircularString *cString = new QgsCircularString();
cString->setPoints( rubberBandPoints );
delete mTempRubberBand;
mTempRubberBand = createGeometryRubberBand( layerType, true );
mTempRubberBand = createGeometryRubberBand( mLayerType, true );
mTempRubberBand->setGeometry( cString );
mTempRubberBand->show();
}
Expand Down
2 changes: 1 addition & 1 deletion src/app/qgsmaptoolellipsecenter2points.cpp
Expand Up @@ -40,7 +40,7 @@ void QgsMapToolEllipseCenter2Points::cadCanvasReleaseEvent( QgsMapMouseEvent *e

if ( !mPoints.isEmpty() && !mTempRubberBand )
{
mTempRubberBand = createGeometryRubberBand( layerType, true );
mTempRubberBand = createGeometryRubberBand( mLayerType, true );
mTempRubberBand->show();
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/app/qgsmaptoolellipsecenterpoint.cpp
Expand Up @@ -36,7 +36,7 @@ void QgsMapToolEllipseCenterPoint::cadCanvasReleaseEvent( QgsMapMouseEvent *e )

if ( !mPoints.isEmpty() && !mTempRubberBand )
{
mTempRubberBand = createGeometryRubberBand( layerType, true );
mTempRubberBand = createGeometryRubberBand( mLayerType, true );
mTempRubberBand->show();
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/app/qgsmaptoolellipseextent.cpp
Expand Up @@ -38,7 +38,7 @@ void QgsMapToolEllipseExtent::cadCanvasReleaseEvent( QgsMapMouseEvent *e )

if ( !mPoints.isEmpty() && !mTempRubberBand )
{
mTempRubberBand = createGeometryRubberBand( layerType, true );
mTempRubberBand = createGeometryRubberBand( mLayerType, true );
mTempRubberBand->show();
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/app/qgsmaptoolellipsefoci.cpp
Expand Up @@ -38,7 +38,7 @@ void QgsMapToolEllipseFoci::cadCanvasReleaseEvent( QgsMapMouseEvent *e )

if ( !mPoints.isEmpty() && !mTempRubberBand )
{
mTempRubberBand = createGeometryRubberBand( layerType, true );
mTempRubberBand = createGeometryRubberBand( mLayerType, true );
mTempRubberBand->show();
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/app/qgsmaptoolrectangle3points.cpp
Expand Up @@ -40,7 +40,7 @@ void QgsMapToolRectangle3Points::cadCanvasReleaseEvent( QgsMapMouseEvent *e )

if ( !mPoints.isEmpty() && !mTempRubberBand )
{
mTempRubberBand = createGeometryRubberBand( layerType, true );
mTempRubberBand = createGeometryRubberBand( mLayerType, true );
mTempRubberBand->show();
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/app/qgsmaptoolrectanglecenter.cpp
Expand Up @@ -39,7 +39,7 @@ void QgsMapToolRectangleCenter::cadCanvasReleaseEvent( QgsMapMouseEvent *e )

if ( !mPoints.isEmpty() && !mTempRubberBand )
{
mTempRubberBand = createGeometryRubberBand( layerType, true );
mTempRubberBand = createGeometryRubberBand( mLayerType, true );
mTempRubberBand->show();
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/app/qgsmaptoolrectangleextent.cpp
Expand Up @@ -39,7 +39,7 @@ void QgsMapToolRectangleExtent::cadCanvasReleaseEvent( QgsMapMouseEvent *e )

if ( !mPoints.isEmpty() && !mTempRubberBand )
{
mTempRubberBand = createGeometryRubberBand( layerType, true );
mTempRubberBand = createGeometryRubberBand( mLayerType, true );
mTempRubberBand->show();
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/app/qgsmaptoolregularpolygon2points.cpp
Expand Up @@ -46,7 +46,7 @@ void QgsMapToolRegularPolygon2Points::cadCanvasReleaseEvent( QgsMapMouseEvent *e
{
if ( !mTempRubberBand )
{
mTempRubberBand = createGeometryRubberBand( layerType, true );
mTempRubberBand = createGeometryRubberBand( mLayerType, true );
mTempRubberBand->show();

createNumberSidesSpinBox();
Expand Down
2 changes: 1 addition & 1 deletion src/app/qgsmaptoolregularpolygoncentercorner.cpp
Expand Up @@ -43,7 +43,7 @@ void QgsMapToolRegularPolygonCenterCorner::cadCanvasReleaseEvent( QgsMapMouseEve
{
if ( !mTempRubberBand )
{
mTempRubberBand = createGeometryRubberBand( layerType, true );
mTempRubberBand = createGeometryRubberBand( mLayerType, true );
mTempRubberBand->show();

createNumberSidesSpinBox();
Expand Down
2 changes: 1 addition & 1 deletion src/app/qgsmaptoolregularpolygoncenterpoint.cpp
Expand Up @@ -43,7 +43,7 @@ void QgsMapToolRegularPolygonCenterPoint::cadCanvasReleaseEvent( QgsMapMouseEven
{
if ( !mTempRubberBand )
{
mTempRubberBand = createGeometryRubberBand( layerType, true );
mTempRubberBand = createGeometryRubberBand( mLayerType, true );
mTempRubberBand->show();

createNumberSidesSpinBox();
Expand Down

0 comments on commit ad94cce

Please sign in to comment.