ResInsight/ApplicationLibCode/ProjectDataModel/AnalysisPlots
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
RimAnalysisPlot.cpp 9978 Improve UI for long drop-down lists, use tree selection more 2023-05-22 15:44:37 +02:00
RimAnalysisPlot.h Added more clang-tidy checks 2023-04-14 14:07:45 +02:00
RimAnalysisPlotCollection.cpp Change API for PdmObjectHandle and PdmFieldHandle 2023-05-12 21:41:34 +02:00
RimAnalysisPlotCollection.h clang-format: Set column width to 140 2023-02-26 10:48:40 +01:00
RimAnalysisPlotDataEntry.cpp #8250 Use variadic macros and remove obsolete parameters 2021-11-14 15:26:09 +01:00
RimAnalysisPlotDataEntry.h #7380 Janitor : Use forward declare when possible 2021-02-17 22:28:21 +01:00
RimPlotDataFilterCollection.cpp Change API for PdmObjectHandle and PdmFieldHandle 2023-05-12 21:41:34 +02:00
RimPlotDataFilterCollection.h Rename ApplicationCode to ApplicationLibCode 2021-01-11 15:27:45 +01:00
RimPlotDataFilterItem.cpp 9978 Improve UI for long drop-down lists, use tree selection more 2023-05-22 15:44:37 +02:00
RimPlotDataFilterItem.h clang-format: Set column width to 140 2023-02-26 10:48:40 +01:00