Ignore:
Timestamp:
2006-04-23T19:51:19+02:00 (20 years ago)
Author:
imi
Message:
  • changed Add Way mode, so that ways can be modified
  • added Command Stack dialog (list the undo buffer)
  • fixed Exception in download gps data
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/org/openstreetmap/josm/gui/dialogs/ToggleDialog.java

    r90 r94  
    1313import org.openstreetmap.josm.Main;
    1414import org.openstreetmap.josm.actions.JosmAction;
     15import org.openstreetmap.josm.tools.ShortCutLabel;
    1516
    1617/**
     
    4445        public ToggleDialogAction action;
    4546
    46         /**
    47          * Create a new ToggleDialog.
    48          * @param title The title of the dialog.
    49      * @param prefName Name of the base preference setting string (prefix)
    50          */
    51         public ToggleDialog(String title, String name, String iconName, String tooltip, String shortCutName, int shortCut, final String prefName) {
    52                 action = new ToggleDialogAction(name, "dialogs/"+iconName, tooltip, "Alt-"+shortCutName, KeyStroke.getKeyStroke(shortCut, KeyEvent.ALT_MASK), prefName);
     47        public ToggleDialog(String name, String iconName, String tooltip, int shortCut) {
     48                action = new ToggleDialogAction(name, "dialogs/"+iconName, tooltip, ShortCutLabel.name(shortCut, KeyEvent.ALT_MASK), KeyStroke.getKeyStroke(shortCut, KeyEvent.ALT_MASK), iconName);
    5349                setLayout(new BorderLayout());
    54                 add(new JLabel(title), BorderLayout.NORTH);
     50                add(new JLabel(name), BorderLayout.NORTH);
    5551                setVisible(false);
    5652                setBorder(BorderFactory.createEtchedBorder());
Note: See TracChangeset for help on using the changeset viewer.