From: nds Date: Wed, 25 Dec 2013 16:00:03 +0000 (+0000) Subject: Refs #288 - the profile section selected and addition mode is activated X-Git-Tag: BR_hydro_v_0_7~56 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=8c36538920c44b66924b596a8d2c8a10bab9b7e5;p=modules%2Fhydro.git Refs #288 - the profile section selected and addition mode is activated --- diff --git a/src/HYDROGUI/HYDROGUI_GeoreferencementDlg.cxx b/src/HYDROGUI/HYDROGUI_GeoreferencementDlg.cxx index 35be05cd..7bb035f0 100644 --- a/src/HYDROGUI/HYDROGUI_GeoreferencementDlg.cxx +++ b/src/HYDROGUI/HYDROGUI_GeoreferencementDlg.cxx @@ -24,7 +24,7 @@ #include "HYDROGUI_Tool.h" -#include +#include #include #include @@ -309,8 +309,8 @@ void HYDROGUI_GeoreferencementDlg::onMousePress( // Get the selected point coordinates OCCViewer_ViewPort3d* aViewPort = anOCCViewWindow->getViewPort(); - gp_Pnt aPnt = GEOMUtils::ConvertClickToPoint( theEvent->x(), theEvent->y(), - aViewPort->getView() ); + gp_Pnt aPnt = CurveCreator_Utils::ConvertClickToPoint( theEvent->x(), theEvent->y(), + aViewPort->getView() ); // Set the coordinates to the corresponding cells of the table int aColumnX = aColumn < 3 ? 1 : 3; diff --git a/src/HYDROGUI/HYDROGUI_ProfileDlg.cxx b/src/HYDROGUI/HYDROGUI_ProfileDlg.cxx index 9c10ea4a..611e888f 100644 --- a/src/HYDROGUI/HYDROGUI_ProfileDlg.cxx +++ b/src/HYDROGUI/HYDROGUI_ProfileDlg.cxx @@ -27,6 +27,7 @@ #include #include +#include #include #include @@ -37,8 +38,6 @@ #include #include -#include - #include #include #include @@ -204,7 +203,7 @@ void HYDROGUI_ProfileDlg::onMouseMove( SUIT_ViewWindow* theViewWindow, QMouseEve OCCViewer_ViewWindow* anOCCViewWindow = dynamic_cast(theViewWindow); if ( anOCCViewWindow && anOCCViewWindow->getViewPort() ) { - gp_Pnt aPnt = GEOMUtils::ConvertClickToPoint( + gp_Pnt aPnt = CurveCreator_Utils::ConvertClickToPoint( theEvent->x(), theEvent->y(), anOCCViewWindow->getViewPort()->getView() ); // Show the coordinates