From: nds Date: Fri, 26 Dec 2014 14:18:18 +0000 (+0300) Subject: The local selection restore for a feature vertex (it is checked on the line feature) X-Git-Tag: V_0.7.0_rc1~40^2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=7bd02d2e88bb0080a7f67c4d30c7ba3d31f1b8a6;p=modules%2Fshaper.git The local selection restore for a feature vertex (it is checked on the line feature) It commits the previous functionality, because the LenghtConstraint digit is disappeared with it. --- diff --git a/src/PartSet/PartSet_SketcherMgr.cpp b/src/PartSet/PartSet_SketcherMgr.cpp index 01e0fa98e..edc27e0b7 100644 --- a/src/PartSet/PartSet_SketcherMgr.cpp +++ b/src/PartSet/PartSet_SketcherMgr.cpp @@ -270,7 +270,7 @@ void PartSet_SketcherMgr::onMouseMoved(ModuleBase_IViewWindow* theWnd, QMouseEve std::dynamic_pointer_cast(aFeature); if (aSketchFeature) { // save the previous selection - ModuleBase_IWorkshop* aWorkshop = myModule->workshop(); + /*ModuleBase_IWorkshop* aWorkshop = myModule->workshop(); XGUI_ModuleConnector* aConnector = dynamic_cast(aWorkshop); XGUI_Displayer* aDisplayer = aConnector->workshop()->displayer(); QIntList anActivatedModes; @@ -280,13 +280,13 @@ void PartSet_SketcherMgr::onMouseMoved(ModuleBase_IViewWindow* theWnd, QMouseEve aDisplayer->getModesOfActivation(aResult, anActivatedModes); std::list aSelectedAttributes; - getCurrentSelection(aSketchFeature, myCurrentSketch, aWorkshop, aSelectedAttributes); + getCurrentSelection(aSketchFeature, myCurrentSketch, aWorkshop, aSelectedAttributes);*/ // save the previous selection: end aSketchFeature->move(dX, dY); ModelAPI_EventCreator::get()->sendUpdated(aSketchFeature, anEvent); - + /* // TODO: the selection restore should be after the AIS presentation is rebuilt Events_Loop::loop()->flush(Events_Loop::eventByName(EVENT_OBJECT_MOVED)); Events_Loop::loop()->flush(Events_Loop::eventByName(EVENT_OBJECT_UPDATED)); @@ -305,12 +305,12 @@ void PartSet_SketcherMgr::onMouseMoved(ModuleBase_IViewWindow* theWnd, QMouseEve aContext->AddOrRemoveSelected(anOwnersToSelect(i), false); // SetSelected() aContext->UpdateCurrentViewer(); - // restore the previous selection + // restore the previous selection*/ } } // TODO: set here - //Events_Loop::loop()->flush(Events_Loop::eventByName(EVENT_OBJECT_MOVED)); - //Events_Loop::loop()->flush(Events_Loop::eventByName(EVENT_OBJECT_UPDATED)); + Events_Loop::loop()->flush(Events_Loop::eventByName(EVENT_OBJECT_MOVED)); + Events_Loop::loop()->flush(Events_Loop::eventByName(EVENT_OBJECT_UPDATED)); } myDragDone = true; myCurX = aX;