Salome HOME
PAL18696 SMESH : version of MED export
authoreap <eap@opencascade.com>
Tue, 29 Jan 2008 13:47:14 +0000 (13:47 +0000)
committereap <eap@opencascade.com>
Tue, 29 Jan 2008 13:47:14 +0000 (13:47 +0000)
    use GetVersionString(SMESH::MED_VERSION version, CORBA::Short nbDigits);

src/SMESHGUI/SMESHGUI.cxx

index 10072eced87818ab3bea3ef420b12cc69758a6e0..1a952b542b07c3c3f3b815faedff409d65af4b0f 100644 (file)
@@ -278,9 +278,11 @@ using namespace std;
               if (aRet)
                 return;
             }
               if (aRet)
                 return;
             }
-
-            aFilterMap.insert( QObject::tr("MED 2.1 (*.med)"), SMESH::MED_V2_1 );
-            aFilterMap.insert( QObject::tr("MED 2.2 (*.med)"), SMESH::MED_V2_2 );
+            // PAL18696
+            QString v21( aMesh->GetVersionString( SMESH::MED_V2_1, 2));
+            QString v22( aMesh->GetVersionString( SMESH::MED_V2_2, 2));
+            aFilterMap.insert( QString("MED ") +  v21 + " (*.med)", SMESH::MED_V2_1 );
+            aFilterMap.insert( QString("MED ") +  v22 + " (*.med)", SMESH::MED_V2_2 );
           }
          break;
        case 124:
           }
          break;
        case 124: