mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2025-02-07 03:14:18 +05:00
Issue 0020324: EDF 717 GEOM : Import IGES File
This commit is contained in:
parent
441391b169
commit
322c45a420
@ -3857,7 +3857,8 @@ Please, select face, shell or solid and try again</translation>
|
|||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<source>GEOM_SCALE_DIMENSIONS</source>
|
<source>GEOM_SCALE_DIMENSIONS</source>
|
||||||
<translation>Length unit in the file is not a 'meter'. Do you want to scale a model?</translation>
|
<translation>Would you like to take into account the units?
|
||||||
|
Otherwise the dimensions will be kept without modifications.</translation>
|
||||||
</message>
|
</message>
|
||||||
</context>
|
</context>
|
||||||
<context>
|
<context>
|
||||||
|
@ -722,11 +722,11 @@ bool GEOMToolsGUI::Import()
|
|||||||
needConvert = aUnitName.SubString( 6, aUnitName.Length() ) != "M";
|
needConvert = aUnitName.SubString( 6, aUnitName.Length() ) != "M";
|
||||||
|
|
||||||
if ( needConvert ) {
|
if ( needConvert ) {
|
||||||
if ( igesAnswer == SUIT_MessageBox::YesToAll ) {
|
if ( igesAnswer == SUIT_MessageBox::NoToAll ) {
|
||||||
// converting for all files is already approved
|
// converting for all files is already approved
|
||||||
fileT = "IGES_SCALE";
|
fileT = "IGES_SCALE";
|
||||||
}
|
}
|
||||||
else if ( igesAnswer != SUIT_MessageBox::NoToAll ) {
|
else if ( igesAnswer != SUIT_MessageBox::YesToAll ) {
|
||||||
SUIT_MessageBox::StandardButtons btns = SUIT_MessageBox::Yes | SUIT_MessageBox::No;
|
SUIT_MessageBox::StandardButtons btns = SUIT_MessageBox::Yes | SUIT_MessageBox::No;
|
||||||
if ( i < fileNames.count()-1 ) btns = btns | SUIT_MessageBox::YesToAll | SUIT_MessageBox::NoToAll;
|
if ( i < fileNames.count()-1 ) btns = btns | SUIT_MessageBox::YesToAll | SUIT_MessageBox::NoToAll;
|
||||||
igesAnswer = SUIT_MessageBox::question( app->desktop(),
|
igesAnswer = SUIT_MessageBox::question( app->desktop(),
|
||||||
@ -739,10 +739,10 @@ bool GEOMToolsGUI::Import()
|
|||||||
return false; // cancel (break) import operation
|
return false; // cancel (break) import operation
|
||||||
case SUIT_MessageBox::Yes:
|
case SUIT_MessageBox::Yes:
|
||||||
case SUIT_MessageBox::YesToAll:
|
case SUIT_MessageBox::YesToAll:
|
||||||
fileT = "IGES_SCALE";
|
|
||||||
break; // scaling is confirmed
|
break; // scaling is confirmed
|
||||||
case SUIT_MessageBox::No:
|
case SUIT_MessageBox::No:
|
||||||
case SUIT_MessageBox::NoAll:
|
case SUIT_MessageBox::NoAll:
|
||||||
|
fileT = "IGES_SCALE";
|
||||||
default:
|
default:
|
||||||
break; // scaling is rejected
|
break; // scaling is rejected
|
||||||
} // switch ( igesAnswer )
|
} // switch ( igesAnswer )
|
||||||
|
Loading…
Reference in New Issue
Block a user