Updates PDM UI label positioning

Updates the way UI label positions are set for PDM fields.
This commit is contained in:
Magne Sjaastad committed 2026-01-08 21:44:58 +01:00
1 parent b9f09c41d7
commit cfd634e206
75 files changed
+137 -137

No files matched your search

@@ -36,7 +36,7 @@ RimWellPathAttributeCollection::RimWellPathAttributeCollection()
CAF_PDM_InitFieldNoDefault( &m_attributes, "Attributes", "Casing Design Attributes" );
m_attributes.uiCapability()->setUiEditorTypeName( caf::PdmUiTableViewEditor::uiEditorTypeName() );
m_attributes.uiCapability()->setUiLabelPosition( caf::PdmUiItemInfo::TOP );
m_attributes.uiCapability()->setUiLabelPosition( caf::PdmUiItemInfo::LabelPosition::TOP );
m_attributes.uiCapability()->setCustomContextMenuEnabled( true );
setName( "Casing Design" );
}
@@ -79,7 +79,7 @@ RimWellPathGeometryDef::RimWellPathGeometryDef()
CAF_PDM_InitScriptableFieldNoDefault( &m_wellTargets, "WellPathTargets", "Well Targets" );
m_wellTargets.uiCapability()->setUiEditorTypeName( caf::PdmUiTableViewEditor::uiEditorTypeName() );
m_wellTargets.uiCapability()->setUiTreeChildrenHidden( true );
m_wellTargets.uiCapability()->setUiLabelPosition( caf::PdmUiItemInfo::TOP );
m_wellTargets.uiCapability()->setUiLabelPosition( caf::PdmUiItemInfo::LabelPosition::TOP );
m_wellTargets.uiCapability()->setCustomContextMenuEnabled( true );
CAF_PDM_InitField( &m_showAbsolutePosForWellTargets, "ShowAbsolutePosForWellTargets", false, "Show UTM Coords" );
@@ -45,7 +45,7 @@ RimWellPathTieIn::RimWellPathTieIn()
CAF_PDM_InitFieldNoDefault( &m_infoLabel, "InfoLabel", "Use right-click menu of well to set parent well." );
m_infoLabel.uiCapability()->setUiEditorTypeName( caf::PdmUiLabelEditor::uiEditorTypeName() );
m_infoLabel.xmlCapability()->disableIO();
m_infoLabel.uiCapability()->setUiLabelPosition( caf::PdmUiItemInfo::TOP );
m_infoLabel.uiCapability()->setUiLabelPosition( caf::PdmUiItemInfo::LabelPosition::TOP );
CAF_PDM_InitFieldNoDefault( &m_parentWell, "ParentWellPath", "Parent Well Path" );
m_parentWell.uiCapability()->setUiReadOnly( true );