PAL9878 - selection lost after operation

This commit is contained in:
asl 2005-11-11 08:56:51 +00:00
parent 8db6ce0cb0
commit 2f652b3784
9 changed files with 13 additions and 13 deletions

View File

@ -457,7 +457,7 @@ void SMESHGUI_AddMeshElementDlg::ClickOnApply()
} }
SALOME_ListIO aList; aList.Append( myActor->getIO() ); SALOME_ListIO aList; aList.Append( myActor->getIO() );
mySelector->ClearIndex(); //mySelector->ClearIndex();
mySelectionMgr->setSelectedObjects( aList, false ); mySelectionMgr->setSelectedObjects( aList, false );
SMESH::UpdateView(); SMESH::UpdateView();
@ -489,7 +489,7 @@ void SMESHGUI_AddMeshElementDlg::ClickOnOk()
//================================================================================= //=================================================================================
void SMESHGUI_AddMeshElementDlg::ClickOnCancel() void SMESHGUI_AddMeshElementDlg::ClickOnCancel()
{ {
mySelectionMgr->clearSelected(); //mySelectionMgr->clearSelected();
mySimulation->SetVisibility(false); mySimulation->SetVisibility(false);
SMESH::SetPointRepresentation(false); SMESH::SetPointRepresentation(false);
if ( SVTK_ViewWindow* aViewWindow = SMESH::GetViewWindow( mySMESHGUI )) if ( SVTK_ViewWindow* aViewWindow = SMESH::GetViewWindow( mySMESHGUI ))

View File

@ -639,7 +639,7 @@ bool SMESHGUI_ExtrusionAlongPathDlg::ClickOnApply()
return false; return false;
} }
mySelectionMgr->clearSelected(); //mySelectionMgr->clearSelected();
SMESH::UpdateView(); SMESH::UpdateView();
Init(false); Init(false);
ConstructorsClicked(GetConstructorId()); ConstructorsClicked(GetConstructorId());
@ -664,7 +664,7 @@ void SMESHGUI_ExtrusionAlongPathDlg::reject()
{ {
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

@ -411,7 +411,7 @@ void SMESHGUI_ExtrusionDlg::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

@ -335,7 +335,7 @@ bool SMESHGUI_MergeNodesDlg::ClickOnApply()
} catch(...) { } catch(...) {
} }
mySelectionMgr->clearSelected(); //mySelectionMgr->clearSelected();
SMESH::UpdateView(); SMESH::UpdateView();
onDetect(); onDetect();
@ -359,7 +359,7 @@ void SMESHGUI_MergeNodesDlg::ClickOnOk()
void SMESHGUI_MergeNodesDlg::ClickOnCancel() void SMESHGUI_MergeNodesDlg::ClickOnCancel()
{ {
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

@ -285,7 +285,7 @@ void SMESHGUI_RemoveElementsDlg::ClickOnOk()
//================================================================================= //=================================================================================
void SMESHGUI_RemoveElementsDlg::ClickOnCancel() void SMESHGUI_RemoveElementsDlg::ClickOnCancel()
{ {
mySelectionMgr->clearSelected(); //mySelectionMgr->clearSelected();
if ( SVTK_ViewWindow* aViewWindow = SMESH::GetViewWindow( mySMESHGUI )) if ( SVTK_ViewWindow* aViewWindow = SMESH::GetViewWindow( mySMESHGUI ))
aViewWindow->SetSelectionMode(ActorSelection); aViewWindow->SetSelectionMode(ActorSelection);
disconnect(mySelectionMgr, 0, this, 0); disconnect(mySelectionMgr, 0, this, 0);

View File

@ -288,7 +288,7 @@ void SMESHGUI_RemoveNodesDlg::ClickOnOk()
//================================================================================= //=================================================================================
void SMESHGUI_RemoveNodesDlg::ClickOnCancel() void SMESHGUI_RemoveNodesDlg::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

@ -274,7 +274,7 @@ void SMESHGUI_RenumberingDlg::ClickOnApply()
{ {
} }
mySelectionMgr->clearSelected(); //mySelectionMgr->clearSelected();
SMESH::UpdateView(); SMESH::UpdateView();
} }
} }
@ -295,7 +295,7 @@ void SMESHGUI_RenumberingDlg::ClickOnOk()
//================================================================================= //=================================================================================
void SMESHGUI_RenumberingDlg::ClickOnCancel() void SMESHGUI_RenumberingDlg::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

@ -495,7 +495,7 @@ void SMESHGUI_RevolutionDlg::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

@ -473,7 +473,7 @@ void SMESHGUI_TranslationDlg::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 );