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 164 of file SelectUtilities.cpp.
References CommandManager::Get(), ViewInfo::Get(), project, and CommandManager::UpdateCheckmarks().
Referenced by ControlToolBar::OnLoop(), anonymous_namespace{TransportMenus.cpp}::OnSetPlayRegionIn(), anonymous_namespace{TransportMenus.cpp}::OnSetPlayRegionOut(), SetPlayRegionToSelection(), and TogglePlayRegion().
AUDACITY_DLL_API void SelectUtilities::ClearPlayRegion | ( | AudacityProject & | project | ) |
Definition at line 206 of file SelectUtilities.cpp.
References ViewInfo::Get(), InactivatePlayRegion(), and project.
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 116 of file SelectUtilities.cpp.
References TrackFocus::Get(), ProjectHistory::Get(), ViewInfo::Get(), SelectionState::Get(), SyncLockState::Get(), TrackList::Get(), GetProjectFrame(), SyncLockState::IsSyncLocked(), ProjectHistory::ModifyState(), project, and tracks.
Referenced by SelectHandle::Click(), TrackSelectHandle::Click(), and MixerTrackCluster::HandleSelect().
AUDACITY_DLL_API void SelectUtilities::DoSelectAll | ( | AudacityProject & | project | ) |
Definition at line 137 of file SelectUtilities.cpp.
References DoSelectTimeAndTracks(), and project.
Referenced by ApplyMacroDialog::OnApplyToFiles(), SelectActions::Handler::OnSelectAll(), and ProjectManager::ResetProjectToEmpty().
AUDACITY_DLL_API void SelectUtilities::DoSelectAllAudio | ( | AudacityProject & | project | ) |
Definition at line 142 of file SelectUtilities.cpp.
References anonymous_namespace{SelectUtilities.cpp}::DoSelectTimeAndAudioTracks(), and project.
Referenced by SelectAllIfNone(), and SelectAllIfNoneAndAllowed().
AUDACITY_DLL_API void SelectUtilities::DoSelectSomething | ( | AudacityProject & | project | ) |
Definition at line 152 of file SelectUtilities.cpp.
References DoSelectTimeAndTracks(), ViewInfo::Get(), TrackList::Get(), NotifyingSelectedRegion::isPoint(), project, ViewInfo::selectedRegion, and tracks.
AUDACITY_DLL_API void SelectUtilities::DoSelectTimeAndTracks | ( | AudacityProject & | project, |
bool | bAllTime, | ||
bool | bAllTracks | ||
) |
Definition at line 60 of file SelectUtilities.cpp.
References ProjectHistory::Get(), ViewInfo::Get(), TrackList::Get(), ProjectHistory::ModifyState(), project, ViewInfo::selectedRegion, NotifyingSelectedRegion::setTimes(), and tracks.
Referenced by DoSelectAll(), DoSelectSomething(), SelectActions::Handler::OnSelectAllTime(), and SelectActions::Handler::OnSelectAllTracks().
AUDACITY_DLL_API void SelectUtilities::InactivatePlayRegion | ( | AudacityProject & | project | ) |
Definition at line 182 of file SelectUtilities.cpp.
References CommandManager::Get(), ViewInfo::Get(), project, and CommandManager::UpdateCheckmarks().
Referenced by ClearPlayRegion(), 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 226 of file SelectUtilities.cpp.
References AudioIO::Get(), ProjectAudioIO::Get(), ProjectNumericFormats::Get(), ProjectHistory::Get(), ViewInfo::Get(), ProjectAudioIO::GetAudioIOToken(), GetProjectFrame(), TimeDialog::GetTimeValue(), ProjectHistory::ModifyState(), project, 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 89 of file SelectUtilities.cpp.
References DoSelectAllAudio(), EditableTracksSelectedFlag(), CommandManager::Get(), ViewInfo::Get(), CommandManager::GetUpdateFlags(), none, and project.
Referenced by ImportCommand::Apply(), and EffectUI::DoEffect().
AUDACITY_DLL_API bool SelectUtilities::SelectAllIfNoneAndAllowed | ( | AudacityProject & | project | ) |
Definition at line 100 of file SelectUtilities.cpp.
References DoSelectAllAudio(), EditableTracksSelectedFlag(), CommandManager::Get(), ViewInfo::Get(), CommandManager::GetUpdateFlags(), gPrefs, none, project, audacity::BasicSettings::ReadBool(), and wxT().
Referenced by MacroCommands::ApplyEffectCommand().
AUDACITY_DLL_API void SelectUtilities::SelectNone | ( | AudacityProject & | project | ) |
Definition at line 77 of file SelectUtilities.cpp.
References TrackList::Get(), TrackPanel::Get(), project, and tracks.
Referenced by ProjectFileManager::AddImportedTracks(), anonymous_namespace{ImportMIDI.cpp}::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 216 of file SelectUtilities.cpp.
References ActivatePlayRegion(), ViewInfo::Get(), and project.
Referenced by anonymous_namespace{TransportMenus.cpp}::OnSetPlayRegionToSelection(), and AdornedRulerPanel::OnSetPlayRegionToSelection().
AUDACITY_DLL_API void SelectUtilities::TogglePlayRegion | ( | AudacityProject & | project | ) |
Definition at line 196 of file SelectUtilities.cpp.
References ActivatePlayRegion(), ViewInfo::Get(), InactivatePlayRegion(), and project.
Referenced by anonymous_namespace{TransportMenus.cpp}::OnTogglePlayRegion(), and AdornedRulerPanel::OnTogglePlayRegion().