Salome HOME
This commit was generated by cvs2git to create branch 'PAL_OCC'.
[modules/smesh.git] / src / StdMeshersGUI / StdMeshersGUI_MaxElementAreaDlg.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   : StdMeshersGUI_MaxElementAreaDlg.h
25 //           Moved here from SMESHGUI_MaxElementAreaDlg.h
26 //  Author : Nicolas REJNERI
27 //  Module : SMESH
28 //  $Header$
29
30 #ifndef DIALOGBOX_MAX_ELEMENT_AREA_H
31 #define DIALOGBOX_MAX_ELEMENT_AREA_H
32
33 // QT Includes
34 #include <qdialog.h>
35
36 class QGroupBox;
37 class QLabel;
38 class QLineEdit;
39 class QPushButton;
40 class SMESHGUI;
41 class SMESHGUI_SpinBox;
42
43 //=================================================================================
44 // class    : StdMeshersGUI_MaxElementAreaDlg
45 // purpose  :
46 //=================================================================================
47 class StdMeshersGUI_MaxElementAreaDlg : public QDialog
48
49     Q_OBJECT
50
51 public:
52     StdMeshersGUI_MaxElementAreaDlg (const QString& hypType,
53                                      QWidget* parent = 0,
54                                      const char* name = 0,
55                                      bool modal = FALSE,
56                                      WFlags fl = 0 );
57     ~StdMeshersGUI_MaxElementAreaDlg ();
58
59 private:
60
61     void Init() ;
62     void closeEvent( QCloseEvent* e ) ;
63     void enterEvent ( QEvent * ) ;
64
65     SMESHGUI*  mySMESHGUI ;
66     QString    myHypType ;
67
68     QLabel*           iconLabel;
69     QLabel*           typeLabel;
70     QGroupBox*        GroupC1;
71     QLabel*           TextLabel_NameHypothesis ;
72     QLineEdit*        LineEdit_NameHypothesis ;
73     QLabel*           TextLabel_MaxElementArea ;
74     SMESHGUI_SpinBox* SpinBox_MaxElementArea ;
75     QGroupBox*        GroupButtons;
76     QPushButton*      buttonApply;
77     QPushButton*      buttonOk;
78     QPushButton*      buttonCancel;
79
80 private slots:
81
82     void ClickOnOk();
83     void ClickOnCancel();
84     bool ClickOnApply();
85     void DeactivateActiveDialog() ;
86     void ActivateThisDialog() ;
87 };
88
89 #endif // DIALOGBOX_MAX_ELEMENT_AREA_H