(#861) Summary Plot : Add support for autogenerated plot name

This commit is contained in:
Magne Sjaastad
2017-11-23 14:12:05 +01:00
parent 20b3de9f7a
commit 5e3467a5f6
11 changed files with 264 additions and 123 deletions

View File

@@ -246,10 +246,7 @@ RicPasteAsciiDataToSummaryPlotFeature::CurveType RicPasteAsciiDataToSummaryPlotF
//--------------------------------------------------------------------------------------------------
RimSummaryPlot* RicPasteAsciiDataToSummaryPlotFeature::createSummaryPlotAndAddToPlotCollection(RimSummaryPlotCollection *plotCollection)
{
auto summaryPlot = new RimSummaryPlot();
summaryPlot->setDescription(QString("Summary Plot %1").arg(plotCollection->summaryPlots.size() + 1));
plotCollection->summaryPlots().push_back(summaryPlot);
plotCollection->updateConnectedEditors();
summaryPlot->loadDataAndUpdate();
return summaryPlot;
QString name = QString("Summary Plot %1").arg(plotCollection->summaryPlots.size() + 1);
return plotCollection->createNamedSummaryPlot(name);
}