+ QString aProfileName = aProfile->GetName();
+ Standard_Real aProfilePar = 0.0;
+
+ // Check the profile, if all is ok - add it to the list
+ if ( !aProfile->IsValid() )
+ {
+ // check whether the profile is valid
+ anInvalidProfiles << aProfileName;
+ }
+ else if ( aCurrentProfiles.contains( aProfileName ) )
+ {
+ // check whether the profile is already added
+ anExistingProfiles << aProfileName;
+ }
+ else if ( !HYDROData_Stream::HasIntersection( aHydAxis, aProfile, aPlane, aProfilePar ) )
+ {
+ // check whether the profile has intersection
+ aHasNoIntersectionProfiles << aProfileName;
+ }
+ else
+ {
+ // Insert profile in correct place
+ insertProfileInToOrder( aProfileName, aProfilePar, myProfiles, myProfileParams );
+ aVerifiedProfiles << aProfileName;
+ }
+ }
+
+ // Show message box with the ignored profiles
+ if ( !anInvalidProfiles.isEmpty() ||
+ !anExistingProfiles.isEmpty() ||
+ !aHasNoIntersectionProfiles.isEmpty() )
+ {
+ QString aMessage = tr( "IGNORED_PROFILES" );
+ if ( !anInvalidProfiles.isEmpty() )
+ {
+ aMessage.append( "\n\n" );
+ aMessage.append( tr("INVALID_PROFILES").arg( anInvalidProfiles.join( "\n" ) ) );
+ }
+ if ( !anExistingProfiles.isEmpty() )
+ {
+ aMessage.append( "\n\n" );
+ aMessage.append( tr("EXISTING_PROFILES").arg( anExistingProfiles.join( "\n" ) ) );
+ }
+ if ( !aHasNoIntersectionProfiles.isEmpty() )
+ {
+ aMessage.append( "\n\n" );
+ aMessage.append( tr("NOT_INTERSECTED_PROFILES").arg( aHasNoIntersectionProfiles.join( "\n" ) ) );
+ }
+
+ SUIT_MessageBox::warning( module()->getApp()->desktop(), tr( "WARNING" ), aMessage );