Salome HOME
Merge from V6_main 01/04/2013
[modules/homard.git] / src / HOMARDGUI / MonCreateBoundaryDi.h
1 // Copyright (C) 2011-2013  CEA/DEN, EDF R&D
2 //
3 // This library is free software; you can redistribute it and/or
4 // modify it under the terms of the GNU Lesser General Public
5 // License as published by the Free Software Foundation; either
6 // version 2.1 of the License.
7 //
8 // This library is distributed in the hope that it will be useful,
9 // but WITHOUT ANY WARRANTY; without even the implied warranty of
10 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
11 // Lesser General Public License for more details.
12 //
13 // You should have received a copy of the GNU Lesser General Public
14 // License along with this library; if not, write to the Free Software
15 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
16 //
17 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
18 //
19
20 #ifndef MON_CREATEBOUNDARYDI_H
21 #define MON_CREATEBOUNDARYDI_H
22
23
24 #include <SALOMEconfig.h>
25 #include <SalomeApp_Module.h>
26
27 #include CORBA_CLIENT_HEADER(SALOMEDS_Attributes)
28 #include CORBA_CLIENT_HEADER(HOMARD_Gen)
29 #include CORBA_CLIENT_HEADER(HOMARD_Boundary)
30
31 #include <CreateBoundaryDi.h>
32 #include <QDialog>
33
34 class MonCreateCase;
35 class MonCreateBoundaryDi : public QDialog, public Ui_CreateBoundaryDi
36 {
37     Q_OBJECT
38
39 public:
40     MonCreateBoundaryDi( MonCreateCase* parent, bool modal,
41                          HOMARD::HOMARD_Gen_var myHomardGen,
42                          QString caseName, QString BoundaryName );
43     ~MonCreateBoundaryDi();
44     virtual void setGroups (QStringList listGroup);
45
46 protected :
47
48     MonCreateCase *_parent;
49
50     QString _aBoundaryName;
51     QString _aCaseName;
52
53
54     HOMARD::HOMARD_Boundary_var _aBoundary;
55     HOMARD::HOMARD_Gen_var _myHomardGen;
56
57     QStringList  _listeGroupesBoundary;
58
59     virtual void AssocieLesGroupes();
60     virtual void InitConnect();
61     virtual void SetNewBoundaryName();
62
63 public slots:
64
65     virtual void SetMeshFile();
66     virtual void SetFiltrage();
67     virtual void PushOnOK();
68     virtual bool PushOnApply();
69     virtual void PushOnHelp();
70 };
71
72 #endif // MON_CREATEBOUNDARYDI_H