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