Changeset 27909 in osm
- Timestamp:
- 2012-02-20T19:43:19+01:00 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/videomapping/src/org/openstreetmap/josm/plugins/videomapping/VideoPlugin.java
r27852 r27909 100 100 }; 101 101 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) { 103 103 public void actionPerformed(ActionEvent e) { 104 104 gpsVideoPlayer.pause(); … … 106 106 }; 107 107 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) { 109 109 public void actionPerformed(ActionEvent e) { 110 110 gpsVideoPlayer.backward(); … … 112 112 }; 113 113 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) { 115 115 public void actionPerformed(ActionEvent e) { 116 116 gpsVideoPlayer.forward(); … … 119 119 }; 120 120 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) { 122 122 123 123 public void actionPerformed(ActionEvent e) { … … 127 127 }; 128 128 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) { 130 130 131 131 public void actionPerformed(ActionEvent e) { … … 134 134 } 135 135 }; 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) { 137 137 public void actionPerformed(ActionEvent e) { 138 138 showJumpTo(); … … 149 149 150 150 //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) { 152 152 public void actionPerformed(ActionEvent e) { 153 153 videoPositionLayer.setAutoCenter(VCenterIcon.isSelected()); … … 155 155 }); 156 156 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) { 158 158 public void actionPerformed(ActionEvent e) { 159 159 gpsVideoPlayer.setSubtitles(VSubTitles.isSelected()); … … 161 161 }); 162 162 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) { 164 164 public void actionPerformed(ActionEvent e) { 165 165 Object[] possibilities = {"200", "500", "1000", "2000", "10000"}; … … 170 170 }); 171 171 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) { 173 173 public void actionPerformed(ActionEvent e) { 174 174 Object[] possibilities = {"500", "1000", "3000", "5000", "10000"}; … … 180 180 //TODO read deinterlacers list out of videoengine 181 181 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) { 183 183 public void actionPerformed(ActionEvent e) { 184 184 gpsVideoPlayer.setDeinterlacer("none"); 185 185 } 186 186 }); 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) { 188 188 public void actionPerformed(ActionEvent e) { 189 189 gpsVideoPlayer.setDeinterlacer("bob"); 190 190 } 191 191 }); 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) { 193 193 public void actionPerformed(ActionEvent e) { 194 194 gpsVideoPlayer.setDeinterlacer("linear");
Note:
See TracChangeset
for help on using the changeset viewer.