mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-31 09:14:11 -05:00
Adds ensemble name to summary case options
This commit is contained in:
1 parent
47049bdd9f
commit
5d22c7791d
7 files changed
+24
-13
No files matched your search
@@ -239,7 +239,8 @@ auto createOptionsForSummaryCase = []() -> QList<caf::PdmOptionItemInfo>
|
||||
RimProject* proj = RimProject::current();
|
||||
std::vector<RimSummaryCase*> cases = proj->allSummaryCases();
|
||||
|
||||
auto options = RiaSummaryTools::optionsForSummaryCases( cases );
|
||||
bool includeEnsembleName = false;
|
||||
auto options = RiaSummaryTools::optionsForSummaryCases( cases, includeEnsembleName );
|
||||
if ( !options.empty() )
|
||||
{
|
||||
options.push_front( caf::PdmOptionItemInfo( "None", nullptr ) );
|
||||
|
||||
@@ -493,7 +493,8 @@ QList<caf::PdmOptionItemInfo> RimSummaryCurve::calculateValueOptions( const caf:
|
||||
RimProject* proj = RimProject::current();
|
||||
std::vector<RimSummaryCase*> cases = proj->allSummaryCases();
|
||||
|
||||
options = RiaSummaryTools::optionsForSummaryCases( cases );
|
||||
bool includeEnsembleName = false;
|
||||
options = RiaSummaryTools::optionsForSummaryCases( cases, includeEnsembleName );
|
||||
|
||||
if ( !options.empty() )
|
||||
{
|
||||
|
||||
@@ -402,11 +402,7 @@ QList<caf::PdmOptionItemInfo> RimSummaryTable::calculateValueOptions( const caf:
|
||||
}
|
||||
else if ( fieldNeedingOptions == &m_case )
|
||||
{
|
||||
std::vector<RimSummaryCase*> summaryCases = getToplevelSummaryCases();
|
||||
for ( auto* summaryCase : summaryCases )
|
||||
{
|
||||
options.push_back( caf::PdmOptionItemInfo( summaryCase->displayCaseName(), summaryCase, false, summaryCase->uiIconProvider() ) );
|
||||
}
|
||||
options = RiaSummaryTools::optionsForAllSummaryCases();
|
||||
}
|
||||
else if ( fieldNeedingOptions == &m_vector && m_case )
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user