1 // File : SMESHGUI_AddHypothesisDlg.h
2 // Created : Wed May 22 19:05:13 2002
3 // Author : Nicolas REJNERI
7 // Copyright : Open CASCADE 2002
11 #ifndef DIALOGBOX_ADD_HYPOTHESIS_H
12 #define DIALOGBOX_ADD_HYPOTHESIS_H
14 #include "SALOME_Selection.h"
15 #include "SALOME_TypeFilter.hxx"
16 #include "SMESH_TypeFilter.hxx"
17 #include "SALOME_ListIO.hxx"
20 #include <SALOMEconfig.h>
21 #include CORBA_SERVER_HEADER(SMESH_Gen)
40 //=================================================================================
41 // class : SMESHGUI_AddHypothesisDlg
43 //=================================================================================
44 class SMESHGUI_AddHypothesisDlg : public QDialog
49 SMESHGUI_AddHypothesisDlg( QWidget* parent = 0, const char* name = 0, SALOME_Selection* Sel = 0, bool modal = FALSE, WFlags fl = 0 );
50 ~SMESHGUI_AddHypothesisDlg();
54 void Init( SALOME_Selection* Sel ) ;
55 void closeEvent( QCloseEvent* e ) ;
56 void enterEvent ( QEvent * ) ; /* mouse enter the QWidget */
58 SMESH::SMESH_Gen_var myCompMesh ;
59 SMESHGUI* mySMESHGUI ;
60 SALOME_Selection* mySelection ;
62 SMESH::SMESH_Mesh_var myMesh;
63 SMESH::SMESH_subMesh_var mySubMesh;
65 SMESH::SMESH_Hypothesis_var myHypothesis;
67 Handle(SMESH_TypeFilter) myHypothesisFilter;
68 Handle(SMESH_TypeFilter) myMeshOrSubMeshFilter;
74 int myConstructorId ; /* Current constructor id = radio button id */
75 QLineEdit* myEditCurrentArgument; /* Current LineEdit */
77 SALOME_ListIO HypoList;
79 QButtonGroup* GroupConstructors;
80 QRadioButton* Constructor1;
82 QGroupBox* GroupConstructor1;
83 QLineEdit* LineEditC1A1Hyp;
84 QLineEdit* LineEditC1A2Mesh;
85 QPushButton* SelectButtonC1A1Hyp;
86 QPushButton* SelectButtonC1A2Mesh;
87 QLabel* TextLabelC1A2Mesh;
88 QLabel* TextLabelC1A1Hyp;
90 QGroupBox* GroupButtons;
91 QPushButton* buttonApply;
92 QPushButton* buttonOk;
93 QPushButton* buttonCancel;
97 void ConstructorsClicked(int constructorId);
101 void SetEditCurrentArgument() ;
102 void SelectionIntoArgument() ;
103 void LineEditReturnPressed() ;
104 void DeactivateActiveDialog() ;
105 void ActivateThisDialog() ;
108 QGridLayout* SMESHGUI_AddHypothesisDlgLayout;
109 QGridLayout* GroupConstructorsLayout;
110 QGridLayout* GroupButtonsLayout;
111 QGridLayout* GroupConstructor1Layout;
114 #endif // DIALOGBOX_ADD_HYPOTHESIS_H