Modify

Opened 5 months ago

Last modified 3 weeks 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

Description

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.

JOSM:

URL:http://josm.openstreetmap.de/svn/trunk
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
Revision:11533
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 5 months ago by Klumbumbus

Cc: Klumbumbus added

comment:2 Changed 3 weeks ago by michael2402

Keywords: menu GUI added

Modify Ticket

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

Add Comment


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

 
Note: See TracTickets for help on using tickets.