1 // SMESH SMESHGUI : GUI for SMESH component
3 // Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
6 // This library is free software; you can redistribute it and/or
7 // modify it under the terms of the GNU Lesser General Public
8 // License as published by the Free Software Foundation; either
9 // version 2.1 of the License.
11 // This library is distributed in the hope that it will be useful,
12 // but WITHOUT ANY WARRANTY; without even the implied warranty of
13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 // Lesser General Public License for more details.
16 // You should have received a copy of the GNU Lesser General Public
17 // License along with this library; if not, write to the Free Software
18 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
20 // See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org
24 // File : SMESHGUI_EditHypothesesDlg.h
25 // Author : Nicolas REJNERI
29 #ifndef DIALOGBOX_EDIT_HYPOTHESES_H
30 #define DIALOGBOX_EDIT_HYPOTHESES_H
32 #include "SMESH_SMESHGUI.hxx"
34 //#include "SMESH_TypeFilter.hxx"
35 #include "SUIT_SelectionFilter.h"
36 #include "LightApp_SelectionMgr.h"
42 #include <SALOMEconfig.h>
43 #include CORBA_SERVER_HEADER(GEOM_Gen)
44 #include CORBA_SERVER_HEADER(SMESH_Mesh)
57 typedef map<std::string, int> MapIOR;
59 //=================================================================================
60 // class : SMESHGUI_EditHypothesesDlg
62 //=================================================================================
63 class SMESHGUI_EXPORT SMESHGUI_EditHypothesesDlg : public QDialog
68 SMESHGUI_EditHypothesesDlg (SMESHGUI*,
72 ~SMESHGUI_EditHypothesesDlg();
75 virtual void closeEvent (QCloseEvent*);
76 virtual void enterEvent (QEvent*);
81 void InitHypDefinition();
82 void InitAlgoDefinition();
83 void InitHypAssignation();
84 void InitAlgoAssignation();
88 void UpdateControlState();
93 bool IsOld(QListBoxItem* hypItem);
97 LightApp_SelectionMgr* mySelectionMgr;
99 GEOM::GEOM_Object_var myGeomShape;
100 QLineEdit* myEditCurrentArgument;
102 SMESH::SMESH_Mesh_var myMesh;
103 SMESH::SMESH_subMesh_var mySubMesh;
105 //Handle(SALOME_TypeFilter) myGeomFilter;
106 //Handle(SMESH_TypeFilter) myMeshOrSubMeshFilter;
107 SUIT_SelectionFilter* myGeomFilter;
108 SUIT_SelectionFilter* myMeshOrSubMeshFilter;
110 MapIOR myMapOldHypos, myMapOldAlgos;
111 int myNbModification;
115 QGroupBox* GroupButtons;
116 QPushButton* buttonOk;
117 QPushButton* buttonApply;
118 QPushButton* buttonCancel;
121 QLabel* TextLabelC1A1;
122 QPushButton* SelectButtonC1A1;
123 QLineEdit* LineEditC1A1;
124 QLabel* TextLabelC1A2;
125 QPushButton* SelectButtonC1A2;
126 QLineEdit* LineEditC1A2;
128 QGroupBox* GroupHypotheses;
129 QLabel* TextHypDefinition;
130 QListBox* ListHypDefinition;
131 QLabel* TextHypAssignation;
132 QListBox* ListHypAssignation;
134 QGroupBox* GroupAlgorithms;
135 QLabel* TextAlgoDefinition;
136 QListBox* ListAlgoDefinition;
137 QLabel* TextAlgoAssignation;
138 QListBox* ListAlgoAssignation;
143 void ClickOnCancel();
144 void SetEditCurrentArgument();
145 void SelectionIntoArgument();
146 void DeactivateActiveDialog();
147 void ActivateThisDialog();
149 void removeItem(QListBoxItem*);
150 void addItem(QListBoxItem*);
153 #endif // DIALOGBOX_EDIT_HYPOTHESES_H