X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FSMESHGUI%2FSMESHGUI_Utils.cxx;h=94714bcd7aabd3cae95a7ded77c6adf0f6d266db;hb=590a56bae013abd634dbc628f1cdb9c4e4334c4b;hp=3b4976ea61c16e7e7de373eed84a403734b14a11;hpb=c38c10811a065cf5b13e8807ed71864d92ca7d80;p=modules%2Fsmesh.git diff --git a/src/SMESHGUI/SMESHGUI_Utils.cxx b/src/SMESHGUI/SMESHGUI_Utils.cxx index 3b4976ea6..94714bcd7 100644 --- a/src/SMESHGUI/SMESHGUI_Utils.cxx +++ b/src/SMESHGUI/SMESHGUI_Utils.cxx @@ -28,7 +28,7 @@ #include "SUIT_Application.h" #include "SUIT_Session.h" -#include "SalomeApp_SelectionMgr.h" +#include "LightApp_SelectionMgr.h" #include "SalomeApp_Application.h" #include "SalomeApp_Module.h" #include "SalomeApp_Study.h" @@ -50,12 +50,17 @@ namespace SMESH{ return theModule->application()->desktop(); } - SalomeApp_SelectionMgr* + LightApp_SelectionMgr* GetSelectionMgr(const SalomeApp_Module* theModule) { return theModule->getApp()->selectionMgr(); } + SUIT_ResourceMgr* + GetResourceMgr( const SalomeApp_Module* ) + { + return SUIT_Session::session()->resourceMgr(); + } _PTR(Study) GetCStudy(const SalomeApp_Study* theStudy) @@ -64,7 +69,7 @@ namespace SMESH{ } CORBA::Object_var - DataOwnerToObject(const SalomeApp_DataOwnerPtr& theOwner) + DataOwnerToObject(const LightApp_DataOwnerPtr& theOwner) { CORBA::Object_var anObj; if(theOwner){ @@ -94,8 +99,8 @@ namespace SMESH{ { SalomeApp_Application* app = dynamic_cast (SUIT_Session::session()->activeApplication()); - if (app && app->activeViewManager()) - return app->activeViewManager()->getActiveView(); + if (app && app->desktop() ) + return app->desktop()->activeWindow(); else return NULL; } @@ -190,7 +195,7 @@ namespace SMESH{ return app->orb()->string_to_object(theIOR); } - int GetNameOfSelectedIObjects(SalomeApp_SelectionMgr* theMgr, QString& theName) + int GetNameOfSelectedIObjects(LightApp_SelectionMgr* theMgr, QString& theName) { if (!theMgr) return 0;