Refactor: Start using setUiTreeHidden where missing.

This commit is contained in:
Kristian Bendiksen
2021-10-13 13:39:46 +02:00
committed by Magne Sjaastad
parent 0db0cbe8ac
commit 75fe73ee64
118 changed files with 212 additions and 218 deletions

View File

@@ -115,7 +115,7 @@ RimGeoMechCase::RimGeoMechCase( void )
"",
"",
"All GeoMech Views in the Case" );
geoMechViews.uiCapability()->setUiHidden( true );
geoMechViews.uiCapability()->setUiTreeHidden( true );
CAF_PDM_InitField( &m_cohesion, "CaseCohesion", 10.0, "Cohesion", "", "Used to calculate the SE:SFI result", "" );
CAF_PDM_InitField( &m_frictionAngleDeg,

View File

@@ -34,7 +34,7 @@ RimGeoMechCellColors::RimGeoMechCellColors( void )
{
CAF_PDM_InitFieldNoDefault( &legendConfig, "LegendDefinition", "Color Legend", "", "", "" );
this->legendConfig = new RimRegularLegendConfig();
legendConfig.uiCapability()->setUiHidden( true );
legendConfig.uiCapability()->setUiTreeHidden( true );
legendConfig->changed.connect( this, &RimGeoMechCellColors::onLegendConfigChanged );
}

View File

@@ -37,7 +37,7 @@ RimGeoMechModels::RimGeoMechModels( void )
CAF_PDM_InitObject( "Geomechanical Models", ":/GeoMechCases48x48.png", "", "" );
CAF_PDM_InitFieldNoDefault( &m_cases, "Cases", "", "", "", "" );
m_cases.uiCapability()->setUiHidden( true );
m_cases.uiCapability()->setUiTreeHidden( true );
}
//--------------------------------------------------------------------------------------------------

View File

@@ -88,19 +88,19 @@ RimGeoMechView::RimGeoMechView( void )
CAF_PDM_InitFieldNoDefault( &cellResult, "GridCellResult", "Color Result", ":/CellResult.png", "", "" );
cellResult = new RimGeoMechCellColors();
cellResult.uiCapability()->setUiHidden( true );
cellResult.uiCapability()->setUiTreeHidden( true );
CAF_PDM_InitFieldNoDefault( &m_tensorResults, "TensorResults", "Tensor Results", "", "", "" );
m_tensorResults = new RimTensorResults();
m_tensorResults.uiCapability()->setUiHidden( true );
m_tensorResults.uiCapability()->setUiTreeHidden( true );
CAF_PDM_InitFieldNoDefault( &m_propertyFilterCollection, "PropertyFilters", "Property Filters", "", "", "" );
m_propertyFilterCollection = new RimGeoMechPropertyFilterCollection();
m_propertyFilterCollection.uiCapability()->setUiHidden( true );
m_propertyFilterCollection.uiCapability()->setUiTreeHidden( true );
CAF_PDM_InitFieldNoDefault( &m_partsCollection, "Parts", "Parts", "", "", "" );
m_partsCollection = new RimGeoMechPartCollection();
m_partsCollection.uiCapability()->setUiHidden( true );
m_partsCollection.uiCapability()->setUiTreeHidden( true );
CAF_PDM_InitField( &m_showDisplacement, "ShowDisplacement", false, "Show Displacement", "", "", "" );
CAF_PDM_InitField( &m_displacementScaling, "DisplacementScaling", 1.0, "Scaling Factor", "", "", "" );