// 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 <CORBA.h>
+#include "SMESH_SMESHGUI.hxx"
+
+#include <omniORB4/CORBA.h>
#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;
class SalomeApp_Study;
class SalomeApp_Module;
-class SalomeApp_SelectionMgr;
+class LightApp_SelectionMgr;
namespace SMESH {
+SMESHGUI_EXPORT
SUIT_Desktop*
GetDesktop(const CAM_Module* theModule);
- SalomeApp_SelectionMgr*
+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);
- CORBA::Object_var DataOwnerToObject(const SalomeApp_DataOwnerPtr& theOwner);
+SMESHGUI_EXPORT
+ CORBA::Object_var DataOwnerToObject(const LightApp_DataOwnerPtr& theOwner);
template<class TInterface> 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))
}
+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<class TInterface> typename TInterface::_var_type
return TInterface::_nil();
}
+SMESHGUI_EXPORT
CORBA::Object_var IObjectToObject(const Handle(SALOME_InteractiveObject)& theIO);
template<class TInterface> typename TInterface::_var_type
return TInterface::_nil();
}
+SMESHGUI_EXPORT
CORBA::Object_var IORToObject(const char* theIOR);
template<class TInterface> typename TInterface::_var_type
return TInterface::_nil();
}
- int GetNameOfSelectedIObjects (SalomeApp_SelectionMgr*, QString& theName);
+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