1 // File : GeometryGUI_FillingHoleDlg.h
3 // Author : Lucien PIGNOLONI
5 // Module : GeometryGUI
6 // Copyright : OPEN CASCADE
10 #ifndef GEOMETRYGUI_FILLINGHOLE_H
11 #define GEOMETRYGUI_FILLINGHOLE_H
13 #include "SALOME_Selection.h"
14 #include "GEOM_ShapeTypeFilter.hxx"
19 #include CORBA_SERVER_HEADER(SALOMEDS_Attributes)
34 //=================================================================================
35 // class : GeometryGUI_FillingHoleDlg
37 //=================================================================================
38 class GeometryGUI_FillingHoleDlg : public QDialog
43 GeometryGUI_FillingHoleDlg( QWidget* parent = 0,
45 SALOME_Selection* Sel = 0,
46 Handle (AIS_InteractiveContext) ic = 0,
50 ~GeometryGUI_FillingHoleDlg();
54 void Init( SALOME_Selection* Sel, Handle (AIS_InteractiveContext) ic ) ;
55 void closeEvent( QCloseEvent* e ) ;
56 void enterEvent ( QEvent * ) ; /* mouse enter the QWidget */
57 void ResetStateOfDialog() ;
59 /* Interactive and local context management see also : bool myUseLocalContext() */
60 Handle (AIS_InteractiveContext) myIC ; /* Interactive context */
61 Standard_Integer myLocalContextId ; /* identify a local context used by this method */
62 bool myUseLocalContext ; /* true when this method as opened a local context */
64 GEOM::GEOM_Gen_var myGeom ; /* Current Geom object */
65 GeometryGUI* myGeomGUI ; /* Current GeomGUI object */
66 SALOME_Selection* mySelection ; /* User shape selection */
68 TopoDS_Shape myShape ;
72 bool myOkSelectSubMode ; /* true = sub mode selection activated */
73 QLineEdit* myEditCurrentArgument; /* Current LineEdit */
74 int myConstructorId ; /* Current constructor id = radio button id */
76 QButtonGroup* GroupConstructors;
77 QRadioButton* Constructor1;
80 QLabel* TextLabelC1A1;
81 QPushButton* SelectButtonC1A1;
82 QLineEdit* LineEditC1A1;
85 QGroupBox* GroupButtons;
86 QPushButton* buttonOk;
87 QPushButton* buttonApply;
88 QPushButton* buttonClose;
93 void ConstructorsClicked(int constructorId);
98 void LineEditReturnPressed() ;
99 void SetEditCurrentArgument() ;
100 void SelectionIntoArgument() ;
101 void DeactivateActiveDialog() ;
102 void ActivateThisDialog() ;
103 void ActivateUserSelection() ;
107 QGridLayout* GeometryGUI_FillingHoleDlgLayout;
108 QGridLayout* GroupConstructorsLayout;
109 QGridLayout* GroupC1Layout;
110 QHBoxLayout* Layout2;
111 QGridLayout* GroupButtonsLayout;
114 #endif // GEOMETRYGUI_FILLINGHOLE_H