Opened 9 years ago
Closed 8 years 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 |
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 (1)
Change History (5)
comment:1 by , 9 years ago
| Cc: | added |
|---|
comment:2 by , 9 years ago
| Keywords: | menu GUI added |
|---|
by , 8 years ago
| Attachment: | 14328_worksforme.png added |
|---|
comment:3 by , 8 years ago
| Owner: | changed from to |
|---|---|
| Status: | new → needinfo |
comment:4 by , 8 years ago
| Resolution: | → worksforme |
|---|---|
| Status: | needinfo → closed |



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