1 // File : GeometryGUI_ShellDlg.h
3 // Author : Lucien PIGNOLONI
5 // Module : GeometryGUI
6 // Copyright : OPEN CASCADE
10 #ifndef DIALOGBOX_SHELL_H
11 #define DIALOGBOX_SHELL_H
13 #include "SALOME_Selection.h"
14 #include "GEOM_ShapeTypeFilter.hxx"
30 //=================================================================================
31 // class : GeometryGUI_ShellDlg
33 //=================================================================================
34 class GeometryGUI_ShellDlg : public QDialog
39 GeometryGUI_ShellDlg( QWidget* parent = 0, const char* name = 0, SALOME_Selection* Sel = 0, bool modal = FALSE, WFlags fl = 0 );
40 ~GeometryGUI_ShellDlg();
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 Geom object */
49 GeometryGUI* myGeomGUI ; /* Current GeomGUI object */
50 SALOME_Selection* mySelection ; /* User shape selection */
52 GEOM::GEOM_Gen::ListOfIOR myListShapes ;
53 bool myOkListShapes ; /* to check when argument is defined */
55 int myConstructorId ; /* Current constructor id = radio button id */
56 QLineEdit* myEditCurrentArgument; /* Current LineEdit */
58 QButtonGroup* GroupConstructors;
59 QRadioButton* Constructor1;
61 QLineEdit* LineEditC1A1;
62 QPushButton* SelectButtonC1A1;
63 QLabel* TextLabelC1A1;
64 QGroupBox* GroupButtons;
65 QPushButton* buttonApply;
66 QPushButton* buttonOk;
67 QPushButton* buttonCancel;
71 void ConstructorsClicked(int constructorId);
75 void SetEditCurrentArgument() ;
76 void LineEditReturnPressed() ;
77 void SelectionIntoArgument() ;
78 void DeactivateActiveDialog() ;
79 void ActivateThisDialog() ;
82 QGridLayout* GeometryGUI_ShellDlgLayout;
83 QGridLayout* GroupConstructorsLayout;
84 QGridLayout* GroupC1Layout;
85 QHBoxLayout* GroupButtonsLayout;
88 #endif // DIALOGBOX_SHELL_H