Changeset 27909 in osm


Ignore:
Timestamp:
2012-02-20T19:43:19+01:00 (13 years ago)
Author:
akks
Message:

toolbar issues: videomapping

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/videomapping/src/org/openstreetmap/josm/plugins/videomapping/VideoPlugin.java

    r27852 r27909  
    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.DIRECT), false) {           
     102                Shortcut.registerShortcut("videomapping:startstop",tr("Video: {0}", tr("Play/Pause")),KeyEvent.VK_NUMPAD5, Shortcut.DIRECT), false, "vm_play_pause",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.DIRECT), false) {
     108                Shortcut.registerShortcut("videomapping:backward",tr("Video: {0}", tr("Backward")),KeyEvent.VK_NUMPAD4, Shortcut.DIRECT), false, "vm_prev",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.DIRECT), false) {           
     114                Shortcut.registerShortcut("videomapping:forward",tr("Video: {0}", tr("Forward")),KeyEvent.VK_NUMPAD6, Shortcut.DIRECT), false, "vm_next",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.DIRECT), false) {
     121                Shortcut.registerShortcut("videomapping:faster",tr("Video: {0}", tr("Faster")),KeyEvent.VK_NUMPAD8, Shortcut.DIRECT), false, "vm_faster",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.DIRECT), false) {
     129                Shortcut.registerShortcut("videomapping:slower",tr("Video: {0}", tr("Slower")),KeyEvent.VK_NUMPAD2, Shortcut.DIRECT), false, "vm_slower",false) {
    130130           
    131131            public void actionPerformed(ActionEvent e) {
     
    134134            }
    135135        };
    136         VJump= new JosmAction(tr("Jump To"), "jumpto", tr("jumps to the entered gps time"),null, false) {         
     136        VJump= new JosmAction(tr("Jump To"), "jumpto", tr("jumps to the entered gps time"),null, false) {
    137137            public void actionPerformed(ActionEvent e) {
    138138                showJumpTo();
     
    149149       
    150150        //now the options menu
    151         VCenterIcon = new JCheckBoxMenuItem(new JosmAction(tr("Keep centered"), null, tr("follows the video icon automaticly"),null, false) {           
     151        VCenterIcon = new JCheckBoxMenuItem(new JosmAction(tr("Keep centered"), null, tr("follows the video icon automaticly"),null, false,"vm_keepcentered",false) {           
    152152            public void actionPerformed(ActionEvent e) {
    153153                videoPositionLayer.setAutoCenter(VCenterIcon.isSelected());
     
    155155        });
    156156       
    157         VSubTitles = new JCheckBoxMenuItem(new JosmAction(tr("Subtitles"), null, tr("Show subtitles in video"),null, false) {           
     157        VSubTitles = new JCheckBoxMenuItem(new JosmAction(tr("Subtitles"), null, tr("Show subtitles in video"),null, false,"vm_subtitles",false) {
    158158            public void actionPerformed(ActionEvent e) {
    159159                gpsVideoPlayer.setSubtitles(VSubTitles.isSelected());                           
     
    161161        });
    162162       
    163         VJumpLength = new JMenuItem(new JosmAction(tr("Jump length"), null, tr("Set the length of a jump"),null, false) {           
     163        VJumpLength = new JMenuItem(new JosmAction(tr("Jump length"), null, tr("Set the length of a jump"),null, false,"vm_jumplen",false) {           
    164164            public void actionPerformed(ActionEvent e) {
    165165                Object[] possibilities = {"200", "500", "1000", "2000", "10000"};
     
    170170        });
    171171       
    172         VLoopLength = new JMenuItem(new JosmAction(tr("Loop length"), null, tr("Set the length around a looppoint"),null, false) {           
     172        VLoopLength = new JMenuItem(new JosmAction(tr("Loop length"), null, tr("Set the length around a looppoint"),null, false,"vm_looplen",false) {           
    173173            public void actionPerformed(ActionEvent e) {
    174174                Object[] possibilities = {"500", "1000", "3000", "5000", "10000"};
     
    180180        //TODO read deinterlacers list out of videoengine
    181181        VDeinterlacer= new JMenu("Deinterlacer");
    182         VIntNone= new JRadioButtonMenuItem(new JosmAction(tr("none"), null, tr("no deinterlacing"),null, false) {           
     182        VIntNone= new JRadioButtonMenuItem(new JosmAction(tr("none"), null, tr("no deinterlacing"),null, false,"vm_deinterlacer",false) {           
    183183            public void actionPerformed(ActionEvent e) {
    184184                gpsVideoPlayer.setDeinterlacer("none");
    185185            }
    186186        });
    187         VIntBob= new JRadioButtonMenuItem(new JosmAction("bob", null, tr("deinterlacing using line doubling"),null, false) {           
     187        VIntBob= new JRadioButtonMenuItem(new JosmAction("bob", null, tr("deinterlacing using line doubling"),null, false,"vm_bobdeinterlace",false) {
    188188            public void actionPerformed(ActionEvent e) {
    189189                gpsVideoPlayer.setDeinterlacer("bob");
    190190            }
    191191        });
    192         VIntLinear= new JRadioButtonMenuItem(new JosmAction("linear", null, tr("deinterlacing using linear interpolation"),null, false) {           
     192        VIntLinear= new JRadioButtonMenuItem(new JosmAction("linear", null, tr("deinterlacing using linear interpolation"),null, false,"vm_lineardeinterlace",false) {
    193193            public void actionPerformed(ActionEvent e) {
    194194                gpsVideoPlayer.setDeinterlacer("linear");
Note: See TracChangeset for help on using the changeset viewer.