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

fix shortcut deprecation

Location:
applications/editors/josm/plugins/videomapping
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/videomapping/build.xml

    r27354 r27852  
    3232    <property name="commit.message" value="videomapping"/>
    3333    <!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
    34     <property name="plugin.main.version" value="4549"/>
     34    <property name="plugin.main.version" value="4980"/>
    3535    <!--
    3636      ************************************************
  • applications/editors/josm/plugins/videomapping/src/org/openstreetmap/josm/plugins/videomapping/VideoPlugin.java

    r27786 r27852  
    100100        };       
    101101        VStart = new JosmAction(tr("Play/Pause"), "audio-playpause", tr("starts/pauses video playback"),
    102                 Shortcut.registerShortcut("videomapping:startstop",tr("Video: {0}", tr("Play/Pause")),KeyEvent.VK_NUMPAD5, Shortcut.GROUP_DIRECT), false) {           
     102                Shortcut.registerShortcut("videomapping:startstop",tr("Video: {0}", tr("Play/Pause")),KeyEvent.VK_NUMPAD5, Shortcut.DIRECT), false) {           
    103103            public void actionPerformed(ActionEvent e) {
    104104                gpsVideoPlayer.pause();               
     
    106106        };
    107107        Vbackward = new JosmAction(tr("Backward"), "audio-prev", tr("jumps n sec back"),
    108                 Shortcut.registerShortcut("videomapping:backward",tr("Video: {0}", tr("Backward")),KeyEvent.VK_NUMPAD4, Shortcut.GROUP_DIRECT), false) {
     108                Shortcut.registerShortcut("videomapping:backward",tr("Video: {0}", tr("Backward")),KeyEvent.VK_NUMPAD4, Shortcut.DIRECT), false) {
    109109            public void actionPerformed(ActionEvent e) {
    110110                gpsVideoPlayer.backward();
     
    112112        };
    113113        Vforward= new JosmAction(tr("Forward"), "audio-next", tr("jumps n sec forward"),
    114                 Shortcut.registerShortcut("videomapping:forward",tr("Video: {0}", tr("Forward")),KeyEvent.VK_NUMPAD6, Shortcut.GROUP_DIRECT), false) {           
     114                Shortcut.registerShortcut("videomapping:forward",tr("Video: {0}", tr("Forward")),KeyEvent.VK_NUMPAD6, Shortcut.DIRECT), false) {           
    115115            public void actionPerformed(ActionEvent e) {
    116116                gpsVideoPlayer.forward();
     
    119119        };
    120120        Vfaster= new JosmAction(tr("Faster"), "audio-faster", tr("faster playback"),
    121                 Shortcut.registerShortcut("videomapping:faster",tr("Video: {0}", tr("Faster")),KeyEvent.VK_NUMPAD8, Shortcut.GROUP_DIRECT), false) {
     121                Shortcut.registerShortcut("videomapping:faster",tr("Video: {0}", tr("Faster")),KeyEvent.VK_NUMPAD8, Shortcut.DIRECT), false) {
    122122           
    123123            public void actionPerformed(ActionEvent e) {
     
    127127        };
    128128        Vslower= new JosmAction(tr("Slower"), "audio-slower", tr("slower playback"),
    129                 Shortcut.registerShortcut("videomapping:slower",tr("Video: {0}", tr("Slower")),KeyEvent.VK_NUMPAD2, Shortcut.GROUP_DIRECT), false) {
     129                Shortcut.registerShortcut("videomapping:slower",tr("Video: {0}", tr("Slower")),KeyEvent.VK_NUMPAD2, Shortcut.DIRECT), false) {
    130130           
    131131            public void actionPerformed(ActionEvent e) {
     
    142142        };
    143143        Vloop= new JosmAction(tr("Loop"), "loop", tr("loops n sec around current position"),
    144                 Shortcut.registerShortcut("videomapping:loop",tr("Video: {0}", tr("Loop")),KeyEvent.VK_NUMPAD7, Shortcut.GROUP_DIRECT), false) {           
     144                Shortcut.registerShortcut("videomapping:loop",tr("Video: {0}", tr("Loop")),KeyEvent.VK_NUMPAD7, Shortcut.DIRECT), false) {           
    145145            public void actionPerformed(ActionEvent e) {
    146146                gpsVideoPlayer.toggleLooping();
Note: See TracChangeset for help on using the changeset viewer.