]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
0021014: EDF 1583 SMESH: Improvement of the Python Dump for the creation of groups
authoreap <eap@opencascade.com>
Thu, 23 Jun 2011 12:34:17 +0000 (12:34 +0000)
committereap <eap@opencascade.com>
Thu, 23 Jun 2011 12:34:17 +0000 (12:34 +0000)
  To edit SMESH_GroupOnFilter

src/SMESHGUI/SMESHGUI.cxx

index 308e7ac40cbd6c8a71964200e5ce04d5ca86c3a6..eda45d9b9cf44eaae292cc166c4619a5522c6de0 100644 (file)
@@ -2513,6 +2513,15 @@ bool SMESHGUI::OnGUIEvent( int theCommandID )
           SMESHGUI_GroupDlg *aDlg = new SMESHGUI_GroupDlg( this, aGroup, true );
           aDlg->show();
         }
+        else
+        {
+          SMESH::SMESH_GroupOnFilter_var aGroup =
+            SMESH::IObjectToInterface<SMESH::SMESH_GroupOnFilter>(It.Value());
+          if (!aGroup->_is_nil()) {
+            SMESHGUI_GroupDlg *aDlg = new SMESHGUI_GroupDlg( this, aGroup, true );
+            aDlg->show();
+          }
+        }
       }
       break;
     }
@@ -3713,7 +3722,7 @@ void SMESHGUI::initialize( CAM_Application* app )
   createPopupItem( 704, OB, mesh, "&& isComputable");      // EDIT_MESHSUBMESH
   createPopupItem( 704, OB, subMesh, "&& isComputable" );  // EDIT_MESHSUBMESH
   createPopupItem( 803, OB, group );                       // EDIT_GROUP
-  createPopupItem( 815, OB, group, "&& groupType = 'GroupOnGeom'" ); // EDIT_GROUP
+  createPopupItem( 815, OB, group, "&& groupType != 'Group'" ); // EDIT AS STANDALONE
 
   popupMgr()->insert( separator(), -1, 0 );
   createPopupItem( 701, OB, mesh, "&& isComputable" );     // COMPUTE