mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Major modularization adjustments
Use uiField() when issuing setUi....() commands Use PdmChildArrayField instead of PdmPointersFielc Use PdmChildField instead of PdmField to pdm pointer objects Use PdmChildArrayField instead of PdmField< std::list< caf::PdmPointer< type > > > Use PdmObjectHandle instead of PdmObject Replaced parentFields(std::vector) with parentField() Use PdmUiPropertyViewDialog instead of PdmUiPropertyDialog
This commit is contained in:
@@ -46,22 +46,22 @@ RimCellRangeFilter::RimCellRangeFilter()
|
||||
CAF_PDM_InitField(&propagateToSubGrids, "PropagateToSubGrids", true, "Apply to Subgrids", "", "","");
|
||||
|
||||
CAF_PDM_InitField(&startIndexI, "StartIndexI", 1, "Start index I", "", "","");
|
||||
startIndexI.setUiEditorTypeName(caf::PdmUiSliderEditor::uiEditorTypeName());
|
||||
startIndexI.capability<caf::PdmUiFieldHandle>()->setUiEditorTypeName(caf::PdmUiSliderEditor::uiEditorTypeName());
|
||||
|
||||
CAF_PDM_InitField(&cellCountI, "CellCountI", 1, "Cell Count I", "", "","");
|
||||
cellCountI.setUiEditorTypeName(caf::PdmUiSliderEditor::uiEditorTypeName());
|
||||
cellCountI.capability<caf::PdmUiFieldHandle>()->setUiEditorTypeName(caf::PdmUiSliderEditor::uiEditorTypeName());
|
||||
|
||||
CAF_PDM_InitField(&startIndexJ, "StartIndexJ", 1, "Start index J", "", "","");
|
||||
startIndexJ.setUiEditorTypeName(caf::PdmUiSliderEditor::uiEditorTypeName());
|
||||
startIndexJ.capability<caf::PdmUiFieldHandle>()->setUiEditorTypeName(caf::PdmUiSliderEditor::uiEditorTypeName());
|
||||
|
||||
CAF_PDM_InitField(&cellCountJ, "CellCountJ", 1, "Cell Count J", "", "","");
|
||||
cellCountJ.setUiEditorTypeName(caf::PdmUiSliderEditor::uiEditorTypeName());
|
||||
cellCountJ.capability<caf::PdmUiFieldHandle>()->setUiEditorTypeName(caf::PdmUiSliderEditor::uiEditorTypeName());
|
||||
|
||||
CAF_PDM_InitField(&startIndexK, "StartIndexK", 1, "Start index K", "", "","");
|
||||
startIndexK.setUiEditorTypeName(caf::PdmUiSliderEditor::uiEditorTypeName());
|
||||
startIndexK.capability<caf::PdmUiFieldHandle>()->setUiEditorTypeName(caf::PdmUiSliderEditor::uiEditorTypeName());
|
||||
|
||||
CAF_PDM_InitField(&cellCountK, "CellCountK", 1, "Cell Count K", "", "","");
|
||||
cellCountK.setUiEditorTypeName(caf::PdmUiSliderEditor::uiEditorTypeName());
|
||||
cellCountK.capability<caf::PdmUiFieldHandle>()->setUiEditorTypeName(caf::PdmUiSliderEditor::uiEditorTypeName());
|
||||
|
||||
updateIconState();
|
||||
}
|
||||
@@ -211,21 +211,21 @@ void RimCellRangeFilter::defineEditorAttribute(const caf::PdmFieldHandle* field,
|
||||
max.y() = max.y() + 1;
|
||||
max.z() = max.z() + 1;
|
||||
|
||||
startIndexI.setUiName(QString("I Start (%1)").arg(min.x()));
|
||||
startIndexJ.setUiName(QString("J Start (%1)").arg(min.y()));
|
||||
startIndexK.setUiName(QString("K Start (%1)").arg(min.z()));
|
||||
cellCountI.setUiName(QString(" Width (%1)").arg(max.x() - min.x() + 1));
|
||||
cellCountJ.setUiName(QString(" Width (%1)").arg(max.y() - min.y() + 1));
|
||||
cellCountK.setUiName(QString(" Width (%1)").arg(max.z() - min.z() + 1));
|
||||
startIndexI.capability<caf::PdmUiFieldHandle>()->setUiName(QString("I Start (%1)").arg(min.x()));
|
||||
startIndexJ.capability<caf::PdmUiFieldHandle>()->setUiName(QString("J Start (%1)").arg(min.y()));
|
||||
startIndexK.capability<caf::PdmUiFieldHandle>()->setUiName(QString("K Start (%1)").arg(min.z()));
|
||||
cellCountI.capability<caf::PdmUiFieldHandle>()->setUiName(QString(" Width (%1)").arg(max.x() - min.x() + 1));
|
||||
cellCountJ.capability<caf::PdmUiFieldHandle>()->setUiName(QString(" Width (%1)").arg(max.y() - min.y() + 1));
|
||||
cellCountK.capability<caf::PdmUiFieldHandle>()->setUiName(QString(" Width (%1)").arg(max.z() - min.z() + 1));
|
||||
}
|
||||
else
|
||||
{
|
||||
startIndexI.setUiName(QString("I Start"));
|
||||
startIndexJ.setUiName(QString("J Start"));
|
||||
startIndexK.setUiName(QString("K Start"));
|
||||
cellCountI.setUiName(QString(" Width"));
|
||||
cellCountJ.setUiName(QString(" Width"));
|
||||
cellCountK.setUiName(QString(" Width"));
|
||||
startIndexI.capability<caf::PdmUiFieldHandle>()->setUiName(QString("I Start"));
|
||||
startIndexJ.capability<caf::PdmUiFieldHandle>()->setUiName(QString("J Start"));
|
||||
startIndexK.capability<caf::PdmUiFieldHandle>()->setUiName(QString("K Start"));
|
||||
cellCountI.capability<caf::PdmUiFieldHandle>()->setUiName(QString(" Width"));
|
||||
cellCountJ.capability<caf::PdmUiFieldHandle>()->setUiName(QString(" Width"));
|
||||
cellCountK.capability<caf::PdmUiFieldHandle>()->setUiName(QString(" Width"));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user