1 // File : GeometryGUI_SectionDlg.h
3 // Author : Lucien PIGNOLONI
5 // Module : GeometryGUI
6 // Copyright : OPEN CASCADE
9 #ifndef DIALOGBOX_SECTION_H
10 #define DIALOGBOX_SECTION_H
12 #include "SALOME_Selection.h"
13 #include "GEOM_ShapeTypeFilter.hxx"
15 #include <BRepAlgoAPI_Section.hxx>
32 //=================================================================================
33 // class : GeometryGUI_SectionDlg
35 //=================================================================================
36 class GeometryGUI_SectionDlg : public QDialog{
40 GeometryGUI_SectionDlg( QWidget* parent = 0, const char* name = 0, SALOME_Selection* Sel = 0, bool modal = FALSE, WFlags fl = 0 );
41 ~GeometryGUI_SectionDlg();
45 void Init( SALOME_Selection* Sel ) ;
46 void closeEvent( QCloseEvent* e ) ;
47 void enterEvent ( QEvent * ) ; /* mouse enter the QWidget */
49 GEOM::GEOM_Gen_var myGeom ; /* Current GeomI object */
50 GeometryGUI* myGeomGUI ; /* Current GeomGUI object */
51 SALOME_Selection* mySelection ; /* User shape selection */
52 TopoDS_Shape myShape1 ; /* topology used to fuse */
53 TopoDS_Shape myShape2 ; /* topology used to fuse */
54 GEOM::GEOM_Shape_var myGeomShape1 ; /* is myShape1 */
55 GEOM::GEOM_Shape_var myGeomShape2 ; /* is myShape2 */
57 bool myOkShape2 ; /* to check when arguments are defined */
58 int myConstructorId ; /* Current constructor id = radio button id */
59 QLineEdit* myEditCurrentArgument; /* Current LineEdit */
62 QButtonGroup* GroupConstructors;
63 QRadioButton* Constructor1;
64 QGroupBox* GroupConstructor1;
65 QLineEdit* LineEditC1A2Shape;
66 QLineEdit* LineEditC1A1Shape;
67 QPushButton* SelectButtonC1A1Shape;
68 QPushButton* SelectButtonC1A2Shape;
69 QLabel* TextLabelC1A2Shape;
70 QLabel* TextLabelC1A1Shape;
71 QGroupBox* GroupButtons;
72 QPushButton* buttonApply;
73 QPushButton* buttonOk;
74 QPushButton* buttonCancel;
78 void ConstructorsClicked(int constructorId);
82 void SetEditCurrentArgument() ;
83 void SelectionIntoArgument() ;
84 void LineEditReturnPressed() ;
85 void DeactivateActiveDialog() ;
86 void ActivateThisDialog() ;
90 QGridLayout* GeometryGUI_SectionDlgLayout;
91 QGridLayout* GroupConstructorsLayout;
92 QGridLayout* GroupConstructor1Layout;
93 QGridLayout* GroupButtonsLayout;
96 #endif // DIALOGBOX_SECTION_H