1 // File : SMESHGUI_LocalLengthDlg.h
2 // Created : Mon May 27 11:38:37 2002
3 // Author : Nicolas REJNERI
7 // Copyright : Open CASCADE 2002
10 #ifndef DIALOGBOX_LOCAL_LENGTH_H
11 #define DIALOGBOX_LOCAL_LENGTH_H
16 #include <qvalidator.h>
28 class SMESHGUI_SpinBox;
31 //=================================================================================
32 // class : SMESHGUI_LocalLengthDlg
34 //=================================================================================
35 class SMESHGUI_LocalLengthDlg : public QDialog
40 SMESHGUI_LocalLengthDlg( QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0 );
41 ~SMESHGUI_LocalLengthDlg();
46 void closeEvent( QCloseEvent* e ) ;
47 void enterEvent ( QEvent * ) ;
49 SMESHGUI* mySMESHGUI ;
51 QString myNameHypothesis ;
53 bool myOkNameHypothesis ;
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_Length ;
68 QLineEdit* LineEdit_NameHypothesis ;
69 SMESHGUI_SpinBox* SpinBox_Length ;
73 void ConstructorsClicked(int constructorId);
77 void DeactivateActiveDialog() ;
78 void ActivateThisDialog() ;
79 void TextChangedInLineEdit(const QString& newText) ;
82 QGridLayout* SMESHGUI_LocalLengthDlgLayout;
83 QGridLayout* GroupButtonsLayout;
84 QGridLayout* GroupConstructorsLayout;
85 QGridLayout* GroupC1Layout;
86 QGridLayout* GroupC2Layout;
89 #endif // DIALOGBOX_LOCAL_LENGTH_H