Using LightApp_SelectionMgr instead SalomeApp_SelectionMgr, and

LightApp_DataOwner instead SalomeApp_DataOwner.
This commit is contained in:
nds 2005-09-19 05:56:39 +00:00
parent 0bc3884084
commit 0c20b44be3
4 changed files with 11 additions and 11 deletions

View File

@ -1,7 +1,7 @@
#include "GEOM_OCCFilter.h" #include "GEOM_OCCFilter.h"
#include <SalomeApp_SelectionMgr.h> #include <LightApp_SelectionMgr.h>
#include <SalomeApp_DataOwner.h> #include <LightApp_DataOwner.h>
#include <SALOME_InteractiveObject.hxx> #include <SALOME_InteractiveObject.hxx>
@ -15,7 +15,7 @@ IMPLEMENT_STANDARD_RTTIEXT(GEOM_OCCFilter, SelectMgr_Filter)
// function : GEOM_OCCFilter // function : GEOM_OCCFilter
// purpose : // purpose :
//======================================================================= //=======================================================================
GEOM_OCCFilter::GEOM_OCCFilter( SalomeApp_SelectionMgr* theSelMgr ) GEOM_OCCFilter::GEOM_OCCFilter( LightApp_SelectionMgr* theSelMgr )
: SelectMgr_Filter() : SelectMgr_Filter()
{ {
mySelMgr = theSelMgr; mySelMgr = theSelMgr;
@ -42,5 +42,5 @@ Standard_Boolean GEOM_OCCFilter::IsOk( const Handle(SelectMgr_EntityOwner)& anOb
Handle(SALOME_InteractiveObject) anIO = Handle(SALOME_InteractiveObject)::DownCast(anAIS->GetOwner()); Handle(SALOME_InteractiveObject) anIO = Handle(SALOME_InteractiveObject)::DownCast(anAIS->GetOwner());
if ( anIO.IsNull() ) return false; if ( anIO.IsNull() ) return false;
return mySelMgr->isOk( new SalomeApp_DataOwner( QString( anIO->getEntry() ) ) ); return mySelMgr->isOk( new LightApp_DataOwner( QString( anIO->getEntry() ) ) );
} }

View File

@ -5,18 +5,18 @@
#include <Standard_DefineHandle.hxx> #include <Standard_DefineHandle.hxx>
class SalomeApp_SelectionMgr; class LightApp_SelectionMgr;
class GEOM_OCCFilter : public SelectMgr_Filter class GEOM_OCCFilter : public SelectMgr_Filter
{ {
public: public:
Standard_EXPORT GEOM_OCCFilter( SalomeApp_SelectionMgr* theSelMgr); Standard_EXPORT GEOM_OCCFilter( LightApp_SelectionMgr* theSelMgr);
Standard_EXPORT ~GEOM_OCCFilter(); Standard_EXPORT ~GEOM_OCCFilter();
Standard_EXPORT virtual Standard_Boolean IsOk( const Handle(SelectMgr_EntityOwner)& anObj ) const; Standard_EXPORT virtual Standard_Boolean IsOk( const Handle(SelectMgr_EntityOwner)& anObj ) const;
private: private:
SalomeApp_SelectionMgr* mySelMgr; LightApp_SelectionMgr* mySelMgr;
public: public:

View File

@ -1,6 +1,6 @@
#include "GEOM_PreviewFilter.h" #include "GEOM_PreviewFilter.h"
#include <SalomeApp_DataOwner.h> #include <LightApp_DataOwner.h>
//======================================================================= //=======================================================================
// function : GEOM_SelectionFilter // function : GEOM_SelectionFilter
@ -25,7 +25,7 @@ GEOM_PreviewFilter::~GEOM_PreviewFilter()
//======================================================================= //=======================================================================
bool GEOM_PreviewFilter::isOk( const SUIT_DataOwner* sOwner ) const bool GEOM_PreviewFilter::isOk( const SUIT_DataOwner* sOwner ) const
{ {
const SalomeApp_DataOwner* owner = dynamic_cast<const SalomeApp_DataOwner*> ( sOwner ); const LightApp_DataOwner* owner = dynamic_cast<const LightApp_DataOwner*> ( sOwner );
return ( owner && strstr( owner->entry(), "TEMP" ) ); return ( owner && strstr( owner->entry(), "TEMP" ) );
} }

View File

@ -2,7 +2,7 @@
#include "GEOM_Client.hxx" #include "GEOM_Client.hxx"
#include <SalomeApp_DataOwner.h> #include <LightApp_DataOwner.h>
#include <SalomeApp_Study.h> #include <SalomeApp_Study.h>
#include <SalomeApp_Application.h> #include <SalomeApp_Application.h>
@ -58,7 +58,7 @@ GEOM::GEOM_Object_ptr GEOM_SelectionFilter::getObject (const SUIT_DataOwner* sOw
{ {
GEOM::GEOM_Object_var anObj; GEOM::GEOM_Object_var anObj;
const SalomeApp_DataOwner* owner = dynamic_cast<const SalomeApp_DataOwner*>(sOwner); const LightApp_DataOwner* owner = dynamic_cast<const LightApp_DataOwner*>(sOwner);
SalomeApp_Study* appStudy = getStudy(); SalomeApp_Study* appStudy = getStudy();
if (owner && appStudy) if (owner && appStudy)
{ {