X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FSMESHGUI%2FSMESHGUI_Utils.h;h=7f549cb2b7763aca144ce1bce45efae38487f6c2;hb=d29de81e16b391480b2ecef9c032a6eac680af80;hp=15009ab9540167f0d7361434d8ab86768e7cee77;hpb=c38c10811a065cf5b13e8807ed71864d92ca7d80;p=modules%2Fsmesh.git diff --git a/src/SMESHGUI/SMESHGUI_Utils.h b/src/SMESHGUI/SMESHGUI_Utils.h index 15009ab95..7f549cb2b 100644 --- a/src/SMESHGUI/SMESHGUI_Utils.h +++ b/src/SMESHGUI/SMESHGUI_Utils.h @@ -15,7 +15,7 @@ // License along with this library; if not, write to the Free Software // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA // -// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org +// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com #ifndef SMESHGUI_Utils_HeaderFile #define SMESHGUI_Utils_HeaderFile @@ -24,13 +24,14 @@ #include "SALOMEDSClient_definitions.hxx" #include "SALOME_InteractiveObject.hxx" -#include "SalomeApp_DataOwner.h" +#include "LightApp_DataOwner.h" class QString; class SUIT_ViewWindow; class SUIT_Desktop; class SUIT_Study; +class SUIT_ResourceMgr; class CAM_Module; @@ -39,26 +40,29 @@ class SALOMEDSClient_SObject; class SalomeApp_Study; class SalomeApp_Module; -class SalomeApp_SelectionMgr; +class LightApp_SelectionMgr; namespace SMESH { SUIT_Desktop* GetDesktop(const CAM_Module* theModule); - SalomeApp_SelectionMgr* + LightApp_SelectionMgr* GetSelectionMgr(const SalomeApp_Module* theModule); SalomeApp_Study* GetAppStudy(const CAM_Module* theModule); + SUIT_ResourceMgr* + GetResourceMgr( const SalomeApp_Module* ); + _PTR(Study) GetCStudy(const SalomeApp_Study* theStudy); - CORBA::Object_var DataOwnerToObject(const SalomeApp_DataOwnerPtr& theOwner); + CORBA::Object_var DataOwnerToObject(const LightApp_DataOwnerPtr& theOwner); template typename TInterface::_var_type - DataOwnerToInterface(const SalomeApp_DataOwnerPtr& theDataOwner) + DataOwnerToInterface(const LightApp_DataOwnerPtr& theDataOwner) { CORBA::Object_var anObj = DataOwnerToObject(theDataOwner); if(!CORBA::is_nil(anObj)) @@ -77,6 +81,8 @@ namespace SMESH { void SetName (_PTR(SObject) theSObject, const char* theName); void SetValue (_PTR(SObject) theSObject, const char* theValue); + void setFileType (_PTR(SObject) theSObject, const char* theValue); + void setFileName (_PTR(SObject) theSObject, const char* theValue); CORBA::Object_var SObjectToObject (_PTR(SObject) theSObject, _PTR(Study) theStudy); @@ -114,13 +120,13 @@ namespace SMESH { return TInterface::_nil(); } - int GetNameOfSelectedIObjects (SalomeApp_SelectionMgr*, QString& theName); + int GetNameOfSelectedIObjects (LightApp_SelectionMgr*, QString& theName); _PTR(SObject) GetMeshOrSubmesh (_PTR(SObject) theSObject); void ModifiedMesh (_PTR(SObject) theSObject, bool theIsRight); -// void UpdateObjBrowser (bool); + void ShowHelpFile (QString theHelpFileName); } #endif