Ignore:
Timestamp:
2011-03-26T08:29:44+01:00 (14 years ago)
Author:
zverik
Message:

replaced some shortcuts, added ones for create relation and multipolygon (reltoolbox plugin)

Location:
applications/editors/josm/plugins/relcontext/src/relcontext
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/relcontext/src/relcontext/RelContextDialog.java

    r25717 r25727  
    517517            super("…", null, tr("Enter role for selected members"),
    518518                    Shortcut.registerShortcut("reltoolbox:changerole", tr("Relation Toolbox: {0}", tr("Enter role for selected members")),
    519                     KeyEvent.VK_R, Shortcut.GROUP_EDIT), true);
     519                    KeyEvent.VK_R, Shortcut.GROUP_EDIT, Shortcut.SHIFT_DEFAULT), true);
    520520            chosenRelation.addChosenRelationListener(this);
    521521            updateEnabledState();
  • applications/editors/josm/plugins/relcontext/src/relcontext/actions/CreateMultipolygonAction.java

    r25721 r25727  
    66import java.awt.event.ActionEvent;
    77import java.awt.event.ActionListener;
     8import java.awt.event.KeyEvent;
    89import java.util.*;
    910import javax.swing.*;
     
    1314import org.openstreetmap.josm.data.osm.*;
    1415import org.openstreetmap.josm.tools.GBC;
     16import org.openstreetmap.josm.tools.Shortcut;
    1517import relcontext.ChosenRelation;
    1618
     
    2729
    2830    public CreateMultipolygonAction( ChosenRelation chRel ) {
    29         super("Multi", "data/multipolygon", tr("Create a multipolygon from selected objects"), null, false);
     31        super("Multi", "data/multipolygon", tr("Create a multipolygon from selected objects"),
     32                Shortcut.registerShortcut("reltoolbox:multipolygon", tr("Relation Toolbox: {0}", tr("Create multipolygon")),
     33                KeyEvent.VK_B, Shortcut.GROUP_HOTKEY), true);
    3034        this.chRel = chRel;
    3135        updateEnabledState();
  • applications/editors/josm/plugins/relcontext/src/relcontext/actions/CreateRelationAction.java

    r25695 r25727  
    88import java.awt.event.ActionEvent;
    99import java.awt.event.ActionListener;
     10import java.awt.event.KeyEvent;
    1011import java.util.Arrays;
    1112import java.util.List;
     
    2223import org.openstreetmap.josm.gui.tagging.ac.AutoCompletingComboBox;
    2324import org.openstreetmap.josm.tools.GBC;
     25import org.openstreetmap.josm.tools.Shortcut;
    2426import relcontext.ChosenRelation;
    25 import relcontext.RelContextDialog;
    2627
    2728/**
     
    3637
    3738    public CreateRelationAction( ChosenRelation chRel ) {
    38         super(tr("New"), "data/relation", tr("Create a relation from selected objects"), null, false);
     39        super(tr("New"), "data/relation", tr("Create a relation from selected objects"),
     40                Shortcut.registerShortcut("reltoolbox:create", tr("Relation Toolbox: {0}", tr("Create a new relation")),
     41                KeyEvent.VK_C, Shortcut.GROUP_HOTKEY, Shortcut.SHIFT_DEFAULT), true);
    3942        this.chRel = chRel;
    4043        updateEnabledState();
  • applications/editors/josm/plugins/relcontext/src/relcontext/actions/FindRelationAction.java

    r25717 r25727  
    2929        super("Find", "relcontext/find", tr("Find a relation"),
    3030                Shortcut.registerShortcut("reltoolbox:find", tr("Relation Toolbox: {0}", tr("Find a relation")),
    31                 KeyEvent.VK_F, Shortcut.GROUP_EDIT), true);
     31                KeyEvent.VK_F, Shortcut.GROUP_HOTKEY), true);
    3232        this.chRel = chRel;
    3333    }
Note: See TracChangeset for help on using the changeset viewer.