mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#7754 Hide experimental StimPlan Model features behind RESINSIGHT_DEVEL
This commit is contained in:
parent
2390c91d9f
commit
1322bae6b6
@ -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 );
|
||||
if ( RiaApplication::enableDevelopmentFeatures() )
|
||||
{
|
||||
uiTreeOrdering.add( m_stimPlanModelTemplates );
|
||||
}
|
||||
uiTreeOrdering.add( m_valveTemplates );
|
||||
if ( RiaApplication::enableDevelopmentFeatures() )
|
||||
{
|
||||
uiTreeOrdering.add( m_fractureGroupStatisticsCollection );
|
||||
}
|
||||
uiTreeOrdering.skipRemainingChildren( true );
|
||||
}
|
||||
|
||||
|
@ -413,7 +413,10 @@ caf::CmdFeatureMenuBuilder RimContextCommandBuilder::commandsFromSelection()
|
||||
menuBuilder << "RicNewWellPathFractureFeature";
|
||||
menuBuilder.subMenuEnd();
|
||||
menuBuilder << "RicCreateTemporaryLgrFeature";
|
||||
if ( RiaApplication::enableDevelopmentFeatures() )
|
||||
{
|
||||
menuBuilder << "RicNewStimPlanModelFeature";
|
||||
}
|
||||
menuBuilder.addSeparator();
|
||||
appendExportCompletions( menuBuilder );
|
||||
}
|
||||
@ -443,19 +446,25 @@ caf::CmdFeatureMenuBuilder RimContextCommandBuilder::commandsFromSelection()
|
||||
menuBuilder << "RicDeleteWellPathAttributeFeature";
|
||||
}
|
||||
else if ( dynamic_cast<RimStimPlanModel*>( firstUiItem ) )
|
||||
{
|
||||
if ( RiaApplication::enableDevelopmentFeatures() )
|
||||
{
|
||||
menuBuilder << "RicNewStimPlanModelFeature";
|
||||
menuBuilder << "RicNewStimPlanModelPlotFeature";
|
||||
menuBuilder << "RicExportStimPlanModelToFileFeature";
|
||||
}
|
||||
}
|
||||
else if ( dynamic_cast<RimPressureTable*>( firstUiItem ) )
|
||||
{
|
||||
menuBuilder << "RicNewPressureTableItemFeature";
|
||||
}
|
||||
else if ( dynamic_cast<RimStimPlanModelCollection*>( firstUiItem ) )
|
||||
{
|
||||
if ( RiaApplication::enableDevelopmentFeatures() )
|
||||
{
|
||||
menuBuilder << "RicNewStimPlanModelFeature";
|
||||
}
|
||||
}
|
||||
else if ( dynamic_cast<Rim3dWellLogCurveCollection*>( firstUiItem ) ||
|
||||
dynamic_cast<Rim3dWellLogExtractionCurve*>( firstUiItem ) ||
|
||||
dynamic_cast<Rim3dWellLogFileCurve*>( firstUiItem ) ||
|
||||
@ -912,9 +921,12 @@ caf::CmdFeatureMenuBuilder RimContextCommandBuilder::commandsFromSelection()
|
||||
menuBuilder << "RicImportElasticPropertiesFeature";
|
||||
}
|
||||
else if ( dynamic_cast<RimStimPlanModelTemplateCollection*>( firstUiItem ) )
|
||||
{
|
||||
if ( RiaApplication::enableDevelopmentFeatures() )
|
||||
{
|
||||
menuBuilder << "RicNewStimPlanModelTemplateFeature";
|
||||
}
|
||||
}
|
||||
else if ( dynamic_cast<RimFractureTemplateCollection*>( firstUiItem ) )
|
||||
{
|
||||
menuBuilder << "RicPasteEllipseFractureFeature";
|
||||
@ -1366,7 +1378,10 @@ int RimContextCommandBuilder::appendCreateCompletions( caf::CmdFeatureMenuBuilde
|
||||
candidates << "RicNewWellPathAttributeFeature";
|
||||
candidates << "Separator";
|
||||
candidates << "RicCreateTemporaryLgrFeature";
|
||||
if ( RiaApplication::enableDevelopmentFeatures() )
|
||||
{
|
||||
candidates << "RicNewStimPlanModelFeature";
|
||||
}
|
||||
|
||||
return appendSubMenuWithCommands( menuBuilder,
|
||||
candidates,
|
||||
|
@ -1473,9 +1473,12 @@ void RimProject::defineUiTreeOrdering( caf::PdmUiTreeOrdering& uiTreeOrdering, Q
|
||||
}
|
||||
|
||||
if ( mainPlotCollection->stimPlanModelPlotCollection() )
|
||||
{
|
||||
if ( RiaApplication::enableDevelopmentFeatures() )
|
||||
{
|
||||
itemCollection->add( mainPlotCollection->stimPlanModelPlotCollection() );
|
||||
}
|
||||
}
|
||||
|
||||
if ( mainPlotCollection->vfpPlotCollection() )
|
||||
{
|
||||
@ -1490,8 +1493,13 @@ void RimProject::defineUiTreeOrdering( caf::PdmUiTreeOrdering& uiTreeOrdering, Q
|
||||
statisticsItemCollection->add( mainPlotCollection->gridStatisticsPlotCollection() );
|
||||
|
||||
if ( mainPlotCollection->ensembleFractureStatisticsPlotCollection() )
|
||||
{
|
||||
if ( RiaApplication::enableDevelopmentFeatures() )
|
||||
{
|
||||
statisticsItemCollection->add( mainPlotCollection->ensembleFractureStatisticsPlotCollection() );
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user