#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
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