From: adv Date: Mon, 2 Dec 2013 11:52:42 +0000 (+0000) Subject: Ceration of objects from popup menu of main partitions. X-Git-Tag: BR_hydro_v_0_4~104 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=32a537ce709c2418960d148c9553b092d5dd0e0e;p=modules%2Fhydro.git Ceration of objects from popup menu of main partitions. --- diff --git a/src/HYDROGUI/HYDROGUI_Module.cxx b/src/HYDROGUI/HYDROGUI_Module.cxx index 604ed597..f3bba4b9 100644 --- a/src/HYDROGUI/HYDROGUI_Module.cxx +++ b/src/HYDROGUI/HYDROGUI_Module.cxx @@ -342,6 +342,23 @@ void HYDROGUI_Module::contextMenuPopup( const QString& theClient, case KIND_IMAGE: theMenu->addAction( action( ImportImageId ) ); break; + case KIND_BATHYMETRY: + theMenu->addAction( action( ImportBathymetryId ) ); + break; + case KIND_ARTIFICIAL_OBJECT: + break; + case KIND_NATURAL_OBJECT: + theMenu->addAction( action( CreateImmersibleZoneId ) ); + theMenu->addAction( action( CreateStreamId ) ); + break; + case KIND_OBSTACLE: + theMenu->addAction( action( ImportObstacleFromFileId ) ); + theMenu->addAction( action( CreateBoxId ) ); + theMenu->addAction( action( CreateCylinderId ) ); + break; + case KIND_CALCULATION: + theMenu->addAction( action( CreateCalculationId ) ); + break; case KIND_POLYLINEXY: theMenu->addAction( action( CreatePolylineId ) ); break; @@ -356,20 +373,6 @@ void HYDROGUI_Module::contextMenuPopup( const QString& theClient, case KIND_VISUAL_STATE: theMenu->addAction( action( SaveVisualStateId ) ); break; - case KIND_BATHYMETRY: - theMenu->addAction( action( ImportBathymetryId ) ); - break; - case KIND_CALCULATION: - theMenu->addAction( action( CreateCalculationId ) ); - break; - case KIND_IMMERSIBLE_ZONE: - theMenu->addAction( action( CreateImmersibleZoneId ) ); - break; - case KIND_OBSTACLE: - theMenu->addAction( action( ImportObstacleFromFileId ) ); - theMenu->addAction( action( CreateBoxId ) ); - theMenu->addAction( action( CreateCylinderId ) ); - break; } theMenu->addSeparator(); }