Salome HOME
94889f6efc52932601e307ef370e3550e2085f89
[modules/geom.git] / src / GEOMToolsGUI / GEOMToolsGUI_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   : GEOMBase_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 #include "GEOMBase.h"
41
42
43 class QVBoxLayout;
44 class QHBoxLayout;
45 class QGridLayout;
46 class QFrame;
47 class QLabel;
48 class QPushButton;
49 class QSlider;
50
51
52
53 //=================================================================================
54 // class    : GEOMBase_TransparencyDlg
55 // purpose  :
56 //          : WARNING : that is a MODAL dialog.
57 //=================================================================================
58 class GEOMBase_TransparencyDlg : public QDialog
59
60     Q_OBJECT
61
62 public:
63     GEOMBase_TransparencyDlg( QWidget* parent = 0,
64                                  const char* name = 0,
65                                  SALOME_Selection* Sel = 0,
66                                  const Handle(AIS_InteractiveContext)& ic = 0,
67                                  bool modal = TRUE,
68                                  WFlags fl = 0 );
69
70     ~GEOMBase_TransparencyDlg();
71
72 private :
73
74     GEOMBase*                        myGeomBase ;    /* Current GeomGUI object     */
75     bool                             myFirstInit ;   /* Inform for the first init  */
76     SALOME_Selection*                mySel;          /* User selection             */
77     Handle(AIS_InteractiveContext)   myIc ;          /* Interactive context        */
78     
79     QPushButton* buttonOk;
80     QLabel* TextLabelOpaque;
81     QLabel* TextLabelTransparent;
82     QSlider* Slider1;
83
84 public slots:
85       
86     void ClickOnOk();
87     void ClickOnClose();
88     void ValueHasChanged( int newValue ) ;
89     
90 protected:
91     QGridLayout* GEOMBase_TransparencyDlgLayout;
92     QHBoxLayout* Layout1;
93     QHBoxLayout* Layout2;
94 };
95
96 #endif // DIALOGBOX_TRANSPARENCYDLG_H
97