Changeset 23165 in osm for applications/editors


Ignore:
Timestamp:
2010-09-14T22:04:36+02:00 (14 years ago)
Author:
tilusnet
Message:

AlignWays mode can be activated now with a shortcut (Shift+N by default).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/alignways/src/org/openstreetmap/josm/plugins/alignways/AlignWaysMode.java

    r23082 r23165  
    1010import java.awt.event.ActionEvent;
    1111import java.awt.event.InputEvent;
     12import java.awt.event.KeyEvent;
    1213import java.awt.event.MouseEvent;
    1314
     
    1819import org.openstreetmap.josm.actions.mapmode.MapMode;
    1920import org.openstreetmap.josm.gui.MapFrame;
     21import org.openstreetmap.josm.tools.Shortcut;
    2022
    2123/**
     
    3638
    3739        public AlignWaysMode(MapFrame mapFrame, String name, String desc) {
    38                 super(name, "alignways.png", desc, mapFrame, Cursor
    39                                 .getPredefinedCursor(Cursor.DEFAULT_CURSOR));
    40 
     40                super(tr(name), "alignways.png", tr(desc),
     41                                Shortcut.registerShortcut("mapmode:alignways",
     42                                                tr("Mode: {0}", tr("Align Ways")),
     43                                                KeyEvent.VK_N, Shortcut.GROUP_EDIT, Shortcut.SHIFT_DEFAULT),
     44                                                mapFrame, Cursor.getPredefinedCursor(Cursor.DEFAULT_CURSOR));
    4145                noneSelected = new AlignWaysSelNoneState();
    4246                referenceSelected = new AlignWaysSelRefState();
Note: See TracChangeset for help on using the changeset viewer.