Further Summary Multiplot improvements (#8707)

* Create a specialized summary plot page for showing multi plots
* Make summary plots always show in grid of selected size.
* Allow dragging summary addresses into empty main window area
* Limit grid to 4x4 cells
This commit is contained in:
jonjenssen
2022-03-21 11:31:25 +01:00
committed by GitHub
parent 8d3f381b4f
commit e20adcdb69
16 changed files with 343 additions and 39 deletions

View File

@@ -32,6 +32,7 @@
#include "RiuPlotMainWindow.h"
#include "RiuPlotObjectPicker.h"
#include "RiuPlotWidget.h"
#include "RiuSummaryMultiPlotPage.h"
#include "cafCmdFeatureMenuBuilder.h"
#include "cafSelectionManager.h"
@@ -551,7 +552,18 @@ const QList<QPointer<RiuMultiPlotPage>>& RiuMultiPlotBook::pages() const
//--------------------------------------------------------------------------------------------------
RiuMultiPlotPage* RiuMultiPlotBook::createPage()
{
RiuMultiPlotPage* page = new RiuMultiPlotPage( m_plotDefinition, this );
RiuMultiPlotPage* page;
RimSummaryMultiPlot* sumMultPlot = dynamic_cast<RimSummaryMultiPlot*>( m_plotDefinition.p() );
if ( sumMultPlot )
{
page = new RiuSummaryMultiPlotPage( sumMultPlot, this );
}
else
{
page = new RiuMultiPlotPage( m_plotDefinition, this );
}
// Reapply plot settings
page->setPlotTitle( m_plotTitle );