+ for( Standard_Integer anIndex = 1, aLength = aSeq.Length(); anIndex <= aLength; anIndex++ )
+ {
+ Handle(HYDROData_Entity) anObject = aSeq.Value( anIndex );
+ if( !anObject.IsNull() )
+ {
+ aFullSeq.Append( anObject );
+ aFullNames.append( anObject->GetName() );
+
+ // collect the back-references
+ ObjectKind aKind = anObject->GetKind();
+ if( aKind == KIND_IMAGE || aKind == KIND_POLYLINE )
+ {
+ HYDROData_SequenceOfObjects anObjects;
+ QStringList aNames;
+ HYDROGUI_Tool::GetObjectBackReferences( module(), anObject, anObjects, aNames );
+ aFullSeq.Append( anObjects );
+ aFullNames.append( aNames );
+ }
+ }
+ }
+
+ aFullNames.removeDuplicates();
+ aFullNames.sort();
+
+ QString aList = aFullNames.join( "\n" );