From 32a537ce709c2418960d148c9553b092d5dd0e0e Mon Sep 17 00:00:00 2001 From: adv Date: Mon, 2 Dec 2013 11:52:42 +0000 Subject: [PATCH] Ceration of objects from popup menu of main partitions. --- src/HYDROGUI/HYDROGUI_Module.cxx | 31 +++++++++++++++++-------------- 1 file changed, 17 insertions(+), 14 deletions(-) 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(); } -- 2.39.2