]> SALOME platform Git repositories - modules/gui.git/blob - src/LightApp/LightApp_DataSubOwner.cxx
Salome HOME
Fix for bug 10505: Explode with 'Select Sub Shapes' is impossible
[modules/gui.git] / src / LightApp / LightApp_DataSubOwner.cxx
1 #include "LightApp_DataSubOwner.h"
2
3 #include "LightApp_DataObject.h"
4
5 #ifdef WNT
6 #include <typeinfo.h>
7 #endif
8
9 /*!Constructor.Initialize by \a entry and \a index*/
10 LightApp_DataSubOwner::LightApp_DataSubOwner( const QString& entry, const int index )
11 : LightApp_DataOwner( entry ),
12 myIndex( index )
13 {
14 }
15
16 /*!Destructor. Do nothing.*/
17 LightApp_DataSubOwner::~LightApp_DataSubOwner()
18 {
19 }
20
21 /*!Checks: Is current data sub owner equal \a obj.*/
22 bool LightApp_DataSubOwner::isEqual( const SUIT_DataOwner& obj ) const
23 {  
24   if (LightApp_DataOwner::isEqual(obj)) {
25     const LightApp_DataSubOwner* other = dynamic_cast<const LightApp_DataSubOwner*>( &obj );
26     return other && index() == other->index();
27   }
28   return false;
29 }
30
31 /*!Gets index.*/
32 int LightApp_DataSubOwner::index() const
33 {
34   return myIndex;
35 }