]> SALOME platform Git repositories - modules/hydro.git/commitdiff
Salome HOME
sinusX p.10 // new resources BR_SINUSX_FORMAT
authorisn <isn@opencascade.com>
Fri, 19 Jun 2015 09:05:38 +0000 (12:05 +0300)
committerisn <isn@opencascade.com>
Fri, 19 Jun 2015 09:13:01 +0000 (12:13 +0300)
src/HYDROGUI/HYDROGUI_ExportSinusXDlg.cxx
src/HYDROGUI/HYDROGUI_ExportSinusXOp.cxx
src/HYDROGUI/HYDROGUI_Operations.cxx
src/HYDROGUI/resources/HYDROGUI_images.ts
src/HYDROGUI/resources/HYDROGUI_msg_en.ts
src/HYDROGUI/resources/icon_export_sx.png [new file with mode: 0644]
src/HYDROGUI/resources/icon_import_sx.png [new file with mode: 0644]

index e0da77a5d326fc6365e9e9df57481547dc98cd1b..f7fb6084a9cf70a39b41c5f4a7eff07e2e63d649 100644 (file)
@@ -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" ) );
index d43f1e8e19c02faeb7ac1d67bff105d280f4712b..6d33a7b7c4a3e90e0c3a236fc257b50345325137 100644 (file)
@@ -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<HYDROGUI_ExportSinusXDlg*>( 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"));
 }
index 44d0636e5b2d7d05af3eb21bac5b1b0d02f61507..57d8f8185ad5e591ea4f3730ed11ae7c133a3bcc 100644 (file)
@@ -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" ); 
index 882b6e57ce1bed3893912ebe42a68263109cc267..6123c89a21528242108546c28c55582ed3547641 100644 (file)
       <source>CREATE_POLYLINE_ICO</source>
       <translation>icon_create_polyline.png</translation>
     </message>
+
+    <message>
+      <source>IMPORT_SINUSX_ICO</source>
+      <translation>icon_import_sx.png</translation>
+    </message>
+
+    <message>
+      <source>EXPORT_SINUSX_ICO</source>
+      <translation>icon_export_sx.png</translation>
+    </message>
+
     <message>
       <source>EDIT_POLYLINE_ICO</source> 
       <translation>icon_edit_polyline.png</translation>
index 89d9c146e313dc9de80d68eee2f22025d4986d76..dfa0e7ad581ea63525102951125cbd8e78354f4b 100644 (file)
@@ -2181,8 +2181,20 @@ file cannot be correctly imported for an Obstacle definition.</translation>
       <translation>SinusX Files (*.sx)</translation>
     </message>
     <message>
-      <source>NO_ONE_ENTITY_EXPORTED</source>
-      <translation>Entities cant be write</translation>
+      <source>NO_ENTITIES_TO_EXPORT</source>
+      <translation>No entities to export</translation>
+    </message>
+  </context>
+
+  <context>
+    <name>HYDROGUI_ExportSinusXDlg</name>
+    <message>
+      <source>OBJECTS_TO_EXPORT</source>
+      <translation>Objects:</translation>
+    </message>
+    <message>
+      <source>EXPORT</source>
+      <translation>Export</translation>
     </message>
   </context>
 
diff --git a/src/HYDROGUI/resources/icon_export_sx.png b/src/HYDROGUI/resources/icon_export_sx.png
new file mode 100644 (file)
index 0000000..02641f4
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 (file)
index 0000000..d5ebf66
Binary files /dev/null and b/src/HYDROGUI/resources/icon_import_sx.png differ