1 // File : GeometryGUI_WireDlg.h
3 // Author : Lucien PIGNOLONI
5 // Module : GeometryGUI
6 // Copyright : OPEN CASCADE
9 #ifndef DIALOGBOX_WIRE_H
10 #define DIALOGBOX_WIRE_H
12 #include "SALOME_Selection.h"
13 #include "GEOM_ShapeTypeFilter.hxx"
30 //=================================================================================
31 // class : GeometryGUI_WireDlg
33 //=================================================================================
34 class GeometryGUI_WireDlg : public QDialog
39 GeometryGUI_WireDlg( QWidget* parent = 0, const char* name = 0, SALOME_Selection* Sel = 0, bool modal = FALSE, WFlags fl = 0 );
40 ~GeometryGUI_WireDlg();
44 void Init( SALOME_Selection* Sel ) ;
45 void closeEvent( QCloseEvent* e ) ;
46 void enterEvent ( QEvent * ) ; /* mouse enter the QWidget */
48 GEOM::GEOM_Gen_var myGeom ; /* Current GeomI object */
49 GeometryGUI* myGeomGUI ; /* Current GeomGUI object */
50 SALOME_Selection* mySelection ; /* User shape selection */
51 GEOM::GEOM_Gen::ListOfIOR myListShapes ;
52 bool myOkListShapes ; /* to check when arguments is defined */
53 int myConstructorId ; /* Current constructor id = radio button id */
54 QLineEdit* myEditCurrentArgument; /* Current LineEdit */
56 QButtonGroup* GroupConstructors;
57 QRadioButton* Constructor1;
58 QGroupBox* GroupButtons;
59 QPushButton* buttonOk;
60 QPushButton* buttonCancel;
61 QPushButton* buttonApply;
63 QLabel* TextLabelC1A1;
64 QPushButton* SelectButtonC1A1;
65 QLineEdit* LineEditC1A1;
69 void ConstructorsClicked(int constructorId);
73 void SetEditCurrentArgument() ;
74 void LineEditReturnPressed() ;
75 void SelectionIntoArgument() ;
76 void DeactivateActiveDialog() ;
77 void ActivateThisDialog() ;
80 QGridLayout* GeometryGUI_WireDlgLayout;
81 QGridLayout* GroupConstructorsLayout;
82 QGridLayout* GroupButtonsLayout;
83 QGridLayout* GroupC1Layout;
86 #endif // DIALOGBOX_WIRE_H