Salome HOME
Suppression de l'option "Delete"
[modules/homard.git] / src / HOMARDGUI / MonCreateHypothesis.h
index de4dc21f080fd4c5440f4fe5569767bf8de1a980..56a569623c472b7bfc10e0dd45ce0b7ce221e180 100644 (file)
@@ -1,6 +1,26 @@
+// Copyright (C) 2011-2020  CEA/DEN, EDF R&D
+//
+// This library is free software; you can redistribute it and/or
+// modify it under the terms of the GNU Lesser General Public
+// License as published by the Free Software Foundation; either
+// version 2.1 of the License, or (at your option) any later version.
+//
+// This library is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+// Lesser General Public License for more details.
+//
+// You should have received a copy of the GNU Lesser General Public
+// License along with this library; if not, write to the Free Software
+// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
+//
+// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
+//
+
 #ifndef MON_CREATEHYPOTHESIS_H
 #define MON_CREATEHYPOTHESIS_H
 
+#include "HOMARDGUI_Exports.hxx"
 
 #include <SALOMEconfig.h>
 #include <SalomeApp_Module.h>
 #include CORBA_CLIENT_HEADER(HOMARD_Gen)
 #include CORBA_CLIENT_HEADER(HOMARD_Hypothesis)
 
-#include <CreateHypothesis.h>
-#include <QDialog>
+#include "ui_CreateHypothesis.h"
+#include <QScrollArea>
 
 class MonCreateIteration;
-class MonCreateHypothesis : public QDialog, public Ui_CreateHypothesis
-{ 
+class HOMARD_EXPORT MonCreateHypothesis : public QScrollArea, public Ui_CreateHypothesis
+{
     Q_OBJECT
 
 public:
@@ -22,7 +42,7 @@ public:
                          QString aHypotheseName, QString caseName, QString aFieldFile);
     ~MonCreateHypothesis();
 
-    virtual void addZone(QString newZone);
+    virtual void addZoneinTWZone(QString newZone);
     virtual void setGroups(QStringList listGroup);
 
 protected :
@@ -31,7 +51,7 @@ protected :
 
     MonCreateIteration *_parent;
 
-    QString _aHypothesisName;
+    QString _Name;
     QString _aFieldFile ;
     QString _aFieldName;
     QString _aCaseName;
@@ -45,11 +65,17 @@ protected :
     int _TypeThC;
     double _ThreshC;
 
+    int _UsField;
     int _UsCmpI;
     int _TypeFieldInterp;
 
-    HOMARD::HOMARD_Gen_var _myHomardGen;
-    HOMARD::HOMARD_Hypothesis_var _aHypothesis;
+    int _NivMax;
+    double _DiamMin;
+    int _AdapInit;
+    int _ExtraOutput;
+
+    HOMARD::HOMARD_Hypothesis_var aHypothesis;
+    HOMARD::HOMARD_Gen_var myHomardGen;
 
     QStringList _aListeZone;
     QStringList _aListeComposant;
@@ -58,7 +84,7 @@ protected :
     virtual void InitConnect();
     virtual void InitFields();
     virtual void GetAllZones();
-    virtual void SetNewHypothesisName();
+    virtual void SetNewName();
 
     virtual void AssocieFieldInterp();
     virtual void AssocieLesZones();
@@ -81,20 +107,28 @@ public slots:
     virtual void SetRPE();
     virtual void SetRAbs();
     virtual void SetRRel();
+    virtual void SetRMS();
     virtual void SetRNo();
     virtual void SetCPE();
     virtual void SetCAbs();
     virtual void SetCRel();
+    virtual void SetCMS();
     virtual void SetCNo();
     virtual void SetUCL2();
     virtual void SetUCInf();
+    virtual void SetUseField();
     virtual void PushZoneNew();
     virtual void PushZoneEdit();
-    virtual void PushZoneDelete();
     virtual void SetFiltrage();
     virtual void SetFieldNo();
     virtual void SetFieldAll();
     virtual void SetFieldChosen();
+
+    virtual void SetAdvanced();
+    virtual void SetAIN();
+    virtual void SetAIR();
+    virtual void SetAID();
+
     virtual void PushOnOK();
     virtual bool PushOnApply();
     virtual void PushOnHelp();