{"action":"closed","issue":{"url":"https://api.github.com/repos/jongough/ocpn_draw_pi/issues/2","labels_url":"https://api.github.com/repos/jongough/ocpn_draw_pi/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/jongough/ocpn_draw_pi/issues/2/comments","events_url":"https://api.github.com/repos/jongough/ocpn_draw_pi/issues/2/events","html_url":"https://github.com/jongough/ocpn_draw_pi/issues/2","id":60966411,"number":2,"title":"Popup menus on Right Click","user":{"login":"jongough","id":2803240,"avatar_url":"https://avatars.githubusercontent.com/u/2803240?v=3","gravatar_id":"","url":"https://api.github.com/users/jongough","html_url":"https://github.com/jongough","followers_url":"https://api.github.com/users/jongough/followers","following_url":"https://api.github.com/users/jongough/following{/other_user}","gists_url":"https://api.github.com/users/jongough/gists{/gist_id}","starred_url":"https://api.github.com/users/jongough/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jongough/subscriptions","organizations_url":"https://api.github.com/users/jongough/orgs","repos_url":"https://api.github.com/users/jongough/repos","events_url":"https://api.github.com/users/jongough/events{/privacy}","received_events_url":"https://api.github.com/users/jongough/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-03-13T02:42:33Z","updated_at":"2015-05-25T02:27:35Z","closed_at":"2015-05-25T02:27:35Z","body":"Following on from Dave's comment\r\n> jon...\r\n>\r\n>For this one, I think it best for you to clone the relevant code into\r\n>your PLugIn.  Watch mouse move events, draw your own popup, make your\r\n>own timer to hide the popup later.\r\n>\r\n>We are trying hard to simplify the already very complex chcanv.cpp mouse\r\n>handling stuff, and I don't want to add PlugIn callbacks unless there is\r\n>no other way.\r\n>\r\n>Dont worry about the incremental requests.  This is to be expected, and\r\n>now is a good time to add stuff to the new 1.13 API.\r\n>\r\n>Dave\r\n>\r\n\r\n I want to be able to add items to the standard right click popup menu, so that I can add a \"drop POI\" or \"drop OCPNPoint\" marker to the list of available options. With Dave's idea I can take over the menu and replace it or display the current menu, but I cannot update its contents. I think having two actions on right click may be confusing or unusual as it would require another menu to let the user pick which menu to display.\r\n\r\nI may be able to handle right clicking on one of the plugin objects without too many issues, but doing this on the standard canvas may be a problem. So I think there is a need to have the ability for a plugin to add line items to popup menus that can then be passed through to the plugin when selected.\r\n\r\nJon"}}