@@ -396,7 +396,7 @@ Q_GUI_EXPORT extern int qt_defaultDpiX();
396
396
#include " qgsmaptoolrotatelabel.h"
397
397
#include " qgsmaptoolchangelabelproperties.h"
398
398
399
- #include " nodetool/qgsnodetool .h"
399
+ #include " vertextool/qgsvertextool .h"
400
400
401
401
// Editor widgets
402
402
#include " qgseditorwidgetregistry.h"
@@ -1343,7 +1343,7 @@ QgisApp::~QgisApp()
1343
1343
delete mMapTools .mMoveFeature ;
1344
1344
delete mMapTools .mMoveFeatureCopy ;
1345
1345
delete mMapTools .mMoveLabel ;
1346
- delete mMapTools .mNodeTool ;
1346
+ delete mMapTools .mVertexTool ;
1347
1347
delete mMapTools .mOffsetCurve ;
1348
1348
delete mMapTools .mPinLabels ;
1349
1349
delete mMapTools .mReshapeFeatures ;
@@ -1904,7 +1904,7 @@ void QgisApp::createActions()
1904
1904
connect ( mActionMergeFeatures , &QAction::triggered, this , &QgisApp::mergeSelectedFeatures );
1905
1905
connect ( mActionMergeFeatureAttributes , &QAction::triggered, this , &QgisApp::mergeAttributesOfSelectedFeatures );
1906
1906
connect ( mActionMultiEditAttributes , &QAction::triggered, this , &QgisApp::modifyAttributesOfSelectedFeatures );
1907
- connect ( mActionNodeTool , &QAction::triggered, this , &QgisApp::nodeTool );
1907
+ connect ( mActionVertexTool , &QAction::triggered, this , &QgisApp::vertexTool );
1908
1908
connect ( mActionRotatePointSymbols , &QAction::triggered, this , &QgisApp::rotatePointSymbols );
1909
1909
connect ( mActionOffsetPointSymbol , &QAction::triggered, this , &QgisApp::offsetPointSymbol );
1910
1910
connect ( mActionSnappingOptions , &QAction::triggered, this , &QgisApp::snappingOptions );
@@ -2190,7 +2190,7 @@ void QgisApp::createActionGroups()
2190
2190
mMapToolGroup ->addAction ( mActionDeletePart );
2191
2191
mMapToolGroup ->addAction ( mActionMergeFeatures );
2192
2192
mMapToolGroup ->addAction ( mActionMergeFeatureAttributes );
2193
- mMapToolGroup ->addAction ( mActionNodeTool );
2193
+ mMapToolGroup ->addAction ( mActionVertexTool );
2194
2194
mMapToolGroup ->addAction ( mActionRotatePointSymbols );
2195
2195
mMapToolGroup ->addAction ( mActionOffsetPointSymbol );
2196
2196
mMapToolGroup ->addAction ( mActionPinLabels );
@@ -2681,7 +2681,7 @@ void QgisApp::createToolBars()
2681
2681
tbAddCircularString->addAction ( mActionCircularStringRadius );
2682
2682
tbAddCircularString->setDefaultAction ( mActionCircularStringCurvePoint );
2683
2683
connect ( tbAddCircularString, &QToolButton::triggered, this , &QgisApp::toolButtonActionTriggered );
2684
- mRegularShapeDigitizeToolBar ->insertWidget ( mActionNodeTool , tbAddCircularString );
2684
+ mRegularShapeDigitizeToolBar ->insertWidget ( mActionVertexTool , tbAddCircularString );
2685
2685
2686
2686
// circle digitize tool button
2687
2687
QToolButton *tbAddCircle = new QToolButton ( mRegularShapeDigitizeToolBar );
@@ -2693,7 +2693,7 @@ void QgisApp::createToolBars()
2693
2693
tbAddCircle->addAction ( mActionCircleCenterPoint );
2694
2694
tbAddCircle->setDefaultAction ( mActionCircle2Points );
2695
2695
connect ( tbAddCircle, &QToolButton::triggered, this , &QgisApp::toolButtonActionTriggered );
2696
- mRegularShapeDigitizeToolBar ->insertWidget ( mActionNodeTool , tbAddCircle );
2696
+ mRegularShapeDigitizeToolBar ->insertWidget ( mActionVertexTool , tbAddCircle );
2697
2697
2698
2698
// ellipse digitize tool button
2699
2699
QToolButton *tbAddEllipse = new QToolButton ( mRegularShapeDigitizeToolBar );
@@ -2704,7 +2704,7 @@ void QgisApp::createToolBars()
2704
2704
tbAddEllipse->addAction ( mActionEllipseFoci );
2705
2705
tbAddEllipse->setDefaultAction ( mActionEllipseCenter2Points );
2706
2706
connect ( tbAddEllipse, &QToolButton::triggered, this , &QgisApp::toolButtonActionTriggered );
2707
- mRegularShapeDigitizeToolBar ->insertWidget ( mActionNodeTool , tbAddEllipse );
2707
+ mRegularShapeDigitizeToolBar ->insertWidget ( mActionVertexTool , tbAddEllipse );
2708
2708
2709
2709
// Rectangle digitize tool button
2710
2710
QToolButton *tbAddRectangle = new QToolButton ( mRegularShapeDigitizeToolBar );
@@ -2714,7 +2714,7 @@ void QgisApp::createToolBars()
2714
2714
tbAddRectangle->addAction ( mActionRectangle3Points );
2715
2715
tbAddRectangle->setDefaultAction ( mActionRectangleCenterPoint );
2716
2716
connect ( tbAddRectangle, &QToolButton::triggered, this , &QgisApp::toolButtonActionTriggered );
2717
- mRegularShapeDigitizeToolBar ->insertWidget ( mActionNodeTool , tbAddRectangle );
2717
+ mRegularShapeDigitizeToolBar ->insertWidget ( mActionVertexTool , tbAddRectangle );
2718
2718
2719
2719
// Regular polygon digitize tool button
2720
2720
QToolButton *tbAddRegularPolygon = new QToolButton ( mRegularShapeDigitizeToolBar );
@@ -2724,7 +2724,7 @@ void QgisApp::createToolBars()
2724
2724
tbAddRegularPolygon->addAction ( mActionRegularPolygonCenterCorner );
2725
2725
tbAddRegularPolygon->setDefaultAction ( mActionRegularPolygon2Points );
2726
2726
connect ( tbAddRegularPolygon, &QToolButton::triggered, this , &QgisApp::toolButtonActionTriggered );
2727
- mRegularShapeDigitizeToolBar ->insertWidget ( mActionNodeTool , tbAddRegularPolygon );
2727
+ mRegularShapeDigitizeToolBar ->insertWidget ( mActionVertexTool , tbAddRegularPolygon );
2728
2728
2729
2729
// move feature tool button
2730
2730
QToolButton *moveFeatureButton = new QToolButton ( mDigitizeToolBar );
@@ -2743,7 +2743,7 @@ void QgisApp::createToolBars()
2743
2743
};
2744
2744
moveFeatureButton->setDefaultAction ( defAction );
2745
2745
connect ( moveFeatureButton, &QToolButton::triggered, this , &QgisApp::toolButtonActionTriggered );
2746
- mDigitizeToolBar ->insertWidget ( mActionNodeTool , moveFeatureButton );
2746
+ mDigitizeToolBar ->insertWidget ( mActionVertexTool , moveFeatureButton );
2747
2747
2748
2748
bt = new QToolButton ();
2749
2749
bt->setPopupMode ( QToolButton::MenuButtonPopup );
@@ -3051,7 +3051,7 @@ void QgisApp::setTheme( const QString &themeName )
3051
3051
mActionSplitFeatures ->setIcon ( QgsApplication::getThemeIcon ( QStringLiteral ( " /mActionSplitFeatures.svg" ) ) );
3052
3052
mActionSplitParts ->setIcon ( QgsApplication::getThemeIcon ( QStringLiteral ( " /mActionSplitParts.svg" ) ) );
3053
3053
mActionDeleteSelected ->setIcon ( QgsApplication::getThemeIcon ( QStringLiteral ( " /mActionDeleteSelected.svg" ) ) );
3054
- mActionNodeTool ->setIcon ( QgsApplication::getThemeIcon ( QStringLiteral ( " /mActionNodeTool .svg" ) ) );
3054
+ mActionVertexTool ->setIcon ( QgsApplication::getThemeIcon ( QStringLiteral ( " /mActionVertexTool .svg" ) ) );
3055
3055
mActionSimplifyFeature ->setIcon ( QgsApplication::getThemeIcon ( QStringLiteral ( " /mActionSimplify.svg" ) ) );
3056
3056
mActionUndo ->setIcon ( QgsApplication::getThemeIcon ( QStringLiteral ( " /mActionUndo.svg" ) ) );
3057
3057
mActionRedo ->setIcon ( QgsApplication::getThemeIcon ( QStringLiteral ( " /mActionRedo.svg" ) ) );
@@ -3341,8 +3341,8 @@ void QgisApp::createCanvasTools()
3341
3341
mMapTools .mDeleteRing ->setAction ( mActionDeleteRing );
3342
3342
mMapTools .mDeletePart = new QgsMapToolDeletePart ( mMapCanvas );
3343
3343
mMapTools .mDeletePart ->setAction ( mActionDeletePart );
3344
- mMapTools .mNodeTool = new QgsNodeTool ( mMapCanvas , mAdvancedDigitizingDockWidget );
3345
- mMapTools .mNodeTool ->setAction ( mActionNodeTool );
3344
+ mMapTools .mVertexTool = new QgsVertexTool ( mMapCanvas , mAdvancedDigitizingDockWidget );
3345
+ mMapTools .mVertexTool ->setAction ( mActionVertexTool );
3346
3346
mMapTools .mRotatePointSymbolsTool = new QgsMapToolRotatePointSymbols ( mMapCanvas );
3347
3347
mMapTools .mRotatePointSymbolsTool ->setAction ( mActionRotatePointSymbols );
3348
3348
mMapTools .mOffsetPointSymbolTool = new QgsMapToolOffsetPointSymbol ( mMapCanvas );
@@ -7904,9 +7904,9 @@ void QgisApp::mergeSelectedFeatures()
7904
7904
vl->triggerRepaint ();
7905
7905
}
7906
7906
7907
- void QgisApp::nodeTool ()
7907
+ void QgisApp::vertexTool ()
7908
7908
{
7909
- mMapCanvas ->setMapTool ( mMapTools .mNodeTool );
7909
+ mMapCanvas ->setMapTool ( mMapTools .mVertexTool );
7910
7910
}
7911
7911
7912
7912
void QgisApp::rotatePointSymbols ()
@@ -11432,7 +11432,7 @@ void QgisApp::activateDeactivateLayerRelatedActions( QgsMapLayer *layer )
11432
11432
mActionMoveFeatureCopy ->setEnabled ( false );
11433
11433
mActionRotateFeature ->setEnabled ( false );
11434
11434
mActionOffsetCurve ->setEnabled ( false );
11435
- mActionNodeTool ->setEnabled ( false );
11435
+ mActionVertexTool ->setEnabled ( false );
11436
11436
mActionDeleteSelected ->setEnabled ( false );
11437
11437
mActionCutFeatures ->setEnabled ( false );
11438
11438
mActionCopyFeatures ->setEnabled ( false );
@@ -11609,7 +11609,7 @@ void QgisApp::activateDeactivateLayerRelatedActions( QgsMapLayer *layer )
11609
11609
mActionMoveFeature ->setEnabled ( isEditable && canChangeGeometry );
11610
11610
mActionMoveFeatureCopy ->setEnabled ( isEditable && canChangeGeometry );
11611
11611
mActionRotateFeature ->setEnabled ( isEditable && canChangeGeometry );
11612
- mActionNodeTool ->setEnabled ( isEditable && canChangeGeometry );
11612
+ mActionVertexTool ->setEnabled ( isEditable && canChangeGeometry );
11613
11613
11614
11614
if ( vlayer->geometryType () == QgsWkbTypes::PointGeometry )
11615
11615
{
@@ -11763,7 +11763,7 @@ void QgisApp::activateDeactivateLayerRelatedActions( QgsMapLayer *layer )
11763
11763
mActionAddRing ->setEnabled ( false );
11764
11764
mActionFillRing ->setEnabled ( false );
11765
11765
mActionAddPart ->setEnabled ( false );
11766
- mActionNodeTool ->setEnabled ( false );
11766
+ mActionVertexTool ->setEnabled ( false );
11767
11767
mActionMoveFeature ->setEnabled ( false );
11768
11768
mActionMoveFeatureCopy ->setEnabled ( false );
11769
11769
mActionRotateFeature ->setEnabled ( false );
0 commit comments