Salome HOME
refs #1813 ... lot 14 combined commit : parts : 1 - 16
[modules/hydro.git] / src / HYDROGUI / HYDROGUI_Operations.cxx
index b5d318aae43de52c4cb3b593fe193fe764a576ef..82402e07bd659dea1da3ea3a903b0994ea7637e7 100644 (file)
@@ -59,6 +59,7 @@
 #include "HYDROGUI_RiverBottomOp.h"
 #include "HYDROGUI_ProfileInterpolateOp.h"
 #include "HYDROGUI_RecognizeContoursOp.h"
+#include <HYDROGUI_ImportBCPolygonOp.h>
 #include "HYDROGUI_SubmersibleOp.h"
 #include "HYDROGUI_StricklerTableOp.h"
 #include "HYDROGUI_DuplicateOp.h"
@@ -76,6 +77,7 @@
 #include "HYDROGUI_PolylineStyleOp.h"
 #include "HYDROGUI_ZoneSetColorOp.h"
 #include <HYDROGUI_ShowAttrPolyOp.h>
+#include <HYDROGUI_SetBoundaryTypePolygonOp.h>
 #include <HYDROData_Document.h>
 #include <HYDROData_Obstacle.h>
 #include <HYDROData_SplitToZonesTool.h>
@@ -145,6 +147,8 @@ void HYDROGUI_Module::createActions()
   createAction( ExportSinusXId, "EXPORT_SINUSX", "EXPORT_SINUSX_ICO" );
   createAction( ImportLandCoverMapId, "IMPORT_LANDCOVER_MAP", "IMPORT_LANDCOVER_MAP_ICO" );
 
+  createAction( ImportBCPolygonId, "IMPORT_BC_POLYGON", "IMPORT_BC_POLYGON_ICO" );
+
   createAction( CreatePolylineId, "CREATE_POLYLINE", "CREATE_POLYLINE_ICO" );
   createAction( EditPolylineId, "EDIT_POLYLINE", "EDIT_POLYLINE_ICO" ); 
 
@@ -254,6 +258,7 @@ void HYDROGUI_Module::createActions()
   createAction( RegenerateRegionColorsId, "REGENERATE_REGION_COLORS" );
   createAction( ZoneSetColorId, "ZONE_SET_COLOR" );
   createAction( ShowHideArrows, "SHOW_HIDE_ARROWS" );
+  createAction( SetBoundaryTypePolygonId, "SET_BOUNDARY_TYPE_POLYGON" );
 }
 
 void HYDROGUI_Module::createMenus()
@@ -348,6 +353,8 @@ void HYDROGUI_Module::createToolbars()
   createTool( ExportSinusXId, aToolBar );
   createTool( ImportLandCoverMapId, aToolBar );
 
+  createTool( ImportBCPolygonId, aToolBar );
+
   createTool( ImportBathymetryId, aToolBar );
   createTool( CreatePolylineId, aToolBar );
   createTool( CreatePolyline3DId, aToolBar );
@@ -621,6 +628,9 @@ LightApp_Operation* HYDROGUI_Module::createOperation( const int theId ) const
   case ExportSinusXId:
     anOp = new HYDROGUI_ExportSinusXOp( aModule );
     break;
+  case ImportBCPolygonId:
+    anOp = new HYDROGUI_ImportBCPolygonOp( aModule );
+    break;
   case ObserveImageId:
     anOp = new HYDROGUI_ObserveImageOp( aModule );
     break;
@@ -803,6 +813,9 @@ LightApp_Operation* HYDROGUI_Module::createOperation( const int theId ) const
   case ShowAttrPolylinesId:
     anOp = new HYDROGUI_ShowAttrPolyOp( aModule );
     break;
+  case SetBoundaryTypePolygonId:
+    anOp = new HYDROGUI_SetBoundaryTypePolygonOp( aModule );
+    break;
   case LandCoverScalarMapModeOnId:
   case LandCoverScalarMapModeOffId:
     anOp = new HYDROGUI_LandCoverColoringOp( aModule, theId );