Salome HOME
"About SALOME" dialog box moved to LightApp --> string resources should be also moved...
[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   const LightApp_DataSubOwner* other = dynamic_cast<const LightApp_DataSubOwner*>( &obj );
25
26   return other && entry() == other->entry() && index() == other->index();
27 }
28
29 /*!Gets index.*/
30 int LightApp_DataSubOwner::index() const
31 {
32   return myIndex;
33 }