mirror of
https://github.com/qgis/QGIS.git
synced 2025-03-23 00:05:43 -04:00
Visual indent part 3
This commit is contained in:
parent
dec09cf5bd
commit
8e14d08ea6
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user