Skip to content

Commit

Permalink
Summary: Set default value true for display of sub nodes
Browse files Browse the repository at this point in the history
Set display of summary nodes to true. This will ensure that the display of vectors in "Data Sources" for a single summary case will be updated when a calculated curve is added or removed.
  • Loading branch information
magnesj committed Mar 21, 2024
1 parent db9733d commit 9585ab1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 17 deletions.
16 changes: 2 additions & 14 deletions ApplicationLibCode/ProjectDataModel/Summary/RimSummaryCase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,31 +18,19 @@

#include "RimSummaryCase.h"

#include "RiaFilePathTools.h"
#include "RiaSummaryTools.h"
#include "RiaEnsembleNameTools.h"

#include "RicfCommandObject.h"
#include "RifSummaryReaderInterface.h"

#include "RifEclipseSummaryAddress.h"

#include "RimMainPlotCollection.h"
#include "RimProject.h"
#include "RimSummaryAddress.h"
#include "RimSummaryAddressCollection.h"
#include "RimSummaryCalculationCollection.h"
#include "RimSummaryCaseCollection.h"

#include "cafPdmFieldScriptingCapability.h"
#include "cafPdmUiCheckBoxEditor.h"
#include "cafPdmUiTreeOrdering.h"

#include "cvfAssert.h"

#include "RiaEnsembleNameTools.h"
#include <QFileInfo>
#include <QRegularExpression>

CAF_PDM_ABSTRACT_SOURCE_INIT( RimSummaryCase, "SummaryCase" );

//--------------------------------------------------------------------------------------------------
Expand All @@ -56,7 +44,7 @@ RimSummaryCase::RimSummaryCase()
CAF_PDM_InitScriptableFieldNoDefault( &m_displayName, "ShortName", "Display Name" );
CAF_PDM_InitScriptableFieldNoDefault( &m_displayNameOption, "NameSetting", "Name Setting" );

CAF_PDM_InitScriptableField( &m_showSubNodesInTree, "ShowSubNodesInTree", false, "Show Summary Data Sub-Tree" );
CAF_PDM_InitScriptableField( &m_showSubNodesInTree, "ShowSubNodesInTree", true, "Show Summary Data Sub-Tree" );
caf::PdmUiNativeCheckBoxEditor::configureFieldForEditor( &m_showSubNodesInTree );

CAF_PDM_InitScriptableField( &m_useAutoShortName_OBSOLETE, "AutoShortyName", false, "Use Auto Display Name" );
Expand Down
2 changes: 0 additions & 2 deletions ApplicationLibCode/ProjectDataModel/Summary/RimSummaryCase.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,7 @@
#include "RimCaseDisplayNameTools.h"

#include "cafFilePath.h"
#include "cafPdmChildArrayField.h"
#include "cafPdmChildField.h"
#include "cafPdmField.h"
#include "cafPdmObject.h"

#include <memory>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ void RimSummaryCaseCollection::addCase( RimSummaryCase* summaryCase )
{
summaryCase->nameChanged.connect( this, &RimSummaryCaseCollection::onCaseNameChanged );

if ( m_cases.empty() ) summaryCase->setShowRealizationDataSource( true );
summaryCase->setShowRealizationDataSource( m_cases.empty() );

m_cases.push_back( summaryCase );
m_cachedSortedEnsembleParameters.clear();
Expand Down

0 comments on commit 9585ab1

Please sign in to comment.