#22655 closed enhancement (fixed)
[PATCH] Added new button 'Clear and add'
Reported by: | Owned by: | Gnonthgol | |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | Plugin todo | Version: | |
Keywords: | Cc: |
Description
Based on slack josm channel and taylor.smock recommendation I'm creating this issue to add new tested feature to main branch.
This change adds a shortcut to an existing button 'ADD’ and there is a new button ‘Clear and add’ that clears todo list, adds items from the selection and zooms on the first item of the list.
I made changes in the java file, successfully built a local version using ant that is deployed in my JOSM and tested for months.
svn diff file included
Attachments (3)
Change History (14)
by , 2 years ago
Attachment: | new_feature.diff added |
---|
comment:1 by , 2 years ago
Notes from a quick skim of the patch:
- Please don't hardcode keyboard shortcuts (see TodoDialog from your patch on line 303). Users can change their keyboard shortcut, and showing an incorrect shortcut should not be done.
- When implementing new actions, please extend
JosmAction
instead ofAbstractAction
. Among other things, it will properly add the shortcut to the tooltip.- I know that the other actions from the Todo plugin don't extend
JosmAction
. They should probably be updated, but that isn't your problem. :) - It will also register the shortcut and action combination (so you can get rid of
MainApplication.registerActionShortcut
calls) - The constructors that you should call will also do the
putValue
calls for you.
- I know that the other actions from the Todo plugin don't extend
comment:2 by , 2 years ago
Summary: | Added new button 'Clear and add' → [WIP PATCH] Added new button 'Clear and add' |
---|
comment:4 by , 2 years ago
Looks good to me. I'll pull it down and apply it when I've got some time to play around with it. If I haven't applied the patch by next Monday, ping this ticket (add a comment).
If you need/want credit to a specific github account, you can make a fork of https://github.com/JOSM/todo and then open a PR against that repo.
Otherwise, if you have a preferred screen name for credit, please let me know. Otherwise, the commit message will likely look like
Fix #22655: Add new button for clearing the current list and adding the selected objects (patch by tondahaas)
comment:6 by , 2 years ago
Hello. This is a friendly reminder about updating status of the ticket. Thank you.
comment:7 by , 2 years ago
Summary: | [WIP PATCH] Added new button 'Clear and add' → [PATCH] Added new button 'Clear and add' |
---|
Thank you for pinging this ticket.
comment:8 by , 2 years ago
OK. I've done a little playing around with it, and I think that adding another button is pushing it, for the default size of the toggle dialog.
What do you think about making it part of a drop down, like the Search
button in the Selection
toggle dialog?
comment:9 by , 2 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
In a477a7fbfd4f469154be3f9ea26bc2fa44561f1f.
I probably won't make a release until I update the translations, so probably around February 27th is when you can expect a release with the change.
comment:10 by , 2 years ago
Looks like "Mark" is missing in the string on line 412 in Git a477a7f/SVN 144:
tr(" the selected items (on the map) as done in the todo list."),
Based on the context and the previous string that should be (I think):
tr("Mark the selected items (on the map) as done in the todo list."),
comment:11 by , 2 years ago
Thanks. It should be fixed in 7004cefb58a74d3d43f3483bd2eb0042db8ddcd5.
diff file