From: isn Date: Wed, 8 Nov 2017 13:45:57 +0000 (+0300) Subject: refs #1384 X-Git-Tag: v2.1~54 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=b019c31d3d29260a9458575809b6656aa0490e80;p=modules%2Fhydro.git refs #1384 --- diff --git a/src/HYDROGUI/HYDROGUI_ExportImageOp.cxx b/src/HYDROGUI/HYDROGUI_ExportImageOp.cxx index e6e3c72e..f4360ba6 100644 --- a/src/HYDROGUI/HYDROGUI_ExportImageOp.cxx +++ b/src/HYDROGUI/HYDROGUI_ExportImageOp.cxx @@ -59,7 +59,7 @@ void HYDROGUI_ExportImageOp::startOperation() // Invert the Y axis direction from down to up anImage = anImage.transformed( QTransform::fromScale( 1, -1 ), Qt::SmoothTransformation ); - QString aFilter( tr( "IMAGE_FILTER" ) ); + QString aFilter( tr( "IMAGE_FILTER_EXPORT" ) ); QString aFileName = SUIT_FileDlg::getFileName( module()->getApp()->desktop(), "", aFilter, tr( "EXPORT_IMAGE_TO_FILE" ), false ); if( !aFileName.isEmpty() ) diff --git a/src/HYDROGUI/HYDROGUI_ImportImageDlg.cxx b/src/HYDROGUI/HYDROGUI_ImportImageDlg.cxx index 8ad0fcbd..e238f569 100644 --- a/src/HYDROGUI/HYDROGUI_ImportImageDlg.cxx +++ b/src/HYDROGUI/HYDROGUI_ImportImageDlg.cxx @@ -798,7 +798,7 @@ HYDROGUI_ImportImageDlg::TransformationData HYDROGUI_ImportImageDlg::ComputeTrsf void HYDROGUI_ImportImageDlg::onBrowse() { - QString aFilter( tr( "IMAGE_FILTER" ) ); + QString aFilter( tr( "IMAGE_FILTER_IMPORT" ) ); QStringList aFileNamesList = SUIT_FileDlg::getOpenFileNames( this, "", aFilter, tr( "IMPORT_IMAGE_FROM_FILE" ), true ); emit filesSelected( aFileNamesList ); } diff --git a/src/HYDROGUI/resources/HYDROGUI_msg_en.ts b/src/HYDROGUI/resources/HYDROGUI_msg_en.ts index 16f8af3b..f5b1e222 100644 --- a/src/HYDROGUI/resources/HYDROGUI_msg_en.ts +++ b/src/HYDROGUI/resources/HYDROGUI_msg_en.ts @@ -133,9 +133,13 @@ does not exist or you have not enough permissions to open it. - IMAGE_FILTER + IMAGE_FILTER_IMPORT Image files (*.bmp *.jpg *.jpeg *.png *.tif *.ecw);;All files (*.* *) + + IMAGE_FILTER_EXPORT + Image files (*.bmp *.jpg *.jpeg *.png *.tif );;All files (*.* *) + INCORRECT_OBJECT_NAME The object name must not be an empty string value.