Changeset 1054 in josm
- Timestamp:
- 2008-10-23T18:15:37+02:00 (16 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 56 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/AboutAction.java
r1051 r1054 68 68 69 69 public AboutAction() { 70 super(tr("About"), "about", tr("Display the about screen."), ShortCut.registerShortCut("system:about", tr("About ..."), KeyEvent.VK_F1, ShortCut.GROUP_DIRECT, ShortCut.SHIFT_DEFAULT), true);70 super(tr("About"), "about", tr("Display the about screen."), ShortCut.registerShortCut("system:about", tr("About"), KeyEvent.VK_F1, ShortCut.GROUP_DIRECT, ShortCut.SHIFT_DEFAULT), true); 71 71 } 72 72 -
trunk/src/org/openstreetmap/josm/actions/AlignInCircleAction.java
r1023 r1054 31 31 public AlignInCircleAction() { 32 32 super(tr("Align Nodes in Circle"), "aligncircle", tr("Move the selected nodes into a circle."), 33 ShortCut.registerShortCut("tools:aligncircle", tr("Tool: Align in circle"), KeyEvent.VK_O, ShortCut.GROUP_EDIT), true);33 ShortCut.registerShortCut("tools:aligncircle", tr("Tool: {0}", tr("Align Nodes in Circle")), KeyEvent.VK_O, ShortCut.GROUP_EDIT), true); 34 34 } 35 35 -
trunk/src/org/openstreetmap/josm/actions/AlignInLineAction.java
r1023 r1054 31 31 public AlignInLineAction() { 32 32 super(tr("Align Nodes in Line"), "alignline", tr("Move the selected nodes onto a line."), 33 ShortCut.registerShortCut("tools:alignline", tr("Tool: Align in line"), KeyEvent.VK_L, ShortCut.GROUP_EDIT), true);33 ShortCut.registerShortCut("tools:alignline", tr("Tool: {0}", tr("Align Nodes in Line")), KeyEvent.VK_L, ShortCut.GROUP_EDIT), true); 34 34 } 35 35 -
trunk/src/org/openstreetmap/josm/actions/AlignInRectangleAction.java
r1023 r1054 42 42 public AlignInRectangleAction() { 43 43 super(tr("Align Nodes in Rectangle"), "alignrect", tr("Move the selected nodes into a rectangle."), 44 ShortCut.registerShortCut("tools:alignrect", tr("Tool: Align in rectangle"), KeyEvent.VK_Q, ShortCut.GROUP_EDIT), true);44 ShortCut.registerShortCut("tools:alignrect", tr("Tool: {0}", tr("Align Nodes in Rectangle")), KeyEvent.VK_Q, ShortCut.GROUP_EDIT), true); 45 45 } 46 46 -
trunk/src/org/openstreetmap/josm/actions/AutoScaleAction.java
r1023 r1054 47 47 public AutoScaleAction(String mode) { 48 48 super(tr("Zoom to {0}", tr(mode)), "dialogs/autoscale/" + mode, tr("Zoom the view to {0}.", tr(mode)), 49 ShortCut.registerShortCut("view:zoom"+mode, tr("View: Zoom to {0}", tr(mode)), getModeShortcut(mode), ShortCut.GROUP_EDIT), true);49 ShortCut.registerShortCut("view:zoom"+mode, tr("View: {0}", tr("Zoom to {0}", tr(mode))), getModeShortcut(mode), ShortCut.GROUP_EDIT), true); 50 50 String modeHelp = Character.toUpperCase(mode.charAt(0)) + mode.substring(1); 51 51 putValue("help", "Action/AutoScale/" + modeHelp); -
trunk/src/org/openstreetmap/josm/actions/CombineWayAction.java
r1023 r1054 51 51 public CombineWayAction() { 52 52 super(tr("Combine Way"), "combineway", tr("Combine several ways into one."), 53 ShortCut.registerShortCut("tools:combineway", tr("Tool: Combine ways"), KeyEvent.VK_C, ShortCut.GROUP_EDIT), true);53 ShortCut.registerShortCut("tools:combineway", tr("Tool: {0}", tr("Combine Way")), KeyEvent.VK_C, ShortCut.GROUP_EDIT), true); 54 54 DataSet.selListeners.add(this); 55 55 } -
trunk/src/org/openstreetmap/josm/actions/CopyAction.java
r1023 r1054 33 33 super(tr("Copy"), "copy", 34 34 tr("Copy selected objects to paste buffer."), 35 ShortCut.registerShortCut("system:copy", tr("Edit: Copy"), KeyEvent.VK_C, ShortCut.GROUP_MENU), true);35 ShortCut.registerShortCut("system:copy", tr("Edit: {0}", tr("Copy")), KeyEvent.VK_C, ShortCut.GROUP_MENU), true); 36 36 setEnabled(false); 37 37 DataSet.selListeners.add(this); -
trunk/src/org/openstreetmap/josm/actions/CreateCircleAction.java
r1051 r1054 36 36 public CreateCircleAction() { 37 37 super(tr("Create Circle"), "createcircle", tr("Create a circle from three selected nodes."), 38 ShortCut.registerShortCut("tools:createcircle", tr("Tool: Create circle"), KeyEvent.VK_O, ShortCut.GROUP_EDIT, ShortCut.SHIFT_DEFAULT), true);38 ShortCut.registerShortCut("tools:createcircle", tr("Tool: {0}", tr("Create Circle")), KeyEvent.VK_O, ShortCut.GROUP_EDIT, ShortCut.SHIFT_DEFAULT), true); 39 39 } 40 40 -
trunk/src/org/openstreetmap/josm/actions/DeleteAction.java
r1023 r1054 14 14 public DeleteAction() { 15 15 super(tr("Delete"), "dialogs/delete", tr("Delete selected objects."), 16 ShortCut.registerShortCut("system:delete", tr("Edit: Delete"), KeyEvent.VK_DELETE, ShortCut.GROUP_DIRECT), true);16 ShortCut.registerShortCut("system:delete", tr("Edit: {0}", tr("Delete")), KeyEvent.VK_DELETE, ShortCut.GROUP_DIRECT), true); 17 17 setEnabled(true); 18 18 } -
trunk/src/org/openstreetmap/josm/actions/DownloadAction.java
r1047 r1054 32 32 public DownloadAction() { 33 33 super(tr("Download from OSM ..."), "download", tr("Download map data from the OSM server."), 34 ShortCut.registerShortCut("file:download", tr("File: Download"), KeyEvent.VK_D, ShortCut.GROUPS_ALT1+ShortCut.GROUP_HOTKEY), true);34 ShortCut.registerShortCut("file:download", tr("File: {0}", tr("Download from OSM ...")), KeyEvent.VK_D, ShortCut.GROUPS_ALT1+ShortCut.GROUP_HOTKEY), true); 35 35 } 36 36 -
trunk/src/org/openstreetmap/josm/actions/DuplicateAction.java
r1023 r1054 20 20 super(tr("Duplicate"), "duplicate", 21 21 tr("Duplicate selection by copy and immediate paste."), 22 ShortCut.registerShortCut("system:duplicate", tr("Edit: Duplicate selection"), KeyEvent.VK_D, ShortCut.GROUP_MENU), true);22 ShortCut.registerShortCut("system:duplicate", tr("Edit: {0}", tr("Duplicate")), KeyEvent.VK_D, ShortCut.GROUP_MENU), true); 23 23 setEnabled(false); 24 24 DataSet.selListeners.add(this); -
trunk/src/org/openstreetmap/josm/actions/ExitAction.java
r1023 r1054 21 21 public ExitAction() { 22 22 super(tr("Exit"), "exit", tr("Exit the application."), 23 ShortCut.registerShortCut("system:menuexit", tr(" Quit JOSM"), KeyEvent.VK_Q, ShortCut.GROUP_MENU), true);23 ShortCut.registerShortCut("system:menuexit", tr("Exit"), KeyEvent.VK_Q, ShortCut.GROUP_MENU), true); 24 24 } 25 25 -
trunk/src/org/openstreetmap/josm/actions/GpxExportAction.java
r1047 r1054 46 46 public GpxExportAction(Layer layer) { 47 47 super(tr("Export to GPX ..."), "exportgpx", tr("Export the data to GPX file."), 48 ShortCut.registerShortCut("file:exportgpx", tr("Export to GPX "), KeyEvent.VK_E, ShortCut.GROUP_MENU));48 ShortCut.registerShortCut("file:exportgpx", tr("Export to GPX ..."), KeyEvent.VK_E, ShortCut.GROUP_MENU)); 49 49 this.layer = layer; 50 50 } -
trunk/src/org/openstreetmap/josm/actions/HistoryInfoAction.java
r1023 r1054 20 20 public HistoryInfoAction() { 21 21 super(tr("OSM History Information"), "about",tr("Display history information about OSM ways or nodes."), 22 ShortCut.registerShortCut("core:history", tr(" Display history"), KeyEvent.VK_H, ShortCut.GROUP_HOTKEY), true);22 ShortCut.registerShortCut("core:history", tr("OSM History Information"), KeyEvent.VK_H, ShortCut.GROUP_HOTKEY), true); 23 23 } 24 24 -
trunk/src/org/openstreetmap/josm/actions/JoinNodeWayAction.java
r1023 r1054 28 28 public JoinNodeWayAction() { 29 29 super(tr("Join node to way"), "joinnodeway", tr("Join a node into the nearest way segments"), 30 ShortCut.registerShortCut("tools:joinnodeway", tr("Tool: Join node to way"), KeyEvent.VK_J, ShortCut.GROUP_EDIT), true);30 ShortCut.registerShortCut("tools:joinnodeway", tr("Tool: {0}", tr("Join node to way")), KeyEvent.VK_J, ShortCut.GROUP_EDIT), true); 31 31 } 32 32 -
trunk/src/org/openstreetmap/josm/actions/MergeNodesAction.java
r1023 r1054 54 54 public MergeNodesAction() { 55 55 super(tr("Merge Nodes"), "mergenodes", tr("Merge nodes into the oldest one."), 56 ShortCut.registerShortCut("tools:mergenodes", tr("Tool: Merge nodes"), KeyEvent.VK_M, ShortCut.GROUP_EDIT), true);56 ShortCut.registerShortCut("tools:mergenodes", tr("Tool: {0}", tr("Merge Nodes")), KeyEvent.VK_M, ShortCut.GROUP_EDIT), true); 57 57 DataSet.selListeners.add(this); 58 58 } -
trunk/src/org/openstreetmap/josm/actions/NewAction.java
r1047 r1054 16 16 public NewAction() { 17 17 super(tr("New"), "new", tr("Create a new map."), 18 ShortCut.registerShortCut("system:new", tr("File: New"), KeyEvent.VK_N, ShortCut.GROUP_MENU), true);18 ShortCut.registerShortCut("system:new", tr("File: {0}", tr("New")), KeyEvent.VK_N, ShortCut.GROUP_MENU), true); 19 19 } 20 20 -
trunk/src/org/openstreetmap/josm/actions/OpenAction.java
r1047 r1054 40 40 public OpenAction() { 41 41 super(tr("Open ..."), "open", tr("Open a file."), 42 ShortCut.registerShortCut("system:open", tr("File: Open..."), KeyEvent.VK_O, ShortCut.GROUP_MENU));42 ShortCut.registerShortCut("system:open", tr("File: {0}", tr("Open ...")), KeyEvent.VK_O, ShortCut.GROUP_MENU)); 43 43 } 44 44 -
trunk/src/org/openstreetmap/josm/actions/PasteAction.java
r1023 r1054 30 30 public PasteAction() { 31 31 super(tr("Paste"), "paste", tr("Paste contents of paste buffer."), 32 ShortCut.registerShortCut("system:paste", tr("Edit: Paste"), KeyEvent.VK_V, ShortCut.GROUP_MENU), true);32 ShortCut.registerShortCut("system:paste", tr("Edit: {0}", tr("Paste")), KeyEvent.VK_V, ShortCut.GROUP_MENU), true); 33 33 setEnabled(false); 34 34 } -
trunk/src/org/openstreetmap/josm/actions/PasteTagsAction.java
r1051 r1054 27 27 super(tr("Paste Tags"), "pastetags", 28 28 tr("Apply tags of contents of paste buffer to all selected items."), 29 ShortCut.registerShortCut("system:pastestyle", tr("Edit: Paste tags"), KeyEvent.VK_V, ShortCut.GROUP_MENU, ShortCut.SHIFT_DEFAULT), true);29 ShortCut.registerShortCut("system:pastestyle", tr("Edit: {0}", tr("Paste Tags")), KeyEvent.VK_V, ShortCut.GROUP_MENU, ShortCut.SHIFT_DEFAULT), true); 30 30 DataSet.selListeners.add(this); 31 31 copyAction.addListener(this); -
trunk/src/org/openstreetmap/josm/actions/RedoAction.java
r1047 r1054 22 22 public RedoAction() { 23 23 super(tr("Redo"), "redo", tr("Redo the last undone action."), 24 ShortCut.registerShortCut("system:redo", tr("Edit: Redo"), KeyEvent.VK_Y, ShortCut.GROUP_MENU), true);24 ShortCut.registerShortCut("system:redo", tr("Edit: {0}", tr("Redo")), KeyEvent.VK_Y, ShortCut.GROUP_MENU), true); 25 25 setEnabled(false); 26 26 } -
trunk/src/org/openstreetmap/josm/actions/ReverseWayAction.java
r1047 r1054 30 30 public ReverseWayAction() { 31 31 super(tr("Reverse ways"), "wayflip", tr("Reverse the direction of all selected ways."), 32 ShortCut.registerShortCut("tools:reverse", tr("Tool: Reverse way"), KeyEvent.VK_R, ShortCut.GROUP_EDIT), true);32 ShortCut.registerShortCut("tools:reverse", tr("Tool: {0}", tr("Reverse ways")), KeyEvent.VK_R, ShortCut.GROUP_EDIT), true); 33 33 } 34 34 -
trunk/src/org/openstreetmap/josm/actions/SaveAction.java
r1047 r1054 25 25 public SaveAction(Layer layer) { 26 26 super(tr("Save"), "save", tr("Save the current data."), 27 ShortCut.registerShortCut("system:save", tr("File: Save"), KeyEvent.VK_S, ShortCut.GROUP_MENU), layer);27 ShortCut.registerShortCut("system:save", tr("File: {0}", tr("Save")), KeyEvent.VK_S, ShortCut.GROUP_MENU), layer); 28 28 } 29 29 -
trunk/src/org/openstreetmap/josm/actions/SaveAsAction.java
r1051 r1054 23 23 public SaveAsAction(Layer layer) { 24 24 super(tr("Save as ..."), "save_as", tr("Save the current data to a new file."), 25 ShortCut.registerShortCut("system:saveas", tr("File: Save as..."), KeyEvent.VK_S, ShortCut.GROUP_MENU, ShortCut.SHIFT_DEFAULT), layer);25 ShortCut.registerShortCut("system:saveas", tr("File: {0}", tr("Save as ...")), KeyEvent.VK_S, ShortCut.GROUP_MENU, ShortCut.SHIFT_DEFAULT), layer); 26 26 } 27 27 -
trunk/src/org/openstreetmap/josm/actions/SelectAllAction.java
r1023 r1054 14 14 public SelectAllAction() { 15 15 super(tr("Select All"),"selectall", tr("Select all undeleted objects in the data layer. This selects incomplete objects too."), 16 ShortCut.registerShortCut("system:selectall", tr("Edit: Select all"), KeyEvent.VK_A, ShortCut.GROUP_MENU), true);16 ShortCut.registerShortCut("system:selectall", tr("Edit: {0}", tr("Select All")), KeyEvent.VK_A, ShortCut.GROUP_MENU), true); 17 17 } 18 18 -
trunk/src/org/openstreetmap/josm/actions/SplitWayAction.java
r1023 r1054 52 52 public SplitWayAction() { 53 53 super(tr("Split Way"), "splitway", tr("Split a way at the selected node."), 54 ShortCut.registerShortCut("tools:splitway", tr("Tool: Split way"), KeyEvent.VK_P, ShortCut.GROUP_EDIT), true);54 ShortCut.registerShortCut("tools:splitway", tr("Tool: {0}", tr("Split Way")), KeyEvent.VK_P, ShortCut.GROUP_EDIT), true); 55 55 DataSet.selListeners.add(this); 56 56 } -
trunk/src/org/openstreetmap/josm/actions/ToggleGPXLinesAction.java
r1030 r1054 14 14 public ToggleGPXLinesAction() { 15 15 super(tr("Toggle GPX Lines"), "gps-lines", tr("Toggles the global setting ''{0}''.", tr("Draw lines between raw gps points.")), 16 ShortCut.registerShortCut("view:gpxlines", tr("View: Toggle GPX lines"), KeyEvent.VK_X, ShortCut.GROUP_MENU), true);16 ShortCut.registerShortCut("view:gpxlines", tr("View: {0}", tr("Toggle GPX Lines")), KeyEvent.VK_X, ShortCut.GROUP_MENU), true); 17 17 } 18 18 -
trunk/src/org/openstreetmap/josm/actions/UnGlueAction.java
r1047 r1054 45 45 public UnGlueAction() { 46 46 super(tr("UnGlue Ways"), "unglueways", tr("Duplicate nodes that are used by multiple ways."), 47 ShortCut.registerShortCut("tools:unglue", tr("Tool: Unglue"), KeyEvent.VK_G, ShortCut.GROUP_EDIT), true);47 ShortCut.registerShortCut("tools:unglue", tr("Tool: {0}", tr("UnGlue Ways")), KeyEvent.VK_G, ShortCut.GROUP_EDIT), true); 48 48 //DataSet.selListeners.add(this); 49 49 } -
trunk/src/org/openstreetmap/josm/actions/UndoAction.java
r1047 r1054 22 22 public UndoAction() { 23 23 super(tr("Undo"), "undo", tr("Undo the last action."), 24 ShortCut.registerShortCut("system:undo", tr("Edit: Undo"), KeyEvent.VK_Z, ShortCut.GROUP_MENU), true);24 ShortCut.registerShortCut("system:undo", tr("Edit: {0}", tr("Undo")), KeyEvent.VK_Z, ShortCut.GROUP_MENU), true); 25 25 setEnabled(false); 26 26 } -
trunk/src/org/openstreetmap/josm/actions/UnselectAllAction.java
r1051 r1054 15 15 public UnselectAllAction() { 16 16 super(tr("Unselect All"), "unselectall", tr("Unselect all objects."), 17 ShortCut.registerShortCut("edit:unselectall", tr("Edit: Unselect all"), KeyEvent.VK_U, ShortCut.GROUP_EDIT), true);17 ShortCut.registerShortCut("edit:unselectall", tr("Edit: {0}", tr("Unselect All")), KeyEvent.VK_U, ShortCut.GROUP_EDIT), true); 18 18 // this is not really GROUP_EDIT, but users really would complain if the yhad to reconfigure because we put 19 19 // the correct group in … … 21 21 // Add extra shortcut C-S-a 22 22 Main.contentPane.getInputMap(JComponent.WHEN_IN_FOCUSED_WINDOW).put( 23 ShortCut.registerShortCut("edit:unselectall 2", tr("Edit: Unselect all (2)"),23 ShortCut.registerShortCut("edit:unselectallfocus", tr("Edit: {0}", tr("Unselect All (Focus)")), 24 24 KeyEvent.VK_A, ShortCut.GROUP_MENU, ShortCut.SHIFT_DEFAULT).getKeyStroke(), 25 25 tr("Unselect All")); … … 32 32 */ 33 33 Main.contentPane.getInputMap(JComponent.WHEN_IN_FOCUSED_WINDOW).put( 34 ShortCut.registerShortCut("edit:unselectall3", tr("Edit: Unselect all (3)"), KeyEvent.VK_ESCAPE, ShortCut.GROUP_DIRECT).getKeyStroke(), 34 ShortCut.registerShortCut("edit:unselectallescape", tr("Edit: {0}", tr("Unselect All (Escape)")), 35 KeyEvent.VK_ESCAPE, ShortCut.GROUP_DIRECT).getKeyStroke(), 35 36 tr("Unselect All")); 36 37 } -
trunk/src/org/openstreetmap/josm/actions/UploadAction.java
r1047 r1054 61 61 public UploadAction() { 62 62 super(tr("Upload to OSM ..."), "upload", tr("Upload all changes to the OSM server."), 63 ShortCut.registerShortCut("file:upload", tr("File: Upload"), KeyEvent.VK_U, ShortCut.GROUPS_ALT1+ShortCut.GROUP_HOTKEY), true);63 ShortCut.registerShortCut("file:upload", tr("File: {0}", tr("Upload to OSM ...")), KeyEvent.VK_U, ShortCut.GROUPS_ALT1+ShortCut.GROUP_HOTKEY), true); 64 64 65 65 /** -
trunk/src/org/openstreetmap/josm/actions/ZoomInAction.java
r1023 r1054 14 14 public ZoomInAction() { 15 15 super(tr("Zoom in"), "dialogs/zoomin", tr("Zoom in"), 16 ShortCut.registerShortCut("view:zoomin", tr("View: Zoom in"), KeyEvent.VK_PLUS, ShortCut.GROUP_DIRECT), true);16 ShortCut.registerShortCut("view:zoomin", tr("View: {0}", tr("Zoom in")), KeyEvent.VK_PLUS, ShortCut.GROUP_DIRECT), true); 17 17 setEnabled(true); 18 18 } -
trunk/src/org/openstreetmap/josm/actions/ZoomOutAction.java
r1023 r1054 14 14 public ZoomOutAction() { 15 15 super(tr("Zoom out"), "dialogs/zoomout", tr("Zoom out"), 16 ShortCut.registerShortCut("view:zoomout", tr("View: Zoom out"), KeyEvent.VK_MINUS, ShortCut.GROUP_DIRECT), true);16 ShortCut.registerShortCut("view:zoomout", tr("View: {0}", tr("Zoom out")), KeyEvent.VK_MINUS, ShortCut.GROUP_DIRECT), true); 17 17 setEnabled(true); 18 18 } -
trunk/src/org/openstreetmap/josm/actions/audio/AudioBackAction.java
r1023 r1054 19 19 public AudioBackAction() { 20 20 super(tr("Back"), "audio-back", tr("Jump back."), 21 ShortCut.registerShortCut("audio:back", tr("Audio: Back"), KeyEvent.VK_F6, ShortCut.GROUP_DIRECT), true);21 ShortCut.registerShortCut("audio:back", tr("Audio: {0}", tr("Back")), KeyEvent.VK_F6, ShortCut.GROUP_DIRECT), true); 22 22 try { 23 23 amount = - Double.parseDouble(Main.pref.get("audio.forwardbackamount","10.0")); -
trunk/src/org/openstreetmap/josm/actions/audio/AudioFasterAction.java
r1023 r1054 11 11 public AudioFasterAction() { 12 12 super(tr("Faster"), "audio-faster", tr("Faster Forward"), 13 ShortCut.registerShortCut("audio:faster", tr("Audio: Faster"), KeyEvent.VK_F9, ShortCut.GROUP_DIRECT), true);13 ShortCut.registerShortCut("audio:faster", tr("Audio: {0}", tr("Faster")), KeyEvent.VK_F9, ShortCut.GROUP_DIRECT), true); 14 14 } 15 15 } -
trunk/src/org/openstreetmap/josm/actions/audio/AudioFwdAction.java
r1023 r1054 19 19 public AudioFwdAction() { 20 20 super(tr("Forward"), "audio-fwd", tr("Jump forward"), 21 ShortCut.registerShortCut("audio:forward", tr("Audio: Forward"), KeyEvent.VK_F7, ShortCut.GROUP_DIRECT), true);21 ShortCut.registerShortCut("audio:forward", tr("Audio: {0}", tr("Forward")), KeyEvent.VK_F7, ShortCut.GROUP_DIRECT), true); 22 22 try { 23 23 amount = Double.parseDouble(Main.pref.get("audio.forwardbackamount","10.0")); -
trunk/src/org/openstreetmap/josm/actions/audio/AudioNextAction.java
r1023 r1054 15 15 public AudioNextAction() { 16 16 super(tr("Next Marker"), "audio-next", tr("Play next marker."), 17 ShortCut.registerShortCut("audio:next", tr("Audio: Next"), KeyEvent.VK_F8, ShortCut.GROUP_DIRECT), true);17 ShortCut.registerShortCut("audio:next", tr("Audio: {0}", tr("Next Marker")), KeyEvent.VK_F8, ShortCut.GROUP_DIRECT), true); 18 18 } 19 19 -
trunk/src/org/openstreetmap/josm/actions/audio/AudioPlayPauseAction.java
r1023 r1054 17 17 public AudioPlayPauseAction() { 18 18 super(tr("Play/pause"), "audio-playpause", tr("Play/pause audio."), 19 ShortCut.registerShortCut("audio:pause", tr("Audio: Play/Pause"), KeyEvent.VK_PERIOD, ShortCut.GROUP_DIRECT), true);19 ShortCut.registerShortCut("audio:pause", tr("Audio: {0}", tr("Play/pause")), KeyEvent.VK_PERIOD, ShortCut.GROUP_DIRECT), true); 20 20 } 21 21 -
trunk/src/org/openstreetmap/josm/actions/audio/AudioPrevAction.java
r1023 r1054 15 15 public AudioPrevAction() { 16 16 super(tr("Previous Marker"), "audio-prev", tr("Play previous marker."), 17 ShortCut.registerShortCut("audio:prev", tr("Audio: Previous"), KeyEvent.VK_F5, ShortCut.GROUP_DIRECT), true);17 ShortCut.registerShortCut("audio:prev", tr("Audio: {0}", tr("Previous Marker")), KeyEvent.VK_F5, ShortCut.GROUP_DIRECT), true); 18 18 } 19 19 -
trunk/src/org/openstreetmap/josm/actions/audio/AudioSlowerAction.java
r1050 r1054 11 11 public AudioSlowerAction() { 12 12 super(tr("Slower"), "audio-slower", tr("Slower Forward"), 13 ShortCut.registerShortCut("audio:slower", tr("Audio: Slower"), KeyEvent.VK_F4, ShortCut.GROUP_DIRECT), true);13 ShortCut.registerShortCut("audio:slower", tr("Audio: {0}", tr("Slower")), KeyEvent.VK_F4, ShortCut.GROUP_DIRECT), true); 14 14 } 15 15 } -
trunk/src/org/openstreetmap/josm/actions/mapmode/DeleteAction.java
r1023 r1054 44 44 "delete", 45 45 tr("Delete nodes or ways."), 46 ShortCut.registerShortCut("mapmode:delete", tr(" Delete mode"), KeyEvent.VK_D, ShortCut.GROUP_EDIT),46 ShortCut.registerShortCut("mapmode:delete", tr("Mode: Delete"), KeyEvent.VK_D, ShortCut.GROUP_EDIT), 47 47 mapFrame, 48 48 ImageProvider.getCursor("normal", "delete")); -
trunk/src/org/openstreetmap/josm/actions/mapmode/DrawAction.java
r1047 r1054 74 74 public DrawAction(MapFrame mapFrame) { 75 75 super(tr("Draw"), "node/autonode", tr("Draw nodes"), 76 ShortCut.registerShortCut("mapmode:draw", tr(" Draw mode"), KeyEvent.VK_A, ShortCut.GROUP_EDIT),76 ShortCut.registerShortCut("mapmode:draw", tr("Mode: {0}", tr("Draw")), KeyEvent.VK_A, ShortCut.GROUP_EDIT), 77 77 mapFrame, getCursor()); 78 78 79 79 // Add extra shortcut N 80 80 Main.contentPane.getInputMap(JComponent.WHEN_IN_FOCUSED_WINDOW).put( 81 ShortCut.registerShortCut("mapmode:draw 2", tr("Draw mode (2)"), KeyEvent.VK_N, ShortCut.GROUP_EDIT).getKeyStroke(), tr("Draw"));81 ShortCut.registerShortCut("mapmode:drawfocus", tr("Mode: Draw Focus"), KeyEvent.VK_N, ShortCut.GROUP_EDIT).getKeyStroke(), tr("Draw")); 82 82 83 83 //putValue("help", "Action/AddNode/Autnode"); -
trunk/src/org/openstreetmap/josm/actions/mapmode/ExtrudeAction.java
r1023 r1054 74 74 public ExtrudeAction(MapFrame mapFrame) { 75 75 super(tr("Extrude"), "extrude/extrude", tr("Create areas"), 76 ShortCut.registerShortCut("mapmode:extrude", tr(" Extrude mode"), KeyEvent.VK_X, ShortCut.GROUP_EDIT),76 ShortCut.registerShortCut("mapmode:extrude", tr("Mode: {0}", tr("Extrude")), KeyEvent.VK_X, ShortCut.GROUP_EDIT), 77 77 mapFrame, 78 78 getCursor("normal", "selection", Cursor.DEFAULT_CURSOR)); -
trunk/src/org/openstreetmap/josm/actions/mapmode/SelectAction.java
r1023 r1054 86 86 public SelectAction(MapFrame mapFrame) { 87 87 super(tr("Select"), "move/move", tr("Select, move and rotate objects"), 88 ShortCut.registerShortCut("mapmode:select", tr(" Select mode"), KeyEvent.VK_S, ShortCut.GROUP_EDIT),88 ShortCut.registerShortCut("mapmode:select", tr("Mode: {0}", tr("Select")), KeyEvent.VK_S, ShortCut.GROUP_EDIT), 89 89 mapFrame, 90 90 getCursor("normal", "selection", Cursor.DEFAULT_CURSOR)); -
trunk/src/org/openstreetmap/josm/actions/mapmode/ZoomAction.java
r1023 r1054 47 47 public ZoomAction(MapFrame mapFrame) { 48 48 super(tr("Zoom"), "zoom", tr("Zoom and move map"), 49 ShortCut.registerShortCut("mapmode:zoom", tr(" Zoom mode"), KeyEvent.VK_Z, ShortCut.GROUP_EDIT),49 ShortCut.registerShortCut("mapmode:zoom", tr("Mode: {0}", tr("Zoom")), KeyEvent.VK_Z, ShortCut.GROUP_EDIT), 50 50 mapFrame, ImageProvider.getCursor("normal", "zoom")); 51 51 mv = mapFrame.mapView; -
trunk/src/org/openstreetmap/josm/gui/MainMenu.java
r1030 r1054 157 157 */ 158 158 public void add(JMenu menu, int mnemonicKey, String shortName) { 159 ShortCut.registerShortCut("menu:"+shortName, shortName+" menu", mnemonicKey, ShortCut.GROUP_MNEMONIC).setMnemonic(menu);159 ShortCut.registerShortCut("menu:"+shortName, tr("Menu: {0}", menu.getText()), mnemonicKey, ShortCut.GROUP_MNEMONIC).setMnemonic(menu); 160 160 add(menu); 161 161 } -
trunk/src/org/openstreetmap/josm/gui/MapMover.java
r1047 r1054 82 82 if (contentPane != null) { 83 83 contentPane.getInputMap(JComponent.WHEN_IN_FOCUSED_WINDOW).put( 84 ShortCut.registerShortCut("system:movefocusright", tr("Map: Move right"), KeyEvent.VK_RIGHT, ShortCut.GROUP_HOTKEY).getKeyStroke(),84 ShortCut.registerShortCut("system:movefocusright", tr("Map: {0}", tr("Move right")), KeyEvent.VK_RIGHT, ShortCut.GROUP_HOTKEY).getKeyStroke(), 85 85 "MapMover.Zoomer.right"); 86 86 contentPane.getActionMap().put("MapMover.Zoomer.right", new ZoomerAction("right")); 87 87 88 88 contentPane.getInputMap(JComponent.WHEN_IN_FOCUSED_WINDOW).put( 89 ShortCut.registerShortCut("system:movefocusleft", tr("Map: Move left"), KeyEvent.VK_LEFT, ShortCut.GROUP_HOTKEY).getKeyStroke(),89 ShortCut.registerShortCut("system:movefocusleft", tr("Map: {0}", tr("Move left")), KeyEvent.VK_LEFT, ShortCut.GROUP_HOTKEY).getKeyStroke(), 90 90 "MapMover.Zoomer.left"); 91 91 contentPane.getActionMap().put("MapMover.Zoomer.left", new ZoomerAction("left")); 92 92 93 93 contentPane.getInputMap(JComponent.WHEN_IN_FOCUSED_WINDOW).put( 94 ShortCut.registerShortCut("system:movefocusup", tr("Map: Move up"), KeyEvent.VK_UP, ShortCut.GROUP_HOTKEY).getKeyStroke(),94 ShortCut.registerShortCut("system:movefocusup", tr("Map: {0}", tr("Move up")), KeyEvent.VK_UP, ShortCut.GROUP_HOTKEY).getKeyStroke(), 95 95 "MapMover.Zoomer.up"); 96 96 contentPane.getActionMap().put("MapMover.Zoomer.up", new ZoomerAction("up")); 97 97 98 98 contentPane.getInputMap(JComponent.WHEN_IN_FOCUSED_WINDOW).put( 99 ShortCut.registerShortCut("system:movefocusdown", tr("Map: Move down"), KeyEvent.VK_DOWN, ShortCut.GROUP_HOTKEY).getKeyStroke(),99 ShortCut.registerShortCut("system:movefocusdown", tr("Map: {0}", tr("Move down")), KeyEvent.VK_DOWN, ShortCut.GROUP_HOTKEY).getKeyStroke(), 100 100 "MapMover.Zoomer.down"); 101 101 contentPane.getActionMap().put("MapMover.Zoomer.down", new ZoomerAction("down")); 102 102 103 103 contentPane.getInputMap(JComponent.WHEN_IN_FOCUSED_WINDOW).put( 104 ShortCut.registerShortCut("view:zoominalternate", tr("Map: Zoom in"), KeyEvent.VK_COMMA, ShortCut.GROUP_HOTKEY).getKeyStroke(),104 ShortCut.registerShortCut("view:zoominalternate", tr("Map: {0}", tr("Zoom in")), KeyEvent.VK_COMMA, ShortCut.GROUP_HOTKEY).getKeyStroke(), 105 105 "MapMover.Zoomer.in"); 106 106 contentPane.getActionMap().put("MapMover.Zoomer.in", new ZoomerAction(",")); 107 107 108 108 contentPane.getInputMap(JComponent.WHEN_IN_FOCUSED_WINDOW).put( 109 ShortCut.registerShortCut("view:zoomoutalternate", tr("Map: Zoom out"), KeyEvent.VK_PERIOD, ShortCut.GROUP_HOTKEY).getKeyStroke(),109 ShortCut.registerShortCut("view:zoomoutalternate", tr("Map: {0}", tr("Zoom out")), KeyEvent.VK_PERIOD, ShortCut.GROUP_HOTKEY).getKeyStroke(), 110 110 "MapMover.Zoomer.out"); 111 111 contentPane.getActionMap().put("MapMover.Zoomer.out", new ZoomerAction(".")); -
trunk/src/org/openstreetmap/josm/gui/dialogs/CommandStackDialog.java
r1023 r1054 29 29 public CommandStackDialog(final MapFrame mapFrame) { 30 30 super(tr("Command Stack"), "commandstack", tr("Open a list of all commands (undo buffer)."), 31 ShortCut.registerShortCut("subwindow:commandstack", tr("Toggle command stack"), KeyEvent.VK_O, ShortCut.GROUP_LAYER), 100);31 ShortCut.registerShortCut("subwindow:commandstack", tr("Toggle: {0}", tr("Command Stack")), KeyEvent.VK_O, ShortCut.GROUP_LAYER), 100); 32 32 Main.main.undoRedo.listenerCommands.add(this); 33 33 -
trunk/src/org/openstreetmap/josm/gui/dialogs/ConflictDialog.java
r1023 r1054 53 53 public ConflictDialog() { 54 54 super(tr("Conflict"), "conflict", tr("Merging conflicts."), 55 ShortCut.registerShortCut("subwindow:conflict", tr("Toggle conflict window"), KeyEvent.VK_C, ShortCut.GROUP_LAYER), 100);55 ShortCut.registerShortCut("subwindow:conflict", tr("Toggle: {0}", tr("Conflict")), KeyEvent.VK_C, ShortCut.GROUP_LAYER), 100); 56 56 displaylist.setCellRenderer(new OsmPrimitivRenderer()); 57 57 displaylist.setSelectionMode(ListSelectionModel.MULTIPLE_INTERVAL_SELECTION); -
trunk/src/org/openstreetmap/josm/gui/dialogs/HistoryDialog.java
r1052 r1054 89 89 public HistoryDialog() { 90 90 super(tr("History"), "history", tr("Display the history of all selected items."), 91 ShortCut.registerShortCut("subwindow:history", tr("Toggle history window"), KeyEvent.VK_H,91 ShortCut.registerShortCut("subwindow:history", tr("Toggle: {0}", tr("History")), KeyEvent.VK_H, 92 92 ShortCut.GROUP_LAYER, ShortCut.SHIFT_DEFAULT), 150); 93 93 historyPane.setVisible(false); -
trunk/src/org/openstreetmap/josm/gui/dialogs/LayerListDialog.java
r1023 r1054 160 160 public LayerListDialog(MapFrame mapFrame) { 161 161 super(tr("Layers"), "layerlist", tr("Open a list of all loaded layers."), 162 ShortCut.registerShortCut("subwindow:layers", tr("Toggle layer window"), KeyEvent.VK_L, ShortCut.GROUP_LAYER), 100);162 ShortCut.registerShortCut("subwindow:layers", tr("Toggle: {0}", tr("Layers")), KeyEvent.VK_L, ShortCut.GROUP_LAYER), 100); 163 163 instance = new JList(model); 164 164 listScrollPane = new JScrollPane(instance); -
trunk/src/org/openstreetmap/josm/gui/dialogs/PropertiesDialog.java
r1052 r1054 422 422 public PropertiesDialog(MapFrame mapFrame) { 423 423 super(tr("Properties/Memberships"), "propertiesdialog", tr("Properties for selected objects."), 424 ShortCut.registerShortCut("subwindow:properies", tr("Toggle properties window"), KeyEvent.VK_P,424 ShortCut.registerShortCut("subwindow:properies", tr("Toggle: {0}", tr("Properties/Memberships")), KeyEvent.VK_P, 425 425 ShortCut.GROUP_LAYER, ShortCut.SHIFT_DEFAULT), 150); 426 426 -
trunk/src/org/openstreetmap/josm/gui/dialogs/RelationListDialog.java
r1023 r1054 57 57 public RelationListDialog() { 58 58 super(tr("Relations"), "relationlist", tr("Open a list of all relations."), 59 ShortCut.registerShortCut("subwindow:relations", tr("Toggle relations window"), KeyEvent.VK_R, ShortCut.GROUP_LAYER), 150);59 ShortCut.registerShortCut("subwindow:relations", tr("Toggle: {0}", tr("Relations")), KeyEvent.VK_R, ShortCut.GROUP_LAYER), 150); 60 60 displaylist.setCellRenderer(new OsmPrimitivRenderer()); 61 61 displaylist.setSelectionMode(ListSelectionModel.SINGLE_SELECTION); -
trunk/src/org/openstreetmap/josm/gui/dialogs/SelectionListDialog.java
r1052 r1054 78 78 public SelectionListDialog() { 79 79 super(tr("Current Selection"), "selectionlist", tr("Open a selection list window."), 80 ShortCut.registerShortCut("subwindow:selection", tr("Toggle selection window"), KeyEvent.VK_T, ShortCut.GROUP_LAYER, ShortCut.SHIFT_DEFAULT), 150);80 ShortCut.registerShortCut("subwindow:selection", tr("Toggle: {0}", tr("Current Selection")), KeyEvent.VK_T, ShortCut.GROUP_LAYER, ShortCut.SHIFT_DEFAULT), 150); 81 81 82 82 selectionHistory = new LinkedList<Collection<? extends OsmPrimitive>>(); -
trunk/src/org/openstreetmap/josm/gui/dialogs/UserListDialog.java
r1052 r1054 52 52 public UserListDialog() { 53 53 super(tr("Authors"), "userlist", tr("Open a list of people working on the selected objects."), 54 ShortCut.registerShortCut("subwindow:authors", tr("Toggle authors window"), KeyEvent.VK_A, ShortCut.GROUP_LAYER, ShortCut.SHIFT_DEFAULT), 150);54 ShortCut.registerShortCut("subwindow:authors", tr("Toggle: {0}", tr("Authors")), KeyEvent.VK_A, ShortCut.GROUP_LAYER, ShortCut.SHIFT_DEFAULT), 150); 55 55 56 56 data.setColumnIdentifiers(new String[]{tr("Author"),tr("# Objects"),"%"}); -
trunk/src/org/openstreetmap/josm/gui/preferences/ShortcutPreference.java
r1053 r1054 35 35 // Maybe move this to prefPanel? There's no need for it to be here. 36 36 private class scListModel extends AbstractTableModel { 37 private String[] columnNames = new String[]{tr("ID"),tr("Action"), tr("Group"), tr("Shortcut")}; 37 // private String[] columnNames = new String[]{tr("Action"), tr("Shortcut"), tr("Group"), tr("ID")}; 38 private String[] columnNames = new String[]{tr("Action"), tr("Shortcut")}; 38 39 private Collection<ShortCut> data; 39 40 public scListModel() { … … 52 53 ShortCut sc = (ShortCut)data.toArray()[row]; 53 54 if (col == 0) { 54 return sc.get ShortText();55 return sc.getLongText(); 55 56 } else if (col == 1) { 56 return sc.get LongText();57 } else if (col == 2) {57 return sc.getKeyText(); 58 } /*else if (col == 2) { 58 59 if (sc.getRequestedGroup() == ShortCut.GROUP_NONE) { 59 60 return tr("None"); … … 76 77 } 77 78 } else if (col == 3) { 78 return sc.get KeyText();79 } else {79 return sc.getShortText(); 80 } */else { 80 81 // This is a kind of hack that allows the actions on the editing controls 81 82 // to access the underlying shortcut object without introducing another
Note:
See TracChangeset
for help on using the changeset viewer.