+ myPreviewPrs->setSelectionMode( AIS_Shape::SelectionMode( TopAbs_FACE ) );
+ }
+
+ if ( mySplitPointPreview )
+ {
+ if ( aCtx->HasOpenedContext() )
+ aCtx->CloseLocalContext();
+ if ( aPanel->GetMode() == HYDROGUI_SplitPolylinesDlg::ByPoint )
+ {
+ if ( !aCtx->IsDisplayed( mySplitPointPreview ) )
+ aCtx->Display( mySplitPointPreview, Standard_False );
+ }
+ else
+ aCtx->Erase( mySplitPointPreview, Standard_False );
+ }
+
+ aCtx->ClearSelected(true);
+ }
+
+ if ( aPanel->GetMode() == HYDROGUI_SplitPolylinesDlg::ByPoint )
+ {
+ disconnect(aViewManager, SIGNAL(mousePress(SUIT_ViewWindow*, QMouseEvent*)),
+ aViewer, SLOT(onMousePress(SUIT_ViewWindow*, QMouseEvent*)));
+ connect(aViewManager, SIGNAL(mousePress(SUIT_ViewWindow*, QMouseEvent*)),
+ this, SLOT(onMousePress(SUIT_ViewWindow*, QMouseEvent*)));
+ }
+ else
+ {
+ disconnect(aViewManager, SIGNAL(mousePress(SUIT_ViewWindow*, QMouseEvent*)),
+ this, SLOT(onMousePress(SUIT_ViewWindow*, QMouseEvent*)));
+ connect(aViewManager, SIGNAL(mousePress(SUIT_ViewWindow*, QMouseEvent*)),
+ aViewer, SLOT(onMousePress(SUIT_ViewWindow*, QMouseEvent*)));