Salome HOME
582f5d5f9205b87c5a6656d7a64c13c558bf0ee1
[modules/smesh.git] / src / SMESHGUI / SMESHGUI_MaxElementVolumeDlg.h
1 //  File      : SMESHGUI_MaxElementVolumeDlg.h
2 //  Created   : Wed Jun 12 21:18:15 2002
3 //  Author    : Nicolas REJNERI
4
5 //  Project   : SALOME
6 //  Module    : SMESH
7 //  Copyright : Open CASCADE 2002
8 //  $Header$
9
10 #ifndef DIALOGBOX_MAX_ELEMENT_VOLUME_H
11 #define DIALOGBOX_MAX_ELEMENT_VOLUME_H
12
13 // QT Includes
14 #include <qvariant.h>
15 #include <qdialog.h>
16 #include <qvalidator.h>
17
18 class QVBoxLayout; 
19 class QHBoxLayout; 
20 class QGridLayout; 
21 class QButtonGroup;
22 class QGroupBox;
23 class QLabel;
24 class QLineEdit;
25 class QPushButton;
26 class QRadioButton;
27 class SMESHGUI;
28 class SMESHGUI_SpinBox;
29
30
31 //=================================================================================
32 // class    : SMESHGUI_MaxElementVolumeDlg
33 // purpose  :
34 //=================================================================================
35 class SMESHGUI_MaxElementVolumeDlg : public QDialog
36
37     Q_OBJECT
38
39 public:
40     SMESHGUI_MaxElementVolumeDlg( QWidget* parent = 0, const char* name = 0,  bool modal = FALSE, WFlags fl = 0 );
41     ~SMESHGUI_MaxElementVolumeDlg();
42
43 private:
44
45     void Init() ;
46     void closeEvent( QCloseEvent* e ) ;
47     void enterEvent ( QEvent * ) ;
48
49     SMESHGUI*             mySMESHGUI ;
50
51     QString               myNameHypothesis ;
52     double                myMaxElementVolume ;
53     bool                  myOkNameHypothesis ;
54     bool                  myOkMaxElementVolume ;
55
56     int                   myConstructorId ;
57     QLineEdit*            myEditCurrentArgument; 
58
59     QGroupBox* GroupButtons;
60     QPushButton* buttonApply;
61     QPushButton* buttonOk;
62     QPushButton* buttonCancel;
63     QButtonGroup* GroupConstructors;
64     QRadioButton* Constructor1;
65     QGroupBox* GroupC1;
66     QLabel* TextLabel_NameHypothesis ;
67     QLabel* TextLabel_MaxElementVolume ;
68     QLineEdit* LineEdit_NameHypothesis ;
69     SMESHGUI_SpinBox* SpinBox_MaxElementVolume ;
70
71 private slots:
72
73     void ConstructorsClicked(int constructorId);
74     void ClickOnOk();
75     void ClickOnCancel();
76     void ClickOnApply();
77     void DeactivateActiveDialog() ;
78     void ActivateThisDialog() ;
79     void TextChangedInLineEdit(const QString& newText) ;
80   
81 protected:
82     QGridLayout* SMESHGUI_MaxElementVolumeDlgLayout;
83     QGridLayout* GroupButtonsLayout;
84     QGridLayout* GroupConstructorsLayout;
85     QGridLayout* GroupC1Layout;
86     QGridLayout* GroupC2Layout;
87 };
88
89 #endif // DIALOGBOX_MAX_ELEMENT_VOLUME_H