From: isn Date: Fri, 19 Jun 2015 09:05:38 +0000 (+0300) Subject: sinusX p.10 // new resources X-Git-Tag: v1.4.2~54^2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=3f2dbf8059990ae9840b9692be8772e3b7e5a3cf;p=modules%2Fhydro.git sinusX p.10 // new resources --- diff --git a/src/HYDROGUI/HYDROGUI_ExportSinusXDlg.cxx b/src/HYDROGUI/HYDROGUI_ExportSinusXDlg.cxx index e0da77a5..f7fb6084 100644 --- a/src/HYDROGUI/HYDROGUI_ExportSinusXDlg.cxx +++ b/src/HYDROGUI/HYDROGUI_ExportSinusXDlg.cxx @@ -45,7 +45,7 @@ HYDROGUI_ExportSinusXDlg::HYDROGUI_ExportSinusXDlg( HYDROGUI_Module* theModule, anAllowedTypesToSave.append(KIND_POLYLINEXY); anAllowedTypesToSave.append(KIND_PROFILE); - myList = new HYDROGUI_ObjListBox( theModule, tr( "OBJECT_TO_EXPORT" ), anAllowedTypesToSave, mainFrame() ); + myList = new HYDROGUI_ObjListBox( theModule, tr( "OBJECTS_TO_EXPORT" ), anAllowedTypesToSave, mainFrame() ); aLayout->addWidget( myList, 0, 0 ); myExportBtn = new QPushButton( tr( "EXPORT" ) ); diff --git a/src/HYDROGUI/HYDROGUI_ExportSinusXOp.cxx b/src/HYDROGUI/HYDROGUI_ExportSinusXOp.cxx index d43f1e8e..6d33a7b7 100644 --- a/src/HYDROGUI/HYDROGUI_ExportSinusXOp.cxx +++ b/src/HYDROGUI/HYDROGUI_ExportSinusXOp.cxx @@ -65,7 +65,7 @@ HYDROGUI_InputPanel* HYDROGUI_ExportSinusXOp::createInputPanel() const void HYDROGUI_ExportSinusXOp::onExportItems() { - QString aFilter( "*.sx" ); //temp ext-n; replace with filter; TODO + QString aFilter( tr("SINUSX_FILTER") ); HYDROGUI_ExportSinusXDlg* aPanel = ::qobject_cast( inputPanel() ); if ( !aPanel ) return; @@ -76,4 +76,6 @@ void HYDROGUI_ExportSinusXOp::onExportItems() HYDROData_SinusX anExporter; anExporter.Export(aFileName, aPanel->GetSelectedEntities()); } + else + SUIT_MessageBox::warning(module()->getApp()->desktop(), tr( "EXPORT_SINUSX" ), tr( "NO_ENTITIES_TO_EXPORT")); } diff --git a/src/HYDROGUI/HYDROGUI_Operations.cxx b/src/HYDROGUI/HYDROGUI_Operations.cxx index 44d0636e..57d8f818 100644 --- a/src/HYDROGUI/HYDROGUI_Operations.cxx +++ b/src/HYDROGUI/HYDROGUI_Operations.cxx @@ -129,7 +129,7 @@ void HYDROGUI_Module::createActions() createAction( ImportPolylineId, "IMPORT_POLYLINE", "IMPORT_POLYLINE_ICO" ); createAction( ImportSinusXId, "IMPORT_SINUSX", "IMPORT_SINUSX_ICO" ); - createAction( ExportSinusXId, "EXPORT_SINUSX", "EXPORT_LANDCOVER_ICO" ); + createAction( ExportSinusXId, "EXPORT_SINUSX", "EXPORT_SINUSX_ICO" ); createAction( CreatePolylineId, "CREATE_POLYLINE", "CREATE_POLYLINE_ICO" ); createAction( EditPolylineId, "EDIT_POLYLINE", "EDIT_POLYLINE_ICO" ); diff --git a/src/HYDROGUI/resources/HYDROGUI_images.ts b/src/HYDROGUI/resources/HYDROGUI_images.ts index 882b6e57..6123c89a 100644 --- a/src/HYDROGUI/resources/HYDROGUI_images.ts +++ b/src/HYDROGUI/resources/HYDROGUI_images.ts @@ -261,6 +261,17 @@ CREATE_POLYLINE_ICO icon_create_polyline.png + + + IMPORT_SINUSX_ICO + icon_import_sx.png + + + + EXPORT_SINUSX_ICO + icon_export_sx.png + + EDIT_POLYLINE_ICO icon_edit_polyline.png diff --git a/src/HYDROGUI/resources/HYDROGUI_msg_en.ts b/src/HYDROGUI/resources/HYDROGUI_msg_en.ts index 89d9c146..dfa0e7ad 100644 --- a/src/HYDROGUI/resources/HYDROGUI_msg_en.ts +++ b/src/HYDROGUI/resources/HYDROGUI_msg_en.ts @@ -2181,8 +2181,20 @@ file cannot be correctly imported for an Obstacle definition. SinusX Files (*.sx) - NO_ONE_ENTITY_EXPORTED - Entities cant be write + NO_ENTITIES_TO_EXPORT + No entities to export + + + + + HYDROGUI_ExportSinusXDlg + + OBJECTS_TO_EXPORT + Objects: + + + EXPORT + Export diff --git a/src/HYDROGUI/resources/icon_export_sx.png b/src/HYDROGUI/resources/icon_export_sx.png new file mode 100644 index 00000000..02641f44 Binary files /dev/null and b/src/HYDROGUI/resources/icon_export_sx.png differ diff --git a/src/HYDROGUI/resources/icon_import_sx.png b/src/HYDROGUI/resources/icon_import_sx.png new file mode 100644 index 00000000..d5ebf66c Binary files /dev/null and b/src/HYDROGUI/resources/icon_import_sx.png differ