Modify

Opened 3 years ago

Closed 3 years ago

Last modified 3 years ago

#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 Woazboat)

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

Demonstration of the notes popup menu

Attachments (1)

josm_notes_popup.gif (15.1 KB ) - added by Woazboat 3 years ago.
Demonstration of the notes popup menu

Download all attachments as: .zip

Change History (12)

by Woazboat, 3 years ago

Attachment: josm_notes_popup.gif added

Demonstration of the notes popup menu

comment:1 by Woazboat, 3 years ago

Description: modified (diff)

comment:2 by taylor.smock, 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.

comment:3 by Woazboat, 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.

in reply to:  3 comment:4 by taylor.smock, 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:5 by taylor.smock, 3 years ago

Resolution: fixed
Status: newclosed

In 18540/josm:

Fix #22307: Add popup menu for notes (patch by Woazboat)

The popup menu has the following actions:

  • Comment
  • Open in Browser
  • Close
  • Reopen

comment:6 by taylor.smock, 3 years ago

Milestone: 22.08

comment:7 by Kmpopppe, 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 taylor.smock, 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 Kmpopppe, 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 skyper, 3 years ago

Component: CoreCore notes

comment:11 by taylor.smock, 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).

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain team.
as The resolution will be set.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.