1 // File : GeometryGUI_LineDlg.h
3 // Author : Lucien PIGNOLONI
5 // Module : GeometryGUI
6 // Copyright : OPEN CASCADE
9 #ifndef DIALOGBOX_LINE_H
10 #define DIALOGBOX_LINE_H
12 #include "SALOME_Selection.h"
13 #include "GEOM_ShapeTypeFilter.hxx"
16 #include <BRepBuilderAPI_MakeEdge.hxx>
17 #include <BRep_Builder.hxx>
18 #include <TopoDS_Compound.hxx>
34 //=================================================================================
35 // class : GeometryGUI_LineDlg
37 //=================================================================================
38 class GeometryGUI_LineDlg : public QDialog
43 GeometryGUI_LineDlg( QWidget* parent = 0, const char* name = 0, SALOME_Selection* Sel = 0, bool modal = FALSE, WFlags fl = 0 );
44 ~GeometryGUI_LineDlg();
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 ; /* Are 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 */
60 Handle(GEOM_ShapeTypeFilter) myEdgeFilter; /* Filter selection */
62 void closeEvent( QCloseEvent* e ) ;
63 void enterEvent( QEvent* e);
64 void Init( SALOME_Selection* Sel ) ;
66 bool AddArrowToSimulation( TopoDS_Shape& modifiedShape ) ;
68 QButtonGroup* GroupConstructors;
69 QRadioButton* Constructor1;
70 QRadioButton* Constructor2;
71 QRadioButton* Constructor3;
74 QLabel* TextLabelC1A1;
75 QPushButton* SelectButtonC1A2;
76 QLineEdit* LineEditC1A1;
77 QLabel* TextLabelC1A2;
78 QLineEdit* LineEditC1A2;
79 QPushButton* SelectButtonC1A1;
81 QGroupBox* GroupButtons;
82 QPushButton* buttonOk;
83 QPushButton* buttonCancel;
84 QPushButton* buttonApply;
88 void ConstructorsClicked(int constructorId);
92 void SetEditCurrentArgument() ;
93 void LineEditReturnPressed() ;
94 void SelectionIntoArgument() ;
95 void DeactivateActiveDialog() ;
96 void ActivateThisDialog() ;
99 QGridLayout* GeometryGUI_LineDlgLayout;
100 QGridLayout* GroupConstructorsLayout;
101 QGridLayout* GroupC1Layout;
102 QGridLayout* GroupButtonsLayout;
105 #endif // DIALOGBOX_LINE_H