]> SALOME platform Git repositories - modules/geom.git/commitdiff
Salome HOME
Change name of button in export file selection dialog
authorfps <fps@opencascade.com>
Fri, 15 Nov 2013 15:21:11 +0000 (15:21 +0000)
committerfps <fps@opencascade.com>
Fri, 15 Nov 2013 15:21:11 +0000 (15:21 +0000)
src/GEOMGUI/GEOM_msg_en.ts
src/GEOMGUI/GEOM_msg_fr.ts
src/ImportExportGUI/ImportExportGUI_ExportXAODlg.cxx

index be71cff153a64a0d159bd6d566580ce89fca943c..b861fe2d9af3ce99152b03600eab6d0b1520a3a2 100644 (file)
@@ -6461,6 +6461,10 @@ Do you want to create new material?</translation>
         <source>GEOM_EXPORTXAO_LFIELDS</source>
         <translation>Fields</translation>
     </message>
+    <message>
+        <source>EXPORT_DLG_ACCEPT</source>
+        <translation>OK</translation>
+    </message>
 </context>
 <context>
     <name>ImportExportGUI_ImportXAODlg</name>
index f356408fd8ca0fd1366c01c4ba89218bcda65413..a5cb15cea6cfc2c09565a8f840b29a68f1be57fc 100644 (file)
@@ -6414,6 +6414,10 @@ Voulez-vous en créer un nouveau ?</translation>
         <source>GEOM_EXPORTXAO_LFIELDS</source>
         <translation>Champs</translation>
     </message>
+    <message>
+        <source>EXPORT_DLG_ACCEPT</source>
+        <translation>OK</translation>
+    </message>
 </context>
 <context>
     <name>ImportExportGUI_ImportXAODlg</name>
index 4cf4408b837e791bdf42fd0fa899fe2565a0d4c1..1f232009d72cbe72a4fb3ff496e5b085344adc79 100644 (file)
@@ -337,11 +337,16 @@ void ImportExportGUI_ExportXAODlg::SetEditCurrentArgument()
 //=================================================================================
 void ImportExportGUI_ExportXAODlg::btnFileSelectClicked()
 {
-    QString selFile = QFileDialog::getSaveFileName(this, tr("GEOM_SELECT_EXPORT_XAO"),
-            QString(), tr("XAO_FILES"));
-    if (!selFile.isEmpty())
+    QFileDialog dlg(this, tr("GEOM_SELECT_EXPORT_XAO") );
+    dlg.setLabelText( QFileDialog::Accept, tr("EXPORT_DLG_ACCEPT") );
+    dlg.setNameFilter( tr("XAO_FILES") );
+    if (dlg.exec())
     {
-        ledFileName->setText(selFile);
+        QStringList selFiles = dlg.selectedFiles();
+        if (selFiles.length() > 0 && !selFiles[0].isEmpty())
+        {
+            ledFileName->setText(selFiles[0]);
+        }
     }
 }