1 // File : SMESHGUI_AddSubMeshDlg.h
2 // Created : Mon May 27 10:23:17 2002
3 // Author : Nicolas REJNERI
7 // Copyright : Open CASCADE 2002
10 #ifndef DIALOGBOX_ADD_SUBMESH_H
11 #define DIALOGBOX_ADD_SUBMESH_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_Mesh)
39 //=================================================================================
40 // class : SMESHGUI_AddSubMeshDlg
42 //=================================================================================
43 class SMESHGUI_AddSubMeshDlg : public QDialog
48 SMESHGUI_AddSubMeshDlg( QWidget* parent = 0, const char* name = 0, SALOME_Selection* Sel = 0, bool modal = FALSE, WFlags fl = 0 );
49 ~SMESHGUI_AddSubMeshDlg();
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;
64 SMESH::SMESH_Mesh_var myMesh;
65 SMESH::SMESH_subMesh_var mySubMesh;
67 QString myNameSubMesh ;
69 Handle(SALOME_TypeFilter) myGeomFilter;
70 Handle(SMESH_TypeFilter) myMeshFilter;
71 Handle(SMESH_TypeFilter) myHypothesisFilter;
72 Handle(SMESH_TypeFilter) myAlgorithmFilter;
74 SALOME_ListIO HypoList;
75 SALOME_ListIO AlgoList;
80 SMESH::SMESH_Hypothesis_var myHypothesis;
81 SMESH::SMESH_Hypothesis_var myAlgorithm;
83 QButtonGroup* GroupConstructors;
84 QRadioButton* Constructor1;
85 QGroupBox* GroupButtons;
86 QPushButton* buttonOk;
87 QPushButton* buttonCancel;
88 QPushButton* buttonApply;
90 QLabel* TextLabel_NameMesh ;
91 QLineEdit* LineEdit_NameMesh ;
92 QLabel* TextLabelC1A1;
93 QPushButton* SelectButtonC1A1;
94 QLineEdit* LineEditC1A1;
95 QLabel* TextLabelC1A2;
96 QPushButton* SelectButtonC1A2;
97 QLineEdit* LineEditC1A2;
99 QLabel* TextLabelC1A1Hyp;
100 QPushButton* SelectButtonC1A1Hyp;
101 QLineEdit* LineEditC1A1Hyp;
103 QLabel* TextLabelC1A1Algo;
104 QPushButton* SelectButtonC1A1Algo;
105 QLineEdit* LineEditC1A1Algo;
109 void ConstructorsClicked(int constructorId);
111 void ClickOnCancel();
113 void SetEditCurrentArgument() ;
114 void SelectionIntoArgument() ;
115 void DeactivateActiveDialog() ;
116 void ActivateThisDialog() ;
117 void TextChangedInLineEdit(const QString& newText) ;
120 QGridLayout* SMESHGUI_AddSubMeshDlgLayout;
121 QGridLayout* GroupConstructorsLayout;
122 QGridLayout* GroupButtonsLayout;
123 QGridLayout* GroupC1Layout;
126 #endif // DIALOGBOX_ADD_SUBMESH_H