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" ) );
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;
HYDROData_SinusX anExporter;
anExporter.Export(aFileName, aPanel->GetSelectedEntities());
}
+ else
+ SUIT_MessageBox::warning(module()->getApp()->desktop(), tr( "EXPORT_SINUSX" ), tr( "NO_ENTITIES_TO_EXPORT"));
}
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" );
<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>
<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>