Salome HOME
DCQ : Merge with Ecole_Ete_a6.
[modules/smesh.git] / src / SMESHGUI / SMESHGUI_CreateHypothesesDlg.h
1 //  SMESH SMESHGUI : GUI for SMESH component
2 //
3 //  Copyright (C) 2003  CEA
4 // 
5 //  This library is free software; you can redistribute it and/or 
6 //  modify it under the terms of the GNU Lesser General Public 
7 //  License as published by the Free Software Foundation; either 
8 //  version 2.1 of the License. 
9 // 
10 //  This library is distributed in the hope that it will be useful, 
11 //  but WITHOUT ANY WARRANTY; without even the implied warranty of 
12 //  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
13 //  Lesser General Public License for more details. 
14 // 
15 //  You should have received a copy of the GNU Lesser General Public 
16 //  License along with this library; if not, write to the Free Software 
17 //  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
18 // 
19 //  See http://www.salome-platform.org or email : webmaster.salome@opencascade.org
20 //
21 //
22 //
23 //  File   : SMESHGUI_CreateHypothesesDlg.h
24 //  Author : Julia DOROVSKIKH
25 //  Module : SMESH
26 //  $Header$
27
28 #ifndef DIALOGBOX_CREATE_HYPOTHESES_H
29 #define DIALOGBOX_CREATE_HYPOTHESES_H
30
31 // QT Includes
32 #include <qvariant.h>
33 #include <qdialog.h>
34 #include <qstringlist.h>
35
36 // IDL Headers
37 #include <SALOMEconfig.h>
38 #include CORBA_SERVER_HEADER(GEOM_Gen)
39 #include CORBA_SERVER_HEADER(GEOM_Shape)
40 #include CORBA_SERVER_HEADER(SMESH_Mesh)
41
42 #include <map>
43 #include <string>
44
45 using namespace std;
46
47 class QButtonGroup;
48 class QGroupBox;
49 class QPushButton;
50 class QListView;
51 class QListViewItem;
52 class SMESHGUI;
53
54 //=================================================================================
55 // class    : SMESHGUI_CreateHypothesesDlg
56 // purpose  :
57 //=================================================================================
58 class SMESHGUI_CreateHypothesesDlg : public QDialog
59 {
60     Q_OBJECT
61
62 public:
63     SMESHGUI_CreateHypothesesDlg (QWidget* parent = 0,
64                                   const char* name = 0,
65                                   bool modal = FALSE,
66                                   bool isAlgo = FALSE);
67     ~SMESHGUI_CreateHypothesesDlg ();
68
69 private:
70
71     void Init() ;
72     void closeEvent( QCloseEvent* e ) ;
73     void enterEvent ( QEvent * ) ;
74
75     void InitAlgoDefinition();
76
77     SMESHGUI*     mySMESHGUI;
78     bool          myIsAlgo;
79
80     QGroupBox*    GroupButtons;
81     QPushButton*  buttonCancel;
82     QPushButton*  buttonApply;
83
84     QGroupBox* GroupAlgorithms;
85     QListView* ListAlgoDefinition;
86
87 private slots:
88
89     void ClickOnCancel();
90     void ClickOnApply();
91     void ActivateThisDialog() ;
92
93     void onSelectionChanged();
94     void onDoubleClicked(QListViewItem*);
95 };
96
97 #endif // DIALOGBOX_CREATE_HYPOTHESES_H