X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FHOMARDGUI%2FMonMeshInfo.cxx;h=f71a5a2193cbc2aca093fc31aa9050f90a9746fc;hb=refs%2Ftags%2FV9_9_0rc2;hp=62e891f4b4a796952e17e5571939fb58f3059a26;hpb=408c0191e3bbfd149adbf04e2e7bce039703a144;p=modules%2Fhomard.git diff --git a/src/HOMARDGUI/MonMeshInfo.cxx b/src/HOMARDGUI/MonMeshInfo.cxx index 62e891f4..f71a5a21 100644 --- a/src/HOMARDGUI/MonMeshInfo.cxx +++ b/src/HOMARDGUI/MonMeshInfo.cxx @@ -1,9 +1,9 @@ -// 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 @@ -18,6 +18,7 @@ // #include "MonMeshInfo.h" +#include "HOMARD.hxx" #include #include @@ -115,11 +116,7 @@ bool MonMeshInfo::PushOnApply() return false; } } -#ifndef WIN32 - if (chdir(aDirName.toStdString().c_str()) != 0) -#else - if (_chdir(aDirName.toStdString().c_str()) != 0) -#endif + if (CHDIR(aDirName.toStdString().c_str()) != 0) { QMessageBox::critical( 0, QObject::tr("HOM_ERROR"), QObject::tr("HOM_CASE_DIRECTORY_3") ); @@ -190,8 +187,8 @@ void MonMeshInfo::PushOnOK() void MonMeshInfo::PushOnHelp() //------------------------------- { - char* LanguageShort = myHomardGen->GetLanguageShort(); - HOMARD_UTILS::PushOnHelp(QString("gui_create_case.html"), QString(""), QString(LanguageShort)); + std::string LanguageShort = myHomardGen->GetLanguageShort(); + HOMARD_UTILS::PushOnHelp(QString("gui_create_case.html"), QString(""), QString(LanguageShort.c_str())); } // --------------------------------- void MonMeshInfo::SetNewCaseName() @@ -207,9 +204,9 @@ void MonMeshInfo::SetNewCaseName() { if ( aCaseName == QString((MyCases)[i]) ) { - num += 1 ; - aCaseName=""; - break; + num ++ ; + aCaseName = "" ; + break ; } } } @@ -228,7 +225,7 @@ void MonMeshInfo::SetFileName() // ------------------------------------------------------------------------ { QString fileName0 = LEFileName->text().trimmed(); - QString fileName = HOMARD_QT_COMMUN::PushNomFichier(); + QString fileName = HOMARD_QT_COMMUN::PushNomFichier( false, QString("med") ) ; if (fileName.isEmpty()) fileName = fileName0 ; LEFileName->setText(fileName); }