Salome HOME
Copyright update 2020
[modules/homard.git] / src / HOMARDGUI / MonCreateYACS.h
index c7cf5bdd6fac5e6b60c4f3a0860edba839471111..a0c5ba0f7d861c2a5087061888ddce49ba0f1cda 100644 (file)
@@ -1,9 +1,9 @@
-// Copyright (C) 2011-2012  CEA/DEN, EDF R&D
+// 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.
+// 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
@@ -20,6 +20,8 @@
 #ifndef MON_CREATEYACS_H
 #define MON_CREATEYACS_H
 
+#include "HOMARDGUI_Exports.hxx"
+
 #include <SALOMEconfig.h>
 #include <SalomeApp_Module.h>
 
 #include CORBA_CLIENT_HEADER(HOMARD_Gen)
 #include CORBA_CLIENT_HEADER(HOMARD_Cas)
 
-#include <CreateYACS.h>
-#include <QWidget>
+#include "ui_CreateYACS.h"
+#include <QScrollArea>
 
-class MonCreateYACS : public QDialog, public Ui_CreateYACS
+class HOMARD_EXPORT MonCreateYACS : public QScrollArea, public Ui_CreateYACS
 {
     Q_OBJECT
 
   public:
-    MonCreateYACS( QWidget* parent, bool modal, HOMARD::HOMARD_Gen_var myHomardGen, QString CaseName);
+    MonCreateYACS( bool modal, HOMARD::HOMARD_Gen_var myHomardGen, QString CaseName);
     virtual ~MonCreateYACS();
 
   protected :
+    MonCreateYACS( HOMARD::HOMARD_Gen_var myHomardGen, QString CaseName);
+
     QString _Name;
     QString _aCaseName;
     QString _aScriptFile;
@@ -46,12 +50,17 @@ class MonCreateYACS : public QDialog, public Ui_CreateYACS
     QString _aMeshFile;
 
     int _Type;
+    int _MaxIter;
+    int _MaxNode;
+    int _MaxElem;
+
+    bool Chgt;
 
     HOMARD::HOMARD_YACS_var aYACS;
-    HOMARD::HOMARD_Cas_var aCase ;
     HOMARD::HOMARD_Gen_var myHomardGen;
 
     virtual void InitConnect();
+    virtual bool CreateOrUpdate();
 
   public slots:
     virtual void SetNewName();
@@ -62,7 +71,9 @@ class MonCreateYACS : public QDialog, public Ui_CreateYACS
     virtual void SetScriptFile();
     virtual void SetMeshFile();
 
-    virtual void SetType(int Type);
+//     virtual void SetType(int Type);
+    virtual void SetConstant();
+    virtual void SetVariable();
 
     virtual void PushOnOK();
     virtual bool PushOnApply();