Salome HOME
Copyright update 2022
[modules/homard.git] / src / HOMARDGUI / MonCreateYACS.h
index 39043f207213c7b064efdcd30c65f47e19327f01..72aa4748b0089dbd669dd59fdce90c534b20d7e2 100644 (file)
@@ -1,9 +1,9 @@
-// Copyright (C) 2011-2012  CEA/DEN, EDF R&D
+// Copyright (C) 2011-2022  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( QWidget* parent, HOMARD::HOMARD_Gen_var myHomardGen, QString CaseName);
+    MonCreateYACS( HOMARD::HOMARD_Gen_var myHomardGen, QString CaseName);
 
     QString _Name;
     QString _aCaseName;
@@ -48,14 +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();
@@ -66,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();