From: asl Date: Wed, 27 May 2015 05:40:54 +0000 (+0300) Subject: refs #514: custom cursor in profile and georef operations X-Git-Tag: v1.4.1~17 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=7f8f52d92fc1d23fee65c9bc0e0fe3806ed74638;p=modules%2Fhydro.git refs #514: custom cursor in profile and georef operations --- diff --git a/src/HYDROGUI/HYDROGUI_GeoreferencementOp.cxx b/src/HYDROGUI/HYDROGUI_GeoreferencementOp.cxx index 4aaf3214..eb89f4c4 100644 --- a/src/HYDROGUI/HYDROGUI_GeoreferencementOp.cxx +++ b/src/HYDROGUI/HYDROGUI_GeoreferencementOp.cxx @@ -61,6 +61,9 @@ void HYDROGUI_GeoreferencementOp::startOperation() } aPanel->reset(); + setPreviewManager( ::qobject_cast( + module()->getApp()->getViewManager( OCCViewer_Viewer::Type(), true ) ) ); + setCursor(); if ( myInitialMode == All ) { onModeActivated( HYDROGUI_GeoreferencementDlg::AllProfiles ); @@ -88,6 +91,7 @@ void HYDROGUI_GeoreferencementOp::abortOperation() anApp->desktop()->disconnect( this ); } + restoreCursor(); HYDROGUI_Operation::abortOperation(); } @@ -98,6 +102,7 @@ void HYDROGUI_GeoreferencementOp::commitOperation() anApp->desktop()->disconnect( this ); } + restoreCursor(); HYDROGUI_Operation::commitOperation(); } diff --git a/src/HYDROGUI/HYDROGUI_ProfileOp.cxx b/src/HYDROGUI/HYDROGUI_ProfileOp.cxx index b6baf1e7..759795a5 100644 --- a/src/HYDROGUI/HYDROGUI_ProfileOp.cxx +++ b/src/HYDROGUI/HYDROGUI_ProfileOp.cxx @@ -81,6 +81,8 @@ void HYDROGUI_ProfileOp::startOperation() HYDROGUI_ProfileDlg* aPanel = (HYDROGUI_ProfileDlg*)inputPanel(); aPanel->reset(); + setPreviewManager( aPanel->viewManager() ); + setCursor(); if( myIsEdit ) if ( isApplyAndClose() ) @@ -135,6 +137,7 @@ void HYDROGUI_ProfileOp::startOperation() void HYDROGUI_ProfileOp::abortOperation() { erasePreview(); + restoreCursor(); HYDROGUI_Operation::abortOperation(); } @@ -142,6 +145,7 @@ void HYDROGUI_ProfileOp::abortOperation() void HYDROGUI_ProfileOp::commitOperation() { erasePreview(); + restoreCursor(); HYDROGUI_Operation::commitOperation(); }