Changeset 4958 in josm for trunk/src/org/openstreetmap
- Timestamp:
- 2012-02-16T19:12:00+01:00 (13 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/CopyCoordinatesAction.java
r4418 r4958 17 17 super(tr("Copy Coordinates"), null, 18 18 tr("Copy coordinates of selected nodes to clipboard."), 19 Shortcut.registerShortcut("copy:coordinates", tr("Edit: {0}", tr("Copy Coordinates")), KeyEvent.VK_C, Shortcut.GROUP_MENU, Shortcut.SHIFT_DEFAULT), 19 Shortcut.registerShortcut("copy:coordinates", tr("Edit: {0}", tr("Copy Coordinates")), 20 KeyEvent.VK_C, Shortcut.GROUP_MENU+Shortcut.GROUPS_ALT1), 20 21 false); 21 22 putValue("toolbar", "copy/coordinates"); -
trunk/src/org/openstreetmap/josm/actions/CreateCircleAction.java
r4126 r4958 43 43 public CreateCircleAction() { 44 44 super(tr("Create Circle"), "createcircle", tr("Create a circle from three selected nodes."), 45 Shortcut.registerShortcut("tools:createcircle", tr("Tool: {0}", tr("Create Circle")), KeyEvent.VK_O, Shortcut.GROUP_EDIT, Shortcut.SHIFT_DEFAULT), true); 45 Shortcut.registerShortcut("tools:createcircle", tr("Tool: {0}", tr("Create Circle")), 46 KeyEvent.VK_O, Shortcut.GROUP_EDIT+Shortcut.GROUPS_ALT1), true); 46 47 putValue("help", ht("/Action/CreateCircle")); 47 48 } -
trunk/src/org/openstreetmap/josm/actions/CreateMultipolygonAction.java
r4731 r4958 48 48 public CreateMultipolygonAction() { 49 49 super(tr("Create multipolygon"), "multipoly_create", tr("Create multipolygon."), 50 51 DIRECT, KeyEvent.ALT_DOWN_MASK | KeyEvent.CTRL_DOWN_MASK), true);50 Shortcut.registerShortcut("tools:multipoly", tr("Tool: {0}", tr("Create multipolygon")), 51 KeyEvent.VK_A, Shortcut.GROUP_MENU+Shortcut.GROUPS_ALT2), true); 52 52 } 53 53 /** -
trunk/src/org/openstreetmap/josm/actions/JoinAreasAction.java
r4458 r4958 306 306 // Adds the menu entry, Shortcuts, etc. 307 307 public JoinAreasAction() { 308 super(tr("Join overlapping Areas"), "joinareas", tr("Joins areas that overlap each other"), Shortcut.registerShortcut("tools:joinareas", tr("Tool: {0}", tr("Join overlapping Areas")), 309 KeyEvent.VK_J, Shortcut.GROUP_EDIT, Shortcut.SHIFT_DEFAULT), true); 308 super(tr("Join overlapping Areas"), "joinareas", tr("Joins areas that overlap each other"), 309 Shortcut.registerShortcut("tools:joinareas", tr("Tool: {0}", tr("Join overlapping Areas")), 310 KeyEvent.VK_J, Shortcut.GROUP_EDIT+Shortcut.GROUPS_ALT1), true); 310 311 } 311 312 -
trunk/src/org/openstreetmap/josm/actions/PurgeAction.java
r4868 r4958 60 60 /* translator note: other expressions for "purge" might be "forget", "clean", "obliterate", "prune" */ 61 61 super(tr("Purge..."), "purge", tr("Forget objects but do not delete them on server when uploading."), 62 Shortcut.registerShortcut("system:purge", tr("Edit: {0}", tr("Purge")), KeyEvent.VK_P, Shortcut.GROUP_MENU, Shortcut.SHIFT_DEFAULT) 63 , true); 62 Shortcut.registerShortcut("system:purge", tr("Edit: {0}", tr("Purge")), 63 KeyEvent.VK_P, Shortcut.GROUP_MENU+Shortcut.GROUPS_ALT1), 64 true); 64 65 putValue("help", HelpUtil.ht("/Action/Purge")); 65 66 } -
trunk/src/org/openstreetmap/josm/actions/SaveAsAction.java
r2323 r4958 24 24 public SaveAsAction() { 25 25 super(tr("Save As..."), "save_as", tr("Save the current data to a new file."), 26 Shortcut.registerShortcut("system:saveas", tr("File: {0}", tr("Save As...")), KeyEvent.VK_S, Shortcut.GROUP_MENU, Shortcut.SHIFT_DEFAULT)); 26 Shortcut.registerShortcut("system:saveas", tr("File: {0}", tr("Save As...")), 27 KeyEvent.VK_S, Shortcut.GROUP_MENU+Shortcut.GROUPS_ALT1)); 27 28 putValue("help", ht("/Action/SaveAs")); 28 29 } -
trunk/src/org/openstreetmap/josm/actions/UnselectAllAction.java
r3252 r4958 15 15 public UnselectAllAction() { 16 16 super(tr("Unselect All"), "unselectall", tr("Unselect all objects."), 17 Shortcut.registerShortcut("edit:unselectall", tr("Edit: {0}", tr("Unselect All")), KeyEvent.VK_U, Shortcut.GROUP_EDIT), true); 18 // this is not really GROUP_EDIT, but users really would complain if the yhad to reconfigure because we put 19 // the correct group in 20 21 // Add extra shortcut C-S-a 22 Main.registerActionShortcut(this, Shortcut.registerShortcut("edit:unselectallfocus", tr("Edit: {0}", tr("Unselect All (Focus)")), 23 KeyEvent.VK_A, Shortcut.GROUP_MENU, Shortcut.SHIFT_DEFAULT)); 24 25 26 27 // Add extra shortcut ESCAPE 28 /* 29 * FIXME: this isn't optimal. In a better world the mapmode actions 30 * would be able to capture keyboard events and react accordingly. But 31 * for now this is a reasonable approximation. 32 */ 33 Main.registerActionShortcut(this, Shortcut.registerShortcut("edit:unselectallescape", tr("Edit: {0}", tr("Unselect All (Escape)")), 34 KeyEvent.VK_ESCAPE, Shortcut.GROUP_DIRECT)); 17 Shortcut.registerShortcut("edit:unselectall", tr("Edit: {0}", 18 tr("Unselect All")), KeyEvent.VK_ESCAPE, Shortcut.GROUP_DIRECT), true); 35 19 36 20 putValue("help", ht("/Action/UnselectAll")); -
trunk/src/org/openstreetmap/josm/actions/ViewportFollowToggleAction.java
r4701 r4958 23 23 "viewport-follow", 24 24 tr("Enable/disable automatic moving of the map view to last placed node"), 25 Shortcut.registerShortcut("menu:view:viewportfollow", tr("Toggle Viewport Following"),KeyEvent.VK_F, Shortcut.GROUP_MENU, Shortcut.SHIFT_DEFAULT), 25 Shortcut.registerShortcut("menu:view:viewportfollow", tr("Toggle Viewport Following"), 26 KeyEvent.VK_F, Shortcut.GROUP_MENU+Shortcut.GROUPS_ALT1), 26 27 true /* register shortcut */ 27 28 ); -
trunk/src/org/openstreetmap/josm/gui/dialogs/CommandStackDialog.java
r4908 r4958 73 73 public CommandStackDialog(final MapFrame mapFrame) { 74 74 super(tr("Command Stack"), "commandstack", tr("Open a list of all commands (undo buffer)."), 75 Shortcut.registerShortcut("subwindow:commandstack", tr("Toggle: {0}", tr("Command Stack")), KeyEvent.VK_O, Shortcut.GROUP_LAYER, Shortcut.SHIFT_DEFAULT), 100, true); 75 Shortcut.registerShortcut("subwindow:commandstack", tr("Toggle: {0}", 76 tr("Command Stack")), KeyEvent.VK_O, Shortcut.GROUP_LAYER 77 +Shortcut.GROUPS_ALT1), 100, true); 76 78 undoTree.addMouseListener(new PopupMenuHandler()); 77 79 undoTree.setRootVisible(false); -
trunk/src/org/openstreetmap/josm/gui/dialogs/HistoryDialog.java
r4408 r4958 64 64 super(tr("History"), "history", tr("Display the history of all selected items."), 65 65 Shortcut.registerShortcut("subwindow:history", tr("Toggle: {0}", tr("History")), KeyEvent.VK_H, 66 Shortcut.GROUP_LAYER ,Shortcut.SHIFT_DEFAULT), 150);66 Shortcut.GROUP_LAYER+Shortcut.GROUPS_ALT1), 150); 67 67 build(); 68 68 HelpUtil.setHelpContext(this, HelpUtil.ht("/Dialog/History"));
Note:
See TracChangeset
for help on using the changeset viewer.