Salome HOME
This commit was generated by cvs2git to create tag 'V1_3_0'.
[modules/kernel.git] / src / SALOMEGUI / SALOMEGUI_Swig.hxx
1 //  SALOME SALOMEGUI : implementation of desktop and GUI kernel
2 //
3 //  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4 //  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
5 // 
6 //  This library is free software; you can redistribute it and/or 
7 //  modify it under the terms of the GNU Lesser General Public 
8 //  License as published by the Free Software Foundation; either 
9 //  version 2.1 of the License. 
10 // 
11 //  This library is distributed in the hope that it will be useful, 
12 //  but WITHOUT ANY WARRANTY; without even the implied warranty of 
13 //  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
14 //  Lesser General Public License for more details. 
15 // 
16 //  You should have received a copy of the GNU Lesser General Public 
17 //  License along with this library; if not, write to the Free Software 
18 //  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
19 // 
20 //  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
21 //
22 //
23 //
24 //  File   : SALOMEGUI_Swig.hxx
25 //  Author : Nicolas REJNERI
26 //  Module : SALOME
27 //  $Header$
28
29 #ifndef _SALOMEGUI_SWIG_HXX_
30 #define _SALOMEGUI_SWIG_HXX_
31
32 //QT Include
33 #include <qstring.h>
34
35 #include <Standard.hxx>
36
37 class vtkRenderer;
38 class QAD_Study;
39
40 class SALOMEGUI_Swig
41 {
42 public:
43   SALOMEGUI_Swig();
44   ~SALOMEGUI_Swig();
45
46   //san:T3.13 - move getRenderer() implementation from here to SalomePy.cxx
47   //static vtkRenderer* getRenderer(int viewId = -1);
48
49   void         updateObjBrowser( bool updateSelection );
50   QAD_Study*   getActiveStudy();
51   int          getActiveStudyId();
52   const char*  getActiveStudyName();
53
54 /* selection */
55   int          SelectedCount();
56   const char*  getSelected(int i);
57
58   void AddIObject(const char *Entry);
59   void RemoveIObject(const char *Entry);
60   void ClearIObjects();
61
62 /* display */           
63   void Display(const char *Entry);
64   void DisplayOnly(const char *Entry);
65   void Erase(const char *Entry);
66   void DisplayAll();
67   void EraseAll();
68
69 /* check */
70   bool IsInCurrentView(const char *Entry);
71
72 /* component name */
73   const char* getComponentName( const char* ComponentUserName );
74   const char* getComponentUserName( const char* ComponentName );
75
76 protected:
77   int _studyId;
78   QString _name;
79 };
80
81
82 #endif