Modify

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

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).

Attachments (0)

Change History (3)

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>

comment:2 by francois.lacombe, 11 years ago

Sounds really good. Thank you and sorry for the "noise" ;)

comment:3 by bastiK, 11 years ago

@francois.lacombe: The feature is there, but the entries in the main preset need to be converted. Some help would be appreciated! I would recommend that you start with a small number of changes first, to see if there is any objection.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain team.
as The resolution will be set.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.