Salome HOME
Merge from V4_1_0_maintainance branch (from tag mergeto_BR_QT4_Dev_08Jul08)
[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.salome-platform.org/ or email : webmaster.salome@opencascade.com
21 //
22 // File   : GEOMToolsGUI_TransparencyDlg.h
23 // Author : Lucien PIGNOLONI
24 //
25
26 #ifndef GEOMTOOLSGUI_TRANSPARENCYDLG_H
27 #define GEOMTOOLSGUI_TRANSPARENCYDLG_H
28
29 #include "GEOM_ToolsGUI.hxx"
30
31 #include <QDialog>
32
33 class QSlider;
34 class QLabel;
35
36 //=================================================================================
37 // class    : GEOMBase_TransparencyDlg
38 // purpose  :
39 //          : WARNING : that is a MODAL dialog.
40 //=================================================================================
41 class GEOMTOOLSGUI_EXPORT GEOMToolsGUI_TransparencyDlg : public QDialog
42
43   Q_OBJECT
44
45 public:
46   GEOMToolsGUI_TransparencyDlg( QWidget* );    
47   ~GEOMToolsGUI_TransparencyDlg();
48
49 private:
50   void      keyPressEvent( QKeyEvent* );
51
52 private:
53   bool      myFirstInit;   /* Inform for the first init  */
54   QSlider*  mySlider; 
55   QLabel*   myValueLab;
56   QString   myHelpFileName;
57
58 private slots: 
59   void      ClickOnOk();
60   void      ClickOnClose();
61   void      ClickOnHelp();
62   void      ValueHasChanged();
63   void      SetTransparency();
64 };
65
66 #endif // GEOMTOOLSGUI_TRANSPARENCYDLG_H