X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FSMESHGUI%2FSMESHGUI_Utils.h;h=a403da8683686e4ace2d04e8a694f0399b3e1b21;hb=0a237be4b91b6db526b340c534f40a385d6d65ab;hp=6ff20e8a2fe2c65c7bade362f1ef5b38285555b7;hpb=8d297d6698f361d4f2dde723050bcfbaea050920;p=modules%2Fsmesh.git diff --git a/src/SMESHGUI/SMESHGUI_Utils.h b/src/SMESHGUI/SMESHGUI_Utils.h index 6ff20e8a2..a403da868 100644 --- a/src/SMESHGUI/SMESHGUI_Utils.h +++ b/src/SMESHGUI/SMESHGUI_Utils.h @@ -152,9 +152,24 @@ SMESHGUI_EXPORT return TInterface::_nil(); } +SMESHGUI_EXPORT + CORBA::Object_var EntryToObject( const QString& ); + + template typename TInterface::_var_type + EntryToInterface( const QString& theEntry ) + { + CORBA::Object_var anObj = EntryToObject( theEntry ); + if ( !CORBA::is_nil( anObj ) ) + return TInterface::_narrow( anObj ); + return TInterface::_nil(); + } + SMESHGUI_EXPORT int GetNameOfSelectedIObjects( LightApp_SelectionMgr*, QString& ); +SMESHGUI_EXPORT + QString GetName( const Handle(SALOME_InteractiveObject)& theIO ); + SMESHGUI_EXPORT _PTR(SObject) GetMeshOrSubmesh( _PTR(SObject) );