Ignore:
Timestamp:
2008-11-18T19:53:53+01:00 (11 years ago)
Author:
framm
Message:
  • cosmetics: rename ShortCut to Shortcut, and shortCut to shortcut
Location:
trunk/src/org/openstreetmap/josm/actions/audio
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/actions/audio/AudioBackAction.java

    r1054 r1084  
    1111import org.openstreetmap.josm.gui.layer.markerlayer.MarkerLayer;
    1212import org.openstreetmap.josm.tools.AudioPlayer;
    13 import org.openstreetmap.josm.tools.ShortCut;
     13import org.openstreetmap.josm.tools.Shortcut;
    1414
    1515public class AudioBackAction extends JosmAction {
     
    1919        public AudioBackAction() {
    2020                super(tr("Back"), "audio-back", tr("Jump back."),
    21                 ShortCut.registerShortCut("audio:back", tr("Audio: {0}", tr("Back")), KeyEvent.VK_F6, ShortCut.GROUP_DIRECT), true);
     21                Shortcut.registerShortcut("audio:back", tr("Audio: {0}", tr("Back")), KeyEvent.VK_F6, Shortcut.GROUP_DIRECT), true);
    2222                try {
    2323                        amount = - Double.parseDouble(Main.pref.get("audio.forwardbackamount","10.0"));
  • trunk/src/org/openstreetmap/josm/actions/audio/AudioFastSlowAction.java

    r1023 r1084  
    77import org.openstreetmap.josm.actions.JosmAction;
    88import org.openstreetmap.josm.tools.AudioPlayer;
    9 import org.openstreetmap.josm.tools.ShortCut;
     9import org.openstreetmap.josm.tools.Shortcut;
    1010
    1111abstract public class AudioFastSlowAction extends JosmAction {
     
    1313        private double multiplier;
    1414
    15         public AudioFastSlowAction(String name, String iconName, String tooltip, ShortCut shortcut, boolean fast) {
     15        public AudioFastSlowAction(String name, String iconName, String tooltip, Shortcut shortcut, boolean fast) {
    1616                super(name, iconName, tooltip, shortcut, true);
    1717                try {
  • trunk/src/org/openstreetmap/josm/actions/audio/AudioFasterAction.java

    r1054 r1084  
    33
    44import static org.openstreetmap.josm.tools.I18n.tr;
    5 import org.openstreetmap.josm.tools.ShortCut;
     5import org.openstreetmap.josm.tools.Shortcut;
    66
    77import java.awt.event.KeyEvent;
     
    1111        public AudioFasterAction() {
    1212                super(tr("Faster"), "audio-faster", tr("Faster Forward"),
    13                 ShortCut.registerShortCut("audio:faster", tr("Audio: {0}", tr("Faster")), KeyEvent.VK_F9, ShortCut.GROUP_DIRECT), true);
     13                Shortcut.registerShortcut("audio:faster", tr("Audio: {0}", tr("Faster")), KeyEvent.VK_F9, Shortcut.GROUP_DIRECT), true);
    1414        }
    1515}
  • trunk/src/org/openstreetmap/josm/actions/audio/AudioFwdAction.java

    r1054 r1084  
    1111import org.openstreetmap.josm.gui.layer.markerlayer.MarkerLayer;
    1212import org.openstreetmap.josm.tools.AudioPlayer;
    13 import org.openstreetmap.josm.tools.ShortCut;
     13import org.openstreetmap.josm.tools.Shortcut;
    1414
    1515public class AudioFwdAction extends JosmAction {
     
    1919        public AudioFwdAction() {
    2020                super(tr("Forward"), "audio-fwd", tr("Jump forward"),
    21                 ShortCut.registerShortCut("audio:forward", tr("Audio: {0}", tr("Forward")), KeyEvent.VK_F7, ShortCut.GROUP_DIRECT), true);
     21                Shortcut.registerShortcut("audio:forward", tr("Audio: {0}", tr("Forward")), KeyEvent.VK_F7, Shortcut.GROUP_DIRECT), true);
    2222                try {
    2323                        amount = Double.parseDouble(Main.pref.get("audio.forwardbackamount","10.0"));
  • trunk/src/org/openstreetmap/josm/actions/audio/AudioNextAction.java

    r1054 r1084  
    99import org.openstreetmap.josm.actions.JosmAction;
    1010import org.openstreetmap.josm.gui.layer.markerlayer.MarkerLayer;
    11 import org.openstreetmap.josm.tools.ShortCut;
     11import org.openstreetmap.josm.tools.Shortcut;
    1212
    1313public class AudioNextAction extends JosmAction {
     
    1515        public AudioNextAction() {
    1616                super(tr("Next Marker"), "audio-next", tr("Play next marker."),
    17                 ShortCut.registerShortCut("audio:next", tr("Audio: {0}", tr("Next Marker")), KeyEvent.VK_F8, ShortCut.GROUP_DIRECT), true);
     17                Shortcut.registerShortcut("audio:next", tr("Audio: {0}", tr("Next Marker")), KeyEvent.VK_F8, Shortcut.GROUP_DIRECT), true);
    1818        }
    1919
  • trunk/src/org/openstreetmap/josm/actions/audio/AudioPlayPauseAction.java

    r1054 r1084  
    1111import org.openstreetmap.josm.gui.layer.markerlayer.MarkerLayer;
    1212import org.openstreetmap.josm.tools.AudioPlayer;
    13 import org.openstreetmap.josm.tools.ShortCut;
     13import org.openstreetmap.josm.tools.Shortcut;
    1414
    1515public class AudioPlayPauseAction extends JosmAction {
     
    1717        public AudioPlayPauseAction() {
    1818                super(tr("Play/pause"), "audio-playpause", tr("Play/pause audio."),
    19                 ShortCut.registerShortCut("audio:pause", tr("Audio: {0}", tr("Play/pause")), KeyEvent.VK_PERIOD, ShortCut.GROUP_DIRECT), true);
     19                Shortcut.registerShortcut("audio:pause", tr("Audio: {0}", tr("Play/pause")), KeyEvent.VK_PERIOD, Shortcut.GROUP_DIRECT), true);
    2020        }
    2121
  • trunk/src/org/openstreetmap/josm/actions/audio/AudioPrevAction.java

    r1054 r1084  
    99import org.openstreetmap.josm.actions.JosmAction;
    1010import org.openstreetmap.josm.gui.layer.markerlayer.MarkerLayer;
    11 import org.openstreetmap.josm.tools.ShortCut;
     11import org.openstreetmap.josm.tools.Shortcut;
    1212
    1313public class AudioPrevAction extends JosmAction {
     
    1515        public AudioPrevAction() {
    1616                super(tr("Previous Marker"), "audio-prev", tr("Play previous marker."),
    17                 ShortCut.registerShortCut("audio:prev", tr("Audio: {0}", tr("Previous Marker")), KeyEvent.VK_F5, ShortCut.GROUP_DIRECT), true);
     17                Shortcut.registerShortcut("audio:prev", tr("Audio: {0}", tr("Previous Marker")), KeyEvent.VK_F5, Shortcut.GROUP_DIRECT), true);
    1818        }
    1919
  • trunk/src/org/openstreetmap/josm/actions/audio/AudioSlowerAction.java

    r1054 r1084  
    55
    66import java.awt.event.KeyEvent;
    7 import org.openstreetmap.josm.tools.ShortCut;
     7import org.openstreetmap.josm.tools.Shortcut;
    88
    99public class AudioSlowerAction extends AudioFastSlowAction {
     
    1111        public AudioSlowerAction() {
    1212                super(tr("Slower"), "audio-slower", tr("Slower Forward"),
    13                 ShortCut.registerShortCut("audio:slower", tr("Audio: {0}", tr("Slower")), KeyEvent.VK_F4, ShortCut.GROUP_DIRECT), true);
     13                Shortcut.registerShortcut("audio:slower", tr("Audio: {0}", tr("Slower")), KeyEvent.VK_F4, Shortcut.GROUP_DIRECT), true);
    1414        }
    1515}
Note: See TracChangeset for help on using the changeset viewer.