PAL8978 - selection is lost after some operations

This commit is contained in:
asl 2005-11-23 12:08:49 +00:00
parent 4d423efd78
commit 25c935e78a
9 changed files with 11 additions and 11 deletions

View File

@ -199,7 +199,7 @@ void SMESHGUI_EditMeshDlg::ClickOnApply()
} catch(...) { } catch(...) {
} }
mySelectionMgr->clearSelected(); //mySelectionMgr->clearSelected();
SMESH::UpdateView(); SMESH::UpdateView();
} }
} }
@ -220,7 +220,7 @@ void SMESHGUI_EditMeshDlg::ClickOnOk()
//================================================================================= //=================================================================================
void SMESHGUI_EditMeshDlg::ClickOnCancel() void SMESHGUI_EditMeshDlg::ClickOnCancel()
{ {
mySelectionMgr->clearSelected(); //mySelectionMgr->clearSelected();
mySelectionMgr->clearFilters(); mySelectionMgr->clearFilters();
disconnect(mySelectionMgr, 0, this, 0); disconnect(mySelectionMgr, 0, this, 0);
mySMESHGUI->ResetState(); mySMESHGUI->ResetState();

View File

@ -414,7 +414,7 @@ bool SMESHGUI_MeshPatternDlg::onApply()
bool toCreatePolygons = myCreatePolygonsChk->isChecked(); bool toCreatePolygons = myCreatePolygonsChk->isChecked();
bool toCreatePolyedrs = myCreatePolyedrsChk->isChecked(); bool toCreatePolyedrs = myCreatePolyedrsChk->isChecked();
if ( myPattern->MakeMesh( myMesh, toCreatePolygons, toCreatePolyedrs ) ) { if ( myPattern->MakeMesh( myMesh, toCreatePolygons, toCreatePolyedrs ) ) {
mySelectionMgr->clearSelected(); //mySelectionMgr->clearSelected();
bool autoUpdate = SMESHGUI::automaticUpdate(); bool autoUpdate = SMESHGUI::automaticUpdate();
if (!isRefine() && autoUpdate) { if (!isRefine() && autoUpdate) {
_PTR(SObject) aSO = SMESH::FindSObject(myMesh.in()); _PTR(SObject) aSO = SMESH::FindSObject(myMesh.in());

View File

@ -322,7 +322,7 @@ void SMESHGUI_MoveNodesDlg::onOk()
//======================================================================= //=======================================================================
void SMESHGUI_MoveNodesDlg::onClose() void SMESHGUI_MoveNodesDlg::onClose()
{ {
mySelectionMgr->clearSelected(); //mySelectionMgr->clearSelected();
SMESH::SetPointRepresentation(false); SMESH::SetPointRepresentation(false);
if ( SVTK_ViewWindow* aViewWindow = SMESH::GetViewWindow( mySMESHGUI )) if ( SVTK_ViewWindow* aViewWindow = SMESH::GetViewWindow( mySMESHGUI ))
aViewWindow->SetSelectionMode(ActorSelection); aViewWindow->SetSelectionMode(ActorSelection);

View File

@ -438,7 +438,7 @@ void SMESHGUI_MultiEditDlg::onClose()
SMESH::RemoveFilters(); SMESH::RemoveFilters();
SMESH::SetPickable(); SMESH::SetPickable();
mySelectionMgr->clearSelected(); //mySelectionMgr->clearSelected();
mySelectionMgr->clearFilters(); mySelectionMgr->clearFilters();
reject(); reject();
@ -942,7 +942,7 @@ bool SMESHGUI_MultiEditDlg::onApply()
bool aResult = process(aMeshEditor, anIds.inout()); bool aResult = process(aMeshEditor, anIds.inout());
if (aResult) { if (aResult) {
if (myActor) { if (myActor) {
mySelectionMgr->clearSelected(); //mySelectionMgr->clearSelected();
SMESH::UpdateView(); SMESH::UpdateView();
} }

View File

@ -448,7 +448,7 @@ void SMESHGUI_RotationDlg::ClickOnCancel()
{ {
disconnect(mySelectionMgr, 0, this, 0); disconnect(mySelectionMgr, 0, this, 0);
mySelectionMgr->clearFilters(); mySelectionMgr->clearFilters();
mySelectionMgr->clearSelected(); //mySelectionMgr->clearSelected();
SMESH::SetPointRepresentation(false); SMESH::SetPointRepresentation(false);
if ( SVTK_ViewWindow* aViewWindow = SMESH::GetViewWindow( mySMESHGUI )) if ( SVTK_ViewWindow* aViewWindow = SMESH::GetViewWindow( mySMESHGUI ))
aViewWindow->SetSelectionMode(ActorSelection); aViewWindow->SetSelectionMode(ActorSelection);

View File

@ -593,7 +593,7 @@ void SMESHGUI_SewingDlg::ClickOnOk()
//================================================================================= //=================================================================================
void SMESHGUI_SewingDlg::ClickOnCancel() void SMESHGUI_SewingDlg::ClickOnCancel()
{ {
mySelectionMgr->clearSelected(); //mySelectionMgr->clearSelected();
SMESH::SetPointRepresentation(false); SMESH::SetPointRepresentation(false);
if ( SVTK_ViewWindow* aViewWindow = SMESH::GetViewWindow( mySMESHGUI )) if ( SVTK_ViewWindow* aViewWindow = SMESH::GetViewWindow( mySMESHGUI ))
aViewWindow->SetSelectionMode(ActorSelection); aViewWindow->SetSelectionMode(ActorSelection);

View File

@ -264,7 +264,7 @@ void SMESHGUI_SingleEditDlg::onClose()
{ {
if ( SVTK_ViewWindow* aViewWindow = SMESH::GetViewWindow( mySMESHGUI )) if ( SVTK_ViewWindow* aViewWindow = SMESH::GetViewWindow( mySMESHGUI ))
aViewWindow->SetSelectionMode(ActorSelection); aViewWindow->SetSelectionMode(ActorSelection);
mySelectionMgr->clearSelected(); //mySelectionMgr->clearSelected();
disconnect(mySelectionMgr, 0, this, 0); disconnect(mySelectionMgr, 0, this, 0);
disconnect(mySMESHGUI, 0, this, 0); disconnect(mySMESHGUI, 0, this, 0);
mySMESHGUI->ResetState(); mySMESHGUI->ResetState();

View File

@ -421,7 +421,7 @@ void SMESHGUI_SmoothingDlg::ClickOnCancel()
{ {
disconnect(mySelectionMgr, 0, this, 0); disconnect(mySelectionMgr, 0, this, 0);
mySelectionMgr->clearFilters(); mySelectionMgr->clearFilters();
mySelectionMgr->clearSelected(); //mySelectionMgr->clearSelected();
SMESH::SetPickable(); // ??? SMESH::SetPickable(); // ???
SMESH::SetPointRepresentation(false); SMESH::SetPointRepresentation(false);
if ( SVTK_ViewWindow* aViewWindow = SMESH::GetViewWindow( mySMESHGUI )) if ( SVTK_ViewWindow* aViewWindow = SMESH::GetViewWindow( mySMESHGUI ))

View File

@ -511,7 +511,7 @@ void SMESHGUI_SymmetryDlg::ClickOnCancel()
{ {
disconnect(mySelectionMgr, 0, this, 0); disconnect(mySelectionMgr, 0, this, 0);
mySelectionMgr->clearFilters(); mySelectionMgr->clearFilters();
mySelectionMgr->clearSelected(); //mySelectionMgr->clearSelected();
SMESH::SetPointRepresentation(false); SMESH::SetPointRepresentation(false);
if ( SVTK_ViewWindow* aViewWindow = SMESH::GetViewWindow( mySMESHGUI )) if ( SVTK_ViewWindow* aViewWindow = SMESH::GetViewWindow( mySMESHGUI ))
aViewWindow->SetSelectionMode(ActorSelection); aViewWindow->SetSelectionMode(ActorSelection);