1 // File : GeometryGUI_FilletDlg.h
3 // Author : Damien COQUERET
6 // Copyright : OPEN CASCADE 2002
9 #ifndef DIALOGBOX_FILLET_H
10 #define DIALOGBOX_FILLET_H
12 #include "SALOME_Selection.h"
13 #include "GEOM_ShapeTypeFilter.hxx"
14 #include "GeometryGUI_SpinBox.h"
19 #include <qvalidator.h>
21 // Open CASCADE Includes
22 #include <AIS_InteractiveContext.hxx>
37 //=================================================================================
38 // class : GeometryGUI_FilletDlg
40 //=================================================================================
41 class GeometryGUI_FilletDlg : public QDialog
46 GeometryGUI_FilletDlg( QWidget* parent = 0,
48 SALOME_Selection* Sel = 0,
49 Handle (AIS_InteractiveContext) ic = 0,
53 ~GeometryGUI_FilletDlg();
57 void Init( SALOME_Selection* Sel, Handle (AIS_InteractiveContext) ic ) ;
58 void closeEvent( QCloseEvent* e ) ;
59 void enterEvent( QEvent* e);
60 void ResetStateOfDialog() ;
62 /* Interactive and local context management see also : bool myUseLocalContext() */
63 Handle (AIS_InteractiveContext) myIC ; /* Interactive context */
64 Standard_Integer myLocalContextId ; /* identify a local context used by this method */
65 bool myUseLocalContext ; /* true when this method as opened a local context */
67 QDoubleValidator *myVa ; /* Double validator for numeric input */
69 GEOM::GEOM_Gen_var myGeom ; /* Current Geom object */
70 GeometryGUI* myGeomGUI ; /* Current GeomGUI object */
71 SALOME_Selection* mySelection ; /* User shape selection */
73 TopoDS_Shape mySimulationTopoDs ; /* Shape used for simulation display */
76 TopoDS_Shape myShape ;
80 QLineEdit* myEditCurrentArgument; /* Current LineEdit */
81 int myConstructorId ; /* Current constructor id = radio button id */
87 QButtonGroup* GroupConstructors;
89 QRadioButton* Constructor1;
90 QRadioButton* Constructor2;
91 QRadioButton* Constructor3;
93 QGroupBox* GroupButtons;
94 QPushButton* buttonOk;
95 QPushButton* buttonCancel;
96 QPushButton* buttonApply;
99 QPushButton* SelectButtonC1A1;
100 QLineEdit* LineEditC1A1;
101 QLabel* TextLabelC1A1;
102 GeometryGUI_SpinBox* SpinBox_C1A2 ;
103 QLabel* TextLabelC1A2;
106 QPushButton* SelectButtonC2A1;
107 QLineEdit* LineEditC2A1;
108 QLabel* TextLabelC2A1;
109 GeometryGUI_SpinBox* SpinBox_C2A2 ;
110 QLabel* TextLabelC2A2;
113 QPushButton* SelectButtonC3A1;
114 QLineEdit* LineEditC3A1;
115 QLabel* TextLabelC3A1;
116 GeometryGUI_SpinBox* SpinBox_C3A2 ;
117 QLabel* TextLabelC3A2;
121 void ConstructorsClicked(int constructorId);
123 void ClickOnCancel();
125 void SetEditCurrentArgument() ;
126 void SelectionIntoArgument() ;
127 void DeactivateActiveDialog() ;
128 void LineEditReturnPressed() ;
129 void ActivateThisDialog() ;
130 void ValueChangedInSpinBox( double newValue ) ;
134 QGridLayout* GeometryGUI_FilletDlgLayout;
135 QGridLayout* GroupButtonsLayout;
136 QGridLayout* GroupConstructorsLayout;
137 QGridLayout* GroupC1Layout;
138 QGridLayout* GroupC2Layout;
139 QGridLayout* GroupC3Layout;
142 #endif // DIALOGBOX_FILLET_H