mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#2028 Summary : Use SummaryTools to access summary objects
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user