From: asl Date: Fri, 26 Jun 2015 08:46:54 +0000 (+0300) Subject: patch for correct compilation after merge X-Git-Tag: v1.4.2~25^2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=849f125b49a415b2f1432d5e0681e875a92fb27d;p=modules%2Fhydro.git patch for correct compilation after merge --- diff --git a/CMake/UsePyQt4EXT.cmake b/CMake/UsePyQt4EXT.cmake index 67d1e84d..c85230fe 100644 --- a/CMake/UsePyQt4EXT.cmake +++ b/CMake/UsePyQt4EXT.cmake @@ -174,6 +174,9 @@ MACRO(PYQT4_WRAP_SIP_EXT outfiles) LIST(APPEND _output ${CMAKE_CURRENT_BINARY_DIR}/sipHYDROPyNCollection_Sequence0100TCollection_AsciiString.cc) SET(${outfiles} ${${outfiles}} ${CMAKE_CURRENT_BINARY_DIR}/sipHYDROPyNCollection_Sequence0100TCollection_AsciiString.cc) + + LIST(APPEND _output ${CMAKE_CURRENT_BINARY_DIR}/sipHYDROPyHYDROData_StricklerTable.cc) + SET(${outfiles} ${${outfiles}} ${CMAKE_CURRENT_BINARY_DIR}/sipHYDROPyHYDROData_StricklerTable.cc) ADD_CUSTOM_COMMAND( OUTPUT ${_output} diff --git a/src/HYDROData/HYDROData_StricklerTable.cxx b/src/HYDROData/HYDROData_StricklerTable.cxx index 564b65f1..d3ef0b86 100644 --- a/src/HYDROData/HYDROData_StricklerTable.cxx +++ b/src/HYDROData/HYDROData_StricklerTable.cxx @@ -161,11 +161,12 @@ QStringList HYDROData_StricklerTable::GetTypes() const return aSeq; } -bool HYDROData_StricklerTable::HasType( const TCollection_ExtendedString& theType ) const +bool HYDROData_StricklerTable::HasType( const QString& theType ) const { Handle(TDataStd_NamedData) aMap = Map(); - return !aMap.IsNull() && aMap->HasReal( theType ); + TCollection_ExtendedString aType = toExtString( theType ); + return !aMap.IsNull() && aMap->HasReal( aType ); } void HYDROData_StricklerTable::Clear() diff --git a/src/HYDROData/HYDROData_StricklerTable.h b/src/HYDROData/HYDROData_StricklerTable.h index 080422ed..76a7241e 100644 --- a/src/HYDROData/HYDROData_StricklerTable.h +++ b/src/HYDROData/HYDROData_StricklerTable.h @@ -54,8 +54,7 @@ public: HYDRODATA_EXPORT QStringList GetTypes() const; HYDRODATA_EXPORT void GetCoefficientRange( double& theMin, double& theMax ) const; - - HYDRODATA_EXPORT bool HasType( const TCollection_ExtendedString& theType ) const; + HYDRODATA_EXPORT bool HasType( const QString& theType ) const; HYDRODATA_EXPORT void Clear(); diff --git a/src/HYDROGUI/HYDROGUI_Module.cxx b/src/HYDROGUI/HYDROGUI_Module.cxx index 2871e992..0de17dd4 100644 --- a/src/HYDROGUI/HYDROGUI_Module.cxx +++ b/src/HYDROGUI/HYDROGUI_Module.cxx @@ -680,7 +680,7 @@ void HYDROGUI_Module::contextMenuPopup( const QString& theClient, if ( anIsStream || anIsChannel || anIsDigue || anIsObstacle ) { - theMenu->addAction( action( PolylineExtraction ) ); + theMenu->addAction( action( PolylineExtractionId ) ); theMenu->addSeparator(); } diff --git a/src/HYDROGUI/HYDROGUI_OCCDisplayer.cxx b/src/HYDROGUI/HYDROGUI_OCCDisplayer.cxx index 433ce8a6..ccec796f 100644 --- a/src/HYDROGUI/HYDROGUI_OCCDisplayer.cxx +++ b/src/HYDROGUI/HYDROGUI_OCCDisplayer.cxx @@ -435,7 +435,7 @@ void HYDROGUI_OCCDisplayer::UpdateColorScale( const OCCViewer_Viewer* theViewer // Get range Handle(HYDROData_StricklerTable) aTable; - TColStd_SequenceOfExtendedString aTableTypes; + QStringList aTableTypes; if ( isLandCoverColoringOn ) { aTable = module()->getLandCoverColoringTable( aViewerId ); if ( !aTable.IsNull() ) { @@ -519,7 +519,7 @@ void HYDROGUI_OCCDisplayer::UpdateColorScale( const OCCViewer_Viewer* theViewer QColor aColor = isLandCoverColoringOn ? aUndefinedColor : aLandCover->GetFillingColor(); if ( isLandCoverColoringOn && !aTable.IsNull() ) { - TCollection_ExtendedString aStricklerType = + QString aStricklerType = aLandCover->GetStricklerType().toLatin1().constData(); if ( aTable->HasType( aStricklerType ) ) { diff --git a/src/HYDROPy/CMakeLists.txt b/src/HYDROPy/CMakeLists.txt index ffe3b625..0a74efee 100644 --- a/src/HYDROPy/CMakeLists.txt +++ b/src/HYDROPy/CMakeLists.txt @@ -82,12 +82,12 @@ SET(_sip_files2 HYDROData_Confluence.sip HYDROData_River.sip HYDROData_Stream.sip + HYDROData_StricklerTable.sip HYDROData_Image.sip HYDROData_Bathymetry.sip HYDROData_ImmersibleZone.sip HYDROData_Zone.sip HYDROData_Region.sip - HYDROData_StricklerTable.sip HYDROData_CalculationCase.sip HYDROData_Document.sip HYDROData_Application.sip