mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
This commit is contained in:
@@ -57,6 +57,7 @@ CAF_PDM_SOURCE_INIT(RimPlotAxisProperties, "SummaryYAxisProperties");
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
RimPlotAxisProperties::RimPlotAxisProperties()
|
||||
: m_enableTitleTextSettings(true)
|
||||
, m_isRangeSettingsEnabled(true)
|
||||
{
|
||||
CAF_PDM_InitObject("Axis Properties", ":/LeftAxis16x16.png", "", "");
|
||||
|
||||
@@ -110,6 +111,14 @@ void RimPlotAxisProperties::setEnableTitleTextSettings( bool enable )
|
||||
m_enableTitleTextSettings = enable;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RimPlotAxisProperties::enableRangeSettings( bool enable )
|
||||
{
|
||||
m_isRangeSettingsEnabled = enable;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
@@ -193,8 +202,11 @@ void RimPlotAxisProperties::defineUiOrdering( QString uiConfigName, caf::PdmUiOr
|
||||
}
|
||||
|
||||
caf::PdmUiGroup& scaleGroup = *( uiOrdering.addNewGroup( "Axis Values" ) );
|
||||
scaleGroup.add( &isLogarithmicScaleEnabled );
|
||||
scaleGroup.add( &m_isAxisInverted );
|
||||
if ( m_isRangeSettingsEnabled )
|
||||
{
|
||||
scaleGroup.add( &isLogarithmicScaleEnabled );
|
||||
scaleGroup.add( &m_isAxisInverted );
|
||||
}
|
||||
scaleGroup.add( &numberFormat );
|
||||
|
||||
if ( numberFormat() != NUMBER_FORMAT_AUTO )
|
||||
@@ -202,8 +214,11 @@ void RimPlotAxisProperties::defineUiOrdering( QString uiConfigName, caf::PdmUiOr
|
||||
scaleGroup.add( &numberOfDecimals );
|
||||
}
|
||||
scaleGroup.add( &scaleFactor );
|
||||
scaleGroup.add( &visibleRangeMin );
|
||||
scaleGroup.add( &visibleRangeMax );
|
||||
if ( m_isRangeSettingsEnabled )
|
||||
{
|
||||
scaleGroup.add( &visibleRangeMin );
|
||||
scaleGroup.add( &visibleRangeMax );
|
||||
}
|
||||
scaleGroup.add( &m_valuesFontSize );
|
||||
|
||||
uiOrdering.skipRemainingFields( true );
|
||||
|
||||
Reference in New Issue
Block a user