mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Osdu Well Log: Save well log channels and names to xml.
This commit is contained in:
@@ -44,6 +44,13 @@ RimOsduWellLog::RimOsduWellLog()
|
|||||||
|
|
||||||
CAF_PDM_InitFieldNoDefault( &m_wellLogId, "WellLogId", "Well Log Id" );
|
CAF_PDM_InitFieldNoDefault( &m_wellLogId, "WellLogId", "Well Log Id" );
|
||||||
m_wellLogId.uiCapability()->setUiReadOnly( true );
|
m_wellLogId.uiCapability()->setUiReadOnly( true );
|
||||||
|
|
||||||
|
// Need to save channels for Osdu well logs.
|
||||||
|
// This reverts settings from RimWellLog constructor.
|
||||||
|
m_wellLogChannels.xmlCapability()->setIOReadable( true );
|
||||||
|
m_wellLogChannels.xmlCapability()->setIOWritable( true );
|
||||||
|
|
||||||
|
setDeletable( true );
|
||||||
}
|
}
|
||||||
|
|
||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
|
|||||||
@@ -49,6 +49,11 @@ RimOsduWellLogChannel::RimOsduWellLogChannel()
|
|||||||
|
|
||||||
CAF_PDM_InitFieldNoDefault( &m_depthUnit, "DepthUnit", "Depth Unit" );
|
CAF_PDM_InitFieldNoDefault( &m_depthUnit, "DepthUnit", "Depth Unit" );
|
||||||
m_depthUnit.uiCapability()->setUiReadOnly( true );
|
m_depthUnit.uiCapability()->setUiReadOnly( true );
|
||||||
|
|
||||||
|
// Need to save the name for Osdu well log channels.
|
||||||
|
// This reverts settings from RimWellLogChannel constructor.
|
||||||
|
nameField()->xmlCapability()->setIOReadable( true );
|
||||||
|
nameField()->xmlCapability()->setIOWritable( true );
|
||||||
}
|
}
|
||||||
|
|
||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
|
|||||||
Reference in New Issue
Block a user