Magne Sjaastad
d10254933c
#11140 Fix filtering based on text in tree selection editor
2024-01-30 14:34:33 +01:00
Magne Sjaastad
2c02d61846
Use QRegularExpression instead of QRegExp
2024-01-07 18:28:36 +01:00
Magne Sjaastad
34d83efaed
#10417 Use radiobuttons for single selection in lists
2023-06-26 10:17:47 +02:00
jonjenssen
f17c02ce86
Add step support to range text format ( #10311 )
...
* Add step support to range text format
* Add step support to integer selection filter
2023-05-26 08:59:13 +02:00
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
Jørgen Herje
342f191288
Add filtering/exclude of rows in SummaryTable ( #10193 )
...
- Add selector for excluding rows in table
- Row selection is based on category, vector, threshold
- Move data containers to utils class
- TreeSelectionEditor: Add context menu to invert selection
- Improved naming of menu items
- Guard plotDefinition before connect signal/slots
---------
Co-authored-by: Magne Sjaastad <magne.sjaastad@ceetronsolutions.com>
2023-05-02 11:18:45 +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
3c07989c51
Janitor : Remove obsolete code related to Qt 4
2021-02-22 13:37:05 +01:00
Magne Sjaastad
bdc536dfc4
#6106 Apply clang-format on AppFwk
2020-06-19 08:00:01 +02:00
Magne Sjaastad
001afc33dd
AppFwk : Allow text filter in single selection mode
2020-03-30 08:57:59 +02:00
Gaute Lindkvist
03ff43237d
Add a view id tag to project tree and tooltip
...
* Remove it from property editor
2019-11-05 11:09:18 +01:00
Magne Sjaastad
daf4132dec
#4744 AppFwk : Auto scroll to first checked item
2019-09-20 14:19:26 +02:00
Magne Sjaastad
a9080e14c3
#4722 AppFwk: Rename
2019-09-20 09:54:10 +02:00
Magne Sjaastad
cba51615d8
#4722 Summary Plot Editor : Update current item in tree view
...
Make sure the current selected item in the tree view is updated with the value in the underlying field.
2019-09-20 09:44:26 +02:00
Gaute Lindkvist
4e92a7e44a
More consistent naming for Qt-derived classes in CAF
2019-04-08 14:24:43 +02:00
Gaute Lindkvist
a8e14e9f9a
Fix copyright header and namespace for cafShortenedQLabel
2019-04-05 17:31:07 +02:00
Gaute Lindkvist
6a2e81ca4b
#4282 Add a new cafShortenedQLabel class that provides a label that shortens itself when space is limited
2019-04-05 13:05:14 +02:00
Gaute Lindkvist
038d7a7676
#4097 Implement stretch factors for editors
2019-04-04 11:19:35 +02:00
Gaute Lindkvist
925747b9d4
Fix warnings about QStyleFrameOptionsV4
2019-03-14 09:50:58 +01:00
Magne Sjaastad
b15f58b560
#4083 Summary : Do not change selected summary type when unticking a checkbox
2019-02-17 10:49:47 +01:00
Magne Sjaastad
65ee55c96d
#3944 clang-tidy : Apply clang-tidy on caf
2019-01-11 08:14:53 +01:00
Gaute Lindkvist
01e4454d85
Revert " #3751 Fix keyboard selection in Summary Plot Editor"
...
This reverts commit ab0fa2fb19
.
* This change should never have been merged back into the repo.
2018-11-30 09:22:01 +01:00
Gaute Lindkvist
40f466fb0c
#3751 Fix keyboard selection by overriding keyPressEvent and emitting clicked()
2018-11-26 08:01:54 +01:00
Gaute Lindkvist
ab0fa2fb19
#3751 Fix keyboard selection in Summary Plot Editor
2018-11-23 15:36:33 +01:00
Gaute Lindkvist
2cf5357a47
#3738 Active correct item when clicking in Summary Plot Editor
2018-11-23 15:11:23 +01:00
Magne Sjaastad
764fb65e8e
clang-tidy : Remove redundant 'virtual' and add 'override'
...
clang-tidy : Remove redundant 'virtual' and add 'override'
2018-10-18 16:35:51 +02:00
Gaute Lindkvist
fcda0b9755
Remove padding to the left in TreeSelectionEditor if the tree doesn't have grand children.
2018-10-02 08:46:24 +02:00
Gaute Lindkvist
8c5e538f01
Implement a way for editors to fit the label to the field.
2018-09-27 16:07:35 +02:00
Magne Sjaastad
6aa234cc9b
AppFwk : Fix several warnings
2018-09-13 09:01:05 +02:00
Gaute Lindkvist
d13a52a8b4
#3058 Implement a memory cleanup dialog for GeoMech data.
2018-06-19 12:20:21 +02:00
Magne Sjaastad
17ee25d0b2
AppFwk : Rename to uiField() and setUiField()
2018-06-15 14:22:03 +02:00
Magne Sjaastad
3239c66f54
AppFwk (clang-tidy) : modernize-use-nullptr
2018-02-18 18:05:08 +01:00
Magne Sjaastad
81129302f3
#2266 AppFwk : Add editor attribute setCurrentIndexWhenItemIsChecked
...
Fix bug when a selection is active
2017-12-14 16:03:14 +01:00
Magne Sjaastad
3dadef4c76
#2197 AppFwk : Add supporft for placeholder text (taken from Qt 4.7)
...
PlaceholderLineEdit is a temporary class to be removed when Qt is upgraded
2017-12-11 09:12:31 +01:00
Magne Sjaastad
2c4b1e453d
#2197 Rollback : placeholderText was introduced in Qt 4.7
2017-12-08 16:52:31 +01:00
Magne Sjaastad
f5b5b8ff89
#2197 Summary Plot Editor : Add hint to user when a filter field is empty
2017-12-08 14:39:04 +01:00
Magne Sjaastad
c7b3c4bc68
#2200 Summary Plot Editor : Do not select an item when toggling item off
2017-12-08 13:06:49 +01:00
Magne Sjaastad
eaa0a1d6fe
#2200 AppFwk Tree Selection Editor: Select item when toggling
...
When toggling the checked state, also select (highlight) the toggled item
2017-12-04 13:25:47 +01:00
Magne Sjaastad
6da6a0abe1
#2212 AppFwk : Allow '[' and ']' in filter field text
2017-12-04 12:58:10 +01:00
Jacob Støren
f1c8c0ebbe
AppFwk: Fix crash and memory leak in TreeSelectionEditor system
2017-11-15 11:32:25 +01:00
Magne Sjaastad
cebe3009e7
#2131 AppFwk : Wire up custom menu slot once
...
When this signal is wired up multiple times, the context menu shows up after activating a menu item in the context menu
2017-11-14 09:43:33 +01:00
Jacob Støren
9070a97815
#2112 Step two of performance fixing: Avoid unneccessary calls to uiValue from the treeSelectionQMode by caching it temporarily
2017-11-11 02:38:52 +01:00
Jacob Støren
6ee03340a5
#2112 First step in improved performance: When toggling several at once, avoid update for each.
2017-11-10 23:34:22 +01:00
Magne Sjaastad
d02274a897
#1969 Curve Calculator : Support single select in tree selection editor
2017-10-13 08:54:06 +02:00
Magne Sjaastad
e8d04618af
#1935 AppFwk : Update model indices when configureAndUpdateUI is called
2017-09-26 15:09:27 +02:00
Magne Sjaastad
fa97db4465
#1935 AppFwk : Apply text filter to be applied on leaf nodes only
2017-09-26 14:06:56 +02:00
Magne Sjaastad
f2d32a5833
#1925 Tree Selection Editor : Do not change toggle state if list is empty
2017-09-21 20:10:52 +02:00
Magne Sjaastad
b3b0a7ba9b
#1895 Curve Creator : Use PdmFieldHandle instead of PdmUiFieldHandle
2017-09-20 10:43:19 +02:00
Magne Sjaastad
f61122ce0e
#1895 Curve Creator : Added documentation
2017-09-20 10:06:57 +02:00
Magne Sjaastad
1bb1c87058
#1895 Curve Creator : Add support for single value fields
2017-09-20 10:06:57 +02:00