1 // File : GeometryGUI_CircleDlg.h
3 // Author : Lucien PIGNOLONI
5 // Module : GeometryGUI
6 // Copyright : OPEN CASCADE
9 #ifndef DIALOGBOX_CIRCLE_H
10 #define DIALOGBOX_CIRCLE_H
12 #include "SALOME_Selection.h"
13 #include "GEOM_ShapeTypeFilter.hxx"
14 #include "GEOM_EdgeFilter.hxx"
15 #include "GeometryGUI_SpinBox.h"
19 #include <BRepBuilderAPI_MakeEdge.hxx>
36 //=================================================================================
37 // class : GeometryGUI_CircleDlg
39 //=================================================================================
40 class GeometryGUI_CircleDlg : public QDialog
45 GeometryGUI_CircleDlg( QWidget* parent = 0, const char* name = 0, SALOME_Selection* Sel = 0, bool modal = FALSE, WFlags fl = 0 );
46 ~GeometryGUI_CircleDlg();
50 GEOM::GEOM_Gen_var myGeom ; /* Current Geom object */
51 GeometryGUI* myGeomGUI ; /* Current GeomGUI object */
52 SALOME_Selection* mySelection ; /* User shape selection */
53 TopoDS_Shape mySimulationTopoDs; /* Shape used for simulation display */
56 Standard_Real myRadius ;
59 QLineEdit* myEditCurrentArgument; /* Current LineEdit */
60 int myConstructorId ; /* Current constructor id = radio button id */
61 Handle(GEOM_ShapeTypeFilter) myVertexFilter ; /* Filter selection */
62 Handle(GEOM_EdgeFilter) myEdgeFilter;
64 void closeEvent( QCloseEvent* e ) ;
65 void enterEvent( QEvent* e);
66 void Init( SALOME_Selection* Sel ) ;
67 void MakeCircleSimulationAndDisplay() ;
69 QButtonGroup* GroupConstructors;
70 QRadioButton* Constructor1;
71 QGroupBox* GroupButtons;
72 QPushButton* buttonOk;
73 QPushButton* buttonCancel;
74 QPushButton* buttonApply;
76 QPushButton* SelectButtonC1A2;
77 QLineEdit* LineEditC1A1;
78 QPushButton* SelectButtonC1A1;
79 QLabel* TextLabelC1A2;
80 QLineEdit* LineEditC1A2;
81 QLabel* TextLabelC1A1;
82 QLabel* TextLabelC1A3;
84 GeometryGUI_SpinBox* SpinBox_C1A3;
88 void ConstructorsClicked(int constructorId);
92 void SetEditCurrentArgument() ;
93 void SelectionIntoArgument() ;
94 void LineEditReturnPressed() ;
95 void DeactivateActiveDialog() ;
96 void ActivateThisDialog() ;
97 void ValueChangedInSpinBox( double newValue ) ;
100 QGridLayout* GeometryGUI_CircleDlgLayout;
101 QGridLayout* GroupConstructorsLayout;
102 QGridLayout* GroupButtonsLayout;
103 QGridLayout* GroupC1Layout;
106 #endif // DIALOGBOX_CIRCLE_H