~ubuntu-branches/ubuntu/utopic/gpsprune/utopic

« back to all changes in this revision

Viewing changes to tim/prune/function/RemoveAudioFunction.java

  • Committer: Bazaar Package Importer
  • Author(s): David Paleino
  • Date: 2011-10-20 21:54:34 UTC
  • mfrom: (1.1.5 upstream)
  • Revision ID: james.westby@ubuntu.com-20111020215434-fqphir79ryum5mea
Tags: 13.1-1
* New upstream version
  + now defaults looking in ~ for the configuration (Closes: #598983)
  + added OpenSeaMap to background images (Closes: #639502)
* Upstream author renamed it gpsprune, fix various files
* Fix Main-Class in debian/manifest

Show diffs side-by-side

added added

removed removed

Lines of Context:
5
5
import tim.prune.App;
6
6
import tim.prune.GenericFunction;
7
7
import tim.prune.I18nManager;
8
 
import tim.prune.data.AudioFile;
 
8
import tim.prune.data.AudioClip;
9
9
import tim.prune.undo.UndoDeleteAudio;
10
10
 
11
11
/**
12
 
 * Function to remove the currently selected audio file
 
12
 * Function to remove the currently selected audio clip
13
13
 */
14
14
public class RemoveAudioFunction extends GenericFunction
15
15
{
32
32
        public void begin()
33
33
        {
34
34
                // Delete the current audio, and optionally its point too, keeping undo information
35
 
                AudioFile currentAudio = _app.getTrackInfo().getCurrentAudio();
 
35
                AudioClip currentAudio = _app.getTrackInfo().getCurrentAudio();
36
36
                if (currentAudio != null)
37
37
                {
38
38
                        // Audio is selected, see if it has a point or not
61
61
                        }
62
62
                        // Add undo information to stack if necessary
63
63
                        if (deleted) {
64
 
                                _app.completeFunction(undoAction, currentAudio.getFile().getName() + " " + I18nManager.getText("confirm.media.removed"));
 
64
                                _app.completeFunction(undoAction, currentAudio.getName() + " " + I18nManager.getText("confirm.media.removed"));
65
65
                        }
66
66
                }
67
67
        }