Salome HOME
Merge from V6_main 01/04/2013
[modules/homard.git] / src / HOMARDGUI / MonMeshInfo.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_MESHINFO_H
21 #define MON_MESHINFO_H
22
23 #include <SALOMEconfig.h>
24 #include <SalomeApp_Module.h>
25
26 #include CORBA_CLIENT_HEADER(SALOMEDS_Attributes)
27 #include CORBA_CLIENT_HEADER(HOMARD_Gen)
28 #include CORBA_CLIENT_HEADER(HOMARD_Cas)
29
30 #include <MeshInfo.h>
31 #include <QWidget>
32
33 class MonMeshInfo : public QDialog, public Ui_MeshInfo
34 {
35     Q_OBJECT
36
37 public:
38     MonMeshInfo( QWidget* parent, bool modal, HOMARD::HOMARD_Gen_var myHomardGen);
39     ~MonMeshInfo();
40
41 protected :
42     QString _aCaseName;
43     QString _aDirName;
44
45     int _BlockSize;
46     int _Connection;
47     int _Diametre;
48     int _Entanglement;
49     int _Quality;
50
51     HOMARD::HOMARD_Cas_var aCase ;
52     HOMARD::HOMARD_Gen_var _myHomardGen;
53
54     virtual void InitConnect();
55     virtual void SetNewCaseName();
56
57 public slots:
58     virtual void SetDirName();
59     virtual void SetFileName();
60
61     virtual void SetBlockSize();
62     virtual void SetConnection();
63     virtual void SetEntanglement();
64     virtual void SetDiametre();
65     virtual void SetQuality();
66
67     virtual void PushOnOK();
68     virtual bool PushOnApply();
69     virtual void PushOnHelp();
70
71     virtual void CaseNameChanged();
72 };
73
74 #endif // MON_MESHINFO_H