mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
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:
@@ -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 );
|
||||
|
||||
Reference in New Issue
Block a user