Salome HOME
"About SALOME" dialog box moved to LightApp --> string resources should be also moved...
[modules/gui.git] / src / LightApp / LightApp_OBFilter.cxx
1 #include "LightApp_OBFilter.h"
2
3 #include "LightApp_SelectionMgr.h" 
4 #include "LightApp_DataObject.h"
5 #include "LightApp_DataOwner.h"
6
7 /*!
8   Constructor.
9 */
10 LightApp_OBFilter::LightApp_OBFilter( LightApp_SelectionMgr* theSelMgr )
11 {
12   mySelMgr = theSelMgr;
13 }
14
15 /*!Destructor.*/
16 LightApp_OBFilter::~LightApp_OBFilter()
17 {
18 }
19
20 /*!Checks: data object is ok?*/
21 bool LightApp_OBFilter::isOk( const SUIT_DataObject* theDataObj ) const
22 {
23   const LightApp_DataObject* obj = dynamic_cast<const LightApp_DataObject*>( theDataObj );
24   if ( obj )
25     return mySelMgr->isOk( new LightApp_DataOwner( obj->entry() ) );
26
27   return true;
28 }
29