Skip to content
Permalink
Browse files
Activation of OffsetCurve tool
  • Loading branch information
mhugent committed Feb 21, 2012
1 parent 82cd4af commit 80108fd31ab5309a0635d73e2aa182b6328ed4dd
Showing with 3 additions and 1 deletion.
  1. +2 −1 src/app/qgisapp.cpp
  2. +1 −0 src/app/qgsmaptooloffsetcurve.cpp
@@ -6119,6 +6119,7 @@ void QgisApp::activateDeactivateLayerRelatedActions( QgsMapLayer* layer )
mActionDeleteRing->setEnabled( false );
mActionDeletePart->setEnabled( false );
mActionReshapeFeatures->setEnabled( false );
mActionOffsetCurve->setEnabled( false );
mActionSplitFeatures->setEnabled( false );
mActionMergeFeatures->setEnabled( false );
mActionMergeFeatureAttributes->setEnabled( false );
@@ -6230,7 +6231,6 @@ void QgisApp::activateDeactivateLayerRelatedActions( QgsMapLayer* layer )
mActionAddPart->setEnabled( true );
mActionDeletePart->setEnabled( true );
mActionMoveFeature->setEnabled( true );
mActionOffsetCurve->setEnabled( true );
mActionNodeTool->setEnabled( true );
}
else
@@ -6271,6 +6271,7 @@ void QgisApp::activateDeactivateLayerRelatedActions( QgsMapLayer* layer )
mActionReshapeFeatures->setEnabled( true );
mActionSplitFeatures->setEnabled( true );
mActionSimplifyFeature->setEnabled( true );
mActionOffsetCurve->setEnabled( dprovider->capabilities() & QgsVectorDataProvider::ChangeAttributeValues );
}
else
{
@@ -167,6 +167,7 @@ void QgsMapToolOffsetCurve::canvasMoveEvent( QMouseEvent * e )
{
layerCoords = results.at( 0 ).snappedVertex;
}
//todo: add vertex marker item
}
}

0 comments on commit 80108fd

Please sign in to comment.