Changeset 17188 in josm for trunk/src/org/openstreetmap
- Timestamp:
- 2020-10-13T20:21:52+02:00 (4 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 59 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/AboutAction.java
r16904 r17188 63 63 public AboutAction() { 64 64 super(tr("About"), "logo", tr("Display the about screen."), 65 Shortcut.registerShortcut("system:about", tr(" About"),65 Shortcut.registerShortcut("system:about", tr("Help: {0}", tr("About")), 66 66 KeyEvent.VK_F1, Shortcut.SHIFT), true, false); 67 67 } -
trunk/src/org/openstreetmap/josm/actions/AddNodeAction.java
r16509 r17188 35 35 public AddNodeAction() { 36 36 super(tr("Add Node..."), "addnode", tr("Add a node by entering latitude / longitude or easting / northing."), 37 Shortcut.registerShortcut("addnode", tr(" Edit: {0}", tr("Add Node...")),37 Shortcut.registerShortcut("addnode", tr("Tools: {0}", tr("Add Node...")), 38 38 KeyEvent.VK_D, Shortcut.SHIFT), true); 39 39 setHelpId(ht("/Action/AddNode")); -
trunk/src/org/openstreetmap/josm/actions/AlignInCircleAction.java
r17138 r17188 49 49 public AlignInCircleAction() { 50 50 super(tr("Align Nodes in Circle"), "aligncircle", tr("Move the selected nodes into a circle."), 51 Shortcut.registerShortcut("tools:aligncircle", tr("Tool : {0}", tr("Align Nodes in Circle")),51 Shortcut.registerShortcut("tools:aligncircle", tr("Tools: {0}", tr("Align Nodes in Circle")), 52 52 KeyEvent.VK_O, Shortcut.DIRECT), true); 53 53 setHelpId(ht("/Action/AlignInCircle")); -
trunk/src/org/openstreetmap/josm/actions/AlignInLineAction.java
r16913 r17188 56 56 public AlignInLineAction() { 57 57 super(tr("Align Nodes in Line"), "alignline", tr("Move the selected nodes in to a line."), 58 Shortcut.registerShortcut("tools:alignline", tr("Tool : {0}", tr("Align Nodes in Line")), KeyEvent.VK_L, Shortcut.DIRECT), true);58 Shortcut.registerShortcut("tools:alignline", tr("Tools: {0}", tr("Align Nodes in Line")), KeyEvent.VK_L, Shortcut.DIRECT), true); 59 59 setHelpId(ht("/Action/AlignInLine")); 60 60 } -
trunk/src/org/openstreetmap/josm/actions/ChangesetManagerToggleAction.java
r16522 r17188 30 30 tr("Toggle visibility of Changeset Manager window"), 31 31 Shortcut.registerShortcut("menu:windows:changesetdialog", 32 tr(" Toggle visibility of Changeset Manager window"), KeyEvent.VK_C, Shortcut.ALT_CTRL),32 tr("Windows: {0}", tr("Changeset Manager")), KeyEvent.VK_C, Shortcut.ALT_CTRL), 33 33 true /* register shortcut */, "dialogs/changeset/changesetmanager", false); 34 34 notifySelectedState(); -
trunk/src/org/openstreetmap/josm/actions/CombineWayAction.java
r16732 r17188 64 64 public CombineWayAction() { 65 65 super(tr("Combine Way"), "combineway", tr("Combine several ways into one."), 66 Shortcut.registerShortcut("tools:combineway", tr("Tool : {0}", tr("Combine Way")), KeyEvent.VK_C, Shortcut.DIRECT), true);66 Shortcut.registerShortcut("tools:combineway", tr("Tools: {0}", tr("Combine Way")), KeyEvent.VK_C, Shortcut.DIRECT), true); 67 67 setHelpId(ht("/Action/CombineWay")); 68 68 } -
trunk/src/org/openstreetmap/josm/actions/CreateCircleAction.java
r17110 r17188 58 58 public CreateCircleAction() { 59 59 super(tr("Create Circle"), "aligncircle", tr("Create a circle from three selected nodes."), 60 Shortcut.registerShortcut("tools:createcircle", tr("Tool : {0}", tr("Create Circle")),60 Shortcut.registerShortcut("tools:createcircle", tr("Tools: {0}", tr("Create Circle")), 61 61 KeyEvent.VK_O, Shortcut.SHIFT), true, "createcircle", true); 62 62 setHelpId(ht("/Action/CreateCircle")); -
trunk/src/org/openstreetmap/josm/actions/CreateMultipolygonAction.java
r17033 r17188 84 84 /* at least three lines for each shortcut or the server extractor fails */ 85 85 update ? Shortcut.registerShortcut("tools:multipoly_update", 86 tr("Tool : {0}", getName(true)),86 tr("Tools: {0}", getName(true)), 87 87 KeyEvent.VK_B, Shortcut.CTRL_SHIFT) 88 88 : Shortcut.registerShortcut("tools:multipoly_create", 89 tr("Tool : {0}", getName(false)),89 tr("Tools: {0}", getName(false)), 90 90 KeyEvent.VK_B, Shortcut.CTRL), 91 91 true, update ? "multipoly_update" : "multipoly_create", true); -
trunk/src/org/openstreetmap/josm/actions/DialogsToggleAction.java
r17018 r17188 31 31 new ImageProvider("dialogs/dialogs_panel"), 32 32 tr("Toggle dialogs panel, maximize mapview"), 33 Shortcut.registerShortcut("menu:view:dialogspanel", tr(" Toggle dialogs panel"), KeyEvent.VK_TAB, Shortcut.DIRECT),33 Shortcut.registerShortcut("menu:view:dialogspanel", tr("View: {0}", tr("Dialogs panel")), KeyEvent.VK_TAB, Shortcut.DIRECT), 34 34 true, "dialogspanel", /* register in toolbar */ 35 35 false -
trunk/src/org/openstreetmap/josm/actions/DistributeAction.java
r16467 r17188 40 40 super(tr("Distribute Nodes"), "distribute", 41 41 tr("Distribute the selected nodes to equal distances along a line."), 42 Shortcut.registerShortcut("tools:distribute", tr("Tool : {0}", tr("Distribute Nodes")), KeyEvent.VK_B, Shortcut.SHIFT),42 Shortcut.registerShortcut("tools:distribute", tr("Tools: {0}", tr("Distribute Nodes")), KeyEvent.VK_B, Shortcut.SHIFT), 43 43 true); 44 44 setHelpId(ht("/Action/DistributeNodes")); -
trunk/src/org/openstreetmap/josm/actions/ExitAction.java
r16505 r17188 22 22 public ExitAction() { 23 23 super(tr("Exit"), "exit", tr("Exit the application."), 24 Shortcut.registerShortcut("system:menuexit", tr(" Exit"), KeyEvent.VK_Q, Shortcut.CTRL), true, false);24 Shortcut.registerShortcut("system:menuexit", tr("File: {0}", tr("Exit")), KeyEvent.VK_Q, Shortcut.CTRL), true, false); 25 25 setHelpId(ht("/Action/Exit")); 26 26 } -
trunk/src/org/openstreetmap/josm/actions/FollowLineAction.java
r17141 r17188 46 46 tr("Continues drawing a line that shares nodes with another line."), 47 47 Shortcut.registerShortcut("tools:followline", tr( 48 "Tool : {0}", tr("Follow")),48 "Tools: {0}", tr("Follow")), 49 49 KeyEvent.VK_F, Shortcut.DIRECT), true); 50 50 } -
trunk/src/org/openstreetmap/josm/actions/FullscreenToggleAction.java
r17018 r17188 41 41 new ImageProvider("fullscreen"), 42 42 tr("Toggle fullscreen view"), 43 Shortcut.registerShortcut("menu:view:fullscreen", tr(" Toggle fullscreen view"), KeyEvent.VK_F11, Shortcut.DIRECT),43 Shortcut.registerShortcut("menu:view:fullscreen", tr("View: {0}", tr("Fullscreen view")), KeyEvent.VK_F11, Shortcut.DIRECT), 44 44 false /* register */, null, false 45 45 ); -
trunk/src/org/openstreetmap/josm/actions/GpxExportAction.java
r16509 r17188 35 35 public GpxExportAction() { 36 36 super(tr("Export to GPX..."), "exportgpx", tr("Export the data to GPX file."), 37 Shortcut.registerShortcut("file:exportgpx", tr(" Export to GPX..."), KeyEvent.VK_E, Shortcut.CTRL));37 Shortcut.registerShortcut("file:exportgpx", tr("File: {0}", tr("Export to GPX...")), KeyEvent.VK_E, Shortcut.CTRL)); 38 38 setHelpId(ht("/Action/GpxExport")); 39 39 } -
trunk/src/org/openstreetmap/josm/actions/HelpAction.java
r16509 r17188 34 34 private HelpAction(boolean shortcut) { 35 35 super(tr("Help"), "help", null, 36 shortcut ? Shortcut.registerShortcut("system:help", tr("Help "), KeyEvent.VK_F1, Shortcut.DIRECT) : null,36 shortcut ? Shortcut.registerShortcut("system:help", tr("Help: {0}", tr("Help")), KeyEvent.VK_F1, Shortcut.DIRECT) : null, 37 37 true, false); 38 38 setEnabled(!NetworkManager.isOffline(OnlineResource.JOSM_WEBSITE)); -
trunk/src/org/openstreetmap/josm/actions/HistoryInfoAction.java
r16512 r17188 30 30 31 31 /** Action shortcut, made public in order to be used from {@code GettingStarted} page. */ 32 public static final Shortcut SHORTCUT = Shortcut.registerShortcut("core:historyinfo", tr("History"), KeyEvent.VK_H, Shortcut.CTRL); 32 public static final Shortcut SHORTCUT = Shortcut.registerShortcut("core:historyinfo", tr("View: {0}", tr("History")), 33 KeyEvent.VK_H, Shortcut.CTRL); 33 34 34 35 /** -
trunk/src/org/openstreetmap/josm/actions/HistoryInfoWebAction.java
r14397 r17188 25 25 tr("Display history information about OSM ways, nodes, or relations in web browser."), 26 26 Shortcut.registerShortcut("core:historyinfoweb", 27 tr(" History (web)"), KeyEvent.VK_H, Shortcut.CTRL_SHIFT),27 tr("View: {0}", tr("History (web)")), KeyEvent.VK_H, Shortcut.CTRL_SHIFT), 28 28 true, "action/historyinfoweb", true); 29 29 setHelpId(ht("/Action/ObjectHistoryWeb")); -
trunk/src/org/openstreetmap/josm/actions/InfoAction.java
r14397 r17188 27 27 tr("Display advanced object information about OSM nodes, ways, or relations."), 28 28 Shortcut.registerShortcut("core:info", 29 tr(" Advanced info"), KeyEvent.VK_I, Shortcut.CTRL),29 tr("View: {0}", tr("Advanced info")), KeyEvent.VK_I, Shortcut.CTRL), 30 30 true, "action/info", true); 31 31 setHelpId(ht("/Action/InfoAboutElements")); -
trunk/src/org/openstreetmap/josm/actions/InfoWebAction.java
r14397 r17188 29 29 tr("Display object information about OSM nodes, ways, or relations in web browser."), 30 30 Shortcut.registerShortcut("core:infoweb", 31 tr(" Advanced info (web)"), KeyEvent.VK_I, Shortcut.CTRL_SHIFT),31 tr("View: {0}", tr("Advanced info (web)")), KeyEvent.VK_I, Shortcut.CTRL_SHIFT), 32 32 true, "action/infoweb", true); 33 33 setHelpId(ht("/Action/InfoAboutElementsWeb")); -
trunk/src/org/openstreetmap/josm/actions/JoinAreasAction.java
r17167 r17188 469 469 public JoinAreasAction(boolean addShortcutToolbarAdapters) { 470 470 super(tr("Join overlapping Areas"), "joinareas", tr("Joins areas that overlap each other"), addShortcutToolbarAdapters ? 471 Shortcut.registerShortcut("tools:joinareas", tr("Tool : {0}", tr("Join overlapping Areas")), KeyEvent.VK_J, Shortcut.SHIFT)471 Shortcut.registerShortcut("tools:joinareas", tr("Tools: {0}", tr("Join overlapping Areas")), KeyEvent.VK_J, Shortcut.SHIFT) 472 472 : null, addShortcutToolbarAdapters, null, addShortcutToolbarAdapters); 473 473 addUndoRedo = addShortcutToolbarAdapters; -
trunk/src/org/openstreetmap/josm/actions/JoinNodeWayAction.java
r17141 r17188 67 67 tr("Join Node to Way"), /* ICON */ "joinnodeway", 68 68 tr("Include a node into the nearest way segments"), 69 Shortcut.registerShortcut("tools:joinnodeway", tr("Tool : {0}", tr("Join Node to Way")),69 Shortcut.registerShortcut("tools:joinnodeway", tr("Tools: {0}", tr("Join Node to Way")), 70 70 KeyEvent.VK_J, Shortcut.DIRECT), true); 71 71 action.setHelpId(ht("/Action/JoinNodeWay")); … … 81 81 tr("Move Node onto Way"), /* ICON*/ "movenodeontoway", 82 82 tr("Move the node onto the nearest way segments and include it"), 83 Shortcut.registerShortcut("tools:movenodeontoway", tr("Tool : {0}", tr("Move Node onto Way")),83 Shortcut.registerShortcut("tools:movenodeontoway", tr("Tools: {0}", tr("Move Node onto Way")), 84 84 KeyEvent.VK_N, Shortcut.DIRECT), true); 85 85 action.setHelpId(ht("/Action/MoveNodeWay")); -
trunk/src/org/openstreetmap/josm/actions/JumpToAction.java
r17022 r17188 54 54 public JumpToAction() { 55 55 super(tr("Jump to Position"), "dialogs/position", tr("Opens a dialog that allows to jump to a specific location"), 56 Shortcut.registerShortcut("tools:jumpto", tr(" Tool: {0}", tr("Jump to Position")),56 Shortcut.registerShortcut("tools:jumpto", tr("View: {0}", tr("Jump to Position")), 57 57 KeyEvent.VK_J, Shortcut.CTRL), true, "action/jumpto", false); 58 58 // make this action listen to mapframe change events -
trunk/src/org/openstreetmap/josm/actions/MergeLayerAction.java
r17003 r17188 40 40 tr("Merge the current layer into another layer"), 41 41 Shortcut.registerShortcut("system:merge", tr("Edit: {0}", 42 tr("Merge ")), KeyEvent.VK_M, Shortcut.CTRL),42 tr("Merge layer")), KeyEvent.VK_M, Shortcut.CTRL), 43 43 true, "action/mergelayer", true); 44 44 setHelpId(ht("/Action/MergeLayer")); -
trunk/src/org/openstreetmap/josm/actions/MergeNodesAction.java
r16438 r17188 68 68 public MergeNodesAction() { 69 69 super(tr("Merge Nodes"), "mergenodes", tr("Merge nodes into the oldest one."), 70 Shortcut.registerShortcut("tools:mergenodes", tr("Tool : {0}", tr("Merge Nodes")), KeyEvent.VK_M, Shortcut.DIRECT), true);70 Shortcut.registerShortcut("tools:mergenodes", tr("Tools: {0}", tr("Merge Nodes")), KeyEvent.VK_M, Shortcut.DIRECT), true); 71 71 setHelpId(ht("/Action/MergeNodes")); 72 72 } -
trunk/src/org/openstreetmap/josm/actions/MirrorAction.java
r16438 r17188 38 38 public MirrorAction() { 39 39 super(tr("Mirror"), "mirror", tr("Mirror selected nodes and ways."), 40 Shortcut.registerShortcut("tools:mirror", tr("Tool : {0}", tr("Mirror")),40 Shortcut.registerShortcut("tools:mirror", tr("Tools: {0}", tr("Mirror")), 41 41 KeyEvent.VK_M, Shortcut.SHIFT), true); 42 42 setHelpId(ht("/Action/Mirror")); -
trunk/src/org/openstreetmap/josm/actions/MoveNodeAction.java
r15023 r17188 30 30 public MoveNodeAction() { 31 31 super(tr("Move Node..."), "movenode", tr("Edit latitude and longitude of a node."), 32 Shortcut.registerShortcut("movenode", tr(" Edit: {0}", tr("Move Node...")),32 Shortcut.registerShortcut("movenode", tr("Tools: {0}", tr("Move Node...")), 33 33 KeyEvent.VK_M, Shortcut.NONE), true); 34 34 setHelpId(ht("/Action/MoveNode")); -
trunk/src/org/openstreetmap/josm/actions/OrthogonalizeAction.java
r16438 r17188 64 64 "ortho", 65 65 tr("Move nodes so all angles are 90 or 180 degrees"), 66 Shortcut.registerShortcut("tools:orthogonalize", tr("Tool : {0}", tr("Orthogonalize Shape")),66 Shortcut.registerShortcut("tools:orthogonalize", tr("Tools: {0}", tr("Orthogonalize Shape")), 67 67 KeyEvent.VK_Q, 68 68 Shortcut.DIRECT), true); … … 99 99 super(tr("Orthogonalize Shape / Undo"), "ortho", 100 100 tr("Undo orthogonalization for certain nodes"), 101 Shortcut.registerShortcut("tools:orthogonalizeUndo", tr(" Tool: {0}", tr("Orthogonalize Shape / Undo")),101 Shortcut.registerShortcut("tools:orthogonalizeUndo", tr("Orthogonalize Shape / Undo"), 102 102 KeyEvent.VK_Q, 103 103 Shortcut.SHIFT), -
trunk/src/org/openstreetmap/josm/actions/PreferencesAction.java
r17097 r17188 90 90 public PreferencesAction() { 91 91 super(tr("Preferences..."), "preference", tr("Open a preferences dialog for global settings."), 92 Shortcut.registerShortcut("system:preferences", tr("Preferences"), KeyEvent.VK_F12, Shortcut.DIRECT), true, false); 92 Shortcut.registerShortcut("system:preferences", tr("Edit: {0}", tr("Preferences")), KeyEvent.VK_F12, Shortcut.DIRECT), 93 true, false); 93 94 setHelpId(ht("/Action/Preferences")); 94 95 this.tab = null; -
trunk/src/org/openstreetmap/josm/actions/ReorderImageryLayersAction.java
r16509 r17188 24 24 public ReorderImageryLayersAction() { 25 25 super(tr("Reorder imagery layers"), "dialogs/reorderlayers", tr("Reorders non-overlay imagery layers."), 26 Shortcut.registerMultiShortcuts("imagery:reorder", tr(" Reorder imagery layers"),26 Shortcut.registerMultiShortcuts("imagery:reorder", tr("Imagery: {0}", tr("Reorder imagery layers")), 27 27 KeyboardUtils.getCharactersForKey('E', 0), Shortcut.DIRECT)); 28 28 } -
trunk/src/org/openstreetmap/josm/actions/ReportBugAction.java
r16509 r17188 31 31 public ReportBugAction(String text) { 32 32 super(tr("Report bug"), "bug", tr("Report a ticket to JOSM bugtracker"), 33 Shortcut.registerShortcut("reportbug", tr(" Report a ticket to JOSM bugtracker"),33 Shortcut.registerShortcut("reportbug", tr("Help: {0}", tr("Report bug")), 34 34 KeyEvent.CHAR_UNDEFINED, Shortcut.NONE), true, false); 35 35 this.text = text; -
trunk/src/org/openstreetmap/josm/actions/ReverseWayAction.java
r16630 r17188 106 106 public ReverseWayAction() { 107 107 super(tr("Reverse Ways"), "wayflip", tr("Reverse the direction of all selected ways."), 108 Shortcut.registerShortcut("tools:reverse", tr("Tool : {0}", tr("Reverse Ways")), KeyEvent.VK_R, Shortcut.DIRECT), true);108 Shortcut.registerShortcut("tools:reverse", tr("Tools: {0}", tr("Reverse Ways")), KeyEvent.VK_R, Shortcut.DIRECT), true); 109 109 setHelpId(ht("/Action/ReverseWays")); 110 110 } -
trunk/src/org/openstreetmap/josm/actions/SimplifyWayAction.java
r17110 r17188 65 65 public SimplifyWayAction() { 66 66 super(tr("Simplify Way"), "simplify", tr("Delete unnecessary nodes from a way."), 67 Shortcut.registerShortcut("tools:simplify", tr("Tool : {0}", tr("Simplify Way")), KeyEvent.VK_Y, Shortcut.SHIFT), true);67 Shortcut.registerShortcut("tools:simplify", tr("Tools: {0}", tr("Simplify Way")), KeyEvent.VK_Y, Shortcut.SHIFT), true); 68 68 setHelpId(ht("/Action/SimplifyWay")); 69 69 } -
trunk/src/org/openstreetmap/josm/actions/SplitWayAction.java
r15943 r17188 56 56 public SplitWayAction() { 57 57 super(tr("Split Way"), "splitway", tr("Split a way at the selected node."), 58 Shortcut.registerShortcut("tools:splitway", tr("Tool : {0}", tr("Split Way")), KeyEvent.VK_P, Shortcut.DIRECT), true);58 Shortcut.registerShortcut("tools:splitway", tr("Tools: {0}", tr("Split Way")), KeyEvent.VK_P, Shortcut.DIRECT), true); 59 59 setHelpId(ht("/Action/SplitWay")); 60 60 } -
trunk/src/org/openstreetmap/josm/actions/TaggingPresetSearchAction.java
r16509 r17188 23 23 public TaggingPresetSearchAction() { 24 24 super(tr("Search preset..."), "dialogs/search", tr("Show preset search dialog"), 25 Shortcut.registerShortcut("preset:search", tr(" Search presets"), KeyEvent.VK_F3, Shortcut.DIRECT), false);25 Shortcut.registerShortcut("preset:search", tr("Presets: {0}", tr("Search preset...")), KeyEvent.VK_F3, Shortcut.DIRECT), false); 26 26 setToolbarId("presets/search"); 27 27 MainApplication.getToolbar().register(this); -
trunk/src/org/openstreetmap/josm/actions/UnGlueAction.java
r17187 r17188 61 61 public UnGlueAction() { 62 62 super(tr("UnGlue Ways"), "unglueways", tr("Duplicate nodes that are used by multiple ways."), 63 Shortcut.registerShortcut("tools:unglue", tr("Tool : {0}", tr("UnGlue Ways")), KeyEvent.VK_G, Shortcut.DIRECT), true);63 Shortcut.registerShortcut("tools:unglue", tr("Tools: {0}", tr("UnGlue Ways")), KeyEvent.VK_G, Shortcut.DIRECT), true); 64 64 setHelpId(ht("/Action/UnGlue")); 65 65 } -
trunk/src/org/openstreetmap/josm/actions/UnJoinNodeWayAction.java
r16438 r17188 39 39 tr("Disconnect nodes from a way they currently belong to"), 40 40 Shortcut.registerShortcut("tools:unjoinnodeway", 41 tr("Tool : {0}", tr("Disconnect Node from Way")), KeyEvent.VK_J, Shortcut.ALT), true);41 tr("Tools: {0}", tr("Disconnect Node from Way")), KeyEvent.VK_J, Shortcut.ALT), true); 42 42 setHelpId(ht("/Action/UnJoinNodeWay")); 43 43 } -
trunk/src/org/openstreetmap/josm/actions/ValidateAction.java
r16227 r17188 45 45 public ValidateAction() { 46 46 super(tr("Validation"), "dialogs/validator", tr("Performs the data validation"), 47 Shortcut.registerShortcut("tools:validate", tr(" Tool: {0}", tr("Validation")),47 Shortcut.registerShortcut("tools:validate", tr("Validation"), 48 48 KeyEvent.VK_V, Shortcut.SHIFT), true); 49 49 } -
trunk/src/org/openstreetmap/josm/actions/ViewportFollowToggleAction.java
r16509 r17188 32 32 "viewport-follow", 33 33 tr("Enable/disable automatic moving of the map view to last placed node"), 34 Shortcut.registerShortcut("menu:view:viewportfollow", tr(" Toggle Viewport Following"),34 Shortcut.registerShortcut("menu:view:viewportfollow", tr("View: {0}", tr("Viewport Following")), 35 35 KeyEvent.VK_F, Shortcut.CTRL_SHIFT), 36 36 true /* register shortcut */ -
trunk/src/org/openstreetmap/josm/actions/WireframeToggleAction.java
r17018 r17188 27 27 "dialogs/mappaint/wireframe_small", 28 28 tr("Enable/disable rendering the map as wireframe only"), 29 Shortcut.registerShortcut("menu:view:wireframe", tr(" Toggle Wireframe view"), KeyEvent.VK_W, Shortcut.CTRL),29 Shortcut.registerShortcut("menu:view:wireframe", tr("View: {0}", tr("Wireframe View")), KeyEvent.VK_W, Shortcut.CTRL), 30 30 false /* register toolbar */ 31 31 ); -
trunk/src/org/openstreetmap/josm/actions/mapmode/DrawAction.java
r17143 r17188 172 172 173 173 snappingShortcut = Shortcut.registerShortcut("mapmode:drawanglesnapping", 174 tr(" Mode: Draw Angle snapping"), KeyEvent.CHAR_UNDEFINED, Shortcut.NONE);174 tr("Edit: {0}", tr("Draw Angle snapping")), KeyEvent.CHAR_UNDEFINED, Shortcut.NONE); 175 175 snapChangeAction = new SnapChangeAction(); 176 176 snapCheckboxMenuItem = addMenuItem(); -
trunk/src/org/openstreetmap/josm/actions/mapmode/ExtrudeAction.java
r17184 r17188 232 232 dualAlignCheckboxMenuItem.setState(dualAlignEnabled); 233 233 dualAlignShortcut = Shortcut.registerShortcut("mapmode:extrudedualalign", 234 tr(" Mode: {0}", tr("Extrude Dual alignment")), KeyEvent.CHAR_UNDEFINED, Shortcut.NONE);234 tr("Edit: {0}", tr("Extrude Dual alignment")), KeyEvent.CHAR_UNDEFINED, Shortcut.NONE); 235 235 readPreferences(); // to show prefernces in table before entering the mode 236 236 } -
trunk/src/org/openstreetmap/josm/actions/search/SearchAction.java
r16509 r17188 144 144 public SearchAction() { 145 145 super(tr("Search..."), "dialogs/search", tr("Search for objects"), 146 Shortcut.registerShortcut("system:find", tr(" Search..."), KeyEvent.VK_F, Shortcut.CTRL), true);146 Shortcut.registerShortcut("system:find", tr("Edit: {0}", tr("Search...")), KeyEvent.VK_F, Shortcut.CTRL), true); 147 147 setHelpId(ht("/Action/Search")); 148 148 } -
trunk/src/org/openstreetmap/josm/gui/MainInitialization.java
r17080 r17188 80 80 // help shortcut 81 81 MainApplication.registerActionShortcut(MainApplication.menu.help, 82 Shortcut.registerShortcut("system:help", tr("Help "), KeyEvent.VK_F1, Shortcut.DIRECT));82 Shortcut.registerShortcut("system:help", tr("Help: {0}", tr("Help")), KeyEvent.VK_F1, Shortcut.DIRECT)); 83 83 }), 84 84 new InitializationTask(tr("Initializing internal boundaries data"), () -> { -
trunk/src/org/openstreetmap/josm/gui/dialogs/ChangesetDialog.java
r17062 r17188 253 253 "changesetdialog", 254 254 tr("Open the list of changesets in the current layer."), 255 Shortcut.registerShortcut("subwindow:changesets", tr(" Toggle: {0}", tr("Changesets")),255 Shortcut.registerShortcut("subwindow:changesets", tr("Windows: {0}", tr("Changesets")), 256 256 KeyEvent.CHAR_UNDEFINED, Shortcut.NONE), 257 257 200, /* the preferred height */ -
trunk/src/org/openstreetmap/josm/gui/dialogs/CommandStackDialog.java
r16789 r17188 95 95 public CommandStackDialog() { 96 96 super(tr("Command Stack"), "commandstack", tr("Open a list of all commands (undo buffer)."), 97 Shortcut.registerShortcut("subwindow:commandstack", tr(" Toggle: {0}",97 Shortcut.registerShortcut("subwindow:commandstack", tr("Windows: {0}", 98 98 tr("Command Stack")), KeyEvent.VK_O, Shortcut.ALT_SHIFT), 100); 99 99 undoTree.addMouseListener(new MouseEventHandler()); -
trunk/src/org/openstreetmap/josm/gui/dialogs/ConflictDialog.java
r17093 r17188 102 102 public ConflictDialog() { 103 103 super(tr("Conflict"), "conflict", tr("Resolve conflicts"), 104 Shortcut.registerShortcut("subwindow:conflict", tr(" Toggle: {0}", tr("Conflict")),104 Shortcut.registerShortcut("subwindow:conflict", tr("Windows: {0}", tr("Conflict")), 105 105 KeyEvent.VK_C, Shortcut.ALT_SHIFT), 100); 106 106 -
trunk/src/org/openstreetmap/josm/gui/dialogs/FilterDialog.java
r17148 r17188 81 81 public FilterDialog() { 82 82 super(tr("Filter"), "filter", tr("Filter objects and hide/disable them."), 83 Shortcut.registerShortcut("subwindow:filter", tr(" Toggle: {0}", tr("Filter")),83 Shortcut.registerShortcut("subwindow:filter", tr("Windows: {0}", tr("Filter")), 84 84 KeyEvent.VK_F, Shortcut.ALT_SHIFT), 162); 85 85 build(); -
trunk/src/org/openstreetmap/josm/gui/dialogs/LayerListDialog.java
r16960 r17188 197 197 public LayerListDialog(MainLayerManager layerManager) { 198 198 super(tr("Layers"), "layerlist", tr("Open a list of all loaded layers."), 199 Shortcut.registerShortcut("subwindow:layers", tr(" Toggle: {0}", tr("Layers")), KeyEvent.VK_L,199 Shortcut.registerShortcut("subwindow:layers", tr("Windows: {0}", tr("Layers")), KeyEvent.VK_L, 200 200 Shortcut.ALT_SHIFT), 100, true); 201 201 this.layerManager = layerManager; -
trunk/src/org/openstreetmap/josm/gui/dialogs/MapPaintDialog.java
r17161 r17188 113 113 public MapPaintDialog() { 114 114 super(tr("Map Paint Styles"), "mapstyle", tr("configure the map painting style"), 115 Shortcut.registerShortcut("subwindow:mappaint", tr(" Toggle: {0}", tr("MapPaint")),115 Shortcut.registerShortcut("subwindow:mappaint", tr("Windows: {0}", tr("Map Paint Styles")), 116 116 KeyEvent.VK_M, Shortcut.ALT_SHIFT), 150, false, MapPaintPreference.class); 117 117 build(); -
trunk/src/org/openstreetmap/josm/gui/dialogs/MenuItemSearchDialog.java
r16423 r17188 125 125 // CHECKSTYLE.OFF: LineLength 126 126 /** Action shortcut (ctrl / space by default), made public in order to be used from {@code GettingStarted} page. */ 127 public static final Shortcut SHORTCUT = Shortcut.registerShortcut("help:search-items", "Search menu items", KeyEvent.VK_SPACE, Shortcut.CTRL);127 public static final Shortcut SHORTCUT = Shortcut.registerShortcut("help:search-items", tr("Help: {0}", tr("Search menu items")), KeyEvent.VK_SPACE, Shortcut.CTRL); 128 128 // CHECKSTYLE.ON: LineLength 129 129 -
trunk/src/org/openstreetmap/josm/gui/dialogs/MinimapDialog.java
r17062 r17188 30 30 public MinimapDialog() { 31 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")),32 Shortcut.registerShortcut("subwindow:minimap", tr("Windows: {0}", tr("Mini map")), 33 33 KeyEvent.CHAR_UNDEFINED, Shortcut.NONE), 150); 34 34 } -
trunk/src/org/openstreetmap/josm/gui/dialogs/NotesDialog.java
r17062 r17188 77 77 public NotesDialog() { 78 78 super(tr("Notes"), "notes/note_open", tr("List of notes"), 79 Shortcut.registerShortcut("subwindow:notes", tr(" Toggle: {0}", tr("Notes")),79 Shortcut.registerShortcut("subwindow:notes", tr("Windows: {0}", tr("Notes")), 80 80 KeyEvent.CHAR_UNDEFINED, Shortcut.NONE), 150); 81 81 addCommentAction = new AddCommentAction(); -
trunk/src/org/openstreetmap/josm/gui/dialogs/RelationListDialog.java
r17150 r17188 148 148 public RelationListDialog() { 149 149 super(tr("Relations"), "relationlist", tr("Open a list of all relations."), 150 Shortcut.registerShortcut("subwindow:relations", tr(" Toggle: {0}", tr("Relations")),150 Shortcut.registerShortcut("subwindow:relations", tr("Windows: {0}", tr("Relations")), 151 151 KeyEvent.VK_R, Shortcut.ALT_SHIFT), 150, true); 152 152 -
trunk/src/org/openstreetmap/josm/gui/dialogs/SelectionListDialog.java
r16601 r17188 148 148 public SelectionListDialog() { 149 149 super(tr("Selection"), "selectionlist", tr("Open a selection list window."), 150 Shortcut.registerShortcut("subwindow:selection", tr(" Toggle: {0}",151 tr(" CurrentSelection")), KeyEvent.VK_T, Shortcut.ALT_SHIFT),150 Shortcut.registerShortcut("subwindow:selection", tr("Windows: {0}", 151 tr("Selection")), KeyEvent.VK_T, Shortcut.ALT_SHIFT), 152 152 150, // default height 153 153 true // default is "show dialog" -
trunk/src/org/openstreetmap/josm/gui/dialogs/UserListDialog.java
r16438 r17188 72 72 public UserListDialog() { 73 73 super(tr("Authors"), "userlist", tr("Open a list of people working on the selected objects."), 74 Shortcut.registerShortcut("subwindow:authors", tr(" Toggle: {0}", tr("Authors")), KeyEvent.VK_A, Shortcut.ALT_SHIFT), 150);74 Shortcut.registerShortcut("subwindow:authors", tr("Windows: {0}", tr("Authors")), KeyEvent.VK_A, Shortcut.ALT_SHIFT), 150); 75 75 build(); 76 76 } -
trunk/src/org/openstreetmap/josm/gui/dialogs/ValidatorDialog.java
r16967 r17188 116 116 public ValidatorDialog() { 117 117 super(tr("Validation Results"), "validator", tr("Open the validation window."), 118 Shortcut.registerShortcut("subwindow:validator", tr(" Toggle: {0}", tr("Validation Results")),118 Shortcut.registerShortcut("subwindow:validator", tr("Windows: {0}", tr("Validation Results")), 119 119 KeyEvent.VK_V, Shortcut.ALT_SHIFT), 150, false, ValidatorPreference.class); 120 120 -
trunk/src/org/openstreetmap/josm/gui/dialogs/properties/PropertiesDialog.java
r17066 r17188 255 255 public PropertiesDialog() { 256 256 super(tr("Tags/Memberships"), "propertiesdialog", tr("Tags for selected objects."), 257 Shortcut.registerShortcut("subwindow:properties", tr(" Toggle: {0}", tr("Tags/Memberships")), KeyEvent.VK_P,257 Shortcut.registerShortcut("subwindow:properties", tr("Windows: {0}", tr("Tags/Memberships")), KeyEvent.VK_P, 258 258 Shortcut.ALT_SHIFT), 150, true); 259 259 … … 1229 1229 EditAction() { 1230 1230 super(tr("Edit"), /* ICON() */ "dialogs/edit", tr("Edit the value of the selected key for all objects"), 1231 Shortcut.registerShortcut("properties:edit", tr("Edit Tags"), KeyEvent.VK_S,1231 Shortcut.registerShortcut("properties:edit", tr("Edit: {0}", tr("Edit Tags")), KeyEvent.VK_S, 1232 1232 Shortcut.ALT), false); 1233 1233 updateEnabledState(); -
trunk/src/org/openstreetmap/josm/gui/layer/geoimage/ImageViewerDialog.java
r16800 r17188 100 100 private ImageViewerDialog() { 101 101 super(tr("Geotagged Images"), "geoimage", tr("Display geotagged images"), Shortcut.registerShortcut("tools:geotagged", 102 tr(" Tool: {0}", tr("Display geotagged images")), KeyEvent.VK_Y, Shortcut.DIRECT), 200);102 tr("Windows: {0}", tr("Geotagged Images")), KeyEvent.VK_Y, Shortcut.DIRECT), 200); 103 103 build(); 104 104 MainApplication.getLayerManager().addActiveLayerChangeListener(this); -
trunk/src/org/openstreetmap/josm/gui/tagging/presets/TaggingPresetSearchPrimitiveDialog.java
r16320 r17188 34 34 public Action() { 35 35 super(tr("Search for objects by preset..."), "dialogs/search", tr("Search for objects by their presets."), 36 Shortcut.registerShortcut("preset:search-objects", tr(" Search for objects by preset"), KeyEvent.VK_F3, Shortcut.SHIFT),37 false);36 Shortcut.registerShortcut("preset:search-objects", tr("Presets: {0}", tr("Search for objects by preset...")), 37 KeyEvent.VK_F3, Shortcut.SHIFT), false); 38 38 putValue("toolbar", "presets/search-objects"); 39 39 MainApplication.getToolbar().register(this);
Note:
See TracChangeset
for help on using the changeset viewer.