- Timestamp:
- 2012-01-21T23:58:25+01:00 (13 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/search/SearchAction.java
r4832 r4842 377 377 right.add(new SearchKeywordRow(hcbSearchString) 378 378 .addTitle(tr("basic examples")) 379 .addKeyword( "Baker Street", "Baker Street", tr("''Baker'' and ''Street'' in any key"))380 .addKeyword( "\"Baker Street\"", "\"Baker Street\"", tr("''Baker Street'' in any key"))379 .addKeyword(tr("Baker Street"), tr("Baker Street"), tr("''Baker'' and ''Street'' in any key")) 380 .addKeyword(tr("\"Baker Street\""), tr("\"Baker Street\""), tr("''Baker Street'' in any key")) 381 381 , GBC.eol()); 382 382 right.add(new SearchKeywordRow(hcbSearchString) -
trunk/src/org/openstreetmap/josm/gui/dialogs/FilterDialog.java
r4766 r4842 90 90 91 91 private static final KeyStroke ENABLE_FILTER_SHORTCUT 92 = Shortcut.registerShortcut("core_multikey:enableFilter", tr("Multikey: {0}", tr("Enable filter")), 'E', Shortcut.GROUP_DIRECT, KeyEvent.CTRL_DOWN_MASK +KeyEvent.ALT_DOWN_MASK).getKeyStroke();92 = Shortcut.registerShortcut("core_multikey:enableFilter", tr("Multikey: {0}", tr("Enable filter")), KeyEvent.VK_E, Shortcut.GROUP_DIRECT, KeyEvent.CTRL_DOWN_MASK|KeyEvent.ALT_DOWN_MASK).getKeyStroke(); 93 93 94 94 private static final KeyStroke HIDING_FILTER_SHORTCUT 95 = Shortcut.registerShortcut("core_multikey:hidingFilter", tr("Multikey: {0}", tr("Hide filter")), 'H', Shortcut.GROUP_DIRECT, KeyEvent.CTRL_DOWN_MASK +KeyEvent.ALT_DOWN_MASK).getKeyStroke();95 = Shortcut.registerShortcut("core_multikey:hidingFilter", tr("Multikey: {0}", tr("Hide filter")), KeyEvent.VK_H, Shortcut.GROUP_DIRECT, KeyEvent.CTRL_DOWN_MASK|KeyEvent.ALT_DOWN_MASK).getKeyStroke(); 96 96 97 97 -
trunk/src/org/openstreetmap/josm/gui/dialogs/LayerListDialog.java
r4766 r4842 445 445 putValue(SHORT_DESCRIPTION, tr("Toggle visible state of the selected layer.")); 446 446 putValue("help", HelpUtil.ht("/Dialog/LayerList#ShowHideLayer")); 447 putValue(ACCELERATOR_KEY, Shortcut.registerShortcut("core_multikey:showHideLayer", tr("Multikey: {0}", tr("Show/hide layer")), 'S', Shortcut.GROUP_DIRECT, KeyEvent.SHIFT_DOWN_MASK).getKeyStroke()); 447 putValue(ACCELERATOR_KEY, Shortcut.registerShortcut("core_multikey:showHideLayer", tr("Multikey: {0}", 448 tr("Show/hide layer")), KeyEvent.VK_S, Shortcut.GROUP_DIRECT, KeyEvent.SHIFT_DOWN_MASK).getKeyStroke()); 448 449 if (init) { 449 450 updateEnabledState(); … … 632 633 putValue(SMALL_ICON, ImageProvider.get("dialogs", "activate")); 633 634 putValue(SHORT_DESCRIPTION, tr("Activate the selected layer")); 634 putValue(ACCELERATOR_KEY, Shortcut.registerShortcut("core_multikey:activateLayer", tr("Multikey: {0}", tr("Activate layer")), 'A', Shortcut.GROUP_DIRECT, KeyEvent.SHIFT_DOWN_MASK).getKeyStroke()); 635 putValue(ACCELERATOR_KEY, Shortcut.registerShortcut("core_multikey:activateLayer", tr("Multikey: {0}", 636 tr("Activate layer")), KeyEvent.VK_A, Shortcut.GROUP_DIRECT, KeyEvent.SHIFT_DOWN_MASK).getKeyStroke()); 635 637 putValue("help", HelpUtil.ht("/Dialog/LayerList#ActivateLayer")); 636 638 } -
trunk/src/org/openstreetmap/josm/gui/layer/JumpToMarkerActions.java
r4766 r4842 34 34 35 35 public JumpToNextMarker(JumpToMarkerLayer layer) { 36 putValue(ACCELERATOR_KEY, Shortcut.registerShortcut("core_multikey:nextMarker", tr("Multikey: {0}", tr("Next marker")), 'J', Shortcut.GROUP_DIRECT, KeyEvent.ALT_DOWN_MASK + KeyEvent.CTRL_DOWN_MASK).getKeyStroke()); 36 putValue(ACCELERATOR_KEY, Shortcut.registerShortcut("core_multikey:nextMarker", tr("Multikey: {0}", tr("Next marker")), 37 KeyEvent.VK_J, Shortcut.GROUP_DIRECT, KeyEvent.ALT_DOWN_MASK|KeyEvent.CTRL_DOWN_MASK).getKeyStroke()); 37 38 putValue(SHORT_DESCRIPTION, tr("Jump to next marker")); 38 39 putValue(NAME, tr("Jump to next marker")); … … 90 91 this.layer = (Layer)layer; 91 92 92 putValue(ACCELERATOR_KEY, Shortcut.registerShortcut("core_multikey:previousMarker", tr("Multikey: {0}", tr("Previos marker")), 'P', Shortcut.GROUP_DIRECT, KeyEvent.ALT_DOWN_MASK + KeyEvent.CTRL_DOWN_MASK).getKeyStroke()); 93 putValue(ACCELERATOR_KEY, Shortcut.registerShortcut("core_multikey:previousMarker", tr("Multikey: {0}", 94 tr("Previos marker")), KeyEvent.VK_P, Shortcut.GROUP_DIRECT, KeyEvent.ALT_DOWN_MASK|KeyEvent.CTRL_DOWN_MASK).getKeyStroke()); 93 95 putValue(SHORT_DESCRIPTION, tr("Jump to previous marker")); 94 96 putValue(NAME, tr("Jump to previous marker")); -
trunk/src/org/openstreetmap/josm/gui/layer/geoimage/ImageViewerDialog.java
r4241 r4842 64 64 65 65 private ImageViewerDialog() { 66 super(tr("Geotagged Images"), "geoimage", tr("Display geotagged images"), Shortcut.registerShortcut("tools:geotagged", tr("Tool: {0}", tr("Display geotagged images")), KeyEvent.VK_Y, Shortcut.GROUP_EDIT), 200); 66 super(tr("Geotagged Images"), "geoimage", tr("Display geotagged images"), Shortcut.registerShortcut("tools:geotagged", 67 tr("Tool: {0}", tr("Display geotagged images")), KeyEvent.VK_Y, Shortcut.GROUP_EDIT), 200); 67 68 68 69 /* Don't show a detached dialog right from the start. */ … … 93 94 btnDelete.setPreferredSize(buttonDim); 94 95 Shortcut scDelete = Shortcut.registerShortcut( 95 "geoimage:deleteimagefromlayer", tr("Geoimage: {0}", DELETE_TEXT), KeyEvent.VK_DELETE, Shortcut.GROUP_DIRECT, Shortcut.SHIFT_DEFAULT);96 "geoimage:deleteimagefromlayer", tr("Geoimage: {0}", tr("Remove photo from layer")), KeyEvent.VK_DELETE, Shortcut.GROUP_DIRECT, Shortcut.SHIFT_DEFAULT); 96 97 Main.registerActionShortcut(delAction, scDelete); 97 98 btnDelete.getInputMap(JComponent.WHEN_IN_FOCUSED_WINDOW).put(scDelete.getKeyStroke(), DELETE_TEXT); … … 102 103 btnDeleteFromDisk.setPreferredSize(buttonDim); 103 104 Shortcut scDeleteFromDisk = Shortcut.registerShortcut( 104 "geoimage:deletefilefromdisk", tr("Geoimage: {0}", tr("Delete File from disk")), KeyEvent.VK_DELETE, Shortcut.GROUP_DIRECT, Shortcut.GROUP_MENU + Shortcut.SHIFT_DEFAULT);105 "geoimage:deletefilefromdisk", tr("Geoimage: {0}", tr("Delete File from disk")), KeyEvent.VK_DELETE, Shortcut.GROUP_DIRECT, KeyEvent.SHIFT_DOWN_MASK|KeyEvent.CTRL_DOWN_MASK); 105 106 final String ADELFROMDISK = "Delete image file from disk"; 106 107 Main.registerActionShortcut(delFromDiskAction, scDeleteFromDisk);
Note:
See TracChangeset
for help on using the changeset viewer.