#2028 Summary : Use SummaryTools to access summary objects

This commit is contained in:
Magne Sjaastad
2017-10-20 10:54:48 +02:00
parent 167f56f95a
commit 07b3778a75
12 changed files with 25 additions and 59 deletions

View File

@@ -19,6 +19,7 @@
#include "RicSelectSummaryPlotUI.h"
#include "RiaApplication.h"
#include "RiaSummaryTools.h"
#include "RimEclipseResultCase.h"
#include "RimEclipseView.h"
@@ -91,7 +92,7 @@ QList<caf::PdmOptionItemInfo> RicSelectSummaryPlotUI::calculateValueOptions(cons
if (fieldNeedingOptions == &m_selectedSummaryPlot)
{
RimSummaryPlotCollection* summaryPlotColl = summaryPlotCollection();
RimSummaryPlotCollection* summaryPlotColl = RiaSummaryTools::summaryPlotCollection();
summaryPlotColl->summaryPlotItemInfos(&options);
}
@@ -104,7 +105,7 @@ QList<caf::PdmOptionItemInfo> RicSelectSummaryPlotUI::calculateValueOptions(cons
//--------------------------------------------------------------------------------------------------
void RicSelectSummaryPlotUI::defineUiOrdering(QString uiConfigName, caf::PdmUiOrdering& uiOrdering)
{
if (summaryPlotCollection()->summaryPlots().size() == 0)
if (RiaSummaryTools::summaryPlotCollection()->summaryPlots().size() == 0)
{
m_createNewPlot = true;
}
@@ -121,14 +122,3 @@ void RicSelectSummaryPlotUI::defineUiOrdering(QString uiConfigName, caf::PdmUiOr
}
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
RimSummaryPlotCollection* RicSelectSummaryPlotUI::summaryPlotCollection()
{
RimProject* project = RiaApplication::instance()->project();
return project->mainPlotCollection()->summaryPlotCollection();
}