From: dbv Date: Tue, 19 Jan 2016 14:47:39 +0000 (+0300) Subject: TODO cleanup X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=dacf2c53694553eeb8ec47a60594dba302b99771;p=modules%2Fshaper.git TODO cleanup --- diff --git a/src/PartSet/PartSet_SketcherMgr.cpp b/src/PartSet/PartSet_SketcherMgr.cpp index d9d19a2cf..053ef7238 100755 --- a/src/PartSet/PartSet_SketcherMgr.cpp +++ b/src/PartSet/PartSet_SketcherMgr.cpp @@ -396,7 +396,7 @@ void PartSet_SketcherMgr::onMousePressed(ModuleBase_IViewWindow* theWnd, QMouseE myIsDragging = true; get2dPoint(theWnd, theEvent, myCurrentPoint); myDragDone = false; - // TODO: Has to be uncommented when SALOME patch on draw mode become avialable + myPreviousDrawModeEnabled = aViewer->enableDrawMode(false); launchEditing(); if (aFeature.get() != NULL) { @@ -417,7 +417,7 @@ void PartSet_SketcherMgr::onMousePressed(ModuleBase_IViewWindow* theWnd, QMouseE myIsDragging = true; get2dPoint(theWnd, theEvent, myCurrentPoint); myDragDone = false; - // TODO: Has to be uncommented when SALOME patch on draw mode become avialable + myPreviousDrawModeEnabled = aViewer->enableDrawMode(false); // this is temporary commented in order to avoid the following wrong case: @@ -463,9 +463,8 @@ void PartSet_SketcherMgr::onMouseReleased(ModuleBase_IViewWindow* theWnd, QMouse } } } - // TODO: Has to be uncommented when SALOME patch on draw mode become avialable + aWorkshop->viewer()->enableDrawMode(myPreviousDrawModeEnabled); - //aWorkshop->viewer()->enableSelection(myPreviousDrawModeEnabled); myIsDragging = false; } @@ -507,10 +506,6 @@ void PartSet_SketcherMgr::onMouseMoved(ModuleBase_IViewWindow* theWnd, QMouseEve // mouse press signal in the viewer(it call Select for AIS context and the dragged objects are // deselected). This flag should be restored in the slot, processed the mouse release signal. - // TODO: Has to be commented out when SALOME patch on draw mode become avialable - //ModuleBase_IViewer* aViewer = myModule->workshop()->viewer(); - //aViewer->enableSelection(false); - ModuleBase_Operation* aCurrentOperation = getCurrentOperation(); if (!aCurrentOperation) return;