Ignore:
Timestamp:
2012-02-18T13:40:52+01:00 (12 years ago)
Author:
stoecker
Message:

fix shortcut deprecation

Location:
applications/editors/josm/plugins/utilsplugin2/src/utilsplugin2
Files:
28 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/utilsplugin2/src/utilsplugin2/AddIntersectionsAction.java

    r27835 r27852  
    2929    public AddIntersectionsAction() {
    3030        super(tr("Add nodes at intersections"), "addintersect", tr("Add missing nodes at intersections of selected ways."),
    31                 Shortcut.registerShortcut("tools:addintersect", tr("Tool: {0}", tr("Add nodes at intersections")), KeyEvent.VK_N, Shortcut.GROUPS_ALT1+Shortcut.GROUP_DIRECT3), true);
     31                Shortcut.registerShortcut("tools:addintersect", tr("Tool: {0}", tr("Add nodes at intersections")), KeyEvent.VK_N, Shortcut.ALT_CTRL_SHIFT), true);
    3232        putValue("help", ht("/Action/AddIntersections"));
    3333    }
  • applications/editors/josm/plugins/utilsplugin2/src/utilsplugin2/ExtractPointAction.java

    r27761 r27852  
    3434                tr("Extracts node from a way"),
    3535                Shortcut.registerShortcut("tools:extnode", tr("Tool: {0}","Extract node"),
    36                 KeyEvent.VK_J, Shortcut.GROUP_DIRECT2  ), true);
     36                KeyEvent.VK_J, Shortcut.ALT), true);
    3737        putValue("help", ht("/Action/ExtractNode"));
    3838    }
  • applications/editors/josm/plugins/utilsplugin2/src/utilsplugin2/LatLonAction.java

    r27761 r27852  
    3131    public LatLonAction() {
    3232        super(tr("Lat Lon tool"), "latlon", tr("Create geometry by entering lat lon coordinates for it."),
    33                 Shortcut.registerShortcut("latlon", tr("Edit: {0}", tr("Lat Lon tool")), KeyEvent.VK_L, Shortcut.GROUP_DIRECT3), true);
     33                Shortcut.registerShortcut("latlon", tr("Edit: {0}", tr("Lat Lon tool")), KeyEvent.VK_L, Shortcut.CTRL_SHIFT), true);
    3434        putValue("help", ht("/Action/AddNode"));
    3535    }
  • applications/editors/josm/plugins/utilsplugin2/src/utilsplugin2/SplitObjectAction.java

    r27616 r27852  
    4343        super(tr("Split Object"), "splitobject", tr("Split an object at the selected nodes."),
    4444                Shortcut.registerShortcut("tools:splitobject", tr("Tool: {0}", tr("Split Object")),
    45                 KeyEvent.VK_P,  Shortcut.GROUP_MENU)
     45                KeyEvent.VK_P,  Shortcut.CTRL)
    4646                , true);
    4747        putValue("help", ht("/Action/SplitObject"));
  • applications/editors/josm/plugins/utilsplugin2/src/utilsplugin2/SymmetryAction.java

    r27761 r27852  
    3636        super(tr("Symmetry"), "symmetry", tr("Mirror selected nodes and ways."),
    3737                Shortcut.registerShortcut("tools:symmetry", tr("Tool: {0}", tr("Symmetry")),
    38                         KeyEvent.VK_S, Shortcut.GROUPS_ALT1+Shortcut.GROUP_DIRECT2), true);
     38                        KeyEvent.VK_S, Shortcut.ALT_SHIFT), true);
    3939        putValue("help", ht("/Action/Symmetry"));
    4040    }
  • applications/editors/josm/plugins/utilsplugin2/src/utilsplugin2/UnGlueRelationAction.java

    r27761 r27852  
    4343    public UnGlueRelationAction() {
    4444        super(tr("UnGlue Relation"), "ungluerelations", tr("Duplicate nodes, ways and relations that are used by multiple relations."),
    45               Shortcut.registerShortcut("tools:ungluerelation", tr("Tool: {0}", tr("UnGlue Relations")), KeyEvent.VK_G, Shortcut.GROUPS_ALT1+Shortcut.GROUP_DIRECT2 ), true);
     45              Shortcut.registerShortcut("tools:ungluerelation", tr("Tool: {0}", tr("UnGlue Relations")), KeyEvent.VK_G, Shortcut.ALT_SHIFT ), true);
    4646        putValue("help", ht("/Action/UnGlueRelation"));
    4747    }
  • applications/editors/josm/plugins/utilsplugin2/src/utilsplugin2/curves/CurveAction.java

    r27761 r27852  
    3131        super(tr("Circle arc"), "circlearc", tr("Create a circle arc"),
    3232                Shortcut.registerShortcut("tools:createcurve", tr("Tool: {0}", tr("Create a circle arc")), KeyEvent.VK_C,
    33                         Shortcut.GROUPS_ALT1+Shortcut.GROUP_EDIT), true);
     33                        Shortcut.SHIFT), true);
    3434        putValue("help", ht("/Action/CreateCircleArc"));
    3535        updatePreferences();
  • applications/editors/josm/plugins/utilsplugin2/src/utilsplugin2/customurl/OpenPageAction.java

    r27761 r27852  
    3636                tr("Opens specified URL browser"),
    3737                Shortcut.registerShortcut("tools:openurl", tr("Tool: {0}", tr("Open custom URL")),
    38                 KeyEvent.VK_H, Shortcut.GROUPS_ALT1+Shortcut.GROUP_EDIT), true);
     38                KeyEvent.VK_H, Shortcut.SHIFT), true);
    3939        putValue("help", ht("/Action/OpenPage"));
    4040    }
  • applications/editors/josm/plugins/utilsplugin2/src/utilsplugin2/dumbutils/AlignWayNodesAction.java

    r27761 r27852  
    2323    public AlignWayNodesAction() {
    2424        super(TITLE, "dumbutils/alignwaynodes", tr("Align nodes in a way"),
    25                 Shortcut.registerShortcut("tools:alignwaynodes", tr("Tool: {0}", tr("Align Way Nodes")), KeyEvent.VK_L, Shortcut.GROUPS_ALT1+Shortcut.GROUP_EDIT)
     25                Shortcut.registerShortcut("tools:alignwaynodes", tr("Tool: {0}", tr("Align Way Nodes")), KeyEvent.VK_L, Shortcut.SHIFT)
    2626                , true);
    2727    }
  • applications/editors/josm/plugins/utilsplugin2/src/utilsplugin2/dumbutils/PasteRelationsAction.java

    r27761 r27852  
    2121    public PasteRelationsAction() {
    2222        super(TITLE, "dumbutils/pasterelations", tr("Paste relation membership from objects in the buffer onto selected object(s)"),
    23                 Shortcut.registerShortcut("tools:pasterelations", tr("Tool: {0}",  tr("Paste Relations")), KeyEvent.VK_V, Shortcut.GROUPS_ALT2+Shortcut.GROUP_MENU), true);
     23                Shortcut.registerShortcut("tools:pasterelations", tr("Tool: {0}",  tr("Paste Relations")), KeyEvent.VK_V, Shortcut.ALT_CTRL), true);
    2424    }
    2525
  • applications/editors/josm/plugins/utilsplugin2/src/utilsplugin2/dumbutils/ReplaceGeometryAction.java

    r27761 r27852  
    3333    public ReplaceGeometryAction() {
    3434        super(TITLE, "dumbutils/replacegeometry", tr("Replace geometry of selected object with a new one"),
    35                 Shortcut.registerShortcut("tools:replacegeometry", tr("Tool: {0}", tr("Replace Geometry")), KeyEvent.VK_G, Shortcut.GROUPS_ALT1+Shortcut.GROUP_MENU)
     35                Shortcut.registerShortcut("tools:replacegeometry", tr("Tool: {0}", tr("Replace Geometry")), KeyEvent.VK_G, Shortcut.CTRL_SHIFT)
    3636                , true);
    3737    }
  • applications/editors/josm/plugins/utilsplugin2/src/utilsplugin2/dumbutils/SplitOnIntersectionsAction.java

    r27764 r27852  
    2727        super(TITLE, "dumbutils/splitonintersections", tr("Split adjacent ways on T-intersections"),
    2828                Shortcut.registerShortcut("tools:splitonintersections", tr("Tool: {0}", tr("Split adjacent ways")),
    29                 KeyEvent.VK_P, Shortcut.GROUP_DIRECT3+Shortcut.GROUPS_ALT1), true);
     29                KeyEvent.VK_P, Shortcut.ALT_CTRL_SHIFT), true);
    3030    }
    3131
  • applications/editors/josm/plugins/utilsplugin2/src/utilsplugin2/dumbutils/TagBufferAction.java

    r27761 r27852  
    2424    public TagBufferAction() {
    2525        super(TITLE, "dumbutils/tagbuffer", tr("Pastes tags of previously selected object(s)"),
    26                 Shortcut.registerShortcut("tools:tagbuffer", tr("Tool: {0}", tr("Copy tags from previous selection")), KeyEvent.VK_R, Shortcut.GROUPS_ALT1+Shortcut.GROUP_EDIT)
     26                Shortcut.registerShortcut("tools:tagbuffer", tr("Tool: {0}", tr("Copy tags from previous selection")), KeyEvent.VK_R, Shortcut.SHIFT)
    2727                , true);
    2828    }
  • applications/editors/josm/plugins/utilsplugin2/src/utilsplugin2/dumbutils/TagSourceAction.java

    r27761 r27852  
    2424    public TagSourceAction() {
    2525        super(TITLE, "dumbutils/sourcetag", tr("Add remembered source tag"),
    26                 Shortcut.registerShortcut("tools:sourcetag", tr("Tool: {0}", tr("Add Source Tag")), KeyEvent.VK_S, Shortcut.GROUPS_ALT2+Shortcut.GROUP_MENU)
     26                Shortcut.registerShortcut("tools:sourcetag", tr("Tool: {0}", tr("Add Source Tag")), KeyEvent.VK_S, Shortcut.ALT_CTRL)
    2727                , true);
    2828        source = Main.pref.get("sourcetag.value");
  • applications/editors/josm/plugins/utilsplugin2/src/utilsplugin2/selection/AdjacentNodesAction.java

    r25876 r27852  
    2525        super(tr("Adjacent nodes"), "adjnodes", tr("Select adjacent nodes"),
    2626                Shortcut.registerShortcut("tools:adjnodes", tr("Tool: {0}","Adjacent nodes"),
    27                 KeyEvent.VK_E, Shortcut.GROUP_EDIT), true);
     27                KeyEvent.VK_E, Shortcut.DIRECT), true);
    2828        putValue("help", ht("/Action/AdjacentNodes"));
    2929    }
  • applications/editors/josm/plugins/utilsplugin2/src/utilsplugin2/selection/AdjacentWaysAction.java

    r27761 r27852  
    2626                tr("Adjacent ways will be selected. Nodes will be deselected."),
    2727                Shortcut.registerShortcut("tools:adjways", tr("Tool: {0}","Adjacent ways"),
    28                 KeyEvent.VK_E, Shortcut.GROUPS_ALT1+Shortcut.GROUP_EDIT), true);
     28                KeyEvent.VK_E, Shortcut.SHIFT), true);
    2929        putValue("help", ht("/Action/AdjacentWays"));
    3030    }
  • applications/editors/josm/plugins/utilsplugin2/src/utilsplugin2/selection/ConnectedWaysAction.java

    r27761 r27852  
    2323        super(tr("All connected ways"), "adjwaysall", tr("Select all connected ways"),
    2424                Shortcut.registerShortcut("tools:adjwaysall", tr("Tool: {0}","All connected ways"),
    25                 KeyEvent.VK_E, Shortcut.GROUPS_ALT1+Shortcut.GROUP_MENU), true);
     25                KeyEvent.VK_E, Shortcut.CTRL_SHIFT), true);
    2626        putValue("help", ht("/Action/SelectConnectedWays"));
    2727    }
  • applications/editors/josm/plugins/utilsplugin2/src/utilsplugin2/selection/IntersectedWaysAction.java

    r26644 r27852  
    2525        super(tr("Intersecting ways"), "intway", tr("Select intersecting ways"),
    2626                Shortcut.registerShortcut("tools:intway", tr("Tool: {0}","Intersecting ways"),
    27                 KeyEvent.VK_I, Shortcut.GROUP_EDIT), true);
     27                KeyEvent.VK_I, Shortcut.DIRECT), true);
    2828        putValue("help", ht("/Action/SelectIntersectingWays"));
    2929    }
  • applications/editors/josm/plugins/utilsplugin2/src/utilsplugin2/selection/IntersectedWaysRecursiveAction.java

    r27841 r27852  
    2525        super(tr("All intersecting ways"), "intwayall", tr("Select all intersecting ways"),
    2626                Shortcut.registerShortcut("tools:intwayall", tr("Tool: {0}","All intersecting ways"),
    27                 KeyEvent.VK_MULTIPLY, Shortcut.GROUP_MENU), true);
     27                KeyEvent.VK_MULTIPLY, Shortcut.CTRL), true);
    2828        putValue("help", ht("/Action/SelectAllIntersectingWays"));
    2929
  • applications/editors/josm/plugins/utilsplugin2/src/utilsplugin2/selection/MiddleNodesAction.java

    r27761 r27852  
    2727        super(tr("Middle nodes"), "midnodes", tr("Select middle nodes"),
    2828                Shortcut.registerShortcut("tools:midnodes", tr("Tool: {0}","Middle nodes"),
    29                 KeyEvent.VK_E,  Shortcut.GROUPS_ALT1+Shortcut.GROUP_DIRECT2), true);
     29                KeyEvent.VK_E,  Shortcut.ALT_SHIFT), true);
    3030        putValue("help", ht("/Action/MiddleNodes"));
    3131    }
  • applications/editors/josm/plugins/utilsplugin2/src/utilsplugin2/selection/SelectAllInsideAction.java

    r27761 r27852  
    2929        super(tr("All inside [testing]"), "selinside", tr("Select all inside selected polygons"),
    3030                Shortcut.registerShortcut("tools:selinside", tr("Tool: {0}","All inside"),
    31                 KeyEvent.VK_I, Shortcut.GROUPS_ALT1+Shortcut.GROUP_DIRECT2), true);
     31                KeyEvent.VK_I, Shortcut.ALT_SHIFT), true);
    3232        putValue("help", ht("/Action/SelectAllInside"));
    3333    }
  • applications/editors/josm/plugins/utilsplugin2/src/utilsplugin2/selection/SelectBoundaryAction.java

    r27761 r27852  
    3636        super(tr("Area boundary [testing]"), "selboundary", tr("Select relation or all ways that forms area boundary"),
    3737                Shortcut.registerShortcut("tools:selboundary", tr("Tool: {0}","Area boundary [testing]"),
    38                 KeyEvent.VK_SLASH, Shortcut.GROUPS_ALT1+Shortcut.GROUP_EDIT), true);
     38                KeyEvent.VK_SLASH, Shortcut.SHIFT), true);
    3939        putValue("help", ht("/Action/SelectAreaBoundary"));
    4040    }
  • applications/editors/josm/plugins/utilsplugin2/src/utilsplugin2/selection/SelectHighwayAction.java

    r27761 r27852  
    2424        super(tr("Select Highway"), "selecthighway", tr("Select highway for the name/ref given"),
    2525                Shortcut.registerShortcut("tools:selecthighway", tr("Tool: {0}","Select Highway"),
    26                 KeyEvent.VK_W, Shortcut.GROUPS_ALT2+Shortcut.GROUP_MENU), true);
     26                KeyEvent.VK_W, Shortcut.ALT_CTRL), true);
    2727    }
    2828
  • applications/editors/josm/plugins/utilsplugin2/src/utilsplugin2/selection/SelectModNodesAction.java

    r27761 r27852  
    2828                tr("Select last modified nodes"),
    2929                Shortcut.registerShortcut("tools:selmodnodes", tr("Tool: {0}","Select last modified nodes"),
    30                 KeyEvent.VK_Z, Shortcut.GROUPS_ALT1+Shortcut.GROUP_EDIT), true);
     30                KeyEvent.VK_Z, Shortcut.SHIFT), true);
    3131        putValue("help", ht("/Action/SelectLastModifiedNodes"));
    3232    }
  • applications/editors/josm/plugins/utilsplugin2/src/utilsplugin2/selection/SelectModWaysAction.java

    r27834 r27852  
    2828                tr("Select last modified ways"),
    2929                Shortcut.registerShortcut("tools:selmodways", tr("Tool: {0}","Select last modified ways"),
    30                 KeyEvent.VK_Z,  Shortcut.GROUP_DIRECT2+Shortcut.GROUPS_ALT1), true);
     30                KeyEvent.VK_Z,  Shortcut.ALT_SHIFT), true);
    3131        putValue("help", ht("/Action/SelectLastModifiedWays"));
    3232    }
  • applications/editors/josm/plugins/utilsplugin2/src/utilsplugin2/selection/SelectWayNodesAction.java

    r27761 r27852  
    3131    public SelectWayNodesAction() {
    3232        super(tr("Select Way Nodes"),"selectwaynodes" , tr("Select all nodes of a selected way."),
    33                 Shortcut.registerShortcut("tools:selectwaynodes", tr("Tool: {0}", tr("Select Way Nodes")), KeyEvent.VK_N, Shortcut.GROUPS_ALT1+Shortcut.GROUP_MENU), true);
     33                Shortcut.registerShortcut("tools:selectwaynodes", tr("Tool: {0}", tr("Select Way Nodes")), KeyEvent.VK_N, Shortcut.CTRL_SHIFT), true);
    3434        putValue("help", ht("/Action/SelectWayNodes"));
    3535    }
  • applications/editors/josm/plugins/utilsplugin2/src/utilsplugin2/selection/UndoSelectionAction.java

    r27761 r27852  
    2727                tr("Reselect last added object or selection form history"),
    2828                Shortcut.registerShortcut("tools:undoselection", tr("Tool: {0}","Undo selection"),
    29                 KeyEvent.VK_Z, Shortcut.GROUPS_ALT1+Shortcut.GROUP_MENU), true);
     29                KeyEvent.VK_Z, Shortcut.CTRL_SHIFT), true);
    3030        putValue("help", ht("/Action/UndoSelection"));
    3131    }
  • applications/editors/josm/plugins/utilsplugin2/src/utilsplugin2/selection/UnselectNodesAction.java

    r27761 r27852  
    2424                tr("Removes all nodes from selection"),
    2525                Shortcut.registerShortcut("tools:unsnodes", tr("Tool: {0}","Unselect nodes"),
    26                 KeyEvent.VK_U, Shortcut.GROUPS_ALT1+Shortcut.GROUP_EDIT), true);
     26                KeyEvent.VK_U, Shortcut.SHIFT), true);
    2727        putValue("help", ht("/Action/UnselectNodes"));
    2828    }
Note: See TracChangeset for help on using the changeset viewer.