#2818 Summary. Add new-plot-commands to context menus

This commit is contained in:
Bjørn Erik Jensen
2018-05-07 09:45:50 +02:00
parent 0e8eae33db
commit 7903a62cc5
11 changed files with 96 additions and 23 deletions

View File

@@ -129,7 +129,7 @@ RimSummaryPlot* RicSummaryCurveCreator::previewPlot() const
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
void RicSummaryCurveCreator::updateFromSummaryPlot(RimSummaryPlot* targetPlot)
void RicSummaryCurveCreator::updateFromSummaryPlot(RimSummaryPlot* targetPlot, const std::vector<RimSummaryCase*>& defaultCases)
{
if (targetPlot == nullptr || m_targetPlot != targetPlot)
{
@@ -145,7 +145,7 @@ void RicSummaryCurveCreator::updateFromSummaryPlot(RimSummaryPlot* targetPlot)
}
else
{
setDefaultCurveSelection();
setDefaultCurveSelection(defaultCases);
m_previewPlot->enableAutoPlotTitle(true);
}
@@ -616,9 +616,9 @@ void RicSummaryCurveCreator::copyEnsembleCurveAndAddToPlot(const RimSummaryCurve
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
void RicSummaryCurveCreator::setDefaultCurveSelection()
void RicSummaryCurveCreator::setDefaultCurveSelection(const std::vector<RimSummaryCase*>& defaultCases)
{
m_summaryCurveSelectionEditor->summaryAddressSelection()->setDefaultSelection();
m_summaryCurveSelectionEditor->summaryAddressSelection()->setDefaultSelection(defaultCases);
}
//--------------------------------------------------------------------------------------------------