#7754 Hide experimental StimPlan Model features behind RESINSIGHT_DEVEL

This commit is contained in:
Kristian Bendiksen 2021-06-07 10:46:57 +02:00 committed by Magne Sjaastad
parent 2390c91d9f
commit 1322bae6b6
3 changed files with 42 additions and 11 deletions

View File

@ -18,6 +18,8 @@
#include "RimCompletionTemplateCollection.h"
#include "RiaApplication.h"
#include "RimEnsembleFractureStatisticsCollection.h"
#include "RimFractureTemplateCollection.h"
#include "RimStimPlanModelTemplateCollection.h"
@ -146,9 +148,15 @@ void RimCompletionTemplateCollection::defineUiTreeOrdering( caf::PdmUiTreeOrderi
QString uiConfigName /*= ""*/ )
{
uiTreeOrdering.add( m_fractureTemplates );
uiTreeOrdering.add( m_stimPlanModelTemplates );
if ( RiaApplication::enableDevelopmentFeatures() )
{
uiTreeOrdering.add( m_stimPlanModelTemplates );
}
uiTreeOrdering.add( m_valveTemplates );
uiTreeOrdering.add( m_fractureGroupStatisticsCollection );
if ( RiaApplication::enableDevelopmentFeatures() )
{
uiTreeOrdering.add( m_fractureGroupStatisticsCollection );
}
uiTreeOrdering.skipRemainingChildren( true );
}

View File

@ -413,7 +413,10 @@ caf::CmdFeatureMenuBuilder RimContextCommandBuilder::commandsFromSelection()
menuBuilder << "RicNewWellPathFractureFeature";
menuBuilder.subMenuEnd();
menuBuilder << "RicCreateTemporaryLgrFeature";
menuBuilder << "RicNewStimPlanModelFeature";
if ( RiaApplication::enableDevelopmentFeatures() )
{
menuBuilder << "RicNewStimPlanModelFeature";
}
menuBuilder.addSeparator();
appendExportCompletions( menuBuilder );
}
@ -444,9 +447,12 @@ caf::CmdFeatureMenuBuilder RimContextCommandBuilder::commandsFromSelection()
}
else if ( dynamic_cast<RimStimPlanModel*>( firstUiItem ) )
{
menuBuilder << "RicNewStimPlanModelFeature";
menuBuilder << "RicNewStimPlanModelPlotFeature";
menuBuilder << "RicExportStimPlanModelToFileFeature";
if ( RiaApplication::enableDevelopmentFeatures() )
{
menuBuilder << "RicNewStimPlanModelFeature";
menuBuilder << "RicNewStimPlanModelPlotFeature";
menuBuilder << "RicExportStimPlanModelToFileFeature";
}
}
else if ( dynamic_cast<RimPressureTable*>( firstUiItem ) )
{
@ -454,7 +460,10 @@ caf::CmdFeatureMenuBuilder RimContextCommandBuilder::commandsFromSelection()
}
else if ( dynamic_cast<RimStimPlanModelCollection*>( firstUiItem ) )
{
menuBuilder << "RicNewStimPlanModelFeature";
if ( RiaApplication::enableDevelopmentFeatures() )
{
menuBuilder << "RicNewStimPlanModelFeature";
}
}
else if ( dynamic_cast<Rim3dWellLogCurveCollection*>( firstUiItem ) ||
dynamic_cast<Rim3dWellLogExtractionCurve*>( firstUiItem ) ||
@ -913,7 +922,10 @@ caf::CmdFeatureMenuBuilder RimContextCommandBuilder::commandsFromSelection()
}
else if ( dynamic_cast<RimStimPlanModelTemplateCollection*>( firstUiItem ) )
{
menuBuilder << "RicNewStimPlanModelTemplateFeature";
if ( RiaApplication::enableDevelopmentFeatures() )
{
menuBuilder << "RicNewStimPlanModelTemplateFeature";
}
}
else if ( dynamic_cast<RimFractureTemplateCollection*>( firstUiItem ) )
{
@ -1366,7 +1378,10 @@ int RimContextCommandBuilder::appendCreateCompletions( caf::CmdFeatureMenuBuilde
candidates << "RicNewWellPathAttributeFeature";
candidates << "Separator";
candidates << "RicCreateTemporaryLgrFeature";
candidates << "RicNewStimPlanModelFeature";
if ( RiaApplication::enableDevelopmentFeatures() )
{
candidates << "RicNewStimPlanModelFeature";
}
return appendSubMenuWithCommands( menuBuilder,
candidates,

View File

@ -1474,7 +1474,10 @@ void RimProject::defineUiTreeOrdering( caf::PdmUiTreeOrdering& uiTreeOrdering, Q
if ( mainPlotCollection->stimPlanModelPlotCollection() )
{
itemCollection->add( mainPlotCollection->stimPlanModelPlotCollection() );
if ( RiaApplication::enableDevelopmentFeatures() )
{
itemCollection->add( mainPlotCollection->stimPlanModelPlotCollection() );
}
}
if ( mainPlotCollection->vfpPlotCollection() )
@ -1490,7 +1493,12 @@ void RimProject::defineUiTreeOrdering( caf::PdmUiTreeOrdering& uiTreeOrdering, Q
statisticsItemCollection->add( mainPlotCollection->gridStatisticsPlotCollection() );
if ( mainPlotCollection->ensembleFractureStatisticsPlotCollection() )
statisticsItemCollection->add( mainPlotCollection->ensembleFractureStatisticsPlotCollection() );
{
if ( RiaApplication::enableDevelopmentFeatures() )
{
statisticsItemCollection->add( mainPlotCollection->ensembleFractureStatisticsPlotCollection() );
}
}
}
#endif
}