Opened 10 months ago

Last modified 6 months ago

#14328 new enhancement

Grey out unsuitable preset options based on the selected object

Reported by: naoliv Owned by: team
Priority: normal Milestone:
Component: Core Version:
Keywords: menu GUI Cc: Klumbumbus


If we try to apply a preset on a unsuitable object we see a warning message saying The preset foo cannot be applied since the selection is unsuitable!
For example, when trying to apply a preset that needs a way when a node is selected.

Instead displaying a warning message, couldn't we simply have the options greyed out when the object is unsuitable?

If the preset requires a node and we have a way selected, all the options that are not suitable for ways would be greyed out (so the user won't be able to select invalid presets nor see a warning message).

It's similar to what we already have with most of the Tools menu.
For example, if we don't have any object selected we can't click on Simplify Way.


Repository:UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
Last:Changed Date: 2017-02-04 01:51:01 +0100 (Sat, 04 Feb 2017)
Build-Date:2017-02-04 02:33:55
Relative:URL: ^/trunk

Identification: JOSM/1.5 (11533 en) Linux Debian GNU/Linux 9.0 (stretch)
Memory Usage: 292 MB / 3005 MB (98 MB allocated, but free)
Java version: 1.8.0_121-8u121-b13-2-b13, Oracle Corporation, OpenJDK 64-Bit Server VM
Screen: :0.0 1920x1080
Maximum Screen Size: 1920x1080
Java package: openjdk-8-jre:amd64-8u121-b13-2
Java ATK Wrapper package: libatk-wrapper-java:all-0.33.3-13
VM arguments: [-Dawt.useSystemAAFontSettings=on]
Program arguments: [--language=en]
Dataset consistency test: No problems found

Attachments (0)

Change History (2)

comment:1 Changed 10 months ago by Klumbumbus

Cc: Klumbumbus added

comment:2 Changed 6 months ago by michael2402

Keywords: menu GUI added

Modify Ticket

Change Properties
Set your email in Preferences
as new The owner will remain team.
as The resolution will be set.
to The owner will be changed from team to the specified user.
The owner will change to naoliv
as duplicate The resolution will be set to duplicate.The specified ticket will be cross-referenced with this ticket
The owner will be changed from team to anonymous.

Add Comment

E-mail address and name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.