X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FSMESHGUI%2FSMESHGUI_Utils.h;h=690cd26335c6c4ce2ea3b6d7ee1330013984dc05;hb=b0b1fb044d5d7e65b8e063e5d8ce3eed9d4275b3;hp=83278e4a5018a462ff05cfb44c8ac68f385c0ecd;hpb=81a502af8470190be359d6491a20796dbad5bb97;p=modules%2Fsmesh.git diff --git a/src/SMESHGUI/SMESHGUI_Utils.h b/src/SMESHGUI/SMESHGUI_Utils.h index 83278e4a5..690cd2633 100644 --- a/src/SMESHGUI/SMESHGUI_Utils.h +++ b/src/SMESHGUI/SMESHGUI_Utils.h @@ -15,12 +15,14 @@ // 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 -#include +#include "SMESH_SMESHGUI.hxx" + +#include #include "SALOMEDSClient_definitions.hxx" #include "SALOME_InteractiveObject.hxx" @@ -44,21 +46,27 @@ class LightApp_SelectionMgr; namespace SMESH { +SMESHGUI_EXPORT SUIT_Desktop* GetDesktop(const CAM_Module* theModule); +SMESHGUI_EXPORT LightApp_SelectionMgr* GetSelectionMgr(const SalomeApp_Module* theModule); +SMESHGUI_EXPORT SalomeApp_Study* GetAppStudy(const CAM_Module* theModule); +SMESHGUI_EXPORT SUIT_ResourceMgr* GetResourceMgr( const SalomeApp_Module* ); +SMESHGUI_EXPORT _PTR(Study) GetCStudy(const SalomeApp_Study* theStudy); +SMESHGUI_EXPORT CORBA::Object_var DataOwnerToObject(const LightApp_DataOwnerPtr& theOwner); template typename TInterface::_var_type @@ -71,20 +79,31 @@ namespace SMESH { } +SMESHGUI_EXPORT SUIT_Study* GetActiveStudy(); +SMESHGUI_EXPORT SUIT_ViewWindow* GetActiveWindow(); +SMESHGUI_EXPORT _PTR(Study) GetActiveStudyDocument(); +SMESHGUI_EXPORT _PTR(SObject) FindSObject(CORBA::Object_ptr theObject); +SMESHGUI_EXPORT void SetName (_PTR(SObject) theSObject, const char* theName); + +SMESHGUI_EXPORT void SetValue (_PTR(SObject) theSObject, const char* theValue); + void setFileType (_PTR(SObject) theSObject, const char* theValue); + void setFileName (_PTR(SObject) theSObject, const char* theValue); +SMESHGUI_EXPORT CORBA::Object_var SObjectToObject (_PTR(SObject) theSObject, _PTR(Study) theStudy); +SMESHGUI_EXPORT CORBA::Object_var SObjectToObject(_PTR(SObject) theSObject); template typename TInterface::_var_type @@ -96,6 +115,7 @@ namespace SMESH { return TInterface::_nil(); } +SMESHGUI_EXPORT CORBA::Object_var IObjectToObject(const Handle(SALOME_InteractiveObject)& theIO); template typename TInterface::_var_type @@ -107,6 +127,7 @@ namespace SMESH { return TInterface::_nil(); } +SMESHGUI_EXPORT CORBA::Object_var IORToObject(const char* theIOR); template typename TInterface::_var_type @@ -118,13 +139,17 @@ namespace SMESH { return TInterface::_nil(); } +SMESHGUI_EXPORT int GetNameOfSelectedIObjects (LightApp_SelectionMgr*, QString& theName); +SMESHGUI_EXPORT _PTR(SObject) GetMeshOrSubmesh (_PTR(SObject) theSObject); - void ModifiedMesh (_PTR(SObject) theSObject, bool theIsRight); +SMESHGUI_EXPORT + void ModifiedMesh (_PTR(SObject) theSObject, bool theIsNot, bool isEmptyMesh=false); -// void UpdateObjBrowser (bool); +SMESHGUI_EXPORT + void ShowHelpFile (QString theHelpFileName); } #endif