1 // File : GeometryGUI_SuppressFacesDlg.h
3 // Author : Lucien PIGNOLONI
5 // Module : GeometryGUI
6 // Copyright : OPEN CASCADE
9 #ifndef DIALOGBOX_SUPPRESSFACES_H
10 #define DIALOGBOX_SUPPRESSFACES_H
12 #include "SALOME_Selection.h"
13 #include "GEOM_ShapeTypeFilter.hxx"
18 #include <AIS_InteractiveContext.hxx>
33 //=================================================================================
34 // class : GeometryGUI_SuppressFacesDlg
36 //=================================================================================
37 class GeometryGUI_SuppressFacesDlg : public QDialog
42 GeometryGUI_SuppressFacesDlg( QWidget* parent = 0,
44 SALOME_Selection* Sel = 0,
45 Handle (AIS_InteractiveContext) ic = 0,
49 ~GeometryGUI_SuppressFacesDlg();
53 void Init( SALOME_Selection* Sel, Handle (AIS_InteractiveContext) ic ) ;
54 void closeEvent( QCloseEvent* e ) ;
55 void enterEvent ( QEvent * ) ; /* mouse enter the QWidget */
56 void ResetStateOfDialog() ;
58 /* Interactive and local context management see also : bool myUseLocalContext() */
59 Handle (AIS_InteractiveContext) myIC ; /* Interactive context */
60 Standard_Integer myLocalContextId ; /* identify a local context used by this method */
61 bool myUseLocalContext ; /* true when this method as opened a local context */
63 GEOM::GEOM_Gen_var myGeom ; /* Current Geom object */
64 GeometryGUI* myGeomGUI ; /* Current GeomGUI object */
65 SALOME_Selection* mySelection ; /* User shape selection */
67 TopoDS_Shape myShape ;
71 bool myOkSelectSubMode ; /* true = sub mode selection activated */
72 QLineEdit* myEditCurrentArgument; /* Current LineEdit */
73 int myConstructorId ; /* Current constructor id = radio button id */
75 QButtonGroup* GroupConstructors;
76 QRadioButton* Constructor1;
78 QLabel* TextLabelC1A1;
79 QPushButton* SelectButtonC1A1;
80 QLineEdit* LineEditC1A1;
81 QGroupBox* GroupButtons;
82 QPushButton* buttonOk;
83 QPushButton* buttonApply;
84 QPushButton* buttonClose;
90 void ConstructorsClicked(int constructorId);
95 void LineEditReturnPressed() ;
96 void SetEditCurrentArgument() ;
97 void SelectionIntoArgument() ;
98 void DeactivateActiveDialog() ;
99 void ActivateThisDialog() ;
100 void ActivateUserSelection() ;
103 QGridLayout* GeometryGUI_SuppressFacesDlgLayout;
104 QGridLayout* GroupConstructorsLayout;
105 QGridLayout* GroupC1Layout;
106 QHBoxLayout* Layout2;
107 QGridLayout* GroupButtonsLayout;
110 #endif // DIALOGBOX_SUPPRESSFACES_H