#1078 Updated enabled state of well cells and well cell fence

This commit is contained in:
Magne Sjaastad
2017-01-26 18:01:00 +01:00
parent ccc7345706
commit 1e20a61d4c
2 changed files with 9 additions and 1 deletions

View File

@@ -211,7 +211,7 @@ void RimEclipseWell::defineUiOrdering(QString uiConfigName, caf::PdmUiOrdering&
pipeGroup->add(&wellPipeColor);
caf::PdmUiGroup* filterGroup = uiOrdering.addNewGroup("Range filter");
caf::PdmUiGroup* filterGroup = uiOrdering.addNewGroup("Well Cells");
filterGroup->add(&showWellCells);
filterGroup->add(&showWellCellFence);
@@ -223,6 +223,11 @@ void RimEclipseWell::defineUiOrdering(QString uiConfigName, caf::PdmUiOrdering&
showWellHead.uiCapability()->setUiReadOnly(!wellColl->showWellHead());
showWellPipe.uiCapability()->setUiReadOnly(!wellColl->showWellPipe());
showWellSpheres.uiCapability()->setUiReadOnly(!wellColl->showWellSpheres());
showWellCells.uiCapability()->setUiReadOnly(!wellColl->showWellCells());
bool isFenceEnabled = false;
if (wellColl->showWellCells() && wellColl->showWellCellFence()) isFenceEnabled = true;
showWellCellFence.uiCapability()->setUiReadOnly(!isFenceEnabled);
}
}

View File

@@ -376,6 +376,9 @@ void RimEclipseWellCollection::defineUiOrdering(QString uiConfigName, caf::PdmUi
filterGroup->add(&showWellCells);
filterGroup->add(&showWellCellFence);
filterGroup->add(&wellCellFenceType);
showWellCellFence.uiCapability()->setUiReadOnly(!showWellCells());
wellCellFenceType.uiCapability()->setUiReadOnly(!showWellCells());
}
//--------------------------------------------------------------------------------------------------