1 // File : GeometryGUI_SewingDlg.h
3 // Author : Lucien PIGNOLONI
5 // Module : GeometryGUI
6 // Copyright : OPEN CASCADE
9 #ifndef DIALOGBOX_SEWING_H
10 #define DIALOGBOX_SEWING_H
12 #include "SALOME_Selection.h"
13 #include "GEOM_ShapeTypeFilter.hxx"
15 #include <Precision.hxx>
32 //=================================================================================
33 // class : GeometryGUI_SewingDlg
35 //=================================================================================
36 class GeometryGUI_SewingDlg : public QDialog
41 GeometryGUI_SewingDlg( QWidget* parent = 0, const char* name = 0, SALOME_Selection* Sel = 0, bool modal = FALSE, WFlags fl = 0 );
42 ~GeometryGUI_SewingDlg();
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 GEOM::GEOM_Gen::ListOfIOR myListShapes ;
54 Standard_Real myPrecision ;
55 bool myOkListShapes ; /* to check when arguments is defined */
56 int myConstructorId ; /* Current constructor id = radio button id */
57 QLineEdit* myEditCurrentArgument; /* Current LineEdit */
59 QButtonGroup* GroupConstructors;
60 QRadioButton* Constructor1;
61 QGroupBox* GroupButtons;
62 QPushButton* buttonApply;
63 QPushButton* buttonOk;
64 QPushButton* buttonCancel;
66 QLineEdit* LineEditC1A1;
67 QLineEdit* LineEditC1A2;
68 QPushButton* SelectButtonC1A1;
69 QLabel* TextLabelC1A1;
70 QLabel* TextLabelC1A2;
74 void ConstructorsClicked(int constructorId);
78 void SetEditCurrentArgument() ;
79 void LineEditReturnPressed() ;
80 void SelectionIntoArgument() ;
81 void DeactivateActiveDialog() ;
82 void ActivateThisDialog() ;
85 QGridLayout* GeometryGUI_SewingDlgLayout;
86 QGridLayout* GroupConstructorsLayout;
87 QGridLayout* GroupButtonsLayout;
88 QGridLayout* GroupC1Layout;
91 #endif // DIALOGBOX_SEWING_H