1 // File : GeometryGUI_MaxToleranceDlg.h
2 // Created : Mon Mar 04 14:10:03 2002
3 // Author : Nicolas REJNERI
7 // Copyright : Open CASCADE 2002
11 #ifndef DIALOGBOX_MAXTOLERANCE_H
12 #define DIALOGBOX_MAXTOLERANCE_H
14 #include "SALOME_Selection.h"
15 #include "GEOM_ShapeTypeFilter.hxx"
31 //=================================================================================
32 // class : DialogBox_PROPERTIES
34 //=================================================================================
35 class GeometryGUI_MaxToleranceDlg : public QDialog
40 GeometryGUI_MaxToleranceDlg( QWidget* parent = 0, const char* name = 0, SALOME_Selection* Sel = 0, bool modal = FALSE, WFlags fl = 0 );
41 ~GeometryGUI_MaxToleranceDlg();
45 void Init( SALOME_Selection* Sel ) ;
46 void closeEvent( QCloseEvent* e ) ;
47 void enterEvent ( QEvent * ) ; /* mouse enter the QWidget */
48 void CalculateMaxTolerance(const TopoDS_Shape& S) ;
50 GEOM::GEOM_Gen_var myGeom ; /* Current GeomI object */
51 GeometryGUI* myGeomGUI ; /* Current GeomGUI object */
52 SALOME_Selection* mySelection ; /* User shape selection */
54 int myConstructorId ; /* Current constructor id = radio button id */
55 QLineEdit* myEditCurrentArgument; /* Current LineEdit */
57 QButtonGroup* GroupConstructors;
58 QRadioButton* Constructor1;
59 QGroupBox* GroupConstructor1;
60 QLineEdit* LineEditC1A1;
61 QPushButton* SelectButtonC1A1;
62 QLabel* TextLabelC1A1;
64 QLabel* TextLabel_Min;
65 QLabel* TextLabel_Max;
67 QLabel* TextLabel_Face;
68 QLabel* TextLabel_Edge;
69 QLabel* TextLabel_Vertex;
71 QLineEdit* LineEdit_MinFace;
72 QLineEdit* LineEdit_MinEdge;
73 QLineEdit* LineEdit_MinVertex;
75 QLineEdit* LineEdit_MaxFace;
76 QLineEdit* LineEdit_MaxEdge;
77 QLineEdit* LineEdit_MaxVertex;
79 QGroupBox* GroupButtons;
80 QPushButton* buttonApply;
81 QPushButton* buttonOk;
82 QPushButton* buttonCancel;
86 void ConstructorsClicked(int constructorId);
88 void SetEditCurrentArgument() ;
89 void LineEditReturnPressed() ;
90 void SelectionIntoArgument() ;
91 void DeactivateActiveDialog() ;
92 void ActivateThisDialog() ;
95 QGridLayout* GeometryGUI_MaxToleranceDlgLayout;
96 QGridLayout* GroupConstructorsLayout;
97 QGridLayout* GroupConstructor1Layout;
98 QGridLayout* GroupButtonsLayout;
101 #endif // DIALOGBOX_MAXTOLERANCE_H