157
157
#include " qgsmaptooladdisland.h"
158
158
#include " qgsmaptooladdring.h"
159
159
#include " qgsmaptooladdvertex.h"
160
- #include " qgsmaptooldeletehole .h"
160
+ #include " qgsmaptooldeletering .h"
161
161
#include " qgsmaptooldeletepart.h"
162
162
#include " qgsmaptooldeletevertex.h"
163
163
#include " qgsmaptoolidentify.h"
@@ -469,7 +469,7 @@ QgisApp::~QgisApp()
469
469
delete mMapTools .mVertexDelete ;
470
470
delete mMapTools .mAddRing ;
471
471
delete mMapTools .mSimplifyFeature ;
472
- delete mMapTools .mDeleteHole ;
472
+ delete mMapTools .mDeleteRing ;
473
473
delete mMapTools .mDeletePart ;
474
474
delete mMapTools .mAddIsland ;
475
475
@@ -678,10 +678,10 @@ void QgisApp::createActions()
678
678
connect ( mActionSimplifyFeature , SIGNAL ( triggered () ), this , SLOT ( simplifyFeature () ) );
679
679
mActionSimplifyFeature ->setEnabled ( false );
680
680
681
- mActionDeleteHole = new QAction ( getThemeIcon ( " mActionDeleteHole .png" ), tr ( " Delete Hole " ), this );
682
- mActionDeleteHole ->setStatusTip ( tr ( " Delete Hole " ) );
683
- connect ( mActionDeleteHole , SIGNAL ( triggered () ), this , SLOT ( deleteHole () ) );
684
- mActionDeleteHole ->setEnabled ( false );
681
+ mActionDeleteRing = new QAction ( getThemeIcon ( " mActionDeleteRing .png" ), tr ( " Delete Ring " ), this );
682
+ mActionDeleteRing ->setStatusTip ( tr ( " Delete Ring " ) );
683
+ connect ( mActionDeleteRing , SIGNAL ( triggered () ), this , SLOT ( deleteRing () ) );
684
+ mActionDeleteRing ->setEnabled ( false );
685
685
686
686
mActionDeletePart = new QAction ( getThemeIcon ( " mActionDeletePart.png" ), tr ( " Delete Part" ), this );
687
687
mActionDeletePart ->setStatusTip ( tr ( " Delete Part" ) );
@@ -1014,8 +1014,8 @@ void QgisApp::createActionGroups()
1014
1014
mMapToolGroup ->addAction ( mActionAddIsland );
1015
1015
mActionSimplifyFeature ->setCheckable ( true );
1016
1016
mMapToolGroup ->addAction ( mActionSimplifyFeature );
1017
- mActionDeleteHole ->setCheckable ( true );
1018
- mMapToolGroup ->addAction ( mActionDeleteHole );
1017
+ mActionDeleteRing ->setCheckable ( true );
1018
+ mMapToolGroup ->addAction ( mActionDeleteRing );
1019
1019
mActionDeletePart ->setCheckable ( true );
1020
1020
mMapToolGroup ->addAction ( mActionDeletePart );
1021
1021
}
@@ -1104,7 +1104,7 @@ void QgisApp::createMenus()
1104
1104
mEditMenu ->addAction ( mActionSimplifyFeature );
1105
1105
mEditMenu ->addAction ( mActionAddRing );
1106
1106
mEditMenu ->addAction ( mActionAddIsland );
1107
- mEditMenu ->addAction ( mActionDeleteHole );
1107
+ mEditMenu ->addAction ( mActionDeleteRing );
1108
1108
mEditMenu ->addAction ( mActionDeletePart );
1109
1109
1110
1110
if ( layout == QDialogButtonBox::GnomeLayout || layout == QDialogButtonBox::MacLayout )
@@ -1306,7 +1306,7 @@ void QgisApp::createToolBars()
1306
1306
mAdvancedDigitizeToolBar ->addAction ( mActionSimplifyFeature );
1307
1307
mAdvancedDigitizeToolBar ->addAction ( mActionAddRing );
1308
1308
mAdvancedDigitizeToolBar ->addAction ( mActionAddIsland );
1309
- mAdvancedDigitizeToolBar ->addAction ( mActionDeleteHole );
1309
+ mAdvancedDigitizeToolBar ->addAction ( mActionDeleteRing );
1310
1310
mAdvancedDigitizeToolBar ->addAction ( mActionDeletePart );
1311
1311
mToolbarMenu ->addAction ( mAdvancedDigitizeToolBar ->toggleViewAction () );
1312
1312
@@ -1534,7 +1534,7 @@ void QgisApp::setTheme( QString theThemeName )
1534
1534
mActionSimplifyFeature ->setIcon ( getThemeIcon ( " /mActionSimplify.png" ) );
1535
1535
mActionAddRing ->setIcon ( getThemeIcon ( " /mActionAddRing.png" ) );
1536
1536
mActionAddIsland ->setIcon ( getThemeIcon ( " /mActionAddIsland.png" ) );
1537
- mActionDeleteHole ->setIcon ( getThemeIcon ( " /mActionDeleteHole .png" ) );
1537
+ mActionDeleteRing ->setIcon ( getThemeIcon ( " /mActionDeleteRing .png" ) );
1538
1538
mActionDeletePart ->setIcon ( getThemeIcon ( " /mActionDeletePart.png" ) );
1539
1539
mActionZoomIn ->setIcon ( getThemeIcon ( " /mActionZoomIn.png" ) );
1540
1540
mActionZoomOut ->setIcon ( getThemeIcon ( " /mActionZoomOut.png" ) );
@@ -1655,8 +1655,8 @@ void QgisApp::createCanvas()
1655
1655
mMapTools .mAddIsland = new QgsMapToolAddIsland ( mMapCanvas );
1656
1656
mMapTools .mSimplifyFeature = new QgsMapToolSimplify ( mMapCanvas );
1657
1657
mMapTools .mSimplifyFeature ->setAction ( mActionSimplifyFeature );
1658
- mMapTools .mDeleteHole = new QgsMapToolDeleteHole ( mMapCanvas );
1659
- mMapTools .mDeleteHole ->setAction ( mActionDeleteHole );
1658
+ mMapTools .mDeleteRing = new QgsMapToolDeleteRing ( mMapCanvas );
1659
+ mMapTools .mDeleteRing ->setAction ( mActionDeleteRing );
1660
1660
mMapTools .mDeletePart = new QgsMapToolDeletePart ( mMapCanvas );
1661
1661
mMapTools .mDeletePart ->setAction ( mActionDeletePart );
1662
1662
// ensure that non edit tool is initialised or we will get crashes in some situations
@@ -4037,9 +4037,9 @@ void QgisApp::simplifyFeature()
4037
4037
mMapCanvas ->setMapTool ( mMapTools .mSimplifyFeature );
4038
4038
}
4039
4039
4040
- void QgisApp::deleteHole ()
4040
+ void QgisApp::deleteRing ()
4041
4041
{
4042
- mMapCanvas ->setMapTool ( mMapTools .mDeleteHole );
4042
+ mMapCanvas ->setMapTool ( mMapTools .mDeleteRing );
4043
4043
}
4044
4044
4045
4045
void QgisApp::deletePart ()
@@ -5302,7 +5302,7 @@ void QgisApp::activateDeactivateLayerRelatedActions( QgsMapLayer* layer )
5302
5302
mActionAddIsland ->setEnabled ( false );
5303
5303
mActionSplitFeatures ->setEnabled ( false );
5304
5304
mActionSimplifyFeature ->setEnabled ( false );
5305
- mActionDeleteHole ->setEnabled ( false );
5305
+ mActionDeleteRing ->setEnabled ( false );
5306
5306
5307
5307
if ( vlayer->isEditable () && dprovider->capabilities () & QgsVectorDataProvider::ChangeGeometries )
5308
5308
{
@@ -5334,7 +5334,7 @@ void QgisApp::activateDeactivateLayerRelatedActions( QgsMapLayer* layer )
5334
5334
mActionCapturePolygon ->setVisible ( false );
5335
5335
mActionAddRing ->setEnabled ( false );
5336
5336
mActionAddIsland ->setEnabled ( false );
5337
- mActionDeleteHole ->setEnabled ( false );
5337
+ mActionDeleteRing ->setEnabled ( false );
5338
5338
}
5339
5339
else if ( vlayer->geometryType () == QGis::Polygon )
5340
5340
{
@@ -5346,7 +5346,7 @@ void QgisApp::activateDeactivateLayerRelatedActions( QgsMapLayer* layer )
5346
5346
mActionAddIsland ->setEnabled ( true );
5347
5347
mActionSplitFeatures ->setEnabled ( true );
5348
5348
mActionSimplifyFeature ->setEnabled ( true );
5349
- mActionDeleteHole ->setEnabled ( true );
5349
+ mActionDeleteRing ->setEnabled ( true );
5350
5350
mActionDeletePart ->setEnabled ( true );
5351
5351
}
5352
5352
else
@@ -5357,7 +5357,7 @@ void QgisApp::activateDeactivateLayerRelatedActions( QgsMapLayer* layer )
5357
5357
mActionAddIsland ->setEnabled ( false );
5358
5358
mActionSplitFeatures ->setEnabled ( false );
5359
5359
mActionSimplifyFeature ->setEnabled ( false );
5360
- mActionDeleteHole ->setEnabled ( false );
5360
+ mActionDeleteRing ->setEnabled ( false );
5361
5361
mActionDeletePart ->setEnabled ( false );
5362
5362
}
5363
5363
mActionCapturePoint ->setEnabled ( false );
0 commit comments