ResInsight/ApplicationLibCode/ProjectDataModel/WellMeasurement
Magne Sjaastad 40080a99de
9978 Improve UI for long drop-down lists, use tree selection more
* Improve tree selection editor
- always call defineEditorAttributes
- use heightHint in editor attributes 
- use tree selection editor as default editor for std::vector

* Use tree selection editor instead of list selection editor
List selection editor must be used when editing std::vector<cvf::vec3d> and similar. Replace other use of list selection editor with tree selection editor.

* Set checked state based on text string for integer only models
For models with only integer values, use text string to define the items to be selected. The full list will always be visible, and the checked state will be updated when editing the filter text.

Example: "1, 5-7" will set items 1, 5, 6, 7 checked and all other items unchecked

* Minor fixes
- Set placeholder text after content is added (to ensure correct data type)
- Fix check of integers. `canConvert<int>()`returns true for both QString and int. Thus convert to string and then check for int conversion.

* Activate filtering when unchecking all items in list with only integers
- Reactivate filtering when uncheck of all items for a list with only integer values (to keep consistency between filter and list)
- Update function name for clarity

---------

Co-authored-by: Jørgen Herje <jorgen.herje@ceetronsolutions.com>
2023-05-22 15:44:37 +02:00
..
CMakeLists_files.cmake cmake-format: Allow dangling parenthesis 2021-09-01 08:13:16 +02:00
RimWellMeasurement.cpp Change API for PdmObjectHandle and PdmFieldHandle 2023-05-12 21:41:34 +02:00
RimWellMeasurement.h Move well related pdm files into subfolders to clean up a bit 2021-07-15 13:47:16 +02:00
RimWellMeasurementCollection.cpp Change API for PdmObjectHandle and PdmFieldHandle 2023-05-12 21:41:34 +02:00
RimWellMeasurementCollection.h clang-format: Set column width to 140 2023-02-26 10:48:40 +01:00
RimWellMeasurementCurve.cpp Change API for PdmObjectHandle and PdmFieldHandle 2023-05-12 21:41:34 +02:00
RimWellMeasurementCurve.h Merge pull request #8985 from OPM/8926-remove-useoptionsonly 2022-05-29 13:01:27 +02:00
RimWellMeasurementFilePath.cpp #8420 Janitor: Remove empty parameters in initialization macros 2022-01-07 08:31:52 +01:00
RimWellMeasurementFilePath.h Move well related pdm files into subfolders to clean up a bit 2021-07-15 13:47:16 +02:00
RimWellMeasurementFilter.cpp clang-format: Set column width to 140 2023-02-26 10:48:40 +01:00
RimWellMeasurementFilter.h clang-format: Set column width to 140 2023-02-26 10:48:40 +01:00
RimWellMeasurementInView.cpp 9978 Improve UI for long drop-down lists, use tree selection more 2023-05-22 15:44:37 +02:00
RimWellMeasurementInView.h clang-format: Set column width to 140 2023-02-26 10:48:40 +01:00
RimWellMeasurementInViewCollection.cpp Change API for PdmObjectHandle and PdmFieldHandle 2023-05-12 21:41:34 +02:00
RimWellMeasurementInViewCollection.h Well measurement improvements 2023-02-07 17:44:47 +01:00