1 // File : GeometryGUI_PipeDlg.h
3 // Author : Lucien PIGNOLONI
5 // Module : GeometryGUI
6 // Copyright : OPEN CASCADE
9 #ifndef DIALOGBOX_PIPE_H
10 #define DIALOGBOX_PIPE_H
12 #include "SALOME_Selection.h"
13 #include "GEOM_ShapeTypeFilter.hxx"
15 #include <BRepOffsetAPI_MakePipe.hxx>
32 //=================================================================================
33 // class : GeometryGUI_PipeDlg
35 //=================================================================================
36 class GeometryGUI_PipeDlg : public QDialog
41 GeometryGUI_PipeDlg( QWidget* parent = 0, const char* name = 0, SALOME_Selection* Sel = 0, bool modal = FALSE, WFlags fl = 0 );
42 ~GeometryGUI_PipeDlg();
46 void Init( SALOME_Selection* Sel ) ;
47 void closeEvent( QCloseEvent* e ) ;
48 void enterEvent ( QEvent * ) ; /* mouse enter the QWidget */
50 GEOM::GEOM_Gen_var myGeom ; /* Current GeomI object */
51 GeometryGUI* myGeomGUI ; /* Current GeomGUI object */
52 SALOME_Selection* mySelection ; /* User shape selection */
53 TopoDS_Shape myShape1 ; /* topology used */
54 TopoDS_Shape myShape2 ; /* topology used */
55 GEOM::GEOM_Shape_var myGeomShape1 ; /* is myShape1 */
56 GEOM::GEOM_Shape_var myGeomShape2 ; /* is myShape2 */
58 bool myOkShape2 ; /* to check when arguments are defined */
59 int myConstructorId ; /* Current constructor id = radio button id */
60 QLineEdit* myEditCurrentArgument; /* Current LineEdit */
61 // Handle(GEOM_ShapeTypeFilter) myEdgFilter ; /* Filter selection */
62 // Handle(GEOM_ShapeTypeFilter) myWireFilter ; /* Filter selection */
64 TopoDS_Shape mySimulationTopoDs ; /* Shape used for simulation display */
66 QButtonGroup* GroupConstructors;
67 QRadioButton* Constructor1;
68 QGroupBox* GroupButtons;
69 QPushButton* buttonOk;
70 QPushButton* buttonCancel;
71 QPushButton* buttonApply;
73 QLineEdit* LineEditC1A1;
74 QPushButton* SelectButtonC1A1;
75 QLabel* TextLabelC1A1;
76 QLabel* TextLabelC1A2;
77 QPushButton* SelectButtonC1A2;
78 QLineEdit* LineEditC1A2;
82 void ConstructorsClicked(int constructorId);
86 void SetEditCurrentArgument() ;
87 void SelectionIntoArgument() ;
88 void LineEditReturnPressed() ;
89 void DeactivateActiveDialog() ;
90 void ActivateThisDialog() ;
93 QGridLayout* GeometryGUI_PipeDlgLayout;
94 QGridLayout* GroupConstructorsLayout;
95 QGridLayout* GroupButtonsLayout;
96 QGridLayout* GroupC1Layout;
99 #endif // DIALOGBOX_PIPE_H