Last change
on this file since 560 was 560, checked in by david, 16 years ago |
Add shortcut keys for audio actions
|
File size:
809 bytes
|
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 |
|
---|
6 | import java.awt.event.ActionEvent;
|
---|
7 | import java.awt.event.InputEvent;
|
---|
8 | import java.awt.event.KeyEvent;
|
---|
9 |
|
---|
10 | import org.openstreetmap.josm.Main;
|
---|
11 | import org.openstreetmap.josm.actions.JosmAction;
|
---|
12 | import org.openstreetmap.josm.data.osm.DataSet;
|
---|
13 | import org.openstreetmap.josm.gui.layer.OsmDataLayer;
|
---|
14 | import org.openstreetmap.josm.gui.layer.markerlayer.MarkerLayer;
|
---|
15 |
|
---|
16 | public class AudioPrevAction extends JosmAction {
|
---|
17 |
|
---|
18 | public AudioPrevAction() {
|
---|
19 | super(tr("Previous Marker"), "audio-prev", tr("Play previous marker."), KeyEvent.VK_F5, 0, true);
|
---|
20 | }
|
---|
21 |
|
---|
22 | public void actionPerformed(ActionEvent e) {
|
---|
23 | MarkerLayer.playPreviousMarker();
|
---|
24 | }
|
---|
25 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.