#21319 closed enhancement (fixed)
[PATCH] Refactoring of class hierarchy around JosmComboBox / AutoCompComboBox
Reported by: | Owned by: | team | |
---|---|---|---|
Priority: | major | Milestone: | 21.10 |
Component: | Core | Version: | |
Keywords: | Cc: |
Description
Added classes in bold to orthogonalize hierarchy:
JComboBox | JComboBoxModel | JComboBoxEditor | JTextField |
JosmComboBox | JosmComboBoxModel | JosmComboBoxEditor | JosmTextField |
AutoCompComboBox | AutoCompComboBoxModel | AutoCompComboBoxEditor | AutoCompTextField |
Code reuse: JosmComboBox now uses a JosmTextField as editor
Code reuse: AutoCompComboBox now uses AutoCompTextField as editor
JosmComboBox uses more of the original L&F
JosmComboBox lists now expand all the way to the bottom or the top of the screen
Variable height items in combobox lists now work #19321
Autocomplete uses different algorithm #21290
editable="false" comboboxes in Presets now work #6157 #11024 #18714
The user may toggle LTR-RTL script in JosmTextField (menu and ctrl+space)
LTR-RTL automatically toggles according to key in AddTag and EditTag dialogs #16163
Attachments (3)
Change History (36)
by , 4 years ago
Attachment: | 21319.patch added |
---|
comment:1 by , 4 years ago
comment:3 by , 4 years ago
Milestone: | → 21.09 |
---|
comment:4 by , 4 years ago
comment:6 by , 4 years ago
Priority: | normal → major |
---|
comment:9 by , 4 years ago
I have some missing <optional>
with or without additional text which only appear when I open the preset for the second time. The first time opening the preset after restart/reload empty space is present but the text is missing. Is this related to this ticket?
missing | working |
---|---|
![]() | ![]() |
comment:10 by , 4 years ago
Resolution: | fixed |
---|---|
Status: | closed → reopened |
by , 4 years ago
Attachment: | 21319-2.patch added |
---|
comment:15 by , 4 years ago
<optional>
has the option to add text instead of the default with text=""
.
In my screenshots above it is <optional text="Only in case of manual actuator or manual mechanical drive: ">
and one of many examples in current defaultpresets.xml is <optional text="Edit Highway Attributes:">
in "Cycle Lane/Track" preset.
comment:17 by , 4 years ago
Hmm, combo boxes don't seem to work when a value has already entered. You can check it eg. in the restaurant preset.
follow-up: 19 comment:18 by , 4 years ago
comment:19 by , 4 years ago
comment:20 by , 4 years ago
For me, both Win and Linux affected with default LaF, r18237. @skyper, can you please test with native laf?
comment:21 by , 4 years ago
Oh okay, so the multiselect is only "broken" when the tag has only a single value. Also if the value contains extra space between the semicolon separators eg. cuisine=asian; african
.
By broken I mean greyed out, so I can not use the GUI for adding items.
comment:22 by , 4 years ago
Ok, I can reproduce it if an unknown value is present (including leading or trailing white spaces). This is nothing new and happens with r18193, too. The problem is that, atm, unlike combo
no values are add to the list and cause of that not all values are displayed. To stop users from overwriting valid but unknown values the multiselect
is disabled. Please, open a new enhancement ticket, if you think this should be changed. Thanks.
follow-up: 31 comment:30 by , 3 years ago
comment:31 by , 3 years ago
Replying to Klumbumbus:
There are 62 unit tests failing on Jenkins since r18538. Not sure if this is a problem on Jenkins though, since there are also 2 test failing after r18537, which doens't make sense imo.
The OSM dev server was down (errol). So all the integration tests expecting a live dev api failed.
follow-up: 33 comment:32 by , 3 years ago
Ah, OK. I just started a new run on Jenkins. Lets see if the tests pass this time. --> they did.
comment:33 by , 3 years ago
Replying to Klumbumbus:
Ah, OK. I just started a new run on Jenkins. Lets see if the tests pass this time. --> they did.
That is kind of what I expected. I don't know how prevalent the dev server going down is going to be (this is the second or third time this year). There was an outage in July as well. I tracked that one in #22216.
Wow, that's quite a patch