Salome HOME
Using files from package LightApp instead of files from package SalomeApp
[modules/visu.git] / src / VISUGUI / VisuGUI_PopupTools.h
1 //  VISU VISUGUI : GUI of VISU component
2 //
3 //  Copyright (C) 2005  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   : VisuGUI_PopupTools.h
25 //  Author : Sergey Anikin 
26 //  Module : VISU
27
28 #ifndef VisuGUI_PopupTools_HeaderFile
29 #define VisuGUI_PopupTools_HeaderFile
30
31 #include <LightApp_Selection.h>
32
33 //////////////////////////////////////////////////
34 // Class: VisuGUI_Selection
35 //////////////////////////////////////////////////
36
37 class SalomeApp_Module;
38
39 class VisuGUI_Selection : public LightApp_Selection
40 {
41 public:
42   VisuGUI_Selection( SalomeApp_Module* theModule ) : myModule( theModule ) {};
43   virtual ~VisuGUI_Selection() {};
44
45   virtual QtxValue param( const int, const QString& ) const;
46
47 private:
48   QString          type( const int ) const;
49   QString          nbComponents( const int ) const;
50   QString          nbTimeStamps( const int ) const;
51   QString          representation( const int ) const;
52   QString          nbChildren( const int ) const;
53   QString          nbNamedChildren( const int ) const;
54   QString          isVisible( const int ) const;
55   QString          isShrunk( const int ) const;
56   QString          hasActor( const int ) const;
57   QString          isShading( const int ) const;
58   QString          isScalarMapAct( const int ) const;
59
60 private:
61   int              nbChild( const int, const bool ) const;
62
63 private:
64   SalomeApp_Module* myModule;
65 };
66
67 #endif