mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-11-15 10:08:34 +05:00
untabify
This commit is contained in:
parent
52be03b564
commit
cb58ff9fa4
@ -2571,36 +2571,36 @@ bool SMESHGUI::OnGUIEvent( int theCommandID )
|
|||||||
if(checkLock(aStudy)) break;
|
if(checkLock(aStudy)) break;
|
||||||
SALOME_ListIO selected;
|
SALOME_ListIO selected;
|
||||||
if( LightApp_SelectionMgr *aSel = SMESHGUI::selectionMgr() )
|
if( LightApp_SelectionMgr *aSel = SMESHGUI::selectionMgr() )
|
||||||
aSel->selectedObjects( selected );
|
aSel->selectedObjects( selected );
|
||||||
if ( selected.Extent() == 1 ) {
|
if ( selected.Extent() == 1 ) {
|
||||||
Handle(SALOME_InteractiveObject) anIO = selected.First();
|
Handle(SALOME_InteractiveObject) anIO = selected.First();
|
||||||
SMESH::SMESH_Mesh_var aMesh = SMESH::GetMeshByIO(anIO);
|
SMESH::SMESH_Mesh_var aMesh = SMESH::GetMeshByIO(anIO);
|
||||||
if ( !aMesh->_is_nil() ) {
|
if ( !aMesh->_is_nil() ) {
|
||||||
bool confirm = SUIT_MessageBox::question( SMESHGUI::desktop(),
|
bool confirm = SUIT_MessageBox::question( SMESHGUI::desktop(),
|
||||||
tr( "SMESH_WARNING" ),
|
tr( "SMESH_WARNING" ),
|
||||||
tr( "REMOVE_ORPHAN_NODES_QUESTION"),
|
tr( "REMOVE_ORPHAN_NODES_QUESTION"),
|
||||||
SUIT_MessageBox::Yes |
|
SUIT_MessageBox::Yes |
|
||||||
SUIT_MessageBox::No,
|
SUIT_MessageBox::No,
|
||||||
SUIT_MessageBox::No ) == SUIT_MessageBox::Yes;
|
SUIT_MessageBox::No ) == SUIT_MessageBox::Yes;
|
||||||
if( confirm ) {
|
if( confirm ) {
|
||||||
try {
|
try {
|
||||||
SMESH::SMESH_MeshEditor_var aMeshEditor = aMesh->GetMeshEditor();
|
SMESH::SMESH_MeshEditor_var aMeshEditor = aMesh->GetMeshEditor();
|
||||||
int removed = aMeshEditor->RemoveOrphanNodes();
|
int removed = aMeshEditor->RemoveOrphanNodes();
|
||||||
SUIT_MessageBox::information(SMESHGUI::desktop(),
|
SUIT_MessageBox::information(SMESHGUI::desktop(),
|
||||||
tr("SMESH_INFORMATION"),
|
tr("SMESH_INFORMATION"),
|
||||||
tr("NB_NODES_REMOVED").arg(removed));
|
tr("NB_NODES_REMOVED").arg(removed));
|
||||||
if ( removed > 0 ) {
|
if ( removed > 0 ) {
|
||||||
SMESH::UpdateView();
|
SMESH::UpdateView();
|
||||||
SMESHGUI::Modified();
|
SMESHGUI::Modified();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
catch (const SALOME::SALOME_Exception& S_ex) {
|
catch (const SALOME::SALOME_Exception& S_ex) {
|
||||||
SalomeApp_Tools::QtCatchCorbaException(S_ex);
|
SalomeApp_Tools::QtCatchCorbaException(S_ex);
|
||||||
}
|
}
|
||||||
catch (...) {
|
catch (...) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user