mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-29 00:20:16 -05:00
First prototype on ensemble file set summary ensembles
This commit is contained in:
1 parent
5e37c58d18
commit
84f9ad0dcd
29 files changed
+1396
-24
No files matched your search
@@ -235,12 +235,6 @@ RimSummaryEnsemble* RimSummaryCaseMainCollection::addEnsemble( const std::vector
|
||||
RimSummaryEnsemble* ensemble = allocator();
|
||||
if ( !collectionName.isEmpty() ) ensemble->setNameTemplate( collectionName );
|
||||
|
||||
if ( ensemble->ensembleId() == -1 )
|
||||
{
|
||||
RimProject* project = RimProject::current();
|
||||
project->assignIdToEnsemble( ensemble );
|
||||
}
|
||||
|
||||
for ( RimSummaryCase* summaryCase : summaryCases )
|
||||
{
|
||||
auto currentSummaryCaseCollection = summaryCase->firstAncestorOrThisOfType<RimSummaryEnsemble>();
|
||||
@@ -262,10 +256,7 @@ RimSummaryEnsemble* RimSummaryCaseMainCollection::addEnsemble( const std::vector
|
||||
|
||||
ensemble->setAsEnsemble( isEnsemble );
|
||||
|
||||
ensemble->caseNameChanged.connect( this, &RimSummaryCaseMainCollection::onCaseNameChanged );
|
||||
m_ensembles.push_back( ensemble );
|
||||
|
||||
dataSourceHasChanged.send();
|
||||
addEnsemble( ensemble );
|
||||
|
||||
return ensemble;
|
||||
}
|
||||
@@ -297,6 +288,8 @@ void RimSummaryCaseMainCollection::addEnsemble( RimSummaryEnsemble* ensemble )
|
||||
project->assignIdToEnsemble( ensemble );
|
||||
}
|
||||
|
||||
ensemble->caseNameChanged.connect( this, &RimSummaryCaseMainCollection::onCaseNameChanged );
|
||||
|
||||
dataSourceHasChanged.send();
|
||||
}
|
||||
|
||||
@@ -550,6 +543,8 @@ void RimSummaryCaseMainCollection::onCaseNameChanged( const SignalEmitter* emitt
|
||||
|
||||
RimSummaryMultiPlotCollection* summaryPlotColl = RiaSummaryTools::summaryMultiPlotCollection();
|
||||
summaryPlotColl->updateSummaryNameHasChanged();
|
||||
|
||||
updateConnectedEditors();
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
Reference in new issue
Block a user