1 // File : SMESHGUI_InitMeshDlg.h
2 // Created : Mon May 27 10:23:17 2002
3 // Author : Nicolas REJNERI
7 // Copyright : Open CASCADE 2002
10 #ifndef DIALOGBOX_INIT_MESH_H
11 #define DIALOGBOX_INIT_MESH_H
13 #include "SALOME_Selection.h"
14 #include "SALOME_TypeFilter.hxx"
15 #include "SMESH_TypeFilter.hxx"
22 #include <SALOMEconfig.h>
23 #include CORBA_SERVER_HEADER(GEOM_Gen)
24 #include CORBA_SERVER_HEADER(GEOM_Shape)
25 #include CORBA_SERVER_HEADER(SMESH_Gen)
39 //=================================================================================
40 // class : SMESHGUI_InitMeshDlg
42 //=================================================================================
43 class SMESHGUI_InitMeshDlg : public QDialog
48 SMESHGUI_InitMeshDlg( QWidget* parent = 0, const char* name = 0, SALOME_Selection* Sel = 0, bool modal = FALSE, WFlags fl = 0 );
49 ~SMESHGUI_InitMeshDlg();
53 void Init( SALOME_Selection* Sel ) ;
54 void closeEvent( QCloseEvent* e ) ;
55 void enterEvent ( QEvent * ) ;
57 SMESHGUI* mySMESHGUI ;
58 SALOME_Selection* mySelection ;
60 GEOM::GEOM_Shape_var myGeomShape ;
62 QLineEdit* myEditCurrentArgument;
66 Handle(SALOME_TypeFilter) myGeomFilter;
67 Handle(SMESH_TypeFilter) myHypothesisFilter;
68 Handle(SMESH_TypeFilter) myAlgorithmFilter;
70 SALOME_ListIO HypoList;
71 SALOME_ListIO AlgoList;
76 SMESH::SMESH_Hypothesis_var myHypothesis;
77 SMESH::SMESH_Hypothesis_var myAlgorithm;
79 SMESH::SMESH_Mesh_var myMesh;
81 QButtonGroup* GroupConstructors;
82 QRadioButton* Constructor1;
83 QGroupBox* GroupButtons;
84 QPushButton* buttonOk;
85 QPushButton* buttonCancel;
86 QPushButton* buttonApply;
88 QLabel* TextLabel_NameMesh ;
89 QLineEdit* LineEdit_NameMesh ;
90 QLabel* TextLabelC1A1;
91 QPushButton* SelectButtonC1A1;
92 QLineEdit* LineEditC1A1;
94 QLabel* TextLabelC1A1Hyp;
95 QPushButton* SelectButtonC1A1Hyp;
96 QLineEdit* LineEditC1A1Hyp;
98 QLabel* TextLabelC1A1Algo;
99 QPushButton* SelectButtonC1A1Algo;
100 QLineEdit* LineEditC1A1Algo;
104 void ConstructorsClicked(int constructorId);
106 void ClickOnCancel();
108 void SetEditCurrentArgument() ;
109 void SelectionIntoArgument() ;
110 void DeactivateActiveDialog() ;
111 void ActivateThisDialog() ;
112 void TextChangedInLineEdit(const QString& newText) ;
115 QGridLayout* SMESHGUI_InitMeshDlgLayout;
116 QGridLayout* GroupConstructorsLayout;
117 QGridLayout* GroupButtonsLayout;
118 QGridLayout* GroupC1Layout;
121 #endif // DIALOGBOX_INIT_MESH_H