Opened 11 years ago

Closed 11 years ago

Last modified 11 years ago

#10558 closed enhancement (worksforme)

Labels for combo lists values on presets windows — at Version 1

Reported by: francois.lacombe Owned by: team
Priority: normal Milestone:
Component: Core Version:
Keywords: presets, combo, xml Cc:

Description (last modified by Don-vip)

It would be great to have the ability to define human-readable labels for values in presets combo lists.

Currently, values and label are the same since the values="" attribute is used on "combo" objects in presets XML to fill those lists.

Can't it be possible to move towards a more HTML-like approach ?

<combo key="highway" text="">
  <option value="service">Service</option>
  <option value="primary">Primary road</option>
  <option value="secondary">Secondary road</option>
  ...
</combo>

My point is providing the ability to do so, no to edit the whole defaultpresets.xml like that.

It will be consistent with the human-readable labels for keys displayed on JOSM (the text="" attribute on many presets fields).

Change History (1)

comment:1 by Don-vip, 11 years ago

Description: modified (diff)
Resolution: worksforme
Status: newclosed

This is already implemented:

                <combo key="generator:type" text="Generator Type" values_searchable="true">
                    <list_entry value="BWR-1" display_value="Boiling Water Reactor 1 (BWR-1)" short_description="fission" />
                    <list_entry value="BWR-2" display_value="Boiling Water Reactor 2 (BWR-2)" short_description="fission" />
                    <list_entry value="BWR-3" display_value="Boiling Water Reactor 3 (BWR-3)" short_description="fission" />
                    <list_entry value="BWR-4" display_value="Boiling Water Reactor 4 (BWR-4)" short_description="fission" />
                    <list_entry value="BWR-5" display_value="Boiling Water Reactor 5 (BWR-5)" short_description="fission" />
                    <list_entry value="BWR-6" display_value="Boiling Water Reactor 6 (BWR-6)" short_description="fission" />
...
                </combo>
Note: See TracTickets for help on using tickets.