mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2025-01-13 02:00:35 +05:00
0021511: EDF 2153 GEOM: Choose to take units into account or not when importing a STEP file
- Improve the message for asking user about need to take file units into account, to make it more clear to the user
This commit is contained in:
parent
b55a2a917b
commit
f56d6caf5f
@ -4755,8 +4755,9 @@ shells and solids on the other hand.</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>GEOM_SCALE_DIMENSIONS</source>
|
||||
<translation>Would you like to take into account the units?
|
||||
Otherwise the dimensions will be kept without modifications.</translation>
|
||||
<translation>Take into account the units (%1) embedded to the file?
|
||||
Ignoring units will cause model scaling (as dimensions are supposed to
|
||||
be specified in meters).</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>GEOM_ADVANCED</source>
|
||||
|
@ -649,9 +649,9 @@ bool GEOMToolsGUI::Import()
|
||||
|
||||
// jfa 21.08.2012 for mantis issue 21511 (STEP file units)
|
||||
CORBA::String_var aUnits = aInsOp->ReadValue(fileN, fileT, "LEN_UNITS");
|
||||
TCollection_AsciiString aUnitsStr (aUnits.in());
|
||||
QString aUnitsStr (aUnits.in());
|
||||
bool needConvert = true;
|
||||
if (aUnitsStr.IsEmpty() || aUnitsStr == "M")
|
||||
if (aUnitsStr.isEmpty() || aUnitsStr == "M")
|
||||
needConvert = false;
|
||||
|
||||
if (needConvert) {
|
||||
@ -664,7 +664,7 @@ bool GEOMToolsGUI::Import()
|
||||
if (i < fileNames.count() - 1) btns = btns | SUIT_MessageBox::YesToAll | SUIT_MessageBox::NoToAll;
|
||||
igesAnswer = SUIT_MessageBox::question(app->desktop(),
|
||||
"Question",//tr("WRN_WARNING"),
|
||||
tr("GEOM_SCALE_DIMENSIONS"),
|
||||
tr("GEOM_SCALE_DIMENSIONS").arg(aUnitsStr),
|
||||
btns | SUIT_MessageBox::Cancel,
|
||||
SUIT_MessageBox::No);
|
||||
switch (igesAnswer) {
|
||||
|
Loading…
Reference in New Issue
Block a user