@@ -356,7 +356,6 @@ Q_GUI_EXPORT extern int qt_defaultDpiX();
356
356
#include " qgsmaptoolrectanglecenter.h"
357
357
#include " qgsmaptoolrectangleextent.h"
358
358
#include " qgsmaptoolrectangle3points.h"
359
- #include " qgsmaptoolsquarecenter.h"
360
359
#include " qgsmaptoolregularpolygon2points.h"
361
360
#include " qgsmaptoolregularpolygoncenterpoint.h"
362
361
#include " qgsmaptoolregularpolygoncentercorner.h"
@@ -1324,7 +1323,6 @@ QgisApp::~QgisApp()
1324
1323
delete mMapTools .mRectangleCenterPoint ;
1325
1324
delete mMapTools .mRectangleExtent ;
1326
1325
delete mMapTools .mRectangle3Points ;
1327
- delete mMapTools .mSquareCenter ;
1328
1326
delete mMapTools .mRegularPolygon2Points ;
1329
1327
delete mMapTools .mRegularPolygonCenterPoint ;
1330
1328
delete mMapTools .mRegularPolygonCenterCorner ;
@@ -1803,7 +1801,6 @@ void QgisApp::createActions()
1803
1801
connect ( mActionRectangleCenterPoint , &QAction::triggered, this , &QgisApp::rectangleCenterPoint );
1804
1802
connect ( mActionRectangleExtent , &QAction::triggered, this , &QgisApp::rectangleExtent );
1805
1803
connect ( mActionRectangle3Points , &QAction::triggered, this , &QgisApp::rectangle3Points );
1806
- connect ( mActionSquareCenter , &QAction::triggered, this , &QgisApp::squareCenter );
1807
1804
connect ( mActionRegularPolygon2Points , &QAction::triggered, this , &QgisApp::regularPolygon2Points );
1808
1805
connect ( mActionRegularPolygonCenterPoint , &QAction::triggered, this , &QgisApp::regularPolygonCenterPoint );
1809
1806
connect ( mActionRegularPolygonCenterCorner , &QAction::triggered, this , &QgisApp::regularPolygonCenterCorner );
@@ -2093,7 +2090,6 @@ void QgisApp::createActionGroups()
2093
2090
mMapToolGroup ->addAction ( mActionRectangleCenterPoint );
2094
2091
mMapToolGroup ->addAction ( mActionRectangleExtent );
2095
2092
mMapToolGroup ->addAction ( mActionRectangle3Points );
2096
- mMapToolGroup ->addAction ( mActionSquareCenter );
2097
2093
mMapToolGroup ->addAction ( mActionRegularPolygon2Points );
2098
2094
mMapToolGroup ->addAction ( mActionRegularPolygonCenterPoint );
2099
2095
mMapToolGroup ->addAction ( mActionRegularPolygonCenterCorner );
@@ -2634,7 +2630,6 @@ void QgisApp::createToolBars()
2634
2630
tbAddRectangle->addAction ( mActionRectangleCenterPoint );
2635
2631
tbAddRectangle->addAction ( mActionRectangleExtent );
2636
2632
tbAddRectangle->addAction ( mActionRectangle3Points );
2637
- tbAddRectangle->addAction ( mActionSquareCenter );
2638
2633
tbAddRectangle->setDefaultAction ( mActionRectangleCenterPoint );
2639
2634
connect ( tbAddRectangle, &QToolButton::triggered, this , &QgisApp::toolButtonActionTriggered );
2640
2635
mRegularShapeDigitizeToolBar ->insertWidget ( mActionNodeTool , tbAddRectangle );
@@ -3242,8 +3237,6 @@ void QgisApp::createCanvasTools()
3242
3237
mMapTools .mRectangleExtent ->setAction ( mActionRectangleExtent );
3243
3238
mMapTools .mRectangle3Points = new QgsMapToolRectangle3Points ( dynamic_cast <QgsMapToolAddFeature *>( mMapTools .mAddFeature ), mMapCanvas );
3244
3239
mMapTools .mRectangle3Points ->setAction ( mActionRectangle3Points );
3245
- mMapTools .mSquareCenter = new QgsMapToolSquareCenter ( dynamic_cast <QgsMapToolAddFeature *>( mMapTools .mAddFeature ), mMapCanvas );
3246
- mMapTools .mSquareCenter ->setAction ( mActionSquareCenter );
3247
3240
mMapTools .mRegularPolygon2Points = new QgsMapToolRegularPolygon2Points ( dynamic_cast <QgsMapToolAddFeature *>( mMapTools .mAddFeature ), mMapCanvas );
3248
3241
mMapTools .mRegularPolygon2Points ->setAction ( mActionRegularPolygon2Points );
3249
3242
mMapTools .mRegularPolygonCenterPoint = new QgsMapToolRegularPolygonCenterPoint ( dynamic_cast <QgsMapToolAddFeature *>( mMapTools .mAddFeature ), mMapCanvas );
@@ -7878,11 +7871,6 @@ void QgisApp::rectangle3Points()
7878
7871
mMapCanvas ->setMapTool ( mMapTools .mRectangle3Points );
7879
7872
}
7880
7873
7881
- void QgisApp::squareCenter ()
7882
- {
7883
- mMapCanvas ->setMapTool ( mMapTools .mSquareCenter );
7884
- }
7885
-
7886
7874
void QgisApp::regularPolygon2Points ()
7887
7875
{
7888
7876
mMapCanvas ->setMapTool ( mMapTools .mRegularPolygon2Points );
@@ -11302,7 +11290,6 @@ void QgisApp::activateDeactivateLayerRelatedActions( QgsMapLayer *layer )
11302
11290
mActionEllipseFoci ->setEnabled ( false );
11303
11291
mActionRectangleCenterPoint ->setEnabled ( false );
11304
11292
mActionRectangleExtent ->setEnabled ( false );
11305
- mActionSquareCenter ->setEnabled ( false );
11306
11293
mActionRegularPolygon2Points ->setEnabled ( false );
11307
11294
mActionRegularPolygonCenterPoint ->setEnabled ( false );
11308
11295
mActionRegularPolygonCenterCorner ->setEnabled ( false );
@@ -11466,8 +11453,6 @@ void QgisApp::activateDeactivateLayerRelatedActions( QgsMapLayer *layer )
11466
11453
&& ( vlayer->geometryType () == QgsWkbTypes::LineGeometry || vlayer->geometryType () == QgsWkbTypes::PolygonGeometry ) );
11467
11454
mActionRectangle3Points ->setEnabled ( isEditable && ( canAddFeatures || canChangeGeometry )
11468
11455
&& ( vlayer->geometryType () == QgsWkbTypes::LineGeometry || vlayer->geometryType () == QgsWkbTypes::PolygonGeometry ) );
11469
- mActionSquareCenter ->setEnabled ( isEditable && ( canAddFeatures || canChangeGeometry )
11470
- && ( vlayer->geometryType () == QgsWkbTypes::LineGeometry || vlayer->geometryType () == QgsWkbTypes::PolygonGeometry ) );
11471
11456
mActionRegularPolygon2Points ->setEnabled ( isEditable && ( canAddFeatures || canChangeGeometry )
11472
11457
&& ( vlayer->geometryType () == QgsWkbTypes::LineGeometry || vlayer->geometryType () == QgsWkbTypes::PolygonGeometry ) );
11473
11458
mActionRegularPolygonCenterPoint ->setEnabled ( isEditable && ( canAddFeatures || canChangeGeometry )
0 commit comments