bool anIsRegion = false;
bool anIsZone = false;
bool anIsObstacle = false;
+ bool anIsStricklerTable = false;
+ bool anIsLandCover = false;
bool anIsStream = false;
bool anIsChannel = false;
bool anIsDigue = false;
anIsBathymetry = true;
else if( anObjectKind == KIND_OBSTACLE )
anIsObstacle = true;
+ else if( anObjectKind == KIND_STRICKLER_TABLE )
+ anIsStricklerTable = true;
+ else if( anObjectKind == KIND_LAND_COVER )
+ anIsLandCover = true;
else if( anObjectKind == KIND_STREAM )
{
anIsStream = true;
theMenu->addAction( action( CreateBoxId ) );
theMenu->addAction( action( CreateCylinderId ) );
break;
+ case KIND_STRICKLER_TABLE:
+ theMenu->addAction( action( ImportStricklerTableFromFileId ) );
+ break;
+ case KIND_LAND_COVER:
+ theMenu->addAction( action( CreateLandCoverId ) );
+ break;
case KIND_CALCULATION:
theMenu->addAction( action( CreateCalculationId ) );
break;
theMenu->addAction( action( TranslateObstacleId ) );
theMenu->addSeparator();
}
+ else if( anIsStricklerTable )
+ {
+ theMenu->addAction( action( EditStricklerTableId ) );
+ theMenu->addAction( action( ExportStricklerTableFromFileId ) );
+ theMenu->addAction( action( DuplicateStricklerTableId ) );
+ theMenu->addSeparator();
+ }
+ else if( anIsLandCover )
+ {
+ theMenu->addAction( action( EditLandCoverId ) );
+ theMenu->addSeparator();
+ }
else if( anIsVisualState && anIsObjectBrowser )
{
theMenu->addAction( action( SaveVisualStateId ) );
theMenu->addSeparator();
}
+ if (anIsPolyline || anIsPolyline3D)
+ theMenu->addAction( action( ExportPolylineId ) );
+
// Add copy action
QAction* aCopyAction = action( CopyId );
if( aCopyAction && aCopyAction->isEnabled() ) {
anIsImmersibleZone || anIsZone || anIsRegion ||
anIsBathymetry || anIsObstacle || anIsStream ||
anIsChannel || anIsDigue || anIsDummyObject3D ||
- anIsValidProfile || anIsGroup )
+ anIsValidProfile || anIsGroup || anIsLandCover )
{
if( anIsHiddenInSelection )
theMenu->addAction( action( ShowId ) );
int viewerGroup = addPreference( tr( "PREF_GROUP_VIEWER" ), genTab );
addPreference( tr( "PREF_VIEWER_AUTO_FITALL" ), viewerGroup,
LightApp_Preferences::Bool, "HYDRO", "auto_fit_all" );
+
+ int StricklerTableGroup = addPreference( tr( "PREF_GROUP_STRICKLER_TABLE" ), genTab );
+ int defaultStricklerCoef = addPreference( tr( "PREF_DEFAULT_STRICKLER_COEFFICIENT" ), StricklerTableGroup,
+ LightApp_Preferences::DblSpin, "HYDRO", "default_strickler_coefficient" );
+ setPreferenceProperty( defaultStricklerCoef, "precision", 2 );
+ setPreferenceProperty( defaultStricklerCoef, "min", 0.00 );
+ setPreferenceProperty( defaultStricklerCoef, "max", 1000000.00 );
+ setPreferenceProperty( defaultStricklerCoef, "step", 0.01 );
}
QCursor HYDROGUI_Module::getPrefEditCursor() const