From: vsv Date: Tue, 28 Jun 2005 09:46:15 +0000 (+0000) Subject: Modified View 3d popup menu: Delete and Sweep has been added X-Git-Tag: T3_0_0_a4~2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=3ea57fa9cbb4a97b9581f073c0bef0cf41624a3b;p=modules%2Fvisu.git Modified View 3d popup menu: Delete and Sweep has been added --- diff --git a/src/VISUGUI/VisuGUI.cxx b/src/VISUGUI/VisuGUI.cxx index 3ab58d0d..9504b6b4 100644 --- a/src/VISUGUI/VisuGUI.cxx +++ b/src/VISUGUI/VisuGUI.cxx @@ -2280,7 +2280,11 @@ createPopupMenus() mgr->insert( action( VISU_DISPLAY_ONLY ), -1, -1, -1 ); // display only mgr->setRule( action( VISU_DISPLAY_ONLY ), aRule, true ); - aRule = "client='ObjectBrowser' and selcount=1 and $type in {'VISU::TTABLE' " + /* aRule = "client='ObjectBrowser' and selcount=1 and $type in {'VISU::TTABLE' " + "'VISU::TCURVE' 'VISU::TCONTAINER' 'VISU::TMESH' 'VISU::TSCALARMAP' " + "'VISU::TISOSURFACE' 'VISU::TDEFORMEDSHAPE' 'VISU::TCUTPLANES' " + "'VISU::TCUTLINES' 'VISU::TVECTORS' 'VISU::TSTREAMLINES'}";*/ + aRule = "selcount=1 and $type in {'VISU::TTABLE' " "'VISU::TCURVE' 'VISU::TCONTAINER' 'VISU::TMESH' 'VISU::TSCALARMAP' " "'VISU::TISOSURFACE' 'VISU::TDEFORMEDSHAPE' 'VISU::TCUTPLANES' " "'VISU::TCUTLINES' 'VISU::TVECTORS' 'VISU::TSTREAMLINES'}"; @@ -2379,7 +2383,8 @@ createPopupMenus() mgr->insert( action( VISU_CREATE_TABLE ), -1, -1, -1 ); // create table mgr->setRule( action( VISU_CREATE_TABLE ), aRule, true ); - aRule = "client='ObjectBrowser' and selcount=1 and type='VISU::TSCALARMAP'"; + //aRule = "client='ObjectBrowser' and selcount=1 and type='VISU::TSCALARMAP'"; + aRule = "selcount=1 and type='VISU::TSCALARMAP'"; mgr->insert ( action( VISU_SWEEP ), -1, -1, -1 ); // sweep mgr->setRule( action( VISU_SWEEP ), aRule, true );