mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Moved UnitSystem from RiaEclipseUnitTools to RiaDefines. (#7225)
* Moved UnitSystem from RiaEclipseUnitTools to RiaDefines. - Renamed UnitSystem to EclipseUnitSystem - Replaced header includes and removed obsolete includes of RiaEclipseUnitTools.h * Moved result name functions into separate file. * Minor cleanup Co-authored-by: rubenthoms <rubenthoms@users.noreply.github.com> Co-authored-by: Magne Sjaastad <magne.sjaastad@ceetronsolutions.com> Co-authored-by: magnesj <magnesj@users.noreply.github.com>
This commit is contained in:
@@ -100,7 +100,7 @@ void RimEclipseCellColors::fieldChangedByUi( const caf::PdmFieldHandle* changedF
|
||||
changeLegendConfig( this->resultVariable() );
|
||||
}
|
||||
|
||||
if ( newValue != RiaDefines::undefinedResultName() )
|
||||
if ( newValue != RiaResultNames::undefinedResultName() )
|
||||
{
|
||||
if ( m_reservoirView ) m_reservoirView->hasUserRequestedAnimation = true;
|
||||
}
|
||||
@@ -126,7 +126,7 @@ void RimEclipseCellColors::fieldChangedByUi( const caf::PdmFieldHandle* changedF
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RimEclipseCellColors::changeLegendConfig( QString resultVarNameOfNewLegend )
|
||||
{
|
||||
if ( resultVarNameOfNewLegend != RiaDefines::ternarySaturationResultName() )
|
||||
if ( resultVarNameOfNewLegend != RiaResultNames::ternarySaturationResultName() )
|
||||
{
|
||||
QString legendResultVariable;
|
||||
|
||||
@@ -248,7 +248,7 @@ void RimEclipseCellColors::defineUiOrdering( QString uiConfigName, caf::PdmUiOrd
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RimEclipseCellColors::defineUiTreeOrdering( caf::PdmUiTreeOrdering& uiTreeOrdering, QString uiConfigName /*= ""*/ )
|
||||
{
|
||||
if ( this->resultVariable() == RiaDefines::ternarySaturationResultName() )
|
||||
if ( this->resultVariable() == RiaResultNames::ternarySaturationResultName() )
|
||||
{
|
||||
uiTreeOrdering.add( m_ternaryLegendConfig() );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user