mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#8779 Summary Multi Plot : Rearrange property editor
Compute common range for all sub plots when activating sync of sub plot axes
This commit is contained in:
parent
86fda13daa
commit
6ecb1a8ea0
@ -270,33 +270,32 @@ void RimSummaryMultiPlot::populateNameHelper( RimSummaryPlotNameHelper* nameHelp
|
|||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
void RimSummaryMultiPlot::defineUiOrdering( QString uiConfigName, caf::PdmUiOrdering& uiOrdering )
|
void RimSummaryMultiPlot::defineUiOrdering( QString uiConfigName, caf::PdmUiOrdering& uiOrdering )
|
||||||
{
|
{
|
||||||
caf::PdmUiGroup* titlesGroup = uiOrdering.addNewGroup( "Titles" );
|
auto titlesGroup = uiOrdering.addNewGroup( "Main Plot Settings" );
|
||||||
titlesGroup->add( &m_autoPlotTitles );
|
titlesGroup->add( &m_autoPlotTitles );
|
||||||
titlesGroup->add( &m_autoPlotTitlesOnSubPlots );
|
|
||||||
|
|
||||||
titlesGroup->add( &m_showPlotWindowTitle );
|
titlesGroup->add( &m_showPlotWindowTitle );
|
||||||
titlesGroup->add( &m_plotWindowTitle );
|
titlesGroup->add( &m_plotWindowTitle );
|
||||||
titlesGroup->add( &m_showIndividualPlotTitles );
|
|
||||||
titlesGroup->add( &m_titleFontSize );
|
titlesGroup->add( &m_titleFontSize );
|
||||||
titlesGroup->add( &m_subTitleFontSize );
|
|
||||||
|
|
||||||
caf::PdmUiGroup* legendsGroup = uiOrdering.addNewGroup( "Legends" );
|
auto subPlotSettingsGroup = uiOrdering.addNewGroup( "Sub Plot Settings" );
|
||||||
|
subPlotSettingsGroup->add( &m_autoPlotTitlesOnSubPlots );
|
||||||
|
subPlotSettingsGroup->add( &m_showIndividualPlotTitles );
|
||||||
|
subPlotSettingsGroup->add( &m_subTitleFontSize );
|
||||||
|
|
||||||
|
auto legendsGroup = uiOrdering.addNewGroup( "Legends" );
|
||||||
legendsGroup->add( &m_showPlotLegends );
|
legendsGroup->add( &m_showPlotLegends );
|
||||||
legendsGroup->add( &m_plotLegendsHorizontal );
|
legendsGroup->add( &m_plotLegendsHorizontal );
|
||||||
legendsGroup->add( &m_legendFontSize );
|
legendsGroup->add( &m_legendFontSize );
|
||||||
|
|
||||||
caf::PdmUiGroup* layoutGroup = uiOrdering.addNewGroup( "Layout" );
|
auto layoutGroup = uiOrdering.addNewGroup( "Layout" );
|
||||||
layoutGroup->add( &m_columnCount );
|
layoutGroup->add( &m_columnCount );
|
||||||
layoutGroup->add( &m_rowsPerPage );
|
layoutGroup->add( &m_rowsPerPage );
|
||||||
layoutGroup->add( &m_majorTickmarkCount );
|
layoutGroup->add( &m_majorTickmarkCount );
|
||||||
|
|
||||||
caf::PdmUiGroup* axesGroup = uiOrdering.addNewGroup( "Axes" );
|
auto axesGroup = uiOrdering.addNewGroup( "Axes" );
|
||||||
axesGroup->add( &m_syncSubPlotAxes );
|
axesGroup->add( &m_syncSubPlotAxes );
|
||||||
|
|
||||||
{
|
auto dataSourceGroup = uiOrdering.addNewGroup( "Data Source" );
|
||||||
auto group = uiOrdering.addNewGroup( "Data Source" );
|
m_sourceStepping()->uiOrdering( uiConfigName, *dataSourceGroup );
|
||||||
m_sourceStepping()->uiOrdering( uiConfigName, *group );
|
|
||||||
}
|
|
||||||
|
|
||||||
uiOrdering.skipRemainingFields( true );
|
uiOrdering.skipRemainingFields( true );
|
||||||
}
|
}
|
||||||
@ -323,6 +322,10 @@ void RimSummaryMultiPlot::fieldChangedByUi( const caf::PdmFieldHandle* changedFi
|
|||||||
m_createPlotDuplicate = false;
|
m_createPlotDuplicate = false;
|
||||||
duplicate();
|
duplicate();
|
||||||
}
|
}
|
||||||
|
else if ( changedField == &m_syncSubPlotAxes && m_syncSubPlotAxes() )
|
||||||
|
{
|
||||||
|
syncAxisRanges();
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
RimMultiPlot::fieldChangedByUi( changedField, oldValue, newValue );
|
RimMultiPlot::fieldChangedByUi( changedField, oldValue, newValue );
|
||||||
|
Loading…
Reference in New Issue
Block a user