Opened 13 months ago

Closed 8 days ago

#14328 closed enhancement (worksforme)

Grey out unsuitable preset options based on the selected object

Reported by: naoliv Owned by: naoliv
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 (1)

14328_worksforme.png (8.6 KB) - added by Don-vip 13 days ago.

Download all attachments as: .zip

Change History (5)

comment:1 Changed 13 months ago by Klumbumbus

Cc: Klumbumbus added

comment:2 Changed 9 months ago by michael2402

Keywords: menu GUI added

Changed 13 days ago by Don-vip

Attachment: 14328_worksforme.png added

comment:3 Changed 13 days ago by Don-vip

Owner: changed from team to naoliv
Status: newneedinfo

We already have the option "Show only applicable to selection", isn't it enough?

comment:4 Changed 8 days ago by Don-vip

Resolution: worksforme
Status: needinfoclosed

Modify Ticket

Change Properties
Set your email in Preferences
as closed The owner will remain naoliv.
as The resolution will be set.
The resolution will be deleted.

Add Comment

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

Note: See TracTickets for help on using tickets.