Changeset 17062 in josm for trunk/src/org
- Timestamp:
- 2020-09-26T19:06:40+02:00 (4 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/InvertSelectionAction.java
r16704 r17062 6 6 7 7 import java.awt.event.ActionEvent; 8 import java.awt.event.KeyEvent; 8 9 9 10 import org.openstreetmap.josm.data.osm.OsmData; 11 import org.openstreetmap.josm.tools.Shortcut; 10 12 11 13 /** … … 18 20 */ 19 21 public InvertSelectionAction() { 20 super(tr("Invert Selection"), "invert_selection", tr("Invert Selection"), null, true); 21 setHelpId(ht("/Action/InvertSelection")); 22 super(tr("Invert Selection"), "invert_selection", tr("Invert Selection"), 23 Shortcut.registerShortcut("selection:invertselection", 24 tr("Selection: {0}", tr("Invert Selection")), KeyEvent.CHAR_UNDEFINED, Shortcut.NONE), true); 25 setHelpId(ht("/Action/InvertSelection")); 22 26 } 23 27 -
trunk/src/org/openstreetmap/josm/actions/SearchNotesDownloadAction.java
r16509 r17062 7 7 import java.awt.GridBagLayout; 8 8 import java.awt.event.ActionEvent; 9 import java.awt.event.KeyEvent; 9 10 import java.util.Collections; 10 11 import java.util.Optional; … … 24 25 import org.openstreetmap.josm.tools.Logging; 25 26 import org.openstreetmap.josm.tools.Utils; 27 import org.openstreetmap.josm.tools.Shortcut; 26 28 27 29 /** … … 35 37 /** Constructs a new note search action */ 36 38 public SearchNotesDownloadAction() { 37 super(tr("Search Notes..."), "note_search", tr("Download notes from the note search API"), null, false, false); 39 super(tr("Search Notes..."), "note_search", tr("Download notes from the note search API"), 40 Shortcut.registerShortcut("file:notesearch", 41 tr("File: {0}", tr("Search Notes...")), KeyEvent.CHAR_UNDEFINED, Shortcut.NONE), false, false); 38 42 } 39 43 -
trunk/src/org/openstreetmap/josm/actions/SelectAllAction.java
r16509 r17062 21 21 public SelectAllAction() { 22 22 super(tr("Select All"), "selectall", tr("Select all undeleted objects in the data layer. This selects incomplete objects too."), 23 Shortcut.registerShortcut("system:selectall", tr(" Edit: {0}", tr("Select All")), KeyEvent.VK_A, Shortcut.CTRL), true);23 Shortcut.registerShortcut("system:selectall", tr("Selection: {0}", tr("Select All")), KeyEvent.VK_A, Shortcut.CTRL), true); 24 24 setHelpId(ht("/Action/SelectAll")); 25 25 } -
trunk/src/org/openstreetmap/josm/actions/SelectNonBranchingWaySequencesAction.java
r16509 r17062 24 24 "way-select", 25 25 tr("Select non-branching sequences of ways"), 26 Shortcut.registerShortcut("wayselector:wayselect", tr("Non-branching way sequences"), KeyEvent.VK_W, Shortcut.SHIFT), 26 Shortcut.registerShortcut("wayselector:wayselect", tr("Selection: {0}", tr("Non-branching way sequences")), 27 KeyEvent.VK_W, Shortcut.SHIFT), 27 28 true); 28 29 } -
trunk/src/org/openstreetmap/josm/actions/UnselectAllAction.java
r16509 r17062 20 20 public UnselectAllAction() { 21 21 super(tr("Unselect All"), "unselectall", tr("Unselect all objects."), 22 Shortcut.registerShortcut("edit:unselectall", tr(" Edit: {0}",22 Shortcut.registerShortcut("edit:unselectall", tr("Selection: {0}", 23 23 tr("Unselect All")), KeyEvent.VK_ESCAPE, Shortcut.DIRECT), true); 24 24 -
trunk/src/org/openstreetmap/josm/gui/dialogs/ChangesetDialog.java
r16436 r17062 12 12 import java.awt.event.MouseAdapter; 13 13 import java.awt.event.MouseEvent; 14 import java.awt.event.KeyEvent; 14 15 import java.util.Arrays; 15 16 import java.util.Collection; … … 63 64 import org.openstreetmap.josm.tools.OpenBrowser; 64 65 import org.openstreetmap.josm.tools.bugreport.BugReportExceptionHandler; 66 import org.openstreetmap.josm.tools.Shortcut; 65 67 66 68 /** … … 251 253 "changesetdialog", 252 254 tr("Open the list of changesets in the current layer."), 253 null, /* no keyboard shortcut */ 255 Shortcut.registerShortcut("subwindow:changesets", tr("Toggle: {0}", tr("Changesets")), 256 KeyEvent.CHAR_UNDEFINED, Shortcut.NONE), 254 257 200, /* the preferred height */ 255 258 false, /* don't show if there is no preference */ -
trunk/src/org/openstreetmap/josm/gui/dialogs/MinimapDialog.java
r14300 r17062 4 4 import static org.openstreetmap.josm.tools.I18n.tr; 5 5 6 import java.awt.event.KeyEvent; 6 7 import java.beans.PropertyChangeEvent; 7 8 import java.beans.PropertyChangeListener; … … 14 15 import org.openstreetmap.josm.gui.bbox.BBoxChooser; 15 16 import org.openstreetmap.josm.gui.bbox.SlippyMapBBoxChooser; 17 import org.openstreetmap.josm.tools.Shortcut; 16 18 17 19 /** … … 27 29 */ 28 30 public MinimapDialog() { 29 super(tr("Mini map"), "minimap", tr("Displays a small map of the current edit location"), null, 150); 31 super(tr("Mini map"), "minimap", tr("Displays a small map of the current edit location"), 32 Shortcut.registerShortcut("subwindow:minimap", tr("Toggle: {0}", tr("Mini map")), 33 KeyEvent.CHAR_UNDEFINED, Shortcut.NONE), 150); 30 34 } 31 35 -
trunk/src/org/openstreetmap/josm/gui/dialogs/NotesDialog.java
r15385 r17062 9 9 import java.awt.event.MouseAdapter; 10 10 import java.awt.event.MouseEvent; 11 import java.awt.event.KeyEvent; 11 12 import java.text.DateFormat; 12 13 import java.util.ArrayList; … … 51 52 import org.openstreetmap.josm.tools.OpenBrowser; 52 53 import org.openstreetmap.josm.tools.date.DateUtils; 54 import org.openstreetmap.josm.tools.Shortcut; 53 55 54 56 /** … … 74 76 /** Creates a new toggle dialog for notes */ 75 77 public NotesDialog() { 76 super(tr("Notes"), "notes/note_open", tr("List of notes"), null, 150); 78 super(tr("Notes"), "notes/note_open", tr("List of notes"), 79 Shortcut.registerShortcut("subwindow:notes", tr("Toggle: {0}", tr("Notes")), 80 KeyEvent.CHAR_UNDEFINED, Shortcut.NONE), 150); 77 81 addCommentAction = new AddCommentAction(); 78 82 closeAction = new CloseAction();
Note:
See TracChangeset
for help on using the changeset viewer.