Audacity 3.2.0
|
Namespace for functions for Edit Label submenu. More...
Typedefs | |
using | EditFunction = std::function< void(Track &track, double, double)> |
using | EditFunctionWithProgress = std::function< void(Track &track, double, double, ProgressReporter)> |
using | EditDestFunction = std::function< Track::Holder(Track &, double, double)> |
Variables | |
AttachedItem | sAttachment1 |
AttachedItem | sAttachment2 |
Namespace for functions for Edit Label submenu.
using anonymous_namespace{LabelMenus.cpp}::EditDestFunction = typedef std::function<Track::Holder(Track &, double, double)> |
Definition at line 239 of file LabelMenus.cpp.
using anonymous_namespace{LabelMenus.cpp}::EditFunction = typedef std::function<void(Track& track, double, double)> |
Definition at line 187 of file LabelMenus.cpp.
using anonymous_namespace{LabelMenus.cpp}::EditFunctionWithProgress = typedef std::function<void(Track& track, double, double, ProgressReporter)> |
Definition at line 188 of file LabelMenus.cpp.
int anonymous_namespace{LabelMenus.cpp}::DoAddLabel | ( | AudacityProject & | project, |
const SelectedRegion & | region, | ||
bool | preserveFocus = false |
||
) |
Definition at line 56 of file LabelMenus.cpp.
References LabelTrackView::AddLabel(), details::begin(), LabelTrack::Create(), LabelTrackView::DialogForLabelName(), TrackFocus::Get(), ProjectHistory::Get(), TrackList::Get(), Viewport::Get(), TrackPanel::Get(), LabelTrackView::Get(), gPrefs, project, ProjectHistory::PushState(), audacity::BasicSettings::Read(), Viewport::ShowTrack(), title, tracks, wxT(), and XO().
Referenced by OnAddLabel(), and OnAddLabelPlaying().
void anonymous_namespace{LabelMenus.cpp}::EditByLabel | ( | AudacityProject & | project, |
TrackList & | tracks, | ||
const SelectedRegion & | selectedRegion, | ||
EditFunction | action | ||
) |
Definition at line 227 of file LabelMenus.cpp.
References EditByLabel(), project, and tracks.
Referenced by EditByLabel(), OnCutLabels(), OnDeleteLabels(), OnDisjoinLabels(), OnJoinLabels(), OnSilenceLabels(), OnSplitDeleteLabels(), and OnSplitLabels().
void anonymous_namespace{LabelMenus.cpp}::EditByLabel | ( | AudacityProject & | project, |
TrackList & | tracks, | ||
const SelectedRegion & | selectedRegion, | ||
EditFunctionWithProgress | action, | ||
ProgressReporter | progress | ||
) |
Definition at line 198 of file LabelMenus.cpp.
References GetRegionsByLabel(), GetTracksToEditByLabel(), project, BasicUI::SplitProgress(), and tracks.
void anonymous_namespace{LabelMenus.cpp}::EditClipboardByLabel | ( | AudacityProject & | project, |
TrackList & | tracks, | ||
const SelectedRegion & | selectedRegion, | ||
EditDestFunction | action | ||
) |
Definition at line 248 of file LabelMenus.cpp.
References TrackList::Create(), WaveTrack::Region::end, Clipboard::Get(), GetEditClipsCanMove(), GetRegionsByLabel(), GetTracksToEditByLabel(), project, WaveTrack::Region::start, and tracks.
Referenced by OnCopyLabels(), OnCutLabels(), and OnSplitCutLabels().
void anonymous_namespace{LabelMenus.cpp}::GetRegionsByLabel | ( | const TrackList & | tracks, |
const SelectedRegion & | selectedRegion, | ||
Regions & | regions | ||
) |
Definition at line 126 of file LabelMenus.cpp.
References WaveTrack::Region::end, LabelStruct::getT0(), LabelStruct::getT1(), LabelStruct::selectedRegion, WaveTrack::Region::start, SelectedRegion::t0(), SelectedRegion::t1(), and tracks.
Referenced by EditByLabel(), and EditClipboardByLabel().
auto anonymous_namespace{LabelMenus.cpp}::GetTracksToEditByLabel | ( | const AudacityProject & | project, |
const TrackList & | tracks | ||
) |
Definition at line 164 of file LabelMenus.cpp.
References SyncLockState::Get(), SyncLockState::IsSyncLocked(), SyncLock::IsSyncLockSelected(), project, and tracks.
Referenced by EditByLabel(), and EditClipboardByLabel().
auto anonymous_namespace{LabelMenus.cpp}::LabelEditMenus | ( | ) |
Definition at line 693 of file LabelMenus.cpp.
References AlwaysEnabledFlag, AudioIOBusyFlag(), AudioIONotBusyFlag(), MenuRegistry::Options::CheckTest(), MenuRegistry::Command, MenuRegistry::Items, LabelsSelectedFlag(), MenuRegistry::Menu, OnAddLabel(), OnAddLabelPlaying(), OnCopyLabels(), OnCutLabels(), OnDeleteLabels(), OnDisjoinLabels(), OnEditLabels(), OnJoinLabels(), OnPasteNewLabel(), OnSilenceLabels(), OnSplitCutLabels(), OnSplitDeleteLabels(), OnSplitLabels(), OnToggleTypeToCreateLabel(), MenuRegistry::Section, TimeSelectedFlag(), WaveTracksExistFlag(), wxT(), XO(), and XXO().
const ReservedCommandFlag & anonymous_namespace{LabelMenus.cpp}::LabelsSelectedFlag | ( | ) |
Definition at line 32 of file LabelMenus.cpp.
References flag, ViewInfo::Get(), TrackList::Get(), label, project, TrackList::Selected(), and ViewInfo::selectedRegion.
Referenced by LabelEditMenus().
void anonymous_namespace{LabelMenus.cpp}::OnAddLabel | ( | const CommandContext & | context | ) |
Definition at line 328 of file LabelMenus.cpp.
References DoAddLabel(), ViewInfo::Get(), CommandContext::project, project, and ViewInfo::selectedRegion.
Referenced by LabelEditMenus().
void anonymous_namespace{LabelMenus.cpp}::OnAddLabelPlaying | ( | const CommandContext & | context | ) |
Definition at line 336 of file LabelMenus.cpp.
References DoAddLabel(), AudioIO::Get(), ProjectAudioIO::Get(), ProjectAudioIO::GetAudioIOToken(), CommandContext::project, and project.
Referenced by LabelEditMenus().
void anonymous_namespace{LabelMenus.cpp}::OnCopyLabels | ( | const CommandContext & | context | ) |
Definition at line 571 of file LabelMenus.cpp.
References WaveTrack::Copy(), EditClipboardByLabel(), ProjectHistory::Get(), ViewInfo::Get(), TrackList::Get(), CommandContext::project, project, ProjectHistory::PushState(), ViewInfo::selectedRegion, tracks, Track::TypeSwitch(), and XO().
Referenced by LabelEditMenus().
void anonymous_namespace{LabelMenus.cpp}::OnCutLabels | ( | const CommandContext & | context | ) |
Definition at line 422 of file LabelMenus.cpp.
References WaveTrack::Clear(), WaveTrack::ClearAndAddCutLine(), WaveTrack::Copy(), EditByLabel(), EditClipboardByLabel(), ProjectHistory::Get(), ViewInfo::Get(), TrackList::Get(), gPrefs, CommandContext::project, project, ProjectHistory::PushState(), audacity::BasicSettings::ReadBool(), ViewInfo::selectedRegion, tracks, Track::TypeSwitch(), wxT(), and XO().
Referenced by LabelEditMenus().
void anonymous_namespace{LabelMenus.cpp}::OnDeleteLabels | ( | const CommandContext & | context | ) |
Definition at line 466 of file LabelMenus.cpp.
References Track::Clear(), EditByLabel(), ProjectHistory::Get(), ViewInfo::Get(), TrackList::Get(), CommandContext::project, project, ProjectHistory::PushState(), ViewInfo::selectedRegion, tracks, Track::TypeSwitch(), and XO().
Referenced by LabelEditMenus().
void anonymous_namespace{LabelMenus.cpp}::OnDisjoinLabels | ( | const CommandContext & | context | ) |
Definition at line 646 of file LabelMenus.cpp.
References WaveTrack::Disjoin(), EditByLabel(), ProjectHistory::Get(), ViewInfo::Get(), TrackList::Get(), CommandContext::project, project, ProjectHistory::PushState(), ViewInfo::selectedRegion, tracks, Track::TypeSwitch(), and XO().
Referenced by LabelEditMenus().
void anonymous_namespace{LabelMenus.cpp}::OnEditLabels | ( | const CommandContext & | context | ) |
Definition at line 322 of file LabelMenus.cpp.
References LabelTrackView::DoEditLabels(), CommandContext::project, and project.
Referenced by LabelEditMenus().
void anonymous_namespace{LabelMenus.cpp}::OnJoinLabels | ( | const CommandContext & | context | ) |
Definition at line 615 of file LabelMenus.cpp.
References EditByLabel(), ProjectHistory::Get(), ViewInfo::Get(), TrackList::Get(), WaveTrack::GetRate(), WaveTrack::Join(), CommandContext::project, project, ProjectHistory::PushState(), ViewInfo::selectedRegion, tracks, Track::TypeSwitch(), TimeStretching::WithClipRenderingProgress(), and XO().
Referenced by LabelEditMenus().
void anonymous_namespace{LabelMenus.cpp}::OnNewLabelTrack | ( | const CommandContext & | context | ) |
Definition at line 672 of file LabelMenus.cpp.
References LabelTrack::Create(), TrackFocus::Get(), ProjectHistory::Get(), TrackList::Get(), Viewport::Get(), CommandContext::project, project, ProjectHistory::PushState(), SelectUtilities::SelectNone(), Viewport::ShowTrack(), tracks, and XO().
void anonymous_namespace{LabelMenus.cpp}::OnPasteNewLabel | ( | const CommandContext & | context | ) |
Definition at line 351 of file LabelMenus.cpp.
References Track::Any(), LabelTrack::Create(), TrackFocus::Get(), ProjectHistory::Get(), ViewInfo::Get(), TrackList::Get(), Viewport::Get(), TrackPanel::Get(), LabelTrackView::Get(), CommandContext::project, project, ProjectHistory::PushState(), LabelTrackView::ResetTextSelection(), ViewInfo::selectedRegion, Track::SetSelected(), Viewport::ShowTrack(), tracks, and XO().
Referenced by LabelEditMenus().
void anonymous_namespace{LabelMenus.cpp}::OnSilenceLabels | ( | const CommandContext & | context | ) |
Definition at line 548 of file LabelMenus.cpp.
References EditByLabel(), ProjectHistory::Get(), ViewInfo::Get(), TrackList::Get(), CommandContext::project, project, ProjectHistory::PushState(), ViewInfo::selectedRegion, WaveTrack::Silence(), tracks, Track::TypeSwitch(), and XO().
Referenced by LabelEditMenus().
void anonymous_namespace{LabelMenus.cpp}::OnSplitCutLabels | ( | const CommandContext & | context | ) |
Definition at line 489 of file LabelMenus.cpp.
References EditClipboardByLabel(), ProjectHistory::Get(), ViewInfo::Get(), TrackList::Get(), CommandContext::project, project, ProjectHistory::PushState(), ViewInfo::selectedRegion, WaveTrack::SplitCut(), tracks, Track::TypeSwitch(), and XO().
Referenced by LabelEditMenus().
void anonymous_namespace{LabelMenus.cpp}::OnSplitDeleteLabels | ( | const CommandContext & | context | ) |
Definition at line 518 of file LabelMenus.cpp.
References EditByLabel(), ProjectHistory::Get(), ViewInfo::Get(), TrackList::Get(), CommandContext::project, project, ProjectHistory::PushState(), ViewInfo::selectedRegion, WaveTrack::Silence(), WaveTrack::SplitDelete(), tracks, Track::TypeSwitch(), and XO().
Referenced by LabelEditMenus().
void anonymous_namespace{LabelMenus.cpp}::OnSplitLabels | ( | const CommandContext & | context | ) |
Definition at line 593 of file LabelMenus.cpp.
References EditByLabel(), ProjectHistory::Get(), ViewInfo::Get(), TrackList::Get(), CommandContext::project, project, ProjectHistory::PushState(), ViewInfo::selectedRegion, WaveTrack::Split(), tracks, Track::TypeSwitch(), and XO().
Referenced by LabelEditMenus().
void anonymous_namespace{LabelMenus.cpp}::OnToggleTypeToCreateLabel | ( | const CommandContext & | WXUNUSEDcontext | ) |
Definition at line 413 of file LabelMenus.cpp.
References audacity::BasicSettings::Flush(), gPrefs, ToolManager::ModifyAllProjectToolbarMenus(), audacity::BasicSettings::Read(), audacity::BasicSettings::Write(), and wxT().
Referenced by LabelEditMenus().
AttachedItem anonymous_namespace{LabelMenus.cpp}::sAttachment1 |
Definition at line 791 of file LabelMenus.cpp.
AttachedItem anonymous_namespace{LabelMenus.cpp}::sAttachment2 |
Definition at line 796 of file LabelMenus.cpp.