#22307 closed enhancement (fixed)
[Patch] Add popup menu for notes
Reported by: | Woazboat | Owned by: | team |
---|---|---|---|
Priority: | normal | Milestone: | 22.08 |
Component: | Core notes | Version: | |
Keywords: | Cc: |
Description (last modified by )
Add a popup menu with possible actions when right-clicking on a note in the notes list
https://github.com/JOSM/josm/pull/98
https://patch-diff.githubusercontent.com/raw/JOSM/josm/pull/98.patch
Attachments (1)
Change History (12)
by , 3 years ago
Attachment: | josm_notes_popup.gif added |
---|
comment:1 by , 3 years ago
Description: | modified (diff) |
---|
comment:2 by , 3 years ago
Stupid question:
Why is notesPopupMenu
a field? It seems like it should be a local variable, since it appears to not be used anywhere else.
follow-up: 4 comment:3 by , 3 years ago
That's how I had it at first until I moved it to a field (in preparation for any future expansion that makes use of the popup menu such as plugin hooks, etc...). That should probably be done by any future patches that actually implement that though, so you're right. I'll change it back to a local variable.
comment:4 by , 3 years ago
OK. Works for me. I'll try to get my working directory cleaned up so I can actually (a) apply your patch and (b) make certain that nothing broke (having looked at the patch, highly unlikely).
comment:6 by , 3 years ago
Milestone: | → 22.08 |
---|
comment:7 by , 3 years ago
Nice one, @Woazboat ... I'd love to use that for the NoteSolver Plugin to add my "Remember" and "Forget" entries ... Is there any way to access that context menu?
comment:8 by , 3 years ago
Not currently. We could probably add two methods for adding/removing options fairly easily.
Since I'm on vacation right now, it will be a few weeks before I can do anything.
comment:9 by , 3 years ago
I have been fighting with the Context Menu of that plugin and it overlaying the core note popup for over a year while also furiously right-clicking the notes in the notes window and wondering why nothing happened (before your change of course) as long as I've been using JOSM, so ... take any time you like :-D
If you want me to test that methods in a pre-release state and if they work with my plugin by all means, just drop me a line, it's the same username for the Wiki and OSM (lowercase k) :-)
Thank you!
comment:10 by , 3 years ago
Component: | Core → Core notes |
---|
comment:11 by , 3 years ago
@Kmpopppe: Can you create a new ticket for extending the popup menu?
I'd specifically like to know what you expect to happen when you add to the menu, and how you think you will be using it (just so I don't do something that isn't what you expected).
Demonstration of the notes popup menu