![]() |
Audacity 3.2.0
|
Functions | |
void | FinishCopy (const Track *n, const Track::Holder &dest, TrackList &list) |
bool | DoPasteText (AudacityProject &project) |
void | ForEachCopiedWaveTrack (const TrackList &src, const TrackList &dst, const std::function< void(const WaveTrack &waveTrack)> &f) |
wxULongLong | EstimateCopyBytesCount (const TrackList &src, const TrackList &dst) |
BlockArray::size_type | EstimateCopiedBlocks (const TrackList &src, const TrackList &dst) |
std::shared_ptr< TrackList > | DuplicateDiscardTrimmed (const TrackList &src) |
void | DoPasteNothingSelected (AudacityProject &project, const TrackList &src, double t0, double t1) |
bool | HasHiddenData (const TrackList &trackList) |
void | OnUndo (const CommandContext &context) |
void | OnRedo (const CommandContext &context) |
void | OnCut (const CommandContext &context) |
void | OnDelete (const CommandContext &context) |
void | OnCopy (const CommandContext &context) |
std::pair< double, double > | FindSelection (const CommandContext &context) |
void | OnPaste (const CommandContext &context) |
void | OnDuplicate (const CommandContext &context) |
void | OnSplitCut (const CommandContext &context) |
void | OnSplitDelete (const CommandContext &context) |
void | OnSilence (const CommandContext &context) |
void | OnTrim (const CommandContext &context) |
void | OnSplit (const CommandContext &context) |
void | OnSplitNew (const CommandContext &context) |
void | OnJoin (const CommandContext &context) |
void | OnDisjoin (const CommandContext &context) |
void | OnPreferences (const CommandContext &context) |
const ReservedCommandFlag & | CutCopyAvailableFlag () |
BaseItemSharedPtr | EditMenu () |
BaseItemSharedPtr | ExtraEditMenu () |
const ReservedCommandFlag & anonymous_namespace{EditMenus.cpp}::CutCopyAvailableFlag | ( | ) |
Definition at line 1192 of file EditMenus.cpp.
References TrackList::Any(), cutCopyOptions(), EditableTracksSelectedPred(), flag, TrackList::Get(), LabelTrackView::Get(), LabelTrackView::IsTextSelected(), and TimeSelectedPred().
Referenced by EditMenu().
void anonymous_namespace{EditMenus.cpp}::DoPasteNothingSelected | ( | AudacityProject & | project, |
const TrackList & | src, | ||
double | t0, | ||
double | t1 | ||
) |
Definition at line 202 of file EditMenus.cpp.
References Track::EnsureVisible(), FinishCopy(), Track::FinishCopy(), TrackFocus::Get(), ProjectHistory::Get(), ProjectRate::Get(), ViewInfo::Get(), TrackList::Get(), ProjectWindow::Get(), ProjectRate::GetRate(), Track::PasteInto(), ProjectHistory::PushState(), QUANTIZED_TIME, ViewInfo::selectedRegion, Track::SetSelected(), and XO().
Referenced by OnPaste().
bool anonymous_namespace{EditMenus.cpp}::DoPasteText | ( | AudacityProject & | project | ) |
Definition at line 47 of file EditMenus.cpp.
References ProjectHistory::Get(), ViewInfo::Get(), TrackList::Get(), ProjectWindow::Get(), LabelTrackView::Get(), LabelTrackView::GetTextEditIndex(), ProjectHistory::PushState(), ViewInfo::selectedRegion, and XO().
Referenced by OnPaste().
std::shared_ptr< TrackList > anonymous_namespace{EditMenus.cpp}::DuplicateDiscardTrimmed | ( | const TrackList & | src | ) |
Definition at line 167 of file EditMenus.cpp.
References TrackList::Create().
Referenced by OnPaste().
BaseItemSharedPtr anonymous_namespace{EditMenus.cpp}::EditMenu | ( | ) |
Definition at line 1217 of file EditMenus.cpp.
References AudioIONotBusyFlag(), MenuTable::Command(), CutCopyAvailableFlag(), EditableTracksSelectedFlag(), MenuTable::Menu(), MenuManager::ModifyUndoMenuItems(), NoAutoSelect(), OnCopy(), OnCut(), OnDelete(), OnDisjoin(), OnDuplicate(), OnJoin(), OnPaste(), OnPreferences(), OnRedo(), OnSilence(), OnSplit(), OnSplitCut(), OnSplitDelete(), OnSplitNew(), OnTrim(), OnUndo(), RedoAvailableFlag(), MenuTable::Section(), MenuTable::Special(), TimeSelectedFlag(), UndoAvailableFlag(), WaveTracksSelectedFlag(), wxT(), and XXO().
BlockArray::size_type anonymous_namespace{EditMenus.cpp}::EstimateCopiedBlocks | ( | const TrackList & | src, |
const TrackList & | dst | ||
) |
Definition at line 157 of file EditMenus.cpp.
References ForEachCopiedWaveTrack(), WaveTrack::GetClips(), and TrackList::size().
Referenced by OnPaste().
wxULongLong anonymous_namespace{EditMenus.cpp}::EstimateCopyBytesCount | ( | const TrackList & | src, |
const TrackList & | dst | ||
) |
Definition at line 145 of file EditMenus.cpp.
References sampleCount::as_long_long(), ForEachCopiedWaveTrack(), WaveTrack::GetClips(), WaveTrack::GetSampleFormat(), and SAMPLE_SIZE.
Referenced by OnPaste().
BaseItemSharedPtr anonymous_namespace{EditMenus.cpp}::ExtraEditMenu | ( | ) |
Definition at line 1349 of file EditMenus.cpp.
References AudioIONotBusyFlag(), MenuTable::Command(), EditableTracksSelectedFlag(), MenuTable::Menu(), NoAutoSelect(), OnDelete(), TimeSelectedFlag(), wxT(), and XXO().
std::pair< double, double > anonymous_namespace{EditMenus.cpp}::FindSelection | ( | const CommandContext & | context | ) |
Definition at line 497 of file EditMenus.cpp.
References ViewInfo::Get(), CommandContext::project, TemporarySelection::pSelectedRegion, ViewInfo::selectedRegion, NotifyingSelectedRegion::t0(), and CommandContext::temporarySelection.
Referenced by OnPaste(), and OnSplit().
void anonymous_namespace{EditMenus.cpp}::FinishCopy | ( | const Track * | n, |
const Track::Holder & | dest, | ||
TrackList & | list | ||
) |
Definition at line 37 of file EditMenus.cpp.
References TrackList::Add(), and Track::FinishCopy().
Referenced by DoPasteNothingSelected(), OnCopy(), OnCut(), OnSplitCut(), and OnSplitNew().
void anonymous_namespace{EditMenus.cpp}::ForEachCopiedWaveTrack | ( | const TrackList & | src, |
const TrackList & | dst, | ||
const std::function< void(const WaveTrack &waveTrack)> & | f | ||
) |
Definition at line 91 of file EditMenus.cpp.
References TrackList::Any(), TrackList::Channels(), and TrackList::Selected().
Referenced by EstimateCopiedBlocks(), and EstimateCopyBytesCount().
bool anonymous_namespace{EditMenus.cpp}::HasHiddenData | ( | const TrackList & | trackList | ) |
Definition at line 247 of file EditMenus.cpp.
References TrackList::Any().
Referenced by OnPaste().
void anonymous_namespace{EditMenus.cpp}::OnCopy | ( | const CommandContext & | context | ) |
Definition at line 452 of file EditMenus.cpp.
References TrackList::Create(), FinishCopy(), Clipboard::Get(), ViewInfo::Get(), TrackList::Get(), TrackPanel::Get(), LabelTrackView::Get(), WaveTrackView::Get(), CommandContext::project, and ViewInfo::selectedRegion.
Referenced by EditMenu().
void anonymous_namespace{EditMenus.cpp}::OnCut | ( | const CommandContext & | context | ) |
Definition at line 327 of file EditMenus.cpp.
References NoteTrack::Clear(), WaveTrack::ClearAndAddCutLine(), NoteTrack::Copy(), TrackList::Create(), NoteTrack::Cut(), FinishCopy(), Clipboard::Get(), ProjectHistory::Get(), ViewInfo::Get(), TrackList::Get(), AdornedRulerPanel::Get(), ProjectWindow::Get(), TrackPanel::Get(), LabelTrackView::Get(), WaveTrackView::Get(), gPrefs, SyncLock::IsSelectedOrSyncLockSelected(), CommandContext::project, ProjectHistory::PushState(), anonymous_namespace{TimeTrackVRulerControls.cpp}::ruler(), ViewInfo::selectedRegion, Track::SupportsBasicEditing(), Visit(), wxT(), and XO().
Referenced by EditMenu().
void anonymous_namespace{EditMenus.cpp}::OnDelete | ( | const CommandContext & | context | ) |
Definition at line 426 of file EditMenus.cpp.
References ProjectHistory::Get(), ViewInfo::Get(), TrackList::Get(), ProjectWindow::Get(), SyncLock::IsSelectedOrSyncLockSelected(), CommandContext::project, ProjectHistory::PushState(), ViewInfo::selectedRegion, and XO().
Referenced by EditMenu(), and ExtraEditMenu().
void anonymous_namespace{EditMenus.cpp}::OnDisjoin | ( | const CommandContext & | context | ) |
Definition at line 1116 of file EditMenus.cpp.
References ProjectHistory::Get(), ViewInfo::Get(), TrackList::Get(), ProjectWindow::Get(), CommandContext::project, ProjectHistory::PushState(), ViewInfo::selectedRegion, and XO().
Referenced by EditMenu().
void anonymous_namespace{EditMenus.cpp}::OnDuplicate | ( | const CommandContext & | context | ) |
Definition at line 838 of file EditMenus.cpp.
References ProjectHistory::Get(), ViewInfo::Get(), TrackList::Get(), ProjectWindow::Get(), CommandContext::project, ProjectHistory::PushState(), ViewInfo::selectedRegion, and XO().
Referenced by EditMenu().
void anonymous_namespace{EditMenus.cpp}::OnJoin | ( | const CommandContext & | context | ) |
Definition at line 1099 of file EditMenus.cpp.
References ProjectHistory::Get(), ViewInfo::Get(), TrackList::Get(), ProjectWindow::Get(), CommandContext::project, ProjectHistory::PushState(), ViewInfo::selectedRegion, and XO().
Referenced by EditMenu().
void anonymous_namespace{EditMenus.cpp}::OnPaste | ( | const CommandContext & | context | ) |
Definition at line 519 of file EditMenus.cpp.
References BadUserAction, TrackList::Channels(), LabelTrack::Clear(), WaveTrack::ClearAndPaste(), AudioPasteDialog::DISCARD, DoPasteNothingSelected(), DoPasteText(), DuplicateDiscardTrimmed(), EstimateCopiedBlocks(), EstimateCopyBytesCount(), FindSelection(), Clipboard::Get(), SyncLockState::Get(), TrackList::Get(), WaveTrackFactory::Get(), ProjectWindow::Get(), TrackPanel::Get(), WaveTrackView::Get(), HasHiddenData(), SyncLock::IsSelectedOrSyncLockSelected(), SyncLockState::IsSyncLocked(), SyncLock::IsSyncLockSelected(), BasicUI::MakeProgress(), CommandContext::project, ChoiceSetting::Read(), LabelTrack::ShiftLabelsOnInsert(), Track::SyncLockAdjust(), TracksBehaviorsAudioTrackPastePolicy, wxT(), and XO().
Referenced by EditMenu().
void anonymous_namespace{EditMenus.cpp}::OnPreferences | ( | const CommandContext & | context | ) |
Definition at line 1133 of file EditMenus.cpp.
References GlobalHook< VetoDialogHook, bool(wxDialog *) >::Call(), MenuManager::Get(), GetProjectFrame(), CommandContext::project, MenuCreator::RebuildMenuBar(), and PrefsDialog::ShowModal().
Referenced by EditMenu().
void anonymous_namespace{EditMenus.cpp}::OnRedo | ( | const CommandContext & | context | ) |
Definition at line 297 of file EditMenus.cpp.
References AudacityMessageBox(), Track::EnsureVisible(), TrackFocus::Get(), ProjectHistory::Get(), UndoManager::Get(), TrackList::Get(), ProjectWindow::Get(), TrackPanel::Get(), ProjectHistory::PopState(), CommandContext::project, UndoStackElem::state, and XO().
Referenced by EditMenu().
void anonymous_namespace{EditMenus.cpp}::OnSilence | ( | const CommandContext & | context | ) |
Definition at line 936 of file EditMenus.cpp.
References ProjectHistory::Get(), ViewInfo::Get(), TrackList::Get(), CommandContext::project, ProjectHistory::PushState(), ViewInfo::selectedRegion, XC, and XO().
Referenced by EditMenu().
void anonymous_namespace{EditMenus.cpp}::OnSplit | ( | const CommandContext & | context | ) |
Definition at line 976 of file EditMenus.cpp.
References TrackList::Channels(), FindSelection(), ProjectHistory::Get(), TrackList::Get(), CommandContext::project, TemporarySelection::pTrack, ProjectHistory::PushState(), CommandContext::temporarySelection, and XO().
Referenced by EditMenu().
void anonymous_namespace{EditMenus.cpp}::OnSplitCut | ( | const CommandContext & | context | ) |
Definition at line 868 of file EditMenus.cpp.
References WaveTrack::Copy(), TrackList::Create(), FinishCopy(), Clipboard::Get(), ProjectHistory::Get(), ViewInfo::Get(), TrackList::Get(), ProjectWindow::Get(), CommandContext::project, ProjectHistory::PushState(), ViewInfo::selectedRegion, WaveTrack::Silence(), WaveTrack::SplitCut(), Track::SupportsBasicEditing(), and XO().
Referenced by EditMenu().
void anonymous_namespace{EditMenus.cpp}::OnSplitDelete | ( | const CommandContext & | context | ) |
Definition at line 911 of file EditMenus.cpp.
References ProjectHistory::Get(), ViewInfo::Get(), TrackList::Get(), ProjectWindow::Get(), CommandContext::project, ProjectHistory::PushState(), ViewInfo::selectedRegion, WaveTrack::SplitDelete(), and XO().
Referenced by EditMenu().
void anonymous_namespace{EditMenus.cpp}::OnSplitNew | ( | const CommandContext & | context | ) |
Definition at line 1045 of file EditMenus.cpp.
References WaveTrack::Copy(), FinishCopy(), ProjectHistory::Get(), ViewInfo::Get(), TrackList::Get(), ProjectWindow::Get(), SampleTrack::LongSamplesToTime(), CommandContext::project, ProjectHistory::PushState(), ViewInfo::selectedRegion, WaveTrack::SplitDelete(), SampleTrack::TimeToLongSamples(), and XO().
Referenced by EditMenu().
void anonymous_namespace{EditMenus.cpp}::OnTrim | ( | const CommandContext & | context | ) |
Definition at line 952 of file EditMenus.cpp.
References ProjectHistory::Get(), ViewInfo::Get(), TrackList::Get(), ProjectWindow::Get(), CommandContext::project, ProjectHistory::PushState(), ViewInfo::selectedRegion, WaveTrack::Trim(), and XO().
Referenced by EditMenu().
void anonymous_namespace{EditMenus.cpp}::OnUndo | ( | const CommandContext & | context | ) |
Definition at line 266 of file EditMenus.cpp.
References AudacityMessageBox(), Track::EnsureVisible(), TrackFocus::Get(), ProjectHistory::Get(), UndoManager::Get(), TrackList::Get(), ProjectWindow::Get(), TrackPanel::Get(), ProjectHistory::PopState(), CommandContext::project, UndoStackElem::state, and XO().
Referenced by EditMenu().
auto anonymous_namespace{EditMenus.cpp}::canSelectAll |
Definition at line 1366 of file EditMenus.cpp.
AttachedItem anonymous_namespace{EditMenus.cpp}::sAttachment1 |
Definition at line 1344 of file EditMenus.cpp.
AttachedItem anonymous_namespace{EditMenus.cpp}::sAttachment2 |
Definition at line 1404 of file EditMenus.cpp.
auto anonymous_namespace{EditMenus.cpp}::selectAll |
Definition at line 1368 of file EditMenus.cpp.
RegisteredMenuItemEnabler anonymous_namespace{EditMenus.cpp}::selectAnyTracks |
Definition at line 1382 of file EditMenus.cpp.
RegisteredMenuItemEnabler anonymous_namespace{EditMenus.cpp}::selectTracks |
Definition at line 1374 of file EditMenus.cpp.
RegisteredMenuItemEnabler anonymous_namespace{EditMenus.cpp}::selectWaveTracks |
Definition at line 1389 of file EditMenus.cpp.
RegisteredMenuItemEnabler anonymous_namespace{EditMenus.cpp}::selectWaveTracks2 |
Definition at line 1397 of file EditMenus.cpp.