1 // File : SMESHGUI_EditHypothesesDlg.h
2 // Created : Fri Aug 02 09:15:40 2002
3 // Author : Nicolas REJNERI
7 // Copyright : Open CASCADE 2002
10 #ifndef DIALOGBOX_EDIT_HYPOTHESES_H
11 #define DIALOGBOX_EDIT_HYPOTHESES_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)
46 //=================================================================================
47 // class : SMESHGUI_EditHypothesesDlg
49 //=================================================================================
50 class SMESHGUI_EditHypothesesDlg : public QDialog
55 SMESHGUI_EditHypothesesDlg( QWidget* parent = 0, const char* name = 0, SALOME_Selection* Sel = 0, bool modal = FALSE, WFlags fl = 0 );
56 ~SMESHGUI_EditHypothesesDlg();
60 void Init( SALOME_Selection* Sel ) ;
61 void closeEvent( QCloseEvent* e ) ;
62 void enterEvent ( QEvent * ) ;
64 void InitHypDefinition();
65 void InitAlgoDefinition();
66 void InitHypAssignation();
67 void InitAlgoAssignation();
71 SMESHGUI* mySMESHGUI ;
72 SALOME_Selection* mySelection ;
74 GEOM::GEOM_Shape_var myGeomShape ;
76 QLineEdit* myEditCurrentArgument;
78 SMESH::SMESH_Mesh_var myMesh;
79 SMESH::SMESH_subMesh_var mySubMesh;
81 Handle(SALOME_TypeFilter) myGeomFilter;
82 Handle(SMESH_TypeFilter) myMeshOrSubMeshFilter;
84 map<string,string> mapNameIOR;
86 SALOME_ListIO HypoList;
87 SALOME_ListIO AlgoList;
92 SMESH::SMESH_Hypothesis_var myHypothesis;
93 SMESH::SMESH_Hypothesis_var myAlgorithm;
95 SMESH::ListOfHypothesis_var myLHypothesis;
96 SMESH::ListOfHypothesis_var myLAlgorithm;
98 QButtonGroup* GroupConstructors;
99 QRadioButton* Constructor1;
100 QGroupBox* GroupButtons;
101 QPushButton* buttonOk;
102 QPushButton* buttonCancel;
103 QPushButton* buttonApply;
106 QLabel* TextLabelC1A1;
107 QPushButton* SelectButtonC1A1;
108 QLineEdit* LineEditC1A1;
110 QLabel* TextLabelC1A2;
111 QPushButton* SelectButtonC1A2;
112 QLineEdit* LineEditC1A2;
114 QGroupBox* GroupHypotheses;
115 QLabel* TextHypDefinition;
116 QListBox* ListHypDefinition;
117 QLabel* TextHypAssignation;
118 QListBox* ListHypAssignation;
120 QGroupBox* GroupAlgorithms;
121 QLabel* TextAlgoDefinition;
122 QListBox* ListAlgoDefinition;
123 QLabel* TextAlgoAssignation;
124 QListBox* ListAlgoAssignation;
128 void ConstructorsClicked(int constructorId);
129 void ClickOnCancel();
130 void SetEditCurrentArgument() ;
131 void SelectionIntoArgument() ;
132 void DeactivateActiveDialog() ;
133 void ActivateThisDialog() ;
134 void TextChangedInLineEdit(const QString& newText) ;
136 void removeItem(QListBoxItem*);
137 void addItem(QListBoxItem*);
140 QGridLayout* SMESHGUI_EditHypothesesDlgLayout;
141 QGridLayout* GroupConstructorsLayout;
142 QGridLayout* GroupButtonsLayout;
143 QGridLayout* GroupC1Layout;
158 #endif // DIALOGBOX_EDIT_HYPOTHESES_H