Skip to content
Permalink
Browse files

Visual indent part 3

  • Loading branch information
lbartoletti committed Oct 3, 2017
1 parent dec09cf commit 8e14d08ea64238b98148ce8a8437677fcf6fc4d8
@@ -24,7 +24,6 @@ QgsMapToolEllipseCenterPoint::QgsMapToolEllipseCenterPoint( QgsMapToolCapture *p
QgsMapCanvas *canvas, CaptureMode mode )
: QgsMapToolAddEllipse( parentTool, canvas, mode )
{

}

void QgsMapToolEllipseCenterPoint::cadCanvasReleaseEvent( QgsMapMouseEvent *e )
@@ -24,7 +24,6 @@ QgsMapToolEllipseExtent::QgsMapToolEllipseExtent( QgsMapToolCapture *parentTool,
QgsMapCanvas *canvas, CaptureMode mode )
: QgsMapToolAddEllipse( parentTool, canvas, mode )
{

}

void QgsMapToolEllipseExtent::cadCanvasReleaseEvent( QgsMapMouseEvent *e )
@@ -61,7 +60,6 @@ void QgsMapToolEllipseExtent::cadCanvasMoveEvent( QgsMapMouseEvent *e )
{
case 1:
{

if ( qgsDoubleNear( mCanvas->rotation(), 0.0 ) )
{
mEllipse = QgsEllipse().fromExtent( mPoints.at( 0 ), mapPoint );
@@ -43,7 +43,6 @@ void QgsMapToolRectangle3Points::cadCanvasReleaseEvent( QgsMapMouseEvent *e )
mTempRubberBand = createGeometryRubberBand( ( mode() == CapturePolygon ) ? QgsWkbTypes::PolygonGeometry : QgsWkbTypes::LineGeometry, true );
mTempRubberBand->show();
}

}
else if ( e->button() == Qt::RightButton )
{
@@ -100,5 +99,4 @@ void QgsMapToolRectangle3Points::cadCanvasMoveEvent( QgsMapMouseEvent *e )
break;
}
}

}
@@ -42,7 +42,6 @@ void QgsMapToolRectangleCenter::cadCanvasReleaseEvent( QgsMapMouseEvent *e )
mTempRubberBand = createGeometryRubberBand( ( mode() == CapturePolygon ) ? QgsWkbTypes::PolygonGeometry : QgsWkbTypes::LineGeometry, true );
mTempRubberBand->show();
}

}
else if ( e->button() == Qt::RightButton )
{
@@ -64,7 +63,6 @@ void QgsMapToolRectangleCenter::cadCanvasMoveEvent( QgsMapMouseEvent *e )
{
case 1:
{

if ( qgsDoubleNear( mCanvas->rotation(), 0.0 ) )
{
double xOffset = fabs( mapPoint.x() - mPoints.at( 0 ).x() );
@@ -41,7 +41,6 @@ void QgsMapToolRectangleExtent::cadCanvasReleaseEvent( QgsMapMouseEvent *e )
mTempRubberBand = createGeometryRubberBand( ( mode() == CapturePolygon ) ? QgsWkbTypes::PolygonGeometry : QgsWkbTypes::LineGeometry, true );
mTempRubberBand->show();
}

}
else if ( e->button() == Qt::RightButton )
{
@@ -65,9 +64,7 @@ void QgsMapToolRectangleExtent::cadCanvasMoveEvent( QgsMapMouseEvent *e )
{
if ( qgsDoubleNear( mCanvas->rotation(), 0.0 ) )
{

mRectangle = QgsRectangle( mPoints.at( 0 ), mapPoint );

mTempRubberBand->setGeometry( QgsMapToolAddRectangle::rectangleToPolygon( ) );
}
else
@@ -24,7 +24,6 @@ QgsMapToolRegularPolygon2Points::QgsMapToolRegularPolygon2Points( QgsMapToolCapt
QgsMapCanvas *canvas, CaptureMode mode )
: QgsMapToolAddRegularPolygon( parentTool, canvas, mode )
{

}

QgsMapToolRegularPolygon2Points::~QgsMapToolRegularPolygon2Points()
@@ -51,7 +50,6 @@ void QgsMapToolRegularPolygon2Points::cadCanvasReleaseEvent( QgsMapMouseEvent *e
mTempRubberBand->show();

createNumberSidesSpinBox();

}
}
}
@@ -24,7 +24,6 @@ QgsMapToolRegularPolygonCenterCorner::QgsMapToolRegularPolygonCenterCorner( QgsM
QgsMapCanvas *canvas, CaptureMode mode )
: QgsMapToolAddRegularPolygon( parentTool, canvas, mode )
{

}

QgsMapToolRegularPolygonCenterCorner::~QgsMapToolRegularPolygonCenterCorner()
@@ -24,7 +24,6 @@ QgsMapToolRegularPolygonCenterPoint::QgsMapToolRegularPolygonCenterPoint( QgsMap
QgsMapCanvas *canvas, CaptureMode mode )
: QgsMapToolAddRegularPolygon( parentTool, canvas, mode )
{

}

QgsMapToolRegularPolygonCenterPoint::~QgsMapToolRegularPolygonCenterPoint()

0 comments on commit 8e14d08

Please sign in to comment.
You can’t perform that action at this time.