Changeset 68 in josm for src/org/openstreetmap/josm/actions/mapmode
- Timestamp:
- 2006-03-24T01:45:42+01:00 (20 years ago)
- Location:
- src/org/openstreetmap/josm/actions/mapmode
- Files:
-
- 8 edited
-
AddLineSegmentAction.java (modified) (1 diff)
-
AddNodeAction.java (modified) (1 diff)
-
AddWayAction.java (modified) (1 diff)
-
DeleteAction.java (modified) (1 diff)
-
MapMode.java (modified) (2 diffs)
-
MoveAction.java (modified) (1 diff)
-
SelectionAction.java (modified) (1 diff)
-
ZoomAction.java (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
src/org/openstreetmap/josm/actions/mapmode/AddLineSegmentAction.java
r66 r68 46 46 */ 47 47 public AddLineSegmentAction(MapFrame mapFrame) { 48 super("Add Line Segment", "addlinesegment", "Add a line segment between two nodes.", KeyEvent.VK_G, mapFrame); 48 super("Add Line Segment", "addlinesegment", "Add a line segment between two nodes.", "G", KeyEvent.VK_G, mapFrame); 49 49 } 50 50 -
src/org/openstreetmap/josm/actions/mapmode/AddNodeAction.java
r66 r68 28 28 */ 29 29 public AddNodeAction(MapFrame mapFrame) { 30 super("Add nodes", "addnode", "Add nodes to the map.", KeyEvent.VK_N, mapFrame); 30 super("Add nodes", "addnode", "Add nodes to the map.", "N", KeyEvent.VK_N, mapFrame); 31 31 } 32 32 -
src/org/openstreetmap/josm/actions/mapmode/AddWayAction.java
r66 r68 43 43 */ 44 44 public AddWayAction(MapFrame mapFrame, MapMode followMode) { 45 super("Add Way", "addway", "Combine selected segments to a new way.", KeyEvent.VK_W, mapFrame); 45 super("Add Way", "addway", "Combine selected segments to a new way.", "W", KeyEvent.VK_W, mapFrame); 46 46 this.followMode = followMode; 47 47 } -
src/org/openstreetmap/josm/actions/mapmode/DeleteAction.java
r64 r68 43 43 */ 44 44 public DeleteAction(MapFrame mapFrame) { 45 super("Delete", "delete", "Delete nodes, streets or segments.", KeyEvent.VK_D, mapFrame); 45 super("Delete", "delete", "Delete nodes, streets or segments.", "Delete", KeyEvent.VK_DELETE, mapFrame); 46 46 } 47 47 -
src/org/openstreetmap/josm/actions/mapmode/MapMode.java
r30 r68 5 5 import java.awt.event.MouseListener; 6 6 import java.awt.event.MouseMotionListener; 7 8 import javax.swing.KeyStroke; 7 9 8 10 import org.openstreetmap.josm.actions.JosmAction; … … 31 33 /** 32 34 * Construct a mapMode with the given icon and the given MapFrame 33 *34 * @param iconName The filename of the icon.35 * @param mapFrame The parent MapFrame, this MapMode belongs to.36 35 */ 37 public MapMode(String name, String iconName, String tooltip, int mnemonic, MapFrame mapFrame) {38 super(name, "mapmode/"+iconName, tooltip, mnemonic, null);36 public MapMode(String name, String iconName, String tooltip, String keyname, int keystroke, MapFrame mapFrame) { 37 super(name, "mapmode/"+iconName, tooltip, keyname, KeyStroke.getKeyStroke(keystroke, 0)); 39 38 this.mapFrame = mapFrame; 40 39 mv = mapFrame.mapView; -
src/org/openstreetmap/josm/actions/mapmode/MoveAction.java
r40 r68 47 47 */ 48 48 public MoveAction(MapFrame mapFrame) { 49 super("Move", "move", "Move selected objects around", KeyEvent.VK_M, mapFrame); 49 super("Move", "move", "Move selected objects around.", "M", KeyEvent.VK_M, mapFrame); 50 50 } 51 51 -
src/org/openstreetmap/josm/actions/mapmode/SelectionAction.java
r64 r68 63 63 */ 64 64 public SelectionAction(MapFrame mapFrame) { 65 super("Selection", "selection", "Select objects by dragging or clicking", KeyEvent.VK_S, mapFrame); 65 super("Selection", "selection", "Select objects by dragging or clicking.", "S", KeyEvent.VK_S, mapFrame); 66 66 this.selectionManager = new SelectionManager(this, false, mv); 67 67 } -
src/org/openstreetmap/josm/actions/mapmode/ZoomAction.java
r23 r68 41 41 */ 42 42 public ZoomAction(MapFrame mapFrame) { 43 super("Zoom", "zoom", "Zoom in by dragging", KeyEvent.VK_Z, mapFrame); 43 super("Zoom", "zoom", "Zoom in by dragging.", "Z", KeyEvent.VK_Z, mapFrame); 44 44 mv = mapFrame.mapView; 45 45 selectionManager = new SelectionManager(this, true, mv);
Note:
See TracChangeset
for help on using the changeset viewer.
