Commit Graph
34 Commits
Author SHA1 Message Date
Magne Sjaastad 9f30c981bc Remove unused cafPdmUiPushButtonEditor.h includes
Follow-up cleanup after switching from bool PdmField push buttons to cafPdmUiButton.
2026-03-04 09:52:17 +01:00
Magne Sjaastad dbe08064ce Refactor double editor config to use attribute map
Remove custom editor attribute classes and migrate all double field validation and formatting (range, decimals, number format) to the attribute map system. Refactor PdmUiDoubleValueEditor to read settings from the field's attributes and always display formatted values. Remove redundant defineEditorAttribute overrides. Add tests for pair<bool, double> field validation. Centralize and simplify double field UI configuration for improved maintainability.
2026-02-16 16:54:22 +01:00
Magne Sjaastad cfd634e206 Updates PDM UI label positioning
Updates the way UI label positions are set for PDM fields.
2026-01-08 21:44:58 +01:00
Magne Sjaastad 337584025c Add convenience function to set number format to fixed with two decimals 2024-07-24 15:42:25 +02:00
Magne Sjaastad ce513be638 Remove all use of .uiCapability()->setUiTreeHidden( true ); 2024-02-05 10:15:36 +01:00
Magne Sjaastad 678a368361 Refactor LayoutOptions to improve readability
* Make it possible to use designated initializer list
- remove default constructor
- move static member to outer scope

* Add helper function to add field on same row
2023-11-10 14:48:56 +01:00
Kristian Bendiksen 8007831e27 StimPlanModel: Make useEqlNumForPressureInterpolation scriptable. 2023-09-20 14:09:15 +02:00
Kristian Bendiksen a36100e4fb StimPlan: Change default for Facies Pressure Settings.
Now set to be active and fraction values to be 1.0 for all facies.
2023-09-11 12:34:48 +02:00
Kristian Bendiksen 9c7f8b6f86 StimPlan: Add python api for enabling pressure table. 2023-09-11 12:34:48 +02:00
Kristian Bendiksen a3efc16615 StimPlan Model: Provide default value for facies 2023-05-26 12:32:43 +02:00
Magne Sjaastad 0c90f67dcc Change API for PdmObjectHandle and PdmFieldHandle
* Refactor interface to PdmObjectHandle and PdmFieldHandle
Return objects instead of passing in structures as parameters

* Add nodiscard to several functions
* Remove redundant this->
* Rename to ptrReferencedObjectsByType
2023-05-12 21:41:34 +02:00
Magne Sjaastad 952e766c2f Update clang-format.yml (#10068)
* Update to clang-format-15
Removed two custom .clang-format files in subfolders of AppFwk

* Fixes by clang-format
2023-04-13 07:05:53 +02:00
Magne Sjaastad f8c5cf389f clang-format: Set column width to 140
* Set column width to 140
* Use c++20
* Remove redundant virtual
2023-02-26 10:48:40 +01:00
Magne Sjaastad c74701b687 Rename several child() and children() functions 2022-05-31 15:05:07 +02:00
Magne Sjaastad f0ce04597d Merge pull request #8985 from OPM/8926-remove-useoptionsonly
AppFwk : Remove obsolete useOptionsOnly
2022-05-29 13:01:27 +02:00
Magne Sjaastad 3c35244809 #8420 Janitor: Remove empty parameters in initialization macros 2022-01-07 08:31:52 +01:00
Magne Sjaastad 2a65636ba3 #8250 Use variadic macros and remove obsolete parameters 2021-11-14 15:26:09 +01:00
Kristian Bendiksen 75fe73ee64 Refactor: Start using setUiTreeHidden where missing. 2021-10-24 09:11:20 +02:00
Kristian Bendiksen 511439277a #7871 StimPlan Model: Add check-box for EQLNUM pressure interpolation 2021-08-18 14:46:25 +02:00
Kristian Bendiksen bde6dc3540 #7500 StimPlanModelTemplate: Add edit button for pressure table. 2021-03-22 10:59:57 +01:00
Kristian Bendiksen 6c540ac762 #7490 StimPlanModel: Group pressure data source fields. 2021-03-15 12:20:25 +01:00
Kristian Bendiksen 56b15b903e #7454 StimPlanModelTemplate: Minor tweaks to "Facies Pressure Settings" 2021-03-05 13:42:15 +01:00
Kristian Bendiksen e5edba0d34 #7453 StimPlanModel: Move pressure table check boxes to template. 2021-03-05 09:58:22 +01:00
Kristian Bendiksen 5d331656cd #7365 StimPlanModelTemplate: make it clearer when pressure table is used. 2021-02-19 12:18:30 +01:00
Kristian Bendiksen bb961ab460 #7339 StimPlanModelTemplate: Hide some levels in the project tree. 2021-02-19 12:18:30 +01:00
Kristian Bendiksen 394da90f1c #7339 StimPlanModelTemplate: Auto-select facies for initial pressure. 2021-02-19 12:18:30 +01:00
Kristian Bendiksen 8e29c2eb66 #7339 StimPlanModel: Add case for initial pressure data. 2021-02-19 12:18:30 +01:00
Kristian Bendiksen 77d02e67da #7365 StimPlanModel: Add optional table for inital and current pressure data. 2021-02-19 12:18:30 +01:00
Kristian Bendiksen 3e43ca2b65 #7339 StimPlanModel: handle facies without pressure depletion. 2021-02-19 12:18:30 +01:00
Kristian Bendiksen ad0e07a540 #7339 Move dynamic and static case from instance to template. 2021-02-19 12:18:30 +01:00
Kristian Bendiksen b68d3a5336 Janitor: Remove unused includes. 2021-02-19 12:18:30 +01:00
bc81437435 Moved UnitSystem from RiaEclipseUnitTools to RiaDefines. (#7225)
* Moved UnitSystem from RiaEclipseUnitTools to RiaDefines.
- Renamed UnitSystem to EclipseUnitSystem
- Replaced header includes and removed obsolete includes of RiaEclipseUnitTools.h
* Moved  result name functions into separate file.
* Minor cleanup

Co-authored-by: rubenthoms <rubenthoms@users.noreply.github.com>
Co-authored-by: Magne Sjaastad <magne.sjaastad@ceetronsolutions.com>
Co-authored-by: magnesj <magnesj@users.noreply.github.com>
2021-01-21 12:58:46 +01:00
Kristian Bendiksen 784f3069f0 #7148 StimPlanModel: provide better default for por/perm. 2021-01-15 12:06:39 +01:00
Gaute Lindkvist 81699db187 Rename ApplicationCode to ApplicationLibCode 2021-01-11 15:27:45 +01:00