- Timestamp:
- 2009-03-01T14:39:53+01:00 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/mapmode/DrawAction.java
r1458 r1459 4 4 import static org.openstreetmap.josm.tools.I18n.marktr; 5 5 import static org.openstreetmap.josm.tools.I18n.tr; 6 import static org.openstreetmap.josm.tools.I18n.trn; 6 7 7 8 import java.awt.AWTEvent; … … 63 64 final private Cursor cursorJoinNode; 64 65 final private Cursor cursorJoinWay; 65 enum Cursors { crosshair, node, way } 66 enum Cursors { crosshair, node, way } 66 67 private Cursors currCursor = Cursors.crosshair; 67 68 68 69 private static Node lastUsedNode = null; 69 70 private double PHI=Math.toRadians(90); … … 94 95 Main.contentPane.getInputMap(JComponent.WHEN_IN_FOCUSED_WINDOW).put( 95 96 Shortcut.registerShortcut("mapmode:drawfocus", tr("Mode: Draw Focus"), KeyEvent.VK_N, Shortcut.GROUP_EDIT).getKeyStroke(), tr("Draw")); 96 97 97 98 cursorCrosshair = getCursor(); 98 99 cursorJoinNode = ImageProvider.getCursor("crosshair", "joinnode"); … … 131 132 default: 132 133 Main.map.mapView.setCursor(cursorCrosshair); 133 break; 134 break; 134 135 } 135 136 } … … 138 139 } catch(Exception e) {} 139 140 } 140 141 141 142 /** 142 143 * Checks if a map redraw is required and does so if needed. Also updates the status bar … … 877 878 // We already know oldHighlights is not empty, but shift is pressed. 878 879 // We can assume the new node will be joined into an existing way 879 rv = tr("Insert new node into {0} way(s).", oldHighlights.size()); 880 rv = trn("Insert new node into way.", "Insert new node into {0} ways.", 881 oldHighlights.size(), oldHighlights.size()); 880 882 } else { 881 883 // oldHighlights may store a node or way, check if it's a node … … 884 886 rv = tr("Select node under cursor."); 885 887 else 886 rv = tr("Insert new node into {0} way(s).", oldHighlights.size()); 888 rv = trn("Insert new node into way.", "Insert new node into {0} ways.", 889 oldHighlights.size(), oldHighlights.size()); 887 890 } 888 891 … … 896 899 rv += " " + tr("Continue way from last node."); 897 900 } 898 901 899 902 Node n = mouseOnExistingNode; 900 903 /* 901 904 * Handle special case: Highlighted node == selected node => finish drawing 902 905 */ 903 906 904 907 if(n != null && Main.ds.getSelectedNodes().contains(n)) { 905 908 if(wayIsFinished)
Note:
See TracChangeset
for help on using the changeset viewer.