mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-02-24 20:15:37 +05:00
change default med file out
This commit is contained in:
parent
1224f8cfd6
commit
86be227dee
@ -764,7 +764,8 @@ void SMESHGUI_MgAdaptArguments::onSelectMedFilebuttonClicked()
|
||||
*myFileInDir = myFileInfo.path();
|
||||
*myFileOutDir = myFileInfo.path();
|
||||
selectMedFileLineEdit->setText(myFileInfo.fileName());
|
||||
selectOutMedFileLineEdit->setText(myFileInfo.fileName());
|
||||
QString outF = QString( remove_extension(myFileInfo.fileName().toStdString() ).c_str() )+QString(".adapt.med");
|
||||
selectOutMedFileLineEdit->setText(outF);
|
||||
onLocalSelected(myFileInfo.filePath());
|
||||
|
||||
}
|
||||
@ -1368,6 +1369,10 @@ std::map<QString, int> GetListeChamps(QString aFile, bool errorMessage)
|
||||
return ListeChamp;
|
||||
}
|
||||
|
||||
|
||||
std::string remove_extension(const std::string& filename) {
|
||||
size_t lastdot = filename.find_last_of(".");
|
||||
if (lastdot == std::string::npos) return filename;
|
||||
return filename.substr(0, lastdot);
|
||||
}
|
||||
|
||||
|
||||
|
@ -97,6 +97,7 @@ std::map<QString, int> GetListeChamps(QString aFile, bool errorMessage = true);
|
||||
QString lireNomMaillage(QString aFile);
|
||||
QString lireNomMaillage2(med_idt medIdt,int meshId);
|
||||
med_idt OuvrirFichier(QString aFile);
|
||||
std::string remove_extension(const std::string& filename);
|
||||
|
||||
//=================================================================================
|
||||
// class : SMESHGUI_MgAdaptDlg
|
||||
|
Loading…
Reference in New Issue
Block a user