Audacity 3.2.0
|
Enumerations | |
enum | MoveChoice { OnMoveUpID , OnMoveDownID , OnMoveTopID , OnMoveBottomID } |
Functions | |
AUDACITY_DLL_API void | DoMoveTrack (AudacityProject &project, Track &target, MoveChoice choice) |
Move a track up, down, to top or to bottom. More... | |
AUDACITY_DLL_API void | DoTrackMute (AudacityProject &project, Track &track, bool exclusive) |
"exclusive" mute means mute the chosen track and unmute all others. More... | |
AUDACITY_DLL_API void | DoTrackSolo (AudacityProject &project, Track &track, bool exclusive) |
AUDACITY_DLL_API void | DoRemoveTrack (AudacityProject &project, Track &toRemove) |
AUDACITY_DLL_API void | DoRemoveTracks (AudacityProject &) |
Enumerator | |
---|---|
OnMoveUpID | |
OnMoveDownID | |
OnMoveTopID | |
OnMoveBottomID |
Definition at line 19 of file TrackUtilities.h.
void TrackUtilities::DoMoveTrack | ( | AudacityProject & | project, |
Track & | target, | ||
MoveChoice | choice | ||
) |
Move a track up, down, to top or to bottom.
Definition at line 175 of file TrackUtilities.cpp.
References TranslatableString::Format(), ProjectHistory::Get(), TrackList::Get(), Track::GetName(), OnMoveBottomID, OnMoveTopID, OnMoveUpID, project, ProjectHistory::PushState(), tracks, and XO().
Referenced by TrackMenuTable::OnMoveTrack(), anonymous_namespace{TrackMenus.cpp}::OnTrackMoveBottom(), anonymous_namespace{TrackMenus.cpp}::OnTrackMoveDown(), anonymous_namespace{TrackMenus.cpp}::OnTrackMoveTop(), and anonymous_namespace{TrackMenus.cpp}::OnTrackMoveUp().
void TrackUtilities::DoRemoveTrack | ( | AudacityProject & | project, |
Track & | toRemove | ||
) |
Definition at line 143 of file TrackUtilities.cpp.
References TrackFocus::Get(), ProjectHistory::Get(), TrackList::Get(), Track::GetName(), name, project, ProjectHistory::PushState(), tracks, and XO().
Referenced by CloseButtonHandle::CommitChanges(), and anonymous_namespace{TrackMenus.cpp}::OnTrackClose().
void TrackUtilities::DoRemoveTracks | ( | AudacityProject & | project | ) |
Definition at line 19 of file TrackUtilities.cpp.
References TrackFocus::Get(), ProjectHistory::Get(), TrackList::Get(), Viewport::Get(), TrackPanel::Get(), project, ProjectHistory::PushState(), Viewport::ShowTrack(), tracks, and XO().
Referenced by anonymous_namespace{TrackMenus.cpp}::OnRemoveTracks(), and ProjectManager::ResetProjectToEmpty().
void TrackUtilities::DoTrackMute | ( | AudacityProject & | project, |
Track & | track, | ||
bool | exclusive | ||
) |
"exclusive" mute means mute the chosen track and unmute all others.
Definition at line 59 of file TrackUtilities.cpp.
References TrackFocus::Get(), ProjectHistory::Get(), TrackList::Get(), PlayableTrack::GetMute(), ProjectHistory::ModifyState(), project, ClientData::Site< Host, ClientData, ObjectCopyingPolicy, Pointer, ObjectLockingPolicy, RegistryLockingPolicy >::size(), size, SoloBehaviorSimple, tracks, and TracksBehaviorsSolo.
Referenced by MuteButtonHandle::CommitChanges(), MixerTrackCluster::OnButton_Mute(), and anonymous_namespace{TrackMenus.cpp}::OnTrackMute().
void TrackUtilities::DoTrackSolo | ( | AudacityProject & | project, |
Track & | track, | ||
bool | exclusive | ||
) |
Type of solo (standard or simple) follows the set preference, unless exclusive == true, which causes the opposite behavior.
Definition at line 101 of file TrackUtilities.cpp.
References TrackFocus::Get(), ProjectHistory::Get(), TrackList::Get(), PlayableTrack::GetSolo(), ProjectHistory::ModifyState(), project, SoloBehaviorSimple, tracks, and TracksBehaviorsSolo.
Referenced by SoloButtonHandle::CommitChanges(), MixerTrackCluster::OnButton_Solo(), and anonymous_namespace{TrackMenus.cpp}::OnTrackSolo().