Audacity 3.2.0
|
Variables | |
AttachedItem | sAttachment1 { Indirect(TransportMenu()) } |
AttachedItem | sAttachment2 |
AttachedItem | sAttachment4 |
void anonymous_namespace{TransportMenus.cpp}::DoMoveToLabel | ( | AudacityProject & | project, |
bool | next | ||
) |
Definition at line 70 of file TransportMenus.cpp.
References TransportUtilities::DoStartPlaying(), TransportUtilities::DoStopPlaying(), LabelTrack::FindNextLabel(), LabelTrack::FindPrevLabel(), TrackFocus::Get(), ProjectAudioIO::Get(), ViewInfo::Get(), TrackList::Get(), Viewport::Get(), ProjectAudioManager::Get(), LabelTrack::GetLabel(), LabelTrack::GetNumLabels(), label, project, ViewInfo::selectedRegion, ClientData::Site< Host, ClientData, ObjectCopyingPolicy, Pointer, ObjectLockingPolicy, RegistryLockingPolicy >::size(), tracks, and XO().
Referenced by OnMoveToNextLabel(), and OnMoveToPrevLabel().
auto anonymous_namespace{TransportMenus.cpp}::ExtraSelectionItems | ( | ) |
Definition at line 896 of file TransportMenus.cpp.
References CaptureNotBusyFlag(), MenuRegistry::Command, MenuRegistry::Items, OnMoveToNextLabel(), OnMoveToPrevLabel(), TrackPanelHasFocus(), wxT(), and XXO().
auto anonymous_namespace{TransportMenus.cpp}::ExtraTransportMenu | ( | ) |
Definition at line 849 of file TransportMenus.cpp.
References AudioIOBusyFlag(), AudioIONotBusyFlag(), CanStopAudioStreamFlag(), CaptureNotBusyFlag(), MenuRegistry::Command, MenuRegistry::Menu, OnPlayAfterSelectionEnd(), OnPlayAfterSelectionStart(), OnPlayBeforeAndAfterSelectionEnd(), OnPlayBeforeAndAfterSelectionStart(), OnPlayBeforeSelectionEnd(), OnPlayBeforeSelectionStart(), OnPlayCutPreview(), OnPlayOnceOrStop(), OnPlayOneSecond(), OnPlayToSelection(), OnStop(), WaveTracksExistFlag(), wxT(), and XXO().
bool anonymous_namespace{TransportMenus.cpp}::IsLoopingEnabled | ( | const AudacityProject & | project | ) |
Definition at line 134 of file TransportMenus.cpp.
References PlayRegion::Active(), ViewInfo::Get(), ViewInfo::playRegion, and project.
Referenced by TransportMenu().
bool anonymous_namespace{TransportMenus.cpp}::MakeReadyToPlay | ( | AudacityProject & | project | ) |
MakeReadyToPlay stops whatever is currently playing and pops the play button up. Then, if nothing is now playing, it pushes the play button down and enables the stop button.
Definition at line 43 of file TransportMenus.cpp.
References AudioIOBase::Get(), ProjectAudioIO::Get(), ControlToolBar::Get(), ProjectAudioIO::GetAudioIOToken(), and project.
Referenced by OnPlayAfterSelectionEnd(), OnPlayAfterSelectionStart(), OnPlayBeforeAndAfterSelectionEnd(), OnPlayBeforeAndAfterSelectionStart(), OnPlayBeforeSelectionEnd(), OnPlayBeforeSelectionStart(), OnPlayCutPreview(), OnPlayDefaultOrStop(), OnPlayOneSecond(), and OnPlayToSelection().
void anonymous_namespace{TransportMenus.cpp}::OnClearPlayRegion | ( | const CommandContext & | context | ) |
Definition at line 369 of file TransportMenus.cpp.
References SelectUtilities::ClearPlayRegion(), and CommandContext::project.
Referenced by TransportMenu().
void anonymous_namespace{TransportMenus.cpp}::OnMoveToNextLabel | ( | const CommandContext & | context | ) |
Definition at line 698 of file TransportMenus.cpp.
References DoMoveToLabel(), CommandContext::project, and project.
Referenced by ExtraSelectionItems().
void anonymous_namespace{TransportMenus.cpp}::OnMoveToPrevLabel | ( | const CommandContext & | context | ) |
Definition at line 692 of file TransportMenus.cpp.
References DoMoveToLabel(), CommandContext::project, and project.
Referenced by ExtraSelectionItems().
void anonymous_namespace{TransportMenus.cpp}::OnPause | ( | const CommandContext & | context | ) |
Definition at line 182 of file TransportMenus.cpp.
References ProjectAudioManager::Get(), ProjectAudioManager::OnPause(), and CommandContext::project.
Referenced by TransportMenu().
void anonymous_namespace{TransportMenus.cpp}::OnPlayAfterSelectionEnd | ( | const CommandContext & | context | ) |
Definition at line 600 of file TransportMenus.cpp.
References ViewInfo::Get(), ProjectAudioIO::GetDefaultOptions(), gPrefs, MakeReadyToPlay(), oneSecondPlay, TransportUtilities::PlayPlayRegionAndWait(), CommandContext::project, project, audacity::BasicSettings::Read(), and wxT().
Referenced by ExtraTransportMenu().
void anonymous_namespace{TransportMenus.cpp}::OnPlayAfterSelectionStart | ( | const CommandContext & | context | ) |
Definition at line 546 of file TransportMenus.cpp.
References ViewInfo::Get(), ProjectAudioIO::GetDefaultOptions(), gPrefs, MakeReadyToPlay(), oneSecondPlay, TransportUtilities::PlayPlayRegionAndWait(), CommandContext::project, project, audacity::BasicSettings::Read(), and wxT().
Referenced by ExtraTransportMenu().
void anonymous_namespace{TransportMenus.cpp}::OnPlayBeforeAndAfterSelectionEnd | ( | const CommandContext & | context | ) |
Definition at line 651 of file TransportMenus.cpp.
References ViewInfo::Get(), ProjectAudioIO::GetDefaultOptions(), gPrefs, MakeReadyToPlay(), oneSecondPlay, TransportUtilities::PlayPlayRegionAndWait(), CommandContext::project, project, audacity::BasicSettings::Read(), and wxT().
Referenced by ExtraTransportMenu().
void anonymous_namespace{TransportMenus.cpp}::OnPlayBeforeAndAfterSelectionStart | ( | const CommandContext & | context | ) |
Definition at line 621 of file TransportMenus.cpp.
References ViewInfo::Get(), ProjectAudioIO::GetDefaultOptions(), gPrefs, MakeReadyToPlay(), oneSecondPlay, TransportUtilities::PlayPlayRegionAndWait(), CommandContext::project, project, audacity::BasicSettings::Read(), and wxT().
Referenced by ExtraTransportMenu().
void anonymous_namespace{TransportMenus.cpp}::OnPlayBeforeSelectionEnd | ( | const CommandContext & | context | ) |
Definition at line 573 of file TransportMenus.cpp.
References ViewInfo::Get(), ProjectAudioIO::GetDefaultOptions(), gPrefs, MakeReadyToPlay(), oneSecondPlay, TransportUtilities::PlayPlayRegionAndWait(), CommandContext::project, project, audacity::BasicSettings::Read(), and wxT().
Referenced by ExtraTransportMenu().
void anonymous_namespace{TransportMenus.cpp}::OnPlayBeforeSelectionStart | ( | const CommandContext & | context | ) |
Definition at line 525 of file TransportMenus.cpp.
References ViewInfo::Get(), ProjectAudioIO::GetDefaultOptions(), gPrefs, MakeReadyToPlay(), oneSecondPlay, TransportUtilities::PlayPlayRegionAndWait(), CommandContext::project, project, audacity::BasicSettings::Read(), and wxT().
Referenced by ExtraTransportMenu().
void anonymous_namespace{TransportMenus.cpp}::OnPlayCutPreview | ( | const CommandContext & | context | ) |
Definition at line 681 of file TransportMenus.cpp.
References MakeReadyToPlay(), TransportUtilities::PlayCurrentRegionAndWait(), CommandContext::project, and project.
Referenced by ExtraTransportMenu().
void anonymous_namespace{TransportMenus.cpp}::OnPlayDefaultOrStop | ( | const CommandContext & | context | ) |
Definition at line 168 of file TransportMenus.cpp.
References TransportUtilities::DoStopPlaying(), MakeReadyToPlay(), TransportUtilities::PlayCurrentRegionAndWait(), CommandContext::project, and project.
Referenced by TransportMenu().
void anonymous_namespace{TransportMenus.cpp}::OnPlayOnceOrStop | ( | const CommandContext & | context | ) |
Definition at line 154 of file TransportMenus.cpp.
References TransportUtilities::DoStartPlaying(), TransportUtilities::DoStopPlaying(), and CommandContext::project.
Referenced by ExtraTransportMenu(), and TransportMenu().
void anonymous_namespace{TransportMenus.cpp}::OnPlayOneSecond | ( | const CommandContext & | context | ) |
Definition at line 456 of file TransportMenus.cpp.
References TrackPanel::Get(), ProjectAudioIO::GetDefaultOptions(), MakeReadyToPlay(), oneSecondPlay, TransportUtilities::PlayPlayRegionAndWait(), CommandContext::project, and project.
Referenced by ExtraTransportMenu().
void anonymous_namespace{TransportMenus.cpp}::OnPlayStopSelect | ( | const CommandContext & | context | ) |
Definition at line 161 of file TransportMenus.cpp.
References ProjectAudioManager::DoPlayStopSelect(), ProjectAudioManager::Get(), and CommandContext::project.
Referenced by TransportMenu().
void anonymous_namespace{TransportMenus.cpp}::OnPlayToSelection | ( | const CommandContext & | context | ) |
The idea for this function (and first implementation) was from Juhana Sadeharju. The function plays the sound between the current mouse position and the nearest selection boundary. This gives four possible play regions depending on where the current mouse position is relative to the left and right boundaries of the selection region.
Definition at line 478 of file TransportMenus.cpp.
References ViewInfo::Get(), TrackPanel::Get(), ProjectAudioIO::GetDefaultOptions(), MakeReadyToPlay(), oneSecondPlay, TransportUtilities::PlayPlayRegionAndWait(), CommandContext::project, and project.
Referenced by ExtraTransportMenu().
void anonymous_namespace{TransportMenus.cpp}::OnPunchAndRoll | ( | const CommandContext & | context | ) |
Definition at line 199 of file TransportMenus.cpp.
References sampleCount::as_double(), AudacityMessageBox(), AUDIO_PRE_ROLL_KEY, AUDIO_ROLL_CROSSFADE_KEY, AudioIORecordChannels, details::begin(), TransportSequences::captureSequences, ProjectAudioManager::ChooseExistingRecordingTracks(), staffpad::vo::copy(), DEFAULT_PRE_ROLL_SECONDS, DEFAULT_ROLL_CROSSFADE_MS, ProjectAudioManager::DoRecord(), details::end(), AudioIO::Get(), ProjectHistory::Get(), ViewInfo::Get(), TrackList::Get(), ProjectAudioManager::Get(), ProjectAudioIO::GetDefaultOptions(), GetPropertiesOfSelected(), gPrefs, MakeTransportTracks(), min(), TransportSequences::playbackSequences, CommandContext::project, project, ProjectFramePlacement(), PropertiesOfSelected::rateOfSelected, audacity::BasicSettings::Read(), Setting< T >::Read(), ProjectHistory::RollbackState(), BasicUI::ShowErrorDialog(), tracks, ProjectAudioManager::UseDuplex(), wxT(), and XO().
Referenced by TransportMenu().
void anonymous_namespace{TransportMenus.cpp}::OnRecord | ( | const CommandContext & | context | ) |
Definition at line 187 of file TransportMenus.cpp.
References TransportUtilities::RecordAndWait().
Referenced by TransportMenu().
void anonymous_namespace{TransportMenus.cpp}::OnRecord2ndChoice | ( | const CommandContext & | context | ) |
Definition at line 194 of file TransportMenus.cpp.
References TransportUtilities::RecordAndWait().
Referenced by TransportMenu().
void anonymous_namespace{TransportMenus.cpp}::OnRescanDevices | ( | const CommandContext & | WXUNUSEDcontext | ) |
Definition at line 400 of file TransportMenus.cpp.
References DeviceManager::Instance(), and DeviceManager::Rescan().
Referenced by TransportMenu().
void anonymous_namespace{TransportMenus.cpp}::OnSetPlayRegionIn | ( | const CommandContext & | context | ) |
Definition at line 374 of file TransportMenus.cpp.
References SelectUtilities::ActivatePlayRegion(), ViewInfo::Get(), SelectUtilities::OnSetRegion(), ViewInfo::playRegion, CommandContext::project, project, and SetLoopInTitle.
Referenced by TransportMenu().
void anonymous_namespace{TransportMenus.cpp}::OnSetPlayRegionOut | ( | const CommandContext & | context | ) |
Definition at line 385 of file TransportMenus.cpp.
References SelectUtilities::ActivatePlayRegion(), ViewInfo::Get(), SelectUtilities::OnSetRegion(), ViewInfo::playRegion, CommandContext::project, project, and SetLoopOutTitle.
Referenced by TransportMenu().
void anonymous_namespace{TransportMenus.cpp}::OnSetPlayRegionToSelection | ( | const CommandContext & | context | ) |
Definition at line 395 of file TransportMenus.cpp.
References CommandContext::project, and SelectUtilities::SetPlayRegionToSelection().
Referenced by TransportMenu().
void anonymous_namespace{TransportMenus.cpp}::OnSoundActivated | ( | const CommandContext & | context | ) |
Definition at line 405 of file TransportMenus.cpp.
References GetProjectFrame(), CommandContext::project, and project.
Referenced by TransportMenu().
void anonymous_namespace{TransportMenus.cpp}::OnStop | ( | const CommandContext & | context | ) |
Definition at line 451 of file TransportMenus.cpp.
References ProjectAudioManager::Get(), CommandContext::project, and ProjectAudioManager::Stop().
Referenced by ExtraTransportMenu().
void anonymous_namespace{TransportMenus.cpp}::OnTogglePlayRecording | ( | const CommandContext & | WXUNUSEDcontext | ) |
Definition at line 420 of file TransportMenus.cpp.
References audacity::BasicSettings::Flush(), gPrefs, ToolManager::ModifyAllProjectToolbarMenus(), audacity::BasicSettings::Read(), audacity::BasicSettings::Write(), and wxT().
Referenced by TransportMenu().
void anonymous_namespace{TransportMenus.cpp}::OnTogglePlayRegion | ( | const CommandContext & | context | ) |
Definition at line 364 of file TransportMenus.cpp.
References CommandContext::project, and SelectUtilities::TogglePlayRegion().
Referenced by TransportMenu().
void anonymous_namespace{TransportMenus.cpp}::OnToggleSoundActivated | ( | const CommandContext & | WXUNUSEDcontext | ) |
Definition at line 413 of file TransportMenus.cpp.
References audacity::BasicSettings::Flush(), gPrefs, ToolManager::ModifyAllProjectToolbarMenus(), SoundActivatedRecord, and BoolSetting::Toggle().
Referenced by TransportMenu().
void anonymous_namespace{TransportMenus.cpp}::OnToggleSWPlaythrough | ( | const CommandContext & | WXUNUSEDcontext | ) |
Definition at line 429 of file TransportMenus.cpp.
References audacity::BasicSettings::Flush(), gPrefs, ToolManager::ModifyAllProjectToolbarMenus(), audacity::BasicSettings::Read(), audacity::BasicSettings::Write(), and wxT().
Referenced by TransportMenu().
auto anonymous_namespace{TransportMenus.cpp}::TransportMenu | ( | ) |
Definition at line 726 of file TransportMenus.cpp.
References AlwaysEnabledFlag, AudioIONotBusyFlag(), CanStopAudioStreamFlag(), anonymous_namespace{TimerRecordDialog.cpp}::CanStopFlags, MenuRegistry::Options::CheckTest(), MenuRegistry::Command, gPrefs, IsLoopingEnabled(), LoopToggleText, MenuRegistry::Menu, OnClearPlayRegion(), OnPause(), OnPlayDefaultOrStop(), OnPlayOnceOrStop(), OnPlayStopSelect(), OnPunchAndRoll(), OnRecord(), OnRecord2ndChoice(), OnRescanDevices(), OnSetPlayRegionIn(), OnSetPlayRegionOut(), OnSetPlayRegionToSelection(), OnSoundActivated(), OnTogglePlayRecording(), OnTogglePlayRegion(), OnToggleSoundActivated(), OnToggleSWPlaythrough(), project, audacity::BasicSettings::ReadBool(), MenuRegistry::Section, SetLoopInTitle, SetLoopOutTitle, SoundActivatedRecord, WaveTracksExistFlag(), wxT(), and XXO().
AttachedItem anonymous_namespace{TransportMenus.cpp}::sAttachment1 { Indirect(TransportMenu()) } |
Definition at line 847 of file TransportMenus.cpp.
AttachedItem anonymous_namespace{TransportMenus.cpp}::sAttachment2 |
Definition at line 892 of file TransportMenus.cpp.
AttachedItem anonymous_namespace{TransportMenus.cpp}::sAttachment4 |
Definition at line 910 of file TransportMenus.cpp.