mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-14 01:12:11 -05:00
#8779 Summary Multi Plot : Sync time axis properties across sub plots
This commit is contained in:
1 parent
6ecb1a8ea0
commit
a0507c85f4
6 files changed
+24
-3
No files matched your search
@@ -138,6 +138,8 @@ RimSummaryPlot::RimSummaryPlot( bool isCrossPlot )
|
||||
else
|
||||
{
|
||||
auto* timeAxisProperties = new RimSummaryTimeAxisProperties;
|
||||
timeAxisProperties->settingsChanged.connect( this, &RimSummaryPlot::axisSettingsChanged );
|
||||
|
||||
m_axisProperties.push_back( timeAxisProperties );
|
||||
}
|
||||
|
||||
@@ -1770,6 +1772,7 @@ void RimSummaryPlot::axisSettingsChanged( const caf::SignalEmitter* emitter )
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RimSummaryPlot::axisLogarithmicChanged( const caf::SignalEmitter* emitter, bool isLogarithmic )
|
||||
{
|
||||
axisChanged.send( this );
|
||||
loadDataAndUpdate();
|
||||
}
|
||||
|
||||
@@ -2274,6 +2277,11 @@ void RimSummaryPlot::initAfterRead()
|
||||
{
|
||||
connectAxisSignals( plotAxisProperties );
|
||||
}
|
||||
auto* timeAxis = dynamic_cast<RimSummaryTimeAxisProperties*>( axisProperties.p() );
|
||||
if ( timeAxis )
|
||||
{
|
||||
timeAxis->settingsChanged.connect( this, &RimSummaryPlot::axisSettingsChanged );
|
||||
}
|
||||
}
|
||||
|
||||
for ( auto curve : summaryCurves() )
|
||||
|
||||
@@ -669,6 +669,8 @@ void RimSummaryTimeAxisProperties::fieldChangedByUi( const caf::PdmFieldHandle*
|
||||
}
|
||||
|
||||
rimSummaryPlot->updateAxes();
|
||||
|
||||
settingsChanged.send();
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
Reference in new issue
Block a user