#include <CAM_Application.h>
#include <QtxListAction.h>
+#include <QtxActionToolMgr.h>
#include <SUIT_Desktop.h>
#include <SUIT_ResourceMgr.h>
createAction( UpdateObjectId, "UPDATE_OBJECT" );
- createAction( ImportImageId, "IMPORT_IMAGE", "", Qt::CTRL + Qt::Key_I );
- createAction( EditImportedImageId, "EDIT_IMPORTED_IMAGE" );
- createAction( ObserveImageId, "OBSERVE_IMAGE" );
- createAction( ExportImageId, "EXPORT_IMAGE" );
- createAction( RemoveImageRefsId, "REMOVE_IMAGE_REFERENCE" );
+ createAction( ImportImageId, "IMPORT_IMAGE", "IMPORT_IMAGE_ICO", Qt::CTRL + Qt::Key_I );
+ createAction( EditImportedImageId, "EDIT_IMPORTED_IMAGE", "EDIT_IMPORTED_IMAGE_ICO" );
+ createAction( ObserveImageId, "OBSERVE_IMAGE", "OBSERVE_IMAGE_ICO" );
+ createAction( ExportImageId, "EXPORT_IMAGE", "EXPORT_IMAGE_ICO" );
+ createAction( RemoveImageRefsId, "REMOVE_IMAGE_REFERENCE", "REMOVE_IMAGE_REFERENCE_ICO" );
- createAction( CreatePolylineId, "CREATE_POLYLINE" );
- createAction( EditPolylineId, "EDIT_POLYLINE" );
+ createAction( CreatePolylineId, "CREATE_POLYLINE", "CREATE_POLYLINE_ICO" );
+ createAction( EditPolylineId, "EDIT_POLYLINE", "EDIT_POLYLINE_ICO" );
- createAction( CreatePolyline3DId, "CREATE_POLYLINE_3D" );
- createAction( EditPolyline3DId, "EDIT_POLYLINE_3D" );
+ createAction( CreatePolyline3DId, "CREATE_POLYLINE_3D", "CREATE_POLYLINE_3D_ICO" );
+ createAction( EditPolyline3DId, "EDIT_POLYLINE_3D", "EDIT_POLYLINE_3D_ICO" );
- createAction( CreateProfileId, "CREATE_PROFILE" );
- createAction( ImportProfilesId, "IMPORT_PROFILES" );
- createAction( EditProfileId, "EDIT_PROFILE" );
- createAction( AllGeoreferencementId, "GEOREFERENCEMENT" );
- createAction( SelectedGeoreferencementId, "GEOREFERENCEMENT" );
+ createAction( CreateProfileId, "CREATE_PROFILE", "CREATE_PROFILE_ICO" );
+ createAction( ImportProfilesId, "IMPORT_PROFILES", "IMPORT_PROFILES_ICO" );
+ createAction( EditProfileId, "EDIT_PROFILE", "EDIT_PROFILE_ICO" );
+ createAction( AllGeoreferencementId, "GEOREFERENCEMENT", "GEOREFERENCEMENT_ICO" );
+ createAction( SelectedGeoreferencementId, "GEOREFERENCEMENT", "GEOREFERENCEMENT_ICO" );
- createAction( ImportBathymetryId, "IMPORT_BATHYMETRY", "", Qt::CTRL + Qt::Key_B );
- createAction( EditImportedBathymetryId, "EDIT_IMPORTED_BATHYMETRY" );
+ createAction( ImportBathymetryId, "IMPORT_BATHYMETRY", "IMPORT_BATHYMETRY_ICO", Qt::CTRL + Qt::Key_B );
+ createAction( EditImportedBathymetryId, "EDIT_IMPORTED_BATHYMETRY", "EDIT_IMPORTED_BATHYMETRY_ICO" );
- createAction( CreateImmersibleZoneId, "CREATE_IMMERSIBLE_ZONE" );
- createAction( EditImmersibleZoneId, "EDIT_IMMERSIBLE_ZONE" );
+ createAction( CreateImmersibleZoneId, "CREATE_IMMERSIBLE_ZONE", "CREATE_IMMERSIBLE_ZONE_ICO" );
+ createAction( EditImmersibleZoneId, "EDIT_IMMERSIBLE_ZONE", "EDIT_IMMERSIBLE_ZONE_ICO" );
- createAction( CreateStreamId, "CREATE_STREAM" );
- createAction( EditStreamId, "EDIT_STREAM" );
+ createAction( CreateStreamId, "CREATE_STREAM", "CREATE_STREAM_ICO" );
+ createAction( EditStreamId, "EDIT_STREAM", "EDIT_STREAM_ICO" );
- createAction( CreateChannelId, "CREATE_CHANNEL" );
- createAction( EditChannelId, "EDIT_CHANNEL" );
+ createAction( CreateChannelId, "CREATE_CHANNEL", "CREATE_CHANNEL_ICO" );
+ createAction( EditChannelId, "EDIT_CHANNEL", "EDIT_CHANNEL_ICO" );
- createAction( ImportObstacleFromFileId, "IMPORT_OBSTACLE_FROM_FILE" );
- createAction( ImportGeomObjectId, "IMPORT_GEOM_OBJECT" );
- createAction( CreateBoxId, "CREATE_BOX" );
- createAction( CreateCylinderId, "CREATE_CYLINDER" );
+ createAction( ImportObstacleFromFileId, "IMPORT_OBSTACLE_FROM_FILE", "IMPORT_OBSTACLE_FROM_FILE_ICO" );
+ createAction( ImportGeomObjectId, "IMPORT_GEOM_OBJECT", "IMPORT_GEOM_OBJECT_ICO" );
+ createAction( CreateBoxId, "CREATE_BOX", "CREATE_BOX_ICO" );
+ createAction( CreateCylinderId, "CREATE_CYLINDER", "CREATE_CYLINDER_ICO" );
- createAction( CreateCalculationId, "CREATE_CALCULATION" );
- createAction( EditCalculationId, "EDIT_CALCULATION" );
- createAction( ExportCalculationId, "EXPORT_CALCULATION" );
+ createAction( CreateCalculationId, "CREATE_CALCULATION", "CREATE_CALCULATION_ICO" );
+ createAction( EditCalculationId, "EDIT_CALCULATION", "EDIT_CALCULATION_ICO" );
+ createAction( ExportCalculationId, "EXPORT_CALCULATION", "EXPORT_CALCULATION_ICO" );
- createAction( FuseImagesId, "FUSE_IMAGES" );
- createAction( EditFusedImageId, "EDIT_FUSED_IMAGE" );
+ createAction( FuseImagesId, "FUSE_IMAGES", "FUSE_IMAGES_ICO" );
+ createAction( EditFusedImageId, "EDIT_FUSED_IMAGE", "EDIT_FUSED_IMAGE_ICO" );
- createAction( CutImagesId, "CUT_IMAGES" );
- createAction( EditCutImageId, "EDIT_CUT_IMAGE" );
+ createAction( CutImagesId, "CUT_IMAGES", "CUT_IMAGES_ICO" );
+ createAction( EditCutImageId, "EDIT_CUT_IMAGE", "EDIT_CUT_IMAGE_ICO" );
- createAction( SplitImageId, "SPLIT_IMAGE" );
- createAction( EditSplittedImageId, "EDIT_SPLITTED_IMAGE" );
+ createAction( SplitImageId, "SPLIT_IMAGE", "SPLIT_IMAGE_ICO" );
+ createAction( EditSplittedImageId, "EDIT_SPLITTED_IMAGE", "EDIT_SPLITTED_IMAGE_ICO" );
createAction( DeleteId, "DELETE", "", Qt::Key_Delete, false,
SLOT( onDelete() ) );
int aToolBar = createTool( tr( "MEN_DESK_HYDRO" ) );
createTool( UndoId, aToolBar );
createTool( RedoId, aToolBar );
+
+ createTool( separator(), aToolBar );
+ createTool( ImportImageId, aToolBar );
+ createTool( ImportBathymetryId, aToolBar );
+ createTool( CreatePolylineId, aToolBar );
+ createTool( CreatePolyline3DId, aToolBar );
+
+ createTool( separator(), aToolBar );
+ createTool( CreateProfileId, aToolBar );
+ createTool( ImportProfilesId, aToolBar );
+ createTool( AllGeoreferencementId, aToolBar );
+
+ createTool( separator(), aToolBar );
+ createTool( CreateChannelId, aToolBar );
+
+ createTool( separator(), aToolBar );
+ createTool( CreateImmersibleZoneId, aToolBar );
+ createTool( CreateStreamId, aToolBar );
+
+ createTool( separator(), aToolBar );
+ createTool( ImportObstacleFromFileId, aToolBar );
+ createTool( CreateBoxId, aToolBar );
+ createTool( CreateCylinderId, aToolBar );
+
+ createTool( separator(), aToolBar );
+ createTool( CreateCalculationId, aToolBar );
+
+ createTool( separator(), aToolBar );
+ createTool( FuseImagesId, aToolBar );
+ createTool( CutImagesId, aToolBar );
+ createTool( SplitImageId, aToolBar );
}
void HYDROGUI_Module::createUndoRedoActions()
<source>UNDO_ICO</source>
<translation>icon_undo.png</translation>
</message>
+
+ <!-- Icons for objects -->
<message>
<source>PARTITION_ICO</source>
<translation>icon_partition.png</translation>
</message>
<message>
<source>HYDRO_TYPE4_ICO</source>
- <translation>icon_hydro_obj.png</translation>
+ <translation>icon_bathymetry.png</translation>
</message>
<message>
<source>HYDRO_TYPE5_ICO</source>
</message>
<message>
<source>HYDRO_TYPE9_ICO</source>
- <translation>icon_hydro_obj.png</translation>
+ <translation>icon_channel.png</translation>
</message>
<message>
<source>HYDRO_TYPE10_ICO</source>
</message>
<message>
<source>HYDRO_TYPE16_ICO</source>
- <translation>icon_hydro_obj.png</translation>
+ <translation>icon_imm_zone.png</translation>
</message>
<message>
<source>HYDRO_TYPE17_ICO</source>
<translation>icon_hydro_obj.png</translation>
</message>
+ <!-- Icons for need to update objects -->
<message>
<source>PARTITION_M_ICO</source>
<translation>icon_mpartition.png</translation>
</message>
<message>
<source>HYDRO_M_TYPE4_ICO</source>
- <translation>icon_mhydro_obj.png</translation>
+ <translation>icon_mbathymetry.png</translation>
</message>
<message>
<source>HYDRO_M_TYPE5_ICO</source>
</message>
<message>
<source>HYDRO_M_TYPE9_ICO</source>
- <translation>icon_mhydro_obj.png</translation>
+ <translation>icon_mchannel.png</translation>
</message>
<message>
<source>HYDRO_M_TYPE10_ICO</source>
</message>
<message>
<source>HYDRO_M_TYPE16_ICO</source>
- <translation>icon_mhydro_obj.png</translation>
+ <translation>icon_mimm_zone.png</translation>
</message>
<message>
<source>HYDRO_M_TYPE17_ICO</source>
<translation>icon_mhydro_obj.png</translation>
</message>
+ <!-- Operations icons -->
+ <message>
+ <source>IMPORT_IMAGE_ICO</source>
+ <translation>icon_import_image.png</translation>
+ </message>
+ <message>
+ <source>EDIT_IMPORTED_IMAGE_ICO</source>
+ <translation>icon_edit_image.png</translation>
+ </message>
+ <message>
+ <source>OBSERVE_IMAGE_ICO</source>
+ <translation>icon_observe_image.png</translation>
+ </message>
+ <message>
+ <source>EXPORT_IMAGE_ICO</source>
+ <translation>icon_export_image.png</translation>
+ </message>
+ <message>
+ <source>REMOVE_IMAGE_REFERENCE_ICO</source>
+ <translation>icon_remove_image_ref.png</translation>
+ </message>
+ <message>
+ <source>CREATE_POLYLINE_ICO</source>
+ <translation>icon_create_polyline.png</translation>
+ </message>
+ <message>
+ <source>EDIT_POLYLINE_ICO</source>
+ <translation>icon_edit_polyline.png</translation>
+ </message>
+
+ <message>
+ <source>CREATE_POLYLINE_3D_ICO</source>
+ <translation>icon_create_polyline_3d.png</translation>
+ </message>
+ <message>
+ <source>EDIT_POLYLINE_3D_ICO</source>
+ <translation>icon_edit_polyline_3d.png</translation>
+ </message>
+
+ <message>
+ <source>CREATE_PROFILE_ICO</source>
+ <translation>icon_create_profile.png</translation>
+ </message>
+ <message>
+ <source>IMPORT_PROFILES_ICO</source>
+ <translation>icon_import_profiles.png</translation>
+ </message>
+ <message>
+ <source>EDIT_PROFILE_ICO</source>
+ <translation>icon_edit_profile.png</translation>
+ </message>
+ <message>
+ <source>GEOREFERENCEMENT_ICO</source>
+ <translation>icon_georeferencement.png</translation>
+ </message>
+
+ <message>
+ <source>IMPORT_BATHYMETRY_ICO</source>
+ <translation>icon_import_bathymetry.png</translation>
+ </message>
+ <message>
+ <source>EDIT_IMPORTED_BATHYMETRY_ICO</source>
+ <translation>icon_edit_bathymetry.png</translation>
+ </message>
+
+ <message>
+ <source>CREATE_IMMERSIBLE_ZONE_ICO</source>
+ <translation>icon_create_imm_zone.png</translation>
+ </message>
+ <message>
+ <source>EDIT_IMMERSIBLE_ZONE_ICO</source>
+ <translation>icon_edit_imm_zone.png</translation>
+ </message>
+
+ <message>
+ <source>CREATE_STREAM_ICO</source>
+ <translation>icon_create_stream.png</translation>
+ </message>
+ <message>
+ <source>EDIT_STREAM_ICO</source>
+ <translation>icon_edit_stream.png</translation>
+ </message>
+
+ <message>
+ <source>CREATE_CHANNEL_ICO</source>
+ <translation>icon_create_channel.png</translation>
+ </message>
+ <message>
+ <source>EDIT_CHANNEL_ICO</source>
+ <translation>icon_edit_channel.png</translation>
+ </message>
+
+ <message>
+ <source>IMPORT_OBSTACLE_FROM_FILE_ICO</source>
+ <translation>icon_import_obstacle.png</translation>
+ </message>
+ <message>
+ <source>IMPORT_GEOM_OBJECT_ICO</source>
+ <translation>icon_import_geom_obj.png</translation>
+ </message>
+ <message>
+ <source>CREATE_BOX_ICO</source>
+ <translation>icon_create_box.png</translation>
+ </message>
+ <message>
+ <source>CREATE_CYLINDER_ICO</source>
+ <translation>icon_create_cylinder.png</translation>
+ </message>
+
+ <message>
+ <source>CREATE_CALCULATION_ICO</source>
+ <translation>icon_create_calc.png</translation>
+ </message>
+ <message>
+ <source>EDIT_CALCULATION_ICO</source>
+ <translation>icon_edit_calc.png</translation>
+ </message>
+ <message>
+ <source>EXPORT_CALCULATION_ICO</source>
+ <translation>icon_export_calc.png</translation>
+ </message>
+
+ <message>
+ <source>FUSE_IMAGES_ICO</source>
+ <translation>icon_fuse_images.png</translation>
+ </message>
+ <message>
+ <source>EDIT_FUSED_IMAGE_ICO</source>
+ <translation>icon_edit_fused_image.png</translation>
+ </message>
+
+ <message>
+ <source>CUT_IMAGES_ICO</source>
+ <translation>icon_cut_images.png</translation>
+ </message>
+ <message>
+ <source>EDIT_CUT_IMAGE_ICO</source>
+ <translation>icon_edit_cut_image.png</translation>
+ </message>
+
+ <message>
+ <source>SPLIT_IMAGE_ICO</source>
+ <translation>icon_split_image.png</translation>
+ </message>
+ <message>
+ <source>EDIT_SPLITTED_IMAGE_ICO</source>
+ <translation>icon_edit_splitted_image.png</translation>
+ </message>
+
</context>
</TS>