-//=================================================================================
-// function : onTextChanged()
-// purpose :
-//=================================================================================
-void SMESHGUI_AddMeshElementOp::onTextChanged( int, const QStringList& aListId )
-{
- myDlg->setBusy( true );
- TColStd_MapOfInteger newIndices;
- SALOME_ListIO list; selectionMgr()->selectedObjects( list );
- if( list.Extent()==0 )
- return;
-
- SMESH_Actor* anActor = SMESH::FindActorByObject( myMesh.in() );
- if( !anActor )
- return;
-
- SMDS_Mesh* aMesh = anActor->GetObject()->GetMesh();
-
- for (int i = 0; i < aListId.count(); i++)
- if( const SMDS_MeshNode * n = aMesh->FindNode( aListId[ i ].toInt() ) )
- newIndices.Add( n->GetID() );
-
- selector()->AddOrRemoveIndex( list.First(), newIndices, false );
- highlight( list.First(), true, true );
-
- selectionDone();
- myDlg->setBusy( false );
-}
-