Audacity  3.0.3
TrackUtilities.h
Go to the documentation of this file.
1 /**********************************************************************
2 
3  Audacity: A Digital Audio Editor
4 
5  TrackUtilities.h
6 
7  Paul Licameli split from TrackMenus.h
8 
9  **********************************************************************/
10 
11 #ifndef __AUDACITY_TRACK_UTILITIES__
12 #define __AUDACITY_TRACK_UTILITIES__
13 
14 class AudacityProject;
15 class Track;
16 
17 namespace TrackUtilities {
18 
19  enum MoveChoice {
21  };
23  AUDACITY_DLL_API void DoMoveTrack(
24  AudacityProject &project, Track* target, MoveChoice choice );
25  // "exclusive" mute means mute the chosen track and unmute all others.
26  AUDACITY_DLL_API
27  void DoTrackMute( AudacityProject &project, Track *pTrack, bool exclusive );
28  // Type of solo (standard or simple) follows the set preference, unless
29  // exclusive == true, which causes the opposite behavior.
30  AUDACITY_DLL_API
31  void DoTrackSolo( AudacityProject &project, Track *pTrack, bool exclusive );
32  AUDACITY_DLL_API
33  void DoRemoveTrack( AudacityProject &project, Track * toRemove );
34  AUDACITY_DLL_API
36 
37 }
38 
39 #endif
TrackUtilities::OnMoveDownID
@ OnMoveDownID
Definition: TrackUtilities.h:20
TrackUtilities::DoTrackSolo
void DoTrackSolo(AudacityProject &project, Track *t, bool exclusive)
Definition: TrackUtilities.cpp:112
TrackUtilities::MoveChoice
MoveChoice
Definition: TrackUtilities.h:19
TrackUtilities::OnMoveTopID
@ OnMoveTopID
Definition: TrackUtilities.h:20
TrackUtilities::DoRemoveTracks
void DoRemoveTracks(AudacityProject &project)
Definition: TrackUtilities.cpp:22
TrackUtilities::DoRemoveTrack
void DoRemoveTrack(AudacityProject &project, Track *toRemove)
Definition: TrackUtilities.cpp:163
Track
Abstract base class for an object holding data associated with points on a time axis.
Definition: Track.h:224
TrackUtilities::DoTrackMute
void DoTrackMute(AudacityProject &project, Track *t, bool exclusive)
Definition: TrackUtilities.cpp:64
AudacityProject
The top-level handle to an Audacity project. It serves as a source of events that other objects can b...
Definition: Project.h:92
TrackUtilities::OnMoveBottomID
@ OnMoveBottomID
Definition: TrackUtilities.h:20
TrackUtilities::OnMoveUpID
@ OnMoveUpID
Definition: TrackUtilities.h:20
TrackUtilities
Definition: TrackUtilities.cpp:20
TrackUtilities::DoMoveTrack
void DoMoveTrack(AudacityProject &project, Track *target, MoveChoice choice)
Move a track up, down, to top or to bottom.
Definition: TrackUtilities.cpp:199