mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-01-13 18:20:34 +05:00
Fix for:
Bug IPAL8770 There is no any warning message if to export polygonal elements into MED 2.1 file. Added warning message, if user want to export mesh with polygons or polyherdes to MED2.1 version
This commit is contained in:
parent
914e5a2f63
commit
32c49c2db1
@ -286,7 +286,21 @@ namespace{
|
|||||||
fd->exec();
|
fd->exec();
|
||||||
aFilename = fd->selectedFile();
|
aFilename = fd->selectedFile();
|
||||||
aFormat = aFilterMap[fd->selectedFilter()];
|
aFormat = aFilterMap[fd->selectedFilter()];
|
||||||
|
|
||||||
delete fd;
|
delete fd;
|
||||||
|
if( !aFilename.isEmpty()
|
||||||
|
&& (aMesh->NbPolygons()>1 or aMesh->NbPolyhedrons()>1)
|
||||||
|
&& aFormat==SMESH::MED_V2_1){
|
||||||
|
int aRet = QAD_MessageBox::warn2(QAD_Application::getDesktop(),
|
||||||
|
QObject::tr("SMESH_WRN_WARNING"),
|
||||||
|
QObject::tr("SMESH_EXPORT_MED_V2_1").arg(anIObject->getName()),
|
||||||
|
QObject::tr("SMESH_BUT_YES"),
|
||||||
|
QObject::tr("SMESH_BUT_NO"),
|
||||||
|
0,1,0);
|
||||||
|
if(aRet){
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if ( !aFilename.isEmpty() ) {
|
if ( !aFilename.isEmpty() ) {
|
||||||
// Check whether the file already exists and delete it if yes
|
// Check whether the file already exists and delete it if yes
|
||||||
|
@ -1237,6 +1237,12 @@ msgid "SMESH_EXPORT_UNV"
|
|||||||
msgstr "During export mesh with name - \"%1\" to UNV\n"
|
msgstr "During export mesh with name - \"%1\" to UNV\n"
|
||||||
" pyramid's elements will be missed"
|
" pyramid's elements will be missed"
|
||||||
|
|
||||||
|
msgid "SMESH_EXPORT_MED_V2_1"
|
||||||
|
msgstr "During export mesh with name - \"%1\" to MED 2.1\n"
|
||||||
|
"polygons and polyhedrons elements will be missed\n"
|
||||||
|
"For correct export use MED 2.2\n"
|
||||||
|
"Are you sure want to export to MED 2.1 ?"
|
||||||
|
|
||||||
msgid "INF_SELECT_OBJECT"
|
msgid "INF_SELECT_OBJECT"
|
||||||
msgstr "Select an object"
|
msgstr "Select an object"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user