]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
Modified View 3d popup menu: Delete and Sweep has been added
authorvsv <vsv@opencascade.com>
Tue, 28 Jun 2005 09:46:15 +0000 (09:46 +0000)
committervsv <vsv@opencascade.com>
Tue, 28 Jun 2005 09:46:15 +0000 (09:46 +0000)
src/VISUGUI/VisuGUI.cxx

index 3ab58d0d5ae0dd47b875a9b42db3fcc2b1d00de9..9504b6b409f6ef581768f44c8419022fba1b634f 100644 (file)
@@ -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 );