<!-- <parameter name="def_precision" value="3" /> -->
</section>
<section name="homard_help" >
- <parameter name="sub_menu" value="%1 module"/>
- <parameter name="Mode d'emploi" value="%HOMARD_ROOT_DIR%/share/doc/salome/gui/HOMARD/fr/index.html"/>
- <parameter name="User's Guide" value="%HOMARD_ROOT_DIR%/share/doc/salome/gui/HOMARD/en/index.html"/>
+ <parameter name="sub_menu" value="%1 module"/>
+ <parameter name="Mode d'emploi" value="%HOMARD_ROOT_DIR%/share/doc/salome/gui/HOMARD/fr/index.html"/>
+<!-- <parameter name="Mode d'emploi" value="%HOMARD_ROOT_DIR%/share/doc/salome/gui/HOMARD/fr/index.html" icon="drapeau_fr.gif"/> -->
+ <parameter name="User's Guide" value="%HOMARD_ROOT_DIR%/share/doc/salome/gui/HOMARD/en/index.html"/>
+<!-- <parameter name="User's Guide" value="%HOMARD_ROOT_DIR%/share/doc/salome/gui/HOMARD/en/index.html" icon="drapeau_en.gif"/> -->
</section>
<section name="resources">
<!-- Module resources -->
case 1102: // Poursuite d une iteration
{
MESSAGE("command " << theCommandID << " activated");
- MonPursueIteration *aDlg = new MonPursueIteration( parent, true,
+ MonPursueIteration *aDlg = new MonPursueIteration( true,
HOMARD::HOMARD_Gen::_duplicate(homardGen) ) ;
aDlg->show();
break;
<source>HOM_CASE_DIRECTORY_4</source>
<translation>A directory for the computation must be selected.</translation>
</message>
+ <message>
+ <source>HOM_START_DIRECTORY_1</source>
+ <translation>A starting directory for the pursuit must be selected.</translation>
+ </message>
+ <message>
+ <source>HOM_START_DIRECTORY_3</source>
+ <translation>A valid directory for the pursuit must be selected.</translation>
+ </message>
<message>
<source>HOM_CASE_MESH</source>
<translation>The file of the initial mesh must be selected.</translation>
<source>HOM_CASE_DIRECTORY_4</source>
<translation>Il faut choisir un répertoire de travail pour le calcul.</translation>
</message>
+ <message>
+ <source>HOM_START_DIRECTORY_1</source>
+ <translation>Il faut choisir un répertoire contenant l'itération à poursuivre.</translation>
+ </message>
+ <message>
+ <source>HOM_START_DIRECTORY_3</source>
+ <translation>Un répertoire valide contenant l'itération à poursuivre doit être choisi.</translation>
+ </message>
<message>
<source>HOM_CASE_MESH</source>
<translation>Il faut choisir le maillage initial.</translation>
<source>HOM_CASE_DIRECTORY_4</source>
<translation>HOM_CASE_DIRECTORY_4</translation>
</message>
+ <message>
+ <source>HOM_START_DIRECTORY_1</source>
+ <translation>A starting directory for the pursuit must be selected.</translation>
+ </message>
+ <message>
+ <source>HOM_START_DIRECTORY_3</source>
+ <translation>A valid directory for the pursuit must be selected.</translation>
+ </message>
<message>
<source>HOM_CASE_MESH</source>
<translation>1 つは、初期のメッシュを選択する必要があります。</translation>
* Sets attributes to default values
*/
// -----------------------------------------------------------------------------------------
-MonCreateCase::MonCreateCase( bool modal, HOMARD::HOMARD_Gen_var myHomardGen0)
+MonCreateCase::MonCreateCase( bool modal, HOMARD::HOMARD_Gen_var myHomardGen0 )
:
Ui_CreateCase(),
_aCaseName(""),_aDirName(""),
}
#ifndef WIN32
if (chdir(aDirName.toStdString().c_str()) != 0)
-#else
+#else
if (_chdir(aDirName.toStdString().c_str()) != 0)
#endif
{
Q_OBJECT
public:
- MonCreateCase( bool modal, HOMARD::HOMARD_Gen_var myHomardGen);
+ MonCreateCase( bool modal, HOMARD::HOMARD_Gen_var myHomardGen );
~MonCreateCase();
void AddBoundaryAn(QString newBoundary);
* Sets attributes to default values
*/
// -----------------------------------------------------------------------------------------
-MonPursueIteration::MonPursueIteration (QWidget* parent, bool modal, HOMARD::HOMARD_Gen_var myHomardGen)
+MonPursueIteration::MonPursueIteration ( bool modal, HOMARD::HOMARD_Gen_var myHomardGen0 )
:
Ui_PursueIteration(),
_aCaseName(""), _aDirName(""), _aDirNameStart("")
{
MESSAGE("Debut du constructeur de MonPursueIteration");
- myHomardGen=HOMARD::HOMARD_Gen::_duplicate(myHomardGen);
+ myHomardGen=HOMARD::HOMARD_Gen::_duplicate(myHomardGen0);
setupUi(this);
setModal(modal);
void MonPursueIteration::InitConnect()
// ------------------------------------------------------------------------
{
- connect( LECaseName, SIGNAL(textChanged(QString)), this, SLOT(CaseNameChanged()));
connect( PushDir, SIGNAL(pressed()), this, SLOT(SetDirName()));
connect( RBIteration, SIGNAL(clicked()), this, SLOT(FromIteration()));
// --------------------------------
{
MESSAGE("PushOnApply");
-
+// 1. Enregistrement du repertoire du cas
QString aDirName=LEDirName->text().trimmed();
if (aDirName == QString(""))
{
QObject::tr("HOM_CASE_DIRECTORY_3") );
return false;
}
+// 2. Enregistrement du repertoire de depart
+ QString aDirNameStart=LEDirNameStart->text().trimmed();
+ if (aDirNameStart == QString(""))
+ {
+ QMessageBox::critical( 0, QObject::tr("HOM_ERROR"),
+ QObject::tr("HOM_START_DIRECTORY_1") );
+ return false;
+ }
+#ifndef WIN32
+ if (chdir(aDirNameStart.toStdString().c_str()) != 0)
+#else
+ if (_chdir(aDirNameStart.toStdString().c_str()) != 0)
+#endif
+ {
+ QMessageBox::critical( 0, QObject::tr("HOM_ERROR"),
+ QObject::tr("HOM_START_DIRECTORY_3") );
+ return false;
+ }
-// Enregistrement du numero d'iteration
+// 3. Enregistrement du numero d'iteration
int Number ;
if ( _Type == 3 ) { Number = spinBoxNumber->value() ; }
-// Creation du cas
+// 4. Creation du cas
QString _aCaseName=LECaseName->text().trimmed();
+ _aDirNameStart=aDirNameStart;
+ MESSAGE("_aCaseName = "<<_aCaseName.toStdString().c_str());
+ MESSAGE("_aDirNameStart = "<<_aDirNameStart.toStdString().c_str());
MESSAGE("_Type = "<<_Type);
switch (_Type)
{
}
}
+ aCase->SetDirName(aDirName.toStdString().c_str());
+ _aDirName=aDirName;
+
HOMARD_UTILS::updateObjBrowser();
return true;
Q_OBJECT
public:
- MonPursueIteration( QWidget* parent, bool modal, HOMARD::HOMARD_Gen_var myHomardGen);
+ MonPursueIteration( bool modal, HOMARD::HOMARD_Gen_var myHomardGen );
virtual ~MonPursueIteration();
protected :