Salome HOME
PAL6938
[modules/smesh.git] / src / SMESHGUI / SMESHGUI_TransparencyDlg.h
index 215abe83290df8ea50b81d4a59e56914a7e0a6e9..2bc7767fabaf62b3999c2806dc9bb031126440de 100644 (file)
 #ifndef DIALOGBOX_TRANSPARENCYDLG_H
 #define DIALOGBOX_TRANSPARENCYDLG_H
 
-#include "SALOME_Selection.h"
-#include "SALOME_InteractiveObject.hxx"
-
 // QT Includes
-#include <qvariant.h>
 #include <qdialog.h>
 
-class QVBoxLayout;
-class QHBoxLayout;
-class QGridLayout;
-class QFrame;
 class QLabel;
 class QPushButton;
 class QSlider;
-class SMESHGUI;
+class SALOME_Selection;
 
 //=================================================================================
 // class    : SMESHGUI_TransparencyDlg
@@ -55,34 +47,28 @@ class SMESHGUI_TransparencyDlg : public QDialog
 
 public:
     SMESHGUI_TransparencyDlg( QWidget* parent = 0,
-                                const char* name = 0,
-                                SALOME_Selection* Sel = 0,
-                                bool modal = TRUE,
-                                WFlags fl = 0 );
+                             const char* name = 0,
+                             bool modal = false,
+                             WFlags fl = 0 );
 
     ~SMESHGUI_TransparencyDlg();
 
 private :
 
-    SMESHGUI*                        mySMESHGUI ;     /* Current GeomGUI object     */
-    bool                             myFirstInit ;    /* Inform for the first init  */
-    SALOME_Selection*                mySel;           /* User selection             */
-    
-    QPushButton* buttonOk;
-    QLabel* TextLabelOpaque;
-    QLabel* TextLabelTransparent;
-    QSlider* Slider1;
+    SALOME_Selection* mySelection;
+
+    QPushButton*      buttonOk;
+    QLabel*           TextLabelOpaque;
+    QLabel*           ValueLab;
+    QLabel*           TextLabelTransparent;
+    QSlider*          Slider1;
 
 public slots:
       
     void ClickOnOk();
-    void ClickOnClose();
-    void ValueHasChanged( int newValue ) ;
-    
-protected:
-    QGridLayout* SMESHGUI_TransparencyDlgLayout;
-    QHBoxLayout* Layout1;
-    QHBoxLayout* Layout2;
+    void ValueHasChanged() ;
+    void SetTransparency();
+    void onSelectionChanged();
 };
 
 #endif // DIALOGBOX_TRANSPARENCYDLG_H