1 // File : SMESHGUI_MaxElementVolumeDlg.h
2 // Created : Wed Jun 12 21:18:15 2002
3 // Author : Nicolas REJNERI
7 // Copyright : Open CASCADE 2002
10 #ifndef DIALOGBOX_MAX_ELEMENT_VOLUME_H
11 #define DIALOGBOX_MAX_ELEMENT_VOLUME_H
16 #include <qvalidator.h>
28 class SMESHGUI_SpinBox;
31 //=================================================================================
32 // class : SMESHGUI_MaxElementVolumeDlg
34 //=================================================================================
35 class SMESHGUI_MaxElementVolumeDlg : public QDialog
40 SMESHGUI_MaxElementVolumeDlg( QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0 );
41 ~SMESHGUI_MaxElementVolumeDlg();
46 void closeEvent( QCloseEvent* e ) ;
47 void enterEvent ( QEvent * ) ;
49 SMESHGUI* mySMESHGUI ;
51 QString myNameHypothesis ;
52 double myMaxElementVolume ;
53 bool myOkNameHypothesis ;
54 bool myOkMaxElementVolume ;
57 QLineEdit* myEditCurrentArgument;
59 QGroupBox* GroupButtons;
60 QPushButton* buttonApply;
61 QPushButton* buttonOk;
62 QPushButton* buttonCancel;
63 QButtonGroup* GroupConstructors;
64 QRadioButton* Constructor1;
66 QLabel* TextLabel_NameHypothesis ;
67 QLabel* TextLabel_MaxElementVolume ;
68 QLineEdit* LineEdit_NameHypothesis ;
69 SMESHGUI_SpinBox* SpinBox_MaxElementVolume ;
73 void ConstructorsClicked(int constructorId);
77 void DeactivateActiveDialog() ;
78 void ActivateThisDialog() ;
79 void TextChangedInLineEdit(const QString& newText) ;
82 QGridLayout* SMESHGUI_MaxElementVolumeDlgLayout;
83 QGridLayout* GroupButtonsLayout;
84 QGridLayout* GroupConstructorsLayout;
85 QGridLayout* GroupC1Layout;
86 QGridLayout* GroupC2Layout;
89 #endif // DIALOGBOX_MAX_ELEMENT_VOLUME_H