From: mzn Date: Wed, 12 Sep 2007 11:30:46 +0000 (+0000) Subject: Fix for bug NPAL16810 (EDF PAL 561 : Selection Info not in context menu for ScalarMap... X-Git-Tag: T_24092007~10 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=a4c7e9dedf480154c2939e57bba2c5e220a2cf83;p=modules%2Fvisu.git Fix for bug NPAL16810 (EDF PAL 561 : Selection Info not in context menu for ScalarMapOnDeformedShape). --- diff --git a/src/VISUGUI/VisuGUI.cxx b/src/VISUGUI/VisuGUI.cxx index bb318663..5b9a75c7 100644 --- a/src/VISUGUI/VisuGUI.cxx +++ b/src/VISUGUI/VisuGUI.cxx @@ -2652,7 +2652,7 @@ createPopupMenus() // 3D presentations commands QString aPrsType = " and $type in {'VISU::TMESH' " + aPrsAll + "}"; - QString aInsideType = " and $type in {'VISU::TMESH' 'VISU::TPRSMERGER' 'VISU::TDEFORMEDSHAPE'}"; + QString anInsideType = " and $type in {'VISU::TMESH' 'VISU::TPRSMERGER' 'VISU::TDEFORMEDSHAPE' 'VISU::TSCALARMAPONDEFORMEDSHAPE'}"; QString aSurfFrameType = " and $type in {'VISU::TMESH' 'VISU::TPRSMERGER''VISU::TDEFORMEDSHAPE' 'VISU::TSCALARMAPONDEFORMEDSHAPE'}"; QString aSurfType = " and $type in {'VISU::TMESH' 'VISU::TSCALARMAP' 'VISU::TPRSMERGER' 'VISU::TISOSURFACE' 'VISU::TDEFORMEDSHAPE' 'VISU::TCUTPLANES' " " 'VISU::TPLOT3D' 'VISU::TSCALARMAPONDEFORMEDSHAPE'}"; @@ -2674,7 +2674,7 @@ createPopupMenus() mgr->setRule( action( VISU_POINTS ) , aRule + aPrsType + aNotPoints, true ); mgr->setRule( action( VISU_WIREFRAME ) , aRule + aPrsType + aNotWirefr, true ); mgr->setRule( action( VISU_SURFACE ) , aRule + aSurfType + aNotSurfac, true ); - mgr->setRule( action( VISU_INSIDEFRAME ) , aRule + aInsideType + aNotInside, true ); + mgr->setRule( action( VISU_INSIDEFRAME ) , aRule + anInsideType + aNotInside, true ); mgr->setRule( action( VISU_SURFACEFRAME ), aRule + aSurfFrameType + aNotSurffr, true ); mgr->setRule( action( VISU_SHRINK ) , aRule + aShrinkType + " and isShrunk=0", true ); @@ -2737,7 +2737,7 @@ createPopupMenus() mgr->setRule( action( VISU_SWEEP ), aRule, true ); // "Selection info" popup item - aRule = "client='VTKViewer' and selcount=1" + aInsideType; + aRule = "client='VTKViewer' and selcount=1" + anInsideType; mgr->setRule( action( VISU_SELECTION_INFO ), aRule, true ); aRule = "client='ObjectBrowser' and selcount>0";