1 // File : GeometryGUI_EdgeDlg.h
3 // Author : Lucien PIGNOLONI
5 // Module : GeometryGUI
6 // Copyright : OPEN CASCADE
9 #ifndef DIALOGBOX_EDGE_H
10 #define DIALOGBOX_EDGE_H
12 #include "SALOME_Selection.h"
13 #include "GEOM_ShapeTypeFilter.hxx"
15 #include <BRepBuilderAPI_MakeEdge.hxx>
16 #include <Precision.hxx>
34 //=================================================================================
35 // class : GeometryGUI_EdgeDlg
37 //=================================================================================
38 class GeometryGUI_EdgeDlg : public QDialog
43 GeometryGUI_EdgeDlg( QWidget* parent = 0, const char* name = 0, SALOME_Selection* Sel = 0, bool modal = FALSE, WFlags fl = 0 );
44 ~GeometryGUI_EdgeDlg();
48 GEOM::GEOM_Gen_var myGeom ; /* Current Geom object */
49 GeometryGUI* myGeomGUI ; /* Current GeomGUI object */
50 TopoDS_Shape mySimulationTopoDs; /* Shape used for simulation display */
51 SALOME_Selection* mySelection ; /* User shape selection */
52 gp_Pnt myPoint1 ; /* Points containing the vector */
55 bool myOkPoint1 ; /* true when myPoint is defined */
57 QLineEdit* myEditCurrentArgument; /* Current LineEdit */
58 int myConstructorId ; /* Current constructor id = radio button id */
59 Handle(GEOM_ShapeTypeFilter) myVertexFilter; /* Filter selection */
61 void closeEvent( QCloseEvent* e ) ;
62 void enterEvent( QEvent* e);
63 void Init( SALOME_Selection* Sel ) ;
65 QButtonGroup* GroupConstructors;
66 QRadioButton* Constructor1;
68 QPushButton* SelectButtonC1A2;
69 QLineEdit* LineEditC1A1;
70 QLineEdit* LineEditC1A2;
71 QPushButton* SelectButtonC1A1;
72 QLabel* TextLabelC1A1;
73 QLabel* TextLabelC1A2;
74 QGroupBox* GroupButtons;
75 QPushButton* buttonOk;
76 QPushButton* buttonCancel;
77 QPushButton* buttonApply;
81 void ConstructorsClicked(int constructorId);
85 void SetEditCurrentArgument() ;
86 void LineEditReturnPressed() ;
87 void SelectionIntoArgument() ;
88 void DeactivateActiveDialog() ;
89 void ActivateThisDialog() ;
92 QGridLayout* GeometryGUI_EdgeDlgLayout;
93 QGridLayout* GroupConstructorsLayout;
94 QGridLayout* GroupC1Layout;
95 QGridLayout* GroupButtonsLayout;
98 #endif // DIALOGBOX_EDGE_H