]> SALOME platform Git repositories - modules/geom.git/blob - src/GEOMGUI/GeometryGUI_TransparencyDlg.h
Salome HOME
NRI : First integration.
[modules/geom.git] / src / GEOMGUI / GeometryGUI_TransparencyDlg.h
1 //  File      : GeometryGUI_TransparencyDlg.h
2 //  Created   :
3 //  Author    : Lucien PIGNOLONI
4 //  Project   : SALOME
5 //  Module    : GeometryGUI
6 //  Copyright : OPEN CASCADE
7 //  $Header$
8
9 #ifndef DIALOGBOX_TRANSPARENCYDLG_H
10 #define DIALOGBOX_TRANSPARENCYDLG_H
11
12 #include <qvariant.h>
13 #include <qdialog.h>
14
15 #include "SALOME_Selection.h"
16 #include "SALOME_InteractiveObject.hxx"
17 #include "GEOM_InteractiveObject.hxx"
18 #include "GEOM_AISShape.hxx"
19
20
21 class QVBoxLayout;
22 class QHBoxLayout;
23 class QGridLayout;
24 class QFrame;
25 class QLabel;
26 class QPushButton;
27 class QSlider;
28 class GeometryGUI;
29
30
31
32 //=================================================================================
33 // class    : GeometryGUI_TransparencyDlg
34 // purpose  :
35 //          : WARNING : that is a MODAL dialog.
36 //=================================================================================
37 class GeometryGUI_TransparencyDlg : public QDialog
38
39     Q_OBJECT
40
41 public:
42     GeometryGUI_TransparencyDlg( QWidget* parent = 0,
43                                  const char* name = 0,
44                                  SALOME_Selection* Sel = 0,
45                                  const Handle(AIS_InteractiveContext)& ic = 0,
46                                  bool modal = TRUE,
47                                  WFlags fl = 0 );
48
49     ~GeometryGUI_TransparencyDlg();
50
51 private :
52
53     GeometryGUI*                     myGeomGUI ;     /* Current GeomGUI object     */
54     bool                             myFirstInit ;   /* Inform for the first init  */
55     SALOME_Selection*                mySel;          /* User selection             */
56     Handle(AIS_InteractiveContext)   myIc ;          /* Interactive context        */
57     
58     QPushButton* buttonOk;
59     QLabel* TextLabelOpaque;
60     QLabel* TextLabelTransparent;
61     QSlider* Slider1;
62
63 public slots:
64       
65     void ClickOnOk();
66     void ClickOnClose();
67     void ValueHasChanged( int newValue ) ;
68     
69 protected:
70     QGridLayout* GeometryGUI_TransparencyDlgLayout;
71     QHBoxLayout* Layout1;
72     QHBoxLayout* Layout2;
73 };
74
75 #endif // DIALOGBOX_TRANSPARENCYDLG_H
76