Salome HOME
c9a2c20462c87e8ce4b9304e4b9da10fd164e1c8
[modules/geom.git] / src / GEOMGUI / GeometryGUI_TransparencyDlg.h
1 //  GEOM GEOMGUI : GUI for Geometry component
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   : GeometryGUI_TransparencyDlg.h
25 //  Author : Lucien PIGNOLONI
26 //  Module : GEOM
27 //  $Header$
28
29 #ifndef DIALOGBOX_TRANSPARENCYDLG_H
30 #define DIALOGBOX_TRANSPARENCYDLG_H
31
32 #include <qvariant.h>
33 #include <qdialog.h>
34
35 #include "SALOME_Selection.h"
36 #include "SALOME_InteractiveObject.hxx"
37 #include "GEOM_InteractiveObject.hxx"
38 #include "GEOM_AISShape.hxx"
39
40
41 class QVBoxLayout;
42 class QHBoxLayout;
43 class QGridLayout;
44 class QFrame;
45 class QLabel;
46 class QPushButton;
47 class QSlider;
48 class GeometryGUI;
49
50
51
52 //=================================================================================
53 // class    : GeometryGUI_TransparencyDlg
54 // purpose  :
55 //          : WARNING : that is a MODAL dialog.
56 //=================================================================================
57 class GeometryGUI_TransparencyDlg : public QDialog
58
59     Q_OBJECT
60
61 public:
62     GeometryGUI_TransparencyDlg( QWidget* parent = 0,
63                                  const char* name = 0,
64                                  SALOME_Selection* Sel = 0,
65                                  const Handle(AIS_InteractiveContext)& ic = 0,
66                                  bool modal = TRUE,
67                                  WFlags fl = 0 );
68
69     ~GeometryGUI_TransparencyDlg();
70
71 private :
72
73     GeometryGUI*                     myGeomGUI ;     /* Current GeomGUI object     */
74     bool                             myFirstInit ;   /* Inform for the first init  */
75     SALOME_Selection*                mySel;          /* User selection             */
76     Handle(AIS_InteractiveContext)   myIc ;          /* Interactive context        */
77     
78     QPushButton* buttonOk;
79     QLabel* TextLabelOpaque;
80     QLabel* TextLabelTransparent;
81     QSlider* Slider1;
82
83 public slots:
84       
85     void ClickOnOk();
86     void ClickOnClose();
87     void ValueHasChanged( int newValue ) ;
88     
89 protected:
90     QGridLayout* GeometryGUI_TransparencyDlgLayout;
91     QHBoxLayout* Layout1;
92     QHBoxLayout* Layout2;
93 };
94
95 #endif // DIALOGBOX_TRANSPARENCYDLG_H
96