0021014: EDF 1583 SMESH: Improvement of the Python Dump for the creation of groups

To edit SMESH_GroupOnFilter
This commit is contained in:
eap 2011-06-23 12:34:17 +00:00
parent 5e4bdb2eed
commit cb376aa1de

View 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