<source>GEOM_IMPORTEXPORT_204</source>
<translation>Export XAO</translation>
</message>
+ <message>
+ <source>GEOM_SELECT_IMPORT_XAO</source>
+ <translation>Import from XAO</translation>
+ </message>
<message>
<source>GEOM_SELECT_EXPORT_XAO</source>
<translation>Export to XAO</translation>
<source>GEOM_IMPORTEXPORT_204</source>
<translation>Export XAO</translation>
</message>
+ <message>
+ <source>GEOM_SELECT_IMPORT_XAO</source>
+ <translation type="unfinished">Import from XAO</translation>
+ </message>
<message>
<source>GEOM_SELECT_EXPORT_XAO</source>
<translation>Export XAO</translation>
#include <SUIT_Session.h>
#include <SUIT_ResourceMgr.h>
#include <SUIT_OverrideCursor.h>
+#include <SUIT_FileDlg.h>
#include <SalomeApp_Application.h>
#include <SalomeApp_Study.h>
#include <SalomeApp_Tools.h>
//=================================================================================
void ImportExportGUI_ExportXAODlg::btnFileSelectClicked()
{
- QFileDialog dlg(this, tr("GEOM_SELECT_EXPORT_XAO") );
- dlg.setLabelText( QFileDialog::Accept, tr("EXPORT_DLG_ACCEPT") );
- dlg.setNameFilter( tr("XAO_FILES") );
- if (dlg.exec())
- {
- QStringList selFiles = dlg.selectedFiles();
- if (selFiles.length() > 0 && !selFiles[0].isEmpty())
- {
- ledFileName->setText(selFiles[0]);
- }
- }
+ QString file = SUIT_FileDlg::getFileName(this, ledFileName->text(),
+ tr("XAO_FILES"),
+ tr("GEOM_SELECT_EXPORT_XAO"), false);
+ if ( !file.isEmpty() )
+ ledFileName->setText( file );
}
//=================================================================================
#include <SUIT_Session.h>
#include <SUIT_ResourceMgr.h>
#include <SUIT_OverrideCursor.h>
+#include <SUIT_FileDlg.h>
#include <SalomeApp_Application.h>
#include <SalomeApp_Study.h>
#include <LightApp_SelectionMgr.h>
//=================================================================================
void ImportExportGUI_ImportXAODlg::btnFileSelectClicked()
{
- QString selFile = QFileDialog::getOpenFileName(this, tr("GEOM_SELECT_EXPORT_XAO"),
- QString(), tr("XAO_FILES"));
- if (!selFile.isEmpty())
- {
- ledFileName->setText(selFile);
- }
+ QString file = SUIT_FileDlg::getFileName(this, ledFileName->text(),
+ tr("XAO_FILES"),
+ tr("GEOM_SELECT_IMPORT_XAO"));
+ if ( !file.isEmpty() )
+ ledFileName->setText( file );
}
//=================================================================================