]> SALOME platform Git repositories - modules/hydro.git/commitdiff
Salome HOME
Ceration of objects from popup menu of main partitions.
authoradv <adv@opencascade.com>
Mon, 2 Dec 2013 11:52:42 +0000 (11:52 +0000)
committeradv <adv@opencascade.com>
Mon, 2 Dec 2013 11:52:42 +0000 (11:52 +0000)
src/HYDROGUI/HYDROGUI_Module.cxx

index 604ed597512ab270758189fc867e779fdf846210..f3bba4b99093547a808d3d6458f681d06b54e0a2 100644 (file)
@@ -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();
     }