Fix for PAL13364(EDF PAL271 : Med export with not enough space on disk : No Warning message).

This commit is contained in:
mzn 2006-10-19 08:29:58 +00:00
parent 75c763d85b
commit 80c143d3ef
3 changed files with 32 additions and 15 deletions

View File

@ -987,9 +987,11 @@ Driver_Mesh::Status DriverMED_W_SMESHDS_Mesh::Perform()
} }
catch(const std::exception& exc) { catch(const std::exception& exc) {
INFOS("Follow exception was cought:\n\t"<<exc.what()); INFOS("Follow exception was cought:\n\t"<<exc.what());
throw;
} }
catch(...) { catch(...) {
INFOS("Unknown exception was cought !!!"); INFOS("Unknown exception was cought !!!");
throw;
} }
myMeshId = -1; myMeshId = -1;

View File

@ -352,21 +352,32 @@ using namespace std;
if ( aFile.exists() ) if ( aFile.exists() )
aFile.remove(); aFile.remove();
SUIT_OverrideCursor wc; SUIT_OverrideCursor wc;
switch ( theCommandID ) {
case 125: try {
case 122: switch ( theCommandID ) {
aMesh->ExportToMED( aFilename.latin1(), toCreateGroups, aFormat ); case 125:
break; case 122:
case 124: aMesh->ExportToMED( aFilename.latin1(), toCreateGroups, aFormat );
case 121: break;
aMesh->ExportDAT( aFilename.latin1() ); case 124:
break; case 121:
case 126: aMesh->ExportDAT( aFilename.latin1() );
case 123: break;
aMesh->ExportUNV( aFilename.latin1() ); case 126:
break; case 123:
default: aMesh->ExportUNV( aFilename.latin1() );
break; break;
default:
break;
}
}
catch (const SALOME::SALOME_Exception& S_ex){
wc.suspend();
SUIT_MessageBox::warn1(SMESHGUI::desktop(),
QObject::tr("SMESH_WRN_WARNING"),
QObject::tr("SMESH_EXPORT_FAILED"),
QObject::tr("SMESH_BUT_OK"));
wc.resume();
} }
} }
} }

View File

@ -173,6 +173,10 @@ msgstr "No available data in selection"
msgid "SMESH_POLYEDRE_CREATE_ERROR" msgid "SMESH_POLYEDRE_CREATE_ERROR"
msgstr "Polyedron creation error" msgstr "Polyedron creation error"
#Export mesh
msgid "SMESH_EXPORT_FAILED"
msgstr "Mesh export failed.\nProbably, there is not enough space on disk."
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
# MEN # MEN
#------------------------------------------------------------------------- #-------------------------------------------------------------------------