mirror of
https://github.com/OPM/ResInsight.git
synced 2026-08-27 05:37:21 -05:00
* Adopts dynamic PDM buttons with lambda callbacks Refactors PDM push buttons from boolean fields to use the `addNewButton` API with direct lambda callbacks. This change enforces a new coding guideline to extract complex or multi-line lambdas to dedicated `on*Clicked()` methods, improving code readability and maintainability. - Replaces `PdmField` button fields with `PdmUiOrdering::addNewButton` calls. - Extracts multi-line/control-flow lambdas into named methods in `RimFlowCharacteristicsPlot`, `RimGeoMechCase`, and `RimStatisticsContourMap`. - Removes obsolete `defineEditorAttribute` overrides and `fieldChangedByUi` logic for these buttons. - Updates `RimWellPathFracture` to utilize base class-provided button creation. - Adds new lambda line-count guideline to the coding style documentation. - Includes minor build fixes, such as adding `cafPdmUiButton.h` and correcting tooltip API usage.