]> SALOME platform Git repositories - modules/hydro.git/commitdiff
Salome HOME
refs #514: custom cursor in profile and georef operations
authorasl <asl@opencascade.com>
Wed, 27 May 2015 05:40:54 +0000 (08:40 +0300)
committerasl <asl@opencascade.com>
Wed, 27 May 2015 05:40:54 +0000 (08:40 +0300)
src/HYDROGUI/HYDROGUI_GeoreferencementOp.cxx
src/HYDROGUI/HYDROGUI_ProfileOp.cxx

index 4aaf3214fa327a6b7eedce682c0aa51f422160e8..eb89f4c471b89df580dae8eeecf46d1b5ef238c1 100644 (file)
@@ -61,6 +61,9 @@ void HYDROGUI_GeoreferencementOp::startOperation()
   }
 
   aPanel->reset();
+  setPreviewManager( ::qobject_cast<OCCViewer_ViewManager*>( 
+                       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();
 }
 
index b6baf1e715b6d43cf286298409c085a8fbecf059..759795a528cc20c5eb0ae59ae81ab4a971710cb8 100644 (file)
@@ -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();
 }