From 9c7f8b6f8666b91433a29489b5f47a12cca7dcfb Mon Sep 17 00:00:00 2001 From: Kristian Bendiksen Date: Mon, 11 Sep 2023 10:05:37 +0200 Subject: [PATCH] StimPlan: Add python api for enabling pressure table. --- .../StimPlanModel/RimStimPlanModelTemplate.cpp | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/ApplicationLibCode/ProjectDataModel/StimPlanModel/RimStimPlanModelTemplate.cpp b/ApplicationLibCode/ProjectDataModel/StimPlanModel/RimStimPlanModelTemplate.cpp index e8108ee953..fe07bee442 100644 --- a/ApplicationLibCode/ProjectDataModel/StimPlanModel/RimStimPlanModelTemplate.cpp +++ b/ApplicationLibCode/ProjectDataModel/StimPlanModel/RimStimPlanModelTemplate.cpp @@ -76,8 +76,17 @@ RimStimPlanModelTemplate::RimStimPlanModelTemplate() CAF_PDM_InitScriptableField( &m_timeStep, "TimeStep", 0, "Time Step" ); CAF_PDM_InitScriptableFieldNoDefault( &m_initialPressureEclipseCase, "InitialPressureEclipseCase", "Initial Pressure Case" ); - CAF_PDM_InitField( &m_useTableForInitialPressure, "UseForInitialPressure", false, "Use Pressure Table For Initial Pressure" ); - CAF_PDM_InitField( &m_useTableForPressure, "UseForPressure", false, "Use Pressure Table For Pressure" ); + CAF_PDM_InitScriptableFieldWithScriptKeyword( &m_useTableForInitialPressure, + "UseForInitialPressure", + "UsePressureTableForInitialPressure", + false, + "Use Pressure Table For Initial Pressure" ); + + CAF_PDM_InitScriptableFieldWithScriptKeyword( &m_useTableForPressure, + "UseForPressure", + "UsePressureTableForPressure", + false, + "Use Pressure Table For Pressure" ); CAF_PDM_InitField( &m_editPressureTable, "EditPressureTable", false, "Edit" ); m_editPressureTable.uiCapability()->setUiEditorTypeName( caf::PdmUiToolButtonEditor::uiEditorTypeName() ); m_editPressureTable.uiCapability()->setUiLabelPosition( caf::PdmUiItemInfo::HIDDEN );