Use uiCapability/xmlCapability instead of capability<caf::PdmUiFieldHandle>()(capability<caf::PdmXmlFieldHandle>()

This commit is contained in:
Magne Sjaastad
2015-08-05 13:27:36 +02:00
parent 57e363896f
commit 90762d0f0f
46 changed files with 267 additions and 267 deletions

View File

@@ -56,7 +56,7 @@ RimWellPathCollection::RimWellPathCollection()
CAF_PDM_InitObject("Wells", ":/WellCollection.png", "", "");
CAF_PDM_InitField(&isActive, "Active", true, "Active", "", "", "");
isActive.capability<caf::PdmUiFieldHandle>()->setUiHidden(true);
isActive.uiCapability()->setUiHidden(true);
CAF_PDM_InitField(&showWellPathLabel, "ShowWellPathLabel", true, "Show well path labels", "", "", "");
@@ -67,9 +67,9 @@ RimWellPathCollection::RimWellPathCollection()
CAF_PDM_InitField(&wellPathRadiusScaleFactor, "WellPathRadiusScale", 0.1, "Well Path radius scale", "", "", "");
CAF_PDM_InitField(&wellPathCrossSectionVertexCount, "WellPathVertexCount", 12, "Well Path vertex count", "", "", "");
wellPathCrossSectionVertexCount.capability<caf::PdmXmlFieldHandle>()->setIOWritable(false);
wellPathCrossSectionVertexCount.capability<caf::PdmXmlFieldHandle>()->setIOReadable(false);
wellPathCrossSectionVertexCount.capability<caf::PdmUiFieldHandle>()->setUiHidden(true);
wellPathCrossSectionVertexCount.xmlCapability()->setIOWritable(false);
wellPathCrossSectionVertexCount.xmlCapability()->setIOReadable(false);
wellPathCrossSectionVertexCount.uiCapability()->setUiHidden(true);
CAF_PDM_InitField(&wellPathClip, "WellPathClip", true, "Clip Well Paths", "", "", "");
CAF_PDM_InitField(&wellPathClipZDistance, "WellPathClipZDistance", 100, "Well path clipping depth distance", "", "", "");