Salome HOME
Join modifications from BR_Dev_For_4_0 tag V4_1_1.
[modules/gui.git] / src / LightApp / LightApp_DataOwner.h
1 // Copyright (C) 2005  OPEN CASCADE, CEA/DEN, EDF R&D, PRINCIPIA R&D
2 // 
3 // This library is free software; you can redistribute it and/or
4 // modify it under the terms of the GNU Lesser General Public
5 // License as published by the Free Software Foundation; either 
6 // version 2.1 of the License.
7 // 
8 // This library is distributed in the hope that it will be useful 
9 // but WITHOUT ANY WARRANTY; without even the implied warranty of 
10 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
11 // Lesser General Public License for more details.
12 //
13 // You should have received a copy of the GNU Lesser General Public  
14 // License along with this library; if not, write to the Free Software 
15 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
16 //
17 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
18 //
19
20 #ifndef LIGHTAPP_DATAOWNER_H
21 #define LIGHTAPP_DATAOWNER_H
22
23 #include "LightApp.h"
24 #include "SUIT_DataOwner.h"
25
26 #ifndef DISABLE_SALOMEOBJECT
27   #include "SALOME_InteractiveObject.hxx"
28 #endif
29
30
31 /*!
32   This class provide data owner objects.
33 */
34 class LIGHTAPP_EXPORT LightApp_DataOwner : public SUIT_DataOwner
35 {
36 public:
37 #ifndef DISABLE_SALOMEOBJECT
38     LightApp_DataOwner( const Handle(SALOME_InteractiveObject)& theIO );
39 #endif
40     LightApp_DataOwner( const QString& );
41     virtual ~LightApp_DataOwner();
42
43     // *** jfa: The below line has been put here 14.02.2007.
44     // *** It cancels modifications from branch BR_Dev_For_4_0
45     virtual QString keyString() const;
46
47 #ifndef DISABLE_SALOMEOBJECT
48     const Handle(SALOME_InteractiveObject)& IO() const;
49 #endif
50     QString entry() const;
51
52 private:
53     QString  myEntry;
54 #ifndef DISABLE_SALOMEOBJECT
55     Handle(SALOME_InteractiveObject) myIO;
56 #endif
57 };
58
59 typedef SMART(LightApp_DataOwner) LightApp_DataOwnerPtr;
60
61 #endif