#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"
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)
}
CORBA::Object_var
- DataOwnerToObject(const SalomeApp_DataOwnerPtr& theOwner)
+ DataOwnerToObject(const LightApp_DataOwnerPtr& theOwner)
{
CORBA::Object_var anObj;
if(theOwner){
{
SalomeApp_Application* app = dynamic_cast<SalomeApp_Application*>
(SUIT_Session::session()->activeApplication());
- if (app && app->activeViewManager())
- return app->activeViewManager()->getActiveView();
+ if (app && app->desktop() )
+ return app->desktop()->activeWindow();
else
return NULL;
}
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;