case MergeLandCoverId:
setName( tr( "MERGE_LAND_COVER" ) );
break;
+ case ChangeLandCoverTypeId:
+ setName( tr( "CHANGE_LAND_COVER_TYPE" ) );
+ break;
}
}
}
}
// Get face(s) selected in the 3d viewer
- else if ( myOperationId == RemoveLandCoverId || myOperationId == MergeLandCoverId )
+ else if ( myOperationId == RemoveLandCoverId ||
+ myOperationId == MergeLandCoverId ||
+ myOperationId == ChangeLandCoverTypeId )
{
// TODO:
//Fill in aFacesSelectedInViewer list
// Get selected Strickler type
QString aSelectedStricklerType;
- if ( myOperationId == CreateLandCoverMapId || myOperationId == AddLandCoverId || myOperationId == MergeLandCoverId )
+ if ( myOperationId == CreateLandCoverMapId ||
+ myOperationId == AddLandCoverId ||
+ myOperationId == MergeLandCoverId )
{
aSelectedStricklerType = aPanel->getSelectedStricklerTypeName();
if ( aSelectedStricklerType.isEmpty() )
createAction( RemoveLandCoverId, "REMOVE_LAND_COVER", "REMOVE_LAND_COVER_ICO" );
createAction( SplitLandCoverId, "SPLIT_LAND_COVER", "SPLIT_LAND_COVER_ICO" );
createAction( MergeLandCoverId, "MERGE_LAND_COVER", "MERGE_LAND_COVER_ICO" );
+ createAction( ChangeLandCoverTypeId, "CHANGE_LAND_COVER_TYPE", "CHANGE_LAND_COVER_TYPE_ICO" );
createAction( ImportObstacleFromFileId, "IMPORT_OBSTACLE_FROM_FILE", "IMPORT_OBSTACLE_FROM_FILE_ICO" );
createAction( ImportGeomObjectAsObstacleId, "IMPORT_GEOM_OBJECT_AS_OBSTACLE", "IMPORT_GEOM_OBJECT_ICO" );
createMenu( separator(), aLandCoverMapMenuId );
createMenu( SplitLandCoverId, aLandCoverMapMenuId, -1, -1 );
createMenu( MergeLandCoverId, aLandCoverMapMenuId, -1, -1 );
+ createMenu( ChangeLandCoverTypeId, aLandCoverMapMenuId, -1, -1 );
createMenu( CreateCalculationId, aHydroId, -1, -1 );
createMenu( separator(), aHydroId );
createTool( RemoveLandCoverId, aToolBar );
createTool( SplitLandCoverId, aToolBar );
createTool( MergeLandCoverId, aToolBar );
+ createTool( ChangeLandCoverTypeId, aToolBar );
createTool( separator(), aToolBar );
createTool( CreateCalculationId, aToolBar );
case MergeLandCoverId:
anOp = new HYDROGUI_LandCoverMapOp( aModule, theId );
break;
+ case ChangeLandCoverTypeId:
+ anOp = new HYDROGUI_LandCoverMapOp( aModule, theId );
+ break;
case DuplicateStricklerTableId:
anOp = new HYDROGUI_DuplicateOp( aModule );
break;