]> SALOME platform Git repositories - modules/hydro.git/commitdiff
Salome HOME
refs #567: add "POLYLINES" partition and modified icon for Land Cover object.
authormzn <mzn@opencascade.com>
Mon, 22 Jun 2015 11:54:56 +0000 (14:54 +0300)
committermzn <mzn@opencascade.com>
Mon, 22 Jun 2015 11:54:56 +0000 (14:54 +0300)
src/HYDROGUI/HYDROGUI_DataModel.cxx
src/HYDROGUI/resources/HYDROGUI_images.ts
src/HYDROGUI/resources/HYDROGUI_msg_en.ts
src/HYDROGUI/resources/icon_mland_cover.png [new file with mode: 0644]

index ffc6dd52814b8f76b5200be8d2344e109b1b0e68..6255c5e5a2548e9c10aff48adf998b887a11c9c2 100644 (file)
@@ -1071,6 +1071,15 @@ void HYDROGUI_DataModel::buildObjectTree( SUIT_DataObject* theParent,
       createObject( aGuiObj, aBottomPolyline, aGuiObj->entry(), false );
     }
   }
+  else if ( anObjectKind == KIND_LAND_COVER )
+  {
+    Handle(HYDROData_LandCover) aLandCoverObj =
+      Handle(HYDROData_LandCover)::DownCast( aDataObj );
+
+    HYDROData_SequenceOfObjects aPolylines = aLandCoverObj->GetPolylines();
+    buildObjectPartition( aGuiObj, aPolylines, tr( "LAND_COVER_POLYLINES" ), true );
+  }
+  
 }
 
 void HYDROGUI_DataModel::buildCaseTree( SUIT_DataObject* theParent, Handle(HYDROData_CalculationCase) theCase,
index 6123c89a21528242108546c28c55582ed3547641..a93cf4f85de250ad8208f5e0752b7ca30311c27a 100644 (file)
       <source>HYDRO_M_TYPE20_ICO</source>
       <translation>icon_mhydro_obj.png</translation>
     </message>
+    <message>
+      <source>HYDRO_M_TYPE27_ICO</source>
+      <translation>icon_mland_cover.png</translation>
+    </message>  
 
     <!-- Operations icons -->
     <message>
index 6c1803c9db11450db26ab94889fe3735008e4db6..4a368a574ce6da0038ab5fda767ed0ca6fa382a4 100644 (file)
@@ -277,6 +277,10 @@ All supported formats (*.brep *.iges *.igs *.step *.stp)</translation>
       <source>STRICKLER_TABLE_FILTER</source>
       <translation>Strickler table files (*.txt);;All files (*.* *)</translation>
     </message>
+    <message>
+      <source>LAND_COVER_POLYLINES</source>
+      <translation>Polylines</translation>
+    </message>
   </context>
 
   <context>
diff --git a/src/HYDROGUI/resources/icon_mland_cover.png b/src/HYDROGUI/resources/icon_mland_cover.png
new file mode 100644 (file)
index 0000000..9607f7c
Binary files /dev/null and b/src/HYDROGUI/resources/icon_mland_cover.png differ