QFrame* aFrame = new QFrame( aPage );
QGridLayout* aLayout = new QGridLayout( aPage );
+
+ QLabel* aResultsOnGeomObjectsLabel = new QLabel( tr( "RESULTS_ON_GEOMETRY_OBJECTS" ), aFrame );
myBrowser = new HYDROGUI_DataBrowser( module(), NULL, aPage );
myBrowser->setAutoOpenLevel( 3 );
aLayout->setMargin( 5 );
aLayout->setSpacing( 5 );
- aLayout->addWidget( myBrowser, 0, 0, 1, 2 );
+ aLayout->addWidget( aResultsOnGeomObjectsLabel, 0, 0 );
+ aLayout->addWidget( myBrowser, 1, 0, 1, 2 );
myBathymetryLabel = new QLabel( tr( "BATHYMETRY" ), aFrame );
myBathymetryChoice = new QComboBox( aFrame );
myBathymetryChoice->setVisible( false );
myBathymetryLabel->setVisible( false );
- aLayout->addWidget( myBathymetryLabel, 1, 0 );
- aLayout->addWidget( myBathymetryChoice, 1, 1 );
+ aLayout->addWidget( myBathymetryLabel, 2, 0 );
+ aLayout->addWidget( myBathymetryChoice, 2, 1 );
aPage->setLayout( aLayout );
QGridLayout* aLayout = new QGridLayout( aPage );
+ QLabel* aResultsOnLandCoversLabel = new QLabel( tr( "RESULTS_ON_LAND_COVERS" ), aFrame );
+
myLandCoverBrowser = new HYDROGUI_DataBrowser( module(), NULL, aPage, true );
myLandCoverBrowser->setAutoOpenLevel( 3 );
aLayout->setMargin( 5 );
aLayout->setSpacing( 5 );
- aLayout->addWidget( myLandCoverBrowser, 0, 0, 1, 2 );
+ aLayout->addWidget( aResultsOnLandCoversLabel, 0, 0 );
+ aLayout->addWidget( myLandCoverBrowser, 1, 0, 1, 2 );
myStricklerTypeLabel = new QLabel( tr( "STRICKLER_TYPE" ), aFrame );
myStricklerTypeChoice = new QComboBox( aFrame );
myStricklerTypeLabel->setVisible( false );
myStricklerTypeChoice->setVisible( false );
- aLayout->addWidget( myStricklerTypeLabel, 1, 0 );
- aLayout->addWidget( myStricklerTypeChoice, 1, 1 );
+ aLayout->addWidget( myStricklerTypeLabel, 2, 0 );
+ aLayout->addWidget( myStricklerTypeChoice, 2, 1 );
aPage->setLayout( aLayout );
QString aName;
for ( ; anIter.More(); anIter.Next() )
{
+ aName.clear();
Handle(HYDROData_Object) aRefGeomObj =
Handle(HYDROData_Object)::DownCast( anIter.Value() );
if ( !aRefGeomObj.IsNull() )
aRes = aName;
break;
}
-
- if ( !aNamesSet.contains( aName ) )
+ }
+ }
+ else
+ {
+ Handle(HYDROData_LandCover) aRefLandCoverObj =
+ Handle(HYDROData_LandCover)::DownCast( anIter.Value() );
+ if ( !aRefLandCoverObj.IsNull() )
+ {
+ // Get name of land cover object
+ aName = aRefLandCoverObj->GetName();
+ if ( !isMergingNeed )
{
- aRes += aName + ", ";
- aNamesSet.insert( aName );
+ // Get the first land cover object's altitude name and go out
+ aRes = aName;
+ break;
}
- }
+ }
+ }
+
+ if ( !aName.isEmpty() && !aNamesSet.contains( aName ) )
+ {
+ aRes += aName + ", ";
+ aNamesSet.insert( aName );
}
}
// Remove the last comma if necessary
<source>STRICKLER_TYPE</source>
<translation>Strickler type from land cover</translation>
</message>
+ <message>
+ <source>RESULTS_ON_GEOMETRY_OBJECTS</source>
+ <translation>Results on geometry objects</translation>
+ </message>
+ <message>
+ <source>RESULTS_ON_LAND_COVERS</source>
+ <translation>Results on land covers</translation>
+ </message>
</context>
<context>
<translation>Altitude.Object</translation>
</message>
<message>
- <source>STRICKLER_TABLE_COLUMN</source>
- <translation>Strickler table</translation>
+ <source>LAND_COVER_COLUMN</source>
+ <translation>Land cover</translation>
</message>
<message>
<source>ZONE_TO_NEW_REGION</source>