Changeset 1084 in josm for trunk/src/org/openstreetmap/josm/actions/mapmode
- Timestamp:
- 2008-11-18T19:53:53+01:00 (16 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/actions/mapmode
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/mapmode/DeleteAction.java
r1066 r1084 16 16 import org.openstreetmap.josm.gui.MapFrame; 17 17 import org.openstreetmap.josm.tools.ImageProvider; 18 import org.openstreetmap.josm.tools.Short Cut;18 import org.openstreetmap.josm.tools.Shortcut; 19 19 20 20 /** … … 44 44 "delete", 45 45 tr("Delete nodes or ways."), 46 Short Cut.registerShortCut("mapmode:delete", tr("Mode: {0}",tr("Delete")), KeyEvent.VK_D, ShortCut.GROUP_EDIT),46 Shortcut.registerShortcut("mapmode:delete", tr("Mode: {0}",tr("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
r1054 r1084 51 51 import org.openstreetmap.josm.tools.ImageProvider; 52 52 import org.openstreetmap.josm.tools.Pair; 53 import org.openstreetmap.josm.tools.Short Cut;53 import org.openstreetmap.josm.tools.Shortcut; 54 54 55 55 /** … … 74 74 public DrawAction(MapFrame mapFrame) { 75 75 super(tr("Draw"), "node/autonode", tr("Draw nodes"), 76 Short Cut.registerShortCut("mapmode:draw", tr("Mode: {0}", tr("Draw")), 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 Short Cut.registerShortCut("mapmode:drawfocus", tr("Mode: Draw Focus"), 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
r1054 r1084 30 30 import org.openstreetmap.josm.gui.layer.MapViewPaintable; 31 31 import org.openstreetmap.josm.tools.ImageProvider; 32 import org.openstreetmap.josm.tools.Short Cut;32 import org.openstreetmap.josm.tools.Shortcut; 33 33 34 34 /** … … 74 74 public ExtrudeAction(MapFrame mapFrame) { 75 75 super(tr("Extrude"), "extrude/extrude", tr("Create areas"), 76 Short Cut.registerShortCut("mapmode:extrude", tr("Mode: {0}", tr("Extrude")), 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/MapMode.java
r1023 r1084 12 12 import org.openstreetmap.josm.gui.MapFrame; 13 13 import org.openstreetmap.josm.tools.ImageProvider; 14 import org.openstreetmap.josm.tools.Short Cut;14 import org.openstreetmap.josm.tools.Shortcut; 15 15 16 16 /** … … 29 29 * Constructor for mapmodes without an menu 30 30 */ 31 public MapMode(String name, String iconName, String tooltip, Short Cut shortCut, MapFrame mapFrame, Cursor cursor) {32 super(name, "mapmode/"+iconName, tooltip, short Cut, false);31 public MapMode(String name, String iconName, String tooltip, Shortcut shortcut, MapFrame mapFrame, Cursor cursor) { 32 super(name, "mapmode/"+iconName, tooltip, shortcut, false); 33 33 this.cursor = cursor; 34 34 putValue("active", false); -
trunk/src/org/openstreetmap/josm/actions/mapmode/SelectAction.java
r1054 r1084 36 36 import org.openstreetmap.josm.gui.SelectionManager.SelectionEnded; 37 37 import org.openstreetmap.josm.tools.ImageProvider; 38 import org.openstreetmap.josm.tools.Short Cut;38 import org.openstreetmap.josm.tools.Shortcut; 39 39 40 40 /** … … 86 86 public SelectAction(MapFrame mapFrame) { 87 87 super(tr("Select"), "move/move", tr("Select, move and rotate objects"), 88 Short Cut.registerShortCut("mapmode:select", tr("Mode: {0}", tr("Select")), 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
r1054 r1084 13 13 import org.openstreetmap.josm.gui.SelectionManager.SelectionEnded; 14 14 import org.openstreetmap.josm.tools.ImageProvider; 15 import org.openstreetmap.josm.tools.Short Cut;15 import org.openstreetmap.josm.tools.Shortcut; 16 16 17 17 /** … … 47 47 public ZoomAction(MapFrame mapFrame) { 48 48 super(tr("Zoom"), "zoom", tr("Zoom and move map"), 49 Short Cut.registerShortCut("mapmode:zoom", tr("Mode: {0}", tr("Zoom")), 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;
Note:
See TracChangeset
for help on using the changeset viewer.