-// Copyright (C) 2011-2013 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
// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
//
-using namespace std;
-
#include "MonEditIteration.h"
#include "SalomeApp_Tools.h"
#include "HomardQtCommun.h"
#include <utilities.h>
+using namespace std;
// -------------------------------------------------------------------------------------------------------------------------------------
MonEditIteration::MonEditIteration ( QWidget* parent, bool modal,
// Invisibilite des hypotheses et des champs
Hypothese->setVisible(0);
GBField->setVisible(0);
- adjustSize();
//
}
// ------------------------------
LEName->setText(_IterationName);
LEName->setReadOnly(true);
-// Affichage bloque du nom de l'iteration parent
+ // Affichage bloque du nom de l'iteration parent
_IterParentName = aIter->GetIterParentName();
LEIterationParentName->setText(_IterParentName);
LEIterationParentName->setReadOnly(true);
PBIterParent->setEnabled(false);
PBIterParent->setVisible(0);
-// Affichage bloque du nom du maillage de l'iteration parent
+ // Affichage bloque du nom du maillage de l'iteration parent
aIterParent = myHomardGen->GetIteration(_IterParentName.toStdString().c_str());
QString MeshNameParent = aIterParent->GetMeshName();
LEMeshName_n->setText(MeshNameParent);
LEMeshName_n->setReadOnly(1);
-// Affichage bloque du nom du maillage de l'iteration courante
+ // Affichage bloque du nom du maillage de l'iteration courante
QString MeshName = aIter->GetMeshName();
LEMeshName_np1->setText(MeshName);
LEMeshName_np1->setReadOnly(1);
-// Affichage de la bonne hypothese
+ // Affichage de la bonne hypothese
QString HypoName = aIter->GetHypoName();
CBHypothese->insertItem(0,HypoName);
CBHypothese->setCurrentIndex(0);
CBHypothese->setEnabled(false);
PBHypoNew->setVisible(0);
-// Pour une adaptation selon un champ
+ // Pour une adaptation selon un champ
HOMARD::HOMARD_Hypothesis_var myHypo = myHomardGen->GetHypothesis(HypoName.toStdString().c_str()) ;
_aTypeAdap = myHypo->GetAdapType() ;
if ( _aTypeAdap == 1 )
_rank = aIter->GetRank() ;
SpinBox_Rank->setValue(_rank);
-// Cas ou on prend le dernier pas de temps ou sans pas de temps
+ // Cas ou on prend le dernier pas de temps ou sans pas de temps
if ( _step <= -1 )
{
Rank->setVisible(0);
else { RBNo->setChecked(true); }
}
-// Cas avec pas de temps
+ // Cas avec pas de temps
else
{
Rank->setVisible(1);
{
GBField->setVisible(0);
}
+//
adjustSize();
//
}
if ( _aTypeAdap == 1)
{
// Pour du raffinement selon un champ, les instants ont-ils change ?
- if ( (_FieldFile != LEFieldFile->text().trimmed()) or
- ( _rank != SpinBox_Rank->value()) or
+ if ( (_FieldFile != LEFieldFile->text().trimmed()) ||
+ ( _rank != SpinBox_Rank->value()) ||
( _step != SpinBox_TimeStep->value()))
{
_FieldFile = LEFieldFile->text().trimmed();