Ignore:
Timestamp:
2006-03-24T01:45:42+01:00 (20 years ago)
Author:
imi
Message:
  • Remove Alt from hotkeys ('n' for new node, not Alt-n)
  • use command line options to open files/start or download (--help for a list)
Location:
src/org/openstreetmap/josm/actions/mapmode
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • src/org/openstreetmap/josm/actions/mapmode/AddLineSegmentAction.java

    r66 r68  
    4646         */
    4747        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);
    4949        }
    5050
  • src/org/openstreetmap/josm/actions/mapmode/AddNodeAction.java

    r66 r68  
    2828         */
    2929        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);
    3131        }
    3232
  • src/org/openstreetmap/josm/actions/mapmode/AddWayAction.java

    r66 r68  
    4343         */
    4444        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);
    4646                this.followMode = followMode;
    4747        }
  • src/org/openstreetmap/josm/actions/mapmode/DeleteAction.java

    r64 r68  
    4343         */
    4444        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);
    4646        }
    4747
  • src/org/openstreetmap/josm/actions/mapmode/MapMode.java

    r30 r68  
    55import java.awt.event.MouseListener;
    66import java.awt.event.MouseMotionListener;
     7
     8import javax.swing.KeyStroke;
    79
    810import org.openstreetmap.josm.actions.JosmAction;
     
    3133        /**
    3234         * 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.
    3635         */
    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));
    3938                this.mapFrame = mapFrame;
    4039                mv = mapFrame.mapView;
  • src/org/openstreetmap/josm/actions/mapmode/MoveAction.java

    r40 r68  
    4747         */
    4848        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);
    5050        }
    5151
  • src/org/openstreetmap/josm/actions/mapmode/SelectionAction.java

    r64 r68  
    6363         */
    6464        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);
    6666                this.selectionManager = new SelectionManager(this, false, mv);
    6767        }
  • src/org/openstreetmap/josm/actions/mapmode/ZoomAction.java

    r23 r68  
    4141         */
    4242        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);
    4444                mv = mapFrame.mapView;
    4545                selectionManager = new SelectionManager(this, true, mv);
Note: See TracChangeset for help on using the changeset viewer.