Salome HOME
Join modifications from BR_Dev_For_4_0 tag V4_1_1.
[modules/smesh.git] / src / SMESHGUI / SMESHGUI_PrecisionDlg.h
1 //  SMESH SMESHGUI : GUI for SMESH 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   : SMESHGUI_PrecisionDlg.h
25 //  Author : Sergey LITONIN      
26 //  Module : SMESH
27
28
29 #ifndef SMESHGUI_PrecisionDlg_H
30 #define SMESHGUI_PrecisionDlg_H
31
32 #include "SMESH_SMESHGUI.hxx"
33
34 #include <qdialog.h>
35
36 class QSpinBox;
37 class QPushButton;
38 class QCheckBox;
39 class QFrame;
40 class SMESHGUI;
41
42 /*
43   Class       : SMESHGUI_PrecisionDlg
44   Description : Dialog to specify precision of mesh quality controls
45 */
46
47 class SMESHGUI_EXPORT SMESHGUI_PrecisionDlg : public QDialog
48 {
49   Q_OBJECT
50
51 public:
52                             SMESHGUI_PrecisionDlg( SMESHGUI* );
53
54   virtual                   ~SMESHGUI_PrecisionDlg();
55
56   void                      Init();
57
58 private slots:
59
60   void                      onOk();
61   void                      onClose();
62   void                      onNotUse();
63
64 private:
65
66   QFrame*                   createButtonFrame( QWidget* );
67   QFrame*                   createMainFrame( QWidget* );
68   void                      closeEvent( QCloseEvent* );
69  
70 private:
71   SMESHGUI*                 mySMESHGUI;
72   QSpinBox*                 mySpinBox;
73   QPushButton*              myOKBtn;
74   QPushButton*              myCancelBtn;
75   QCheckBox*                myNotUseChk;
76
77 };
78
79 #endif
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99