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 bastiK)

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 simon04, 13 years ago

Attachment: 6895.patch added

by simon04, 13 years ago

Attachment: mappaintstyles.png added

comment:1 by simon04, 13 years ago

Description: modified (diff)

comment:2 by Don-vip, 13 years ago

Create another action that simply displays the menu ? (with the menu being a public final field of Main class)

in reply to:  2 comment:3 by simon04, 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 bastiK, 13 years ago

Description: modified (diff)

Why not copy TaggingPresets code? This seems to work the way you want.

Note: See TracTickets for help on using tickets.