From: mzn Date: Mon, 22 Jun 2015 11:54:56 +0000 (+0300) Subject: refs #567: add "POLYLINES" partition and modified icon for Land Cover object. X-Git-Tag: v1.4.2~48^2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=53641ec32e8a7e7d3afe059ef050e1c42d2c83b6;p=modules%2Fhydro.git refs #567: add "POLYLINES" partition and modified icon for Land Cover object. --- diff --git a/src/HYDROGUI/HYDROGUI_DataModel.cxx b/src/HYDROGUI/HYDROGUI_DataModel.cxx index ffc6dd52..6255c5e5 100644 --- a/src/HYDROGUI/HYDROGUI_DataModel.cxx +++ b/src/HYDROGUI/HYDROGUI_DataModel.cxx @@ -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, diff --git a/src/HYDROGUI/resources/HYDROGUI_images.ts b/src/HYDROGUI/resources/HYDROGUI_images.ts index 6123c89a..a93cf4f8 100644 --- a/src/HYDROGUI/resources/HYDROGUI_images.ts +++ b/src/HYDROGUI/resources/HYDROGUI_images.ts @@ -235,6 +235,10 @@ HYDRO_M_TYPE20_ICO icon_mhydro_obj.png + + HYDRO_M_TYPE27_ICO + icon_mland_cover.png + diff --git a/src/HYDROGUI/resources/HYDROGUI_msg_en.ts b/src/HYDROGUI/resources/HYDROGUI_msg_en.ts index 6c1803c9..4a368a57 100644 --- a/src/HYDROGUI/resources/HYDROGUI_msg_en.ts +++ b/src/HYDROGUI/resources/HYDROGUI_msg_en.ts @@ -277,6 +277,10 @@ All supported formats (*.brep *.iges *.igs *.step *.stp) STRICKLER_TABLE_FILTER Strickler table files (*.txt);;All files (*.* *) + + LAND_COVER_POLYLINES + Polylines + diff --git a/src/HYDROGUI/resources/icon_mland_cover.png b/src/HYDROGUI/resources/icon_mland_cover.png new file mode 100644 index 00000000..9607f7c0 Binary files /dev/null and b/src/HYDROGUI/resources/icon_mland_cover.png differ