![]() |
Audacity 3.2.0
|
Namespace for functions for Select menu. More...
Functions | |
void | DoSelectTimeAndTracks (AudacityProject &project, bool bAllTime, bool bAllTracks) |
void | SelectNone (AudacityProject &project) |
void | SelectAllIfNone (AudacityProject &project) |
bool | SelectAllIfNoneAndAllowed (AudacityProject &project) |
void | DoListSelection (AudacityProject &project, Track *t, bool shift, bool ctrl, bool modifyState) |
void | DoSelectAll (AudacityProject &project) |
void | DoSelectAllAudio (AudacityProject &project) |
void | DoSelectSomething (AudacityProject &project) |
void | ActivatePlayRegion (AudacityProject &project) |
void | InactivatePlayRegion (AudacityProject &project) |
void | TogglePlayRegion (AudacityProject &project) |
void | ClearPlayRegion (AudacityProject &project) |
void | SetPlayRegionToSelection (AudacityProject &project) |
void | OnSetRegion (AudacityProject &project, bool left, bool selection, const TranslatableString &dialogTitle) |
Adjust left or right of selection or play region. More... | |
Namespace for functions for Select menu.
AUDACITY_DLL_API void SelectUtilities::ActivatePlayRegion | ( | AudacityProject & | project | ) |
Definition at line 168 of file SelectUtilities.cpp.
References ViewInfo::Get(), TrackList::Get(), CommandManager::Get(), and CommandManager::UpdateCheckmarks().
Referenced by ControlToolBar::OnLoop(), anonymous_namespace{TransportMenus.cpp}::OnSetPlayRegionIn(), anonymous_namespace{TransportMenus.cpp}::OnSetPlayRegionOut(), and TogglePlayRegion().
AUDACITY_DLL_API void SelectUtilities::ClearPlayRegion | ( | AudacityProject & | project | ) |
Definition at line 212 of file SelectUtilities.cpp.
References ViewInfo::Get().
Referenced by anonymous_namespace{TransportMenus.cpp}::OnClearPlayRegion(), and AdornedRulerPanel::OnClearPlayRegion().
AUDACITY_DLL_API void SelectUtilities::DoListSelection | ( | AudacityProject & | project, |
Track * | t, | ||
bool | shift, | ||
bool | ctrl, | ||
bool | modifyState | ||
) |
Definition at line 119 of file SelectUtilities.cpp.
References TrackFocus::Get(), ProjectHistory::Get(), ViewInfo::Get(), TrackList::Get(), ProjectSettings::Get(), SelectionState::Get(), GetProjectFrame(), ProjectHistory::ModifyState(), and settings().
Referenced by SelectHandle::Click(), TrackSelectHandle::Click(), SelectButtonHandle::CommitChanges(), and MixerTrackCluster::HandleSelect().
AUDACITY_DLL_API void SelectUtilities::DoSelectAll | ( | AudacityProject & | project | ) |
Definition at line 141 of file SelectUtilities.cpp.
References DoSelectTimeAndTracks().
Referenced by ApplyMacroDialog::OnApplyToFiles(), SelectActions::Handler::OnSelectAll(), and ProjectManager::ResetProjectToEmpty().
AUDACITY_DLL_API void SelectUtilities::DoSelectAllAudio | ( | AudacityProject & | project | ) |
Definition at line 146 of file SelectUtilities.cpp.
References anonymous_namespace{SelectUtilities.cpp}::DoSelectTimeAndAudioTracks().
Referenced by SelectAllIfNone(), and SelectAllIfNoneAndAllowed().
AUDACITY_DLL_API void SelectUtilities::DoSelectSomething | ( | AudacityProject & | project | ) |
Definition at line 156 of file SelectUtilities.cpp.
References DoSelectTimeAndTracks(), ViewInfo::Get(), TrackList::Get(), NotifyingSelectedRegion::isPoint(), and ViewInfo::selectedRegion.
AUDACITY_DLL_API void SelectUtilities::DoSelectTimeAndTracks | ( | AudacityProject & | project, |
bool | bAllTime, | ||
bool | bAllTracks | ||
) |
Definition at line 62 of file SelectUtilities.cpp.
References ProjectHistory::Get(), ViewInfo::Get(), TrackList::Get(), ProjectHistory::ModifyState(), ViewInfo::selectedRegion, and NotifyingSelectedRegion::setTimes().
Referenced by DoSelectAll(), DoSelectSomething(), SelectActions::Handler::OnSelectAllTime(), and SelectActions::Handler::OnSelectAllTracks().
AUDACITY_DLL_API void SelectUtilities::InactivatePlayRegion | ( | AudacityProject & | project | ) |
Definition at line 188 of file SelectUtilities.cpp.
References ViewInfo::Get(), CommandManager::Get(), and CommandManager::UpdateCheckmarks().
Referenced by ControlToolBar::OnLoop(), and TogglePlayRegion().
AUDACITY_DLL_API void SelectUtilities::OnSetRegion | ( | AudacityProject & | project, |
bool | left, | ||
bool | selection, | ||
const TranslatableString & | dialogTitle | ||
) |
Adjust left or right of selection or play region.
Pop up a dialog if not playing or recording, else use the current play position
Definition at line 227 of file SelectUtilities.cpp.
References AudioIO::Get(), ProjectAudioIO::Get(), ProjectHistory::Get(), ProjectRate::Get(), ViewInfo::Get(), ProjectSettings::Get(), ProjectAudioIO::GetAudioIOToken(), GetProjectFrame(), ProjectRate::GetRate(), TimeDialog::GetTimeValue(), ProjectHistory::ModifyState(), settings(), and XO().
Referenced by SelectActions::Handler::OnSetLeftSelection(), anonymous_namespace{TransportMenus.cpp}::OnSetPlayRegionIn(), anonymous_namespace{TransportMenus.cpp}::OnSetPlayRegionOut(), and SelectActions::Handler::OnSetRightSelection().
AUDACITY_DLL_API void SelectUtilities::SelectAllIfNone | ( | AudacityProject & | project | ) |
Definition at line 92 of file SelectUtilities.cpp.
References DoSelectAllAudio(), EditableTracksSelectedFlag(), ViewInfo::Get(), MenuManager::Get(), MenuManager::GetUpdateFlags(), and none.
Referenced by ImportCommand::Apply(), and EffectUI::DoEffect().
AUDACITY_DLL_API bool SelectUtilities::SelectAllIfNoneAndAllowed | ( | AudacityProject & | project | ) |
Definition at line 103 of file SelectUtilities.cpp.
References DoSelectAllAudio(), EditableTracksSelectedFlag(), ViewInfo::Get(), MenuManager::Get(), MenuManager::GetUpdateFlags(), gPrefs, none, and wxT().
Referenced by MacroCommands::ApplyEffectCommand().
AUDACITY_DLL_API void SelectUtilities::SelectNone | ( | AudacityProject & | project | ) |
Definition at line 80 of file SelectUtilities.cpp.
References TrackList::Get(), and TrackPanel::Get().
Referenced by ProjectFileManager::AddImportedTracks(), DoImportMIDI(), anonymous_namespace{FileMenus.cpp}::OnImportLabels(), MixerBoardScrolledWindow::OnMouseEvent(), anonymous_namespace{LabelMenus.cpp}::OnNewLabelTrack(), anonymous_namespace{WaveTrackMenuItems.cpp}::OnNewStereoTrack(), anonymous_namespace{TimeTrackMenuItems.cpp}::OnNewTimeTrack(), anonymous_namespace{WaveTrackMenuItems.cpp}::OnNewWaveTrack(), and SelectActions::Handler::OnSelectNone().
AUDACITY_DLL_API void SelectUtilities::SetPlayRegionToSelection | ( | AudacityProject & | project | ) |
Definition at line 219 of file SelectUtilities.cpp.
References ViewInfo::Get().
Referenced by anonymous_namespace{TransportMenus.cpp}::OnSetPlayRegionToSelection(), and AdornedRulerPanel::OnSetPlayRegionToSelection().
AUDACITY_DLL_API void SelectUtilities::TogglePlayRegion | ( | AudacityProject & | project | ) |
Definition at line 202 of file SelectUtilities.cpp.
References ActivatePlayRegion(), ViewInfo::Get(), and InactivatePlayRegion().
Referenced by anonymous_namespace{TransportMenus.cpp}::OnTogglePlayRegion(), and AdornedRulerPanel::OnTogglePlayRegion().