Opened 13 years ago
Last modified 13 years ago
#6895 closed enhancement
[Patch needs rework] Add Map Paint Styles to View menu — at Version 4
Reported by: | simon04 | Owned by: | team |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | Core | Version: | |
Keywords: | style menu toolbar | Cc: |
Description (last modified by )
In order to achieve #6731, I'd like to add all available Map Paint Styles to the View menu. Available styles can be toggled through the menu, which removes the necessity to view/hide the toggle dialog when this is seldom needed.
What I couldn't manage to get working is to add the new menu entry "Map Paint Styles" to the toolbar for a quicker access. The problem I encountered is that I cannot inherit from JMenu
(for submenu entries) and JosmAction
(for registration for toolbar) simultaneously. I hope anyone knows how to solve this :-).
Change History (6)
by , 13 years ago
Attachment: | 6895.patch added |
---|
by , 13 years ago
Attachment: | mappaintstyles.png added |
---|
comment:1 by , 13 years ago
Description: | modified (diff) |
---|
follow-up: 3 comment:2 by , 13 years ago
comment:3 by , 13 years ago
Replying to Don-vip:
Create another action that simply displays the menu ?
Could you sketch that in more detail, please? Which code goes to the actionPerformed
method?
comment:4 by , 13 years ago
Description: | modified (diff) |
---|
Why not copy TaggingPresets code? This seems to work the way you want.
Create another action that simply displays the menu ? (with the menu being a public final field of Main class)