| Revision 4982,
873 bytes
checked in by stoecker, 3 months ago
(diff) |
|
see #7226 - patch by akks (fixed a bit) - fix shortcut deprecations
|
-
Property svn:eol-style set to
native
|
| Line | |
|---|
| 1 | // License: GPL. Copyright 2007 by Immanuel Scholz and others |
|---|
| 2 | package org.openstreetmap.josm.actions.audio; |
|---|
| 3 | |
|---|
| 4 | import static org.openstreetmap.josm.tools.I18n.tr; |
|---|
| 5 | import static org.openstreetmap.josm.tools.I18n.trc; |
|---|
| 6 | |
|---|
| 7 | import java.awt.event.ActionEvent; |
|---|
| 8 | import java.awt.event.KeyEvent; |
|---|
| 9 | |
|---|
| 10 | import org.openstreetmap.josm.actions.JosmAction; |
|---|
| 11 | import org.openstreetmap.josm.gui.layer.markerlayer.MarkerLayer; |
|---|
| 12 | import org.openstreetmap.josm.tools.Shortcut; |
|---|
| 13 | |
|---|
| 14 | public class AudioPrevAction extends JosmAction { |
|---|
| 15 | |
|---|
| 16 | public AudioPrevAction() { |
|---|
| 17 | super(trc("audio", "Previous Marker"), "audio-prev", trc("audio", "Play previous marker."), |
|---|
| 18 | Shortcut.registerShortcut("audio:prev", tr("Audio: {0}", trc("audio", "Previous Marker")), KeyEvent.VK_F5, Shortcut.DIRECT), true); |
|---|
| 19 | } |
|---|
| 20 | |
|---|
| 21 | public void actionPerformed(ActionEvent e) { |
|---|
| 22 | MarkerLayer.playPreviousMarker(); |
|---|
| 23 | } |
|---|
| 24 | } |
|---|
Note: See
TracBrowser
for help on using the repository browser.