![]() |
Audacity 3.2.0
|
Typedefs | |
using | Correspondence = std::vector< std::pair< Track *, const Track * > > |
Functions | |
bool | DoPasteText (AudacityProject &project) |
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) |
std::shared_ptr< const TrackList > | FindSourceTracks (const CommandContext &context) |
auto | NotificationScope (const CommandContext &context, const TrackList &srcTracks) |
bool | FitsInto (const Track &src, const Track &dst) |
Whether the source track may be pasted into the destination track. More... | |
Correspondence | FindCorrespondence (TrackList &dstTracks, const TrackList &srcTracks) |
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 () |
using anonymous_namespace{EditMenus.cpp}::Correspondence = typedef std::vector<std::pair<Track*, const Track*> > |
Definition at line 486 of file EditMenus.cpp.
const ReservedCommandFlag & anonymous_namespace{EditMenus.cpp}::CutCopyAvailableFlag | ( | ) |
Definition at line 998 of file EditMenus.cpp.
References TrackList::Any(), cutCopyOptions(), EditableTracksSelectedPred(), flag, TrackList::Get(), LabelTrackView::Get(), LabelTrackView::IsTextSelected(), project, and TimeSelectedPred().
Referenced by EditMenu().
void anonymous_namespace{EditMenus.cpp}::DoPasteNothingSelected | ( | AudacityProject & | project, |
const TrackList & | src, | ||
double | t0, | ||
double | t1 | ||
) |
Definition at line 122 of file EditMenus.cpp.
References Track::EnsureVisible(), TrackFocus::Get(), ProjectHistory::Get(), ProjectRate::Get(), ViewInfo::Get(), TrackList::Get(), ProjectWindow::Get(), ProjectRate::GetRate(), Track::PasteInto(), project, ProjectHistory::PushState(), QUANTIZED_TIME, ViewInfo::selectedRegion, Track::SetSelected(), tracks, and XO().
Referenced by OnPaste().
bool anonymous_namespace{EditMenus.cpp}::DoPasteText | ( | AudacityProject & | project | ) |
Definition at line 41 of file EditMenus.cpp.
References ProjectHistory::Get(), ViewInfo::Get(), TrackList::Get(), ProjectWindow::Get(), TrackPanel::Get(), LabelTrackView::Get(), WaveChannelView::Get(), LabelTrackView::GetTextEditIndex(), project, ProjectHistory::PushState(), ViewInfo::selectedRegion, tracks, and XO().
Referenced by OnPaste().
std::shared_ptr< TrackList > anonymous_namespace{EditMenus.cpp}::DuplicateDiscardTrimmed | ( | const TrackList & | src | ) |
Definition at line 104 of file EditMenus.cpp.
References TrackList::Create().
Referenced by FindSourceTracks().
BaseItemSharedPtr anonymous_namespace{EditMenus.cpp}::EditMenu | ( | ) |
Definition at line 1023 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(), project, 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 96 of file EditMenus.cpp.
References TrackList::Any().
Referenced by NotificationScope().
wxULongLong anonymous_namespace{EditMenus.cpp}::EstimateCopyBytesCount | ( | const TrackList & | src, |
const TrackList & | dst | ||
) |
Definition at line 85 of file EditMenus.cpp.
References TrackList::Any(), and SAMPLE_SIZE.
Referenced by FindSourceTracks().
BaseItemSharedPtr anonymous_namespace{EditMenus.cpp}::ExtraEditMenu | ( | ) |
Definition at line 1155 of file EditMenus.cpp.
References AudioIONotBusyFlag(), MenuTable::Command, EditableTracksSelectedFlag(), MenuTable::Menu, NoAutoSelect(), OnDelete(), TimeSelectedFlag(), wxT(), and XXO().
Correspondence anonymous_namespace{EditMenus.cpp}::FindCorrespondence | ( | TrackList & | dstTracks, |
const TrackList & | srcTracks | ||
) |
Definition at line 488 of file EditMenus.cpp.
References TrackList::Any(), FitsInto(), and TrackList::Selected().
Referenced by OnPaste().
std::pair< double, double > anonymous_namespace{EditMenus.cpp}::FindSelection | ( | const CommandContext & | context | ) |
Definition at line 393 of file EditMenus.cpp.
References ViewInfo::Get(), CommandContext::project, TemporarySelection::pSelectedRegion, ViewInfo::selectedRegion, NotifyingSelectedRegion::t0(), and CommandContext::temporarySelection.
Referenced by OnPaste(), and OnSplit().
std::shared_ptr< const TrackList > anonymous_namespace{EditMenus.cpp}::FindSourceTracks | ( | const CommandContext & | context | ) |
Definition at line 415 of file EditMenus.cpp.
References AudioPasteDialog::DISCARD, DuplicateDiscardTrimmed(), EstimateCopyBytesCount(), Clipboard::Get(), TrackList::Get(), ProjectWindow::Get(), HasHiddenData(), project, CommandContext::project, ChoiceSetting::Read(), tracks, TracksBehaviorsAudioTrackPastePolicy, and wxT().
Referenced by OnPaste().
Whether the source track may be pasted into the destination track.
Definition at line 475 of file EditMenus.cpp.
References TrackList::NChannels(), and Track::SameKindAs().
Referenced by FindCorrespondence().
bool anonymous_namespace{EditMenus.cpp}::HasHiddenData | ( | const TrackList & | trackList | ) |
Definition at line 159 of file EditMenus.cpp.
References TrackList::Any().
Referenced by FindSourceTracks().
auto anonymous_namespace{EditMenus.cpp}::NotificationScope | ( | const CommandContext & | context, |
const TrackList & | srcTracks | ||
) |
Definition at line 448 of file EditMenus.cpp.
References EstimateCopiedBlocks(), TrackList::Get(), WaveTrackFactory::Get(), BasicUI::MakeProgress(), project, CommandContext::project, tracks, and XO().
Referenced by OnPaste().
void anonymous_namespace{EditMenus.cpp}::OnCopy | ( | const CommandContext & | context | ) |
Definition at line 349 of file EditMenus.cpp.
References TrackList::Create(), Clipboard::Get(), ViewInfo::Get(), TrackList::Get(), TrackPanel::Get(), LabelTrackView::Get(), WaveChannelView::Get(), project, CommandContext::project, ViewInfo::selectedRegion, and tracks.
Referenced by EditMenu().
void anonymous_namespace{EditMenus.cpp}::OnCut | ( | const CommandContext & | context | ) |
Definition at line 229 of file EditMenus.cpp.
References NoteTrack::Clear(), NoteTrack::Copy(), TrackList::Create(), NoteTrack::Cut(), Clipboard::Get(), ProjectHistory::Get(), ViewInfo::Get(), TrackList::Get(), AdornedRulerPanel::Get(), ProjectWindow::Get(), TrackPanel::Get(), LabelTrackView::Get(), WaveChannelView::Get(), gPrefs, SyncLock::IsSelectedOrSyncLockSelected(), project, CommandContext::project, ProjectHistory::PushState(), audacity::BasicSettings::Read(), anonymous_namespace{TimeTrackVRulerControls.cpp}::ruler(), ViewInfo::selectedRegion, Track::SupportsBasicEditing(), tracks, Registry::Visit(), wxT(), and XO().
Referenced by EditMenu().
void anonymous_namespace{EditMenus.cpp}::OnDelete | ( | const CommandContext & | context | ) |
Definition at line 323 of file EditMenus.cpp.
References ProjectHistory::Get(), ViewInfo::Get(), TrackList::Get(), ProjectWindow::Get(), SyncLock::IsSelectedOrSyncLockSelected(), project, CommandContext::project, ProjectHistory::PushState(), ViewInfo::selectedRegion, tracks, and XO().
Referenced by EditMenu(), and ExtraEditMenu().
void anonymous_namespace{EditMenus.cpp}::OnDisjoin | ( | const CommandContext & | context | ) |
Definition at line 923 of file EditMenus.cpp.
References ProjectHistory::Get(), ViewInfo::Get(), TrackList::Get(), ProjectWindow::Get(), project, CommandContext::project, ProjectHistory::PushState(), ViewInfo::selectedRegion, tracks, and XO().
Referenced by EditMenu().
void anonymous_namespace{EditMenus.cpp}::OnDuplicate | ( | const CommandContext & | context | ) |
Definition at line 649 of file EditMenus.cpp.
References ProjectHistory::Get(), ViewInfo::Get(), TrackList::Get(), ProjectWindow::Get(), project, CommandContext::project, ProjectHistory::PushState(), ViewInfo::selectedRegion, tracks, and XO().
Referenced by EditMenu().
void anonymous_namespace{EditMenus.cpp}::OnJoin | ( | const CommandContext & | context | ) |
Definition at line 907 of file EditMenus.cpp.
References ProjectHistory::Get(), ViewInfo::Get(), TrackList::Get(), ProjectWindow::Get(), project, CommandContext::project, ProjectHistory::PushState(), ViewInfo::selectedRegion, tracks, and XO().
Referenced by EditMenu().
void anonymous_namespace{EditMenus.cpp}::OnPaste | ( | const CommandContext & | context | ) |
Definition at line 518 of file EditMenus.cpp.
References AudacityMessageBox(), WaveTrack::ClearAndPaste(), DoPasteNothingSelected(), DoPasteText(), Track::EnsureVisible(), FindCorrespondence(), FindSelection(), FindSourceTracks(), Clipboard::Get(), TrackFocus::Get(), ProjectHistory::Get(), ViewInfo::Get(), SyncLockState::Get(), TrackList::Get(), SyncLock::Group(), SyncLockState::IsSyncLocked(), NotificationScope(), project, CommandContext::project, ProjectHistory::PushState(), ViewInfo::selectedRegion, NotifyingSelectedRegion::setTimes(), tracks, Track::TypeSwitch(), and XO().
Referenced by EditMenu().
void anonymous_namespace{EditMenus.cpp}::OnPreferences | ( | const CommandContext & | context | ) |
Definition at line 939 of file EditMenus.cpp.
References GlobalHook< VetoDialogHook, bool(wxDialog *) >::Call(), MenuManager::Get(), GetProjectFrame(), project, CommandContext::project, MenuCreator::RebuildMenuBar(), and PrefsDialog::ShowModal().
Referenced by EditMenu().
void anonymous_namespace{EditMenus.cpp}::OnRedo | ( | const CommandContext & | context | ) |
Definition at line 199 of file EditMenus.cpp.
References AudacityMessageBox(), Track::EnsureVisible(), TrackFocus::Get(), ProjectHistory::Get(), UndoManager::Get(), TrackList::Get(), ProjectWindow::Get(), TrackPanel::Get(), ProjectHistory::PopState(), project, CommandContext::project, UndoStackElem::state, tracks, and XO().
Referenced by EditMenu().
void anonymous_namespace{EditMenus.cpp}::OnSilence | ( | const CommandContext & | context | ) |
Definition at line 736 of file EditMenus.cpp.
References ProjectHistory::Get(), ViewInfo::Get(), TrackList::Get(), BasicUI::MakeProgress(), BasicUI::ProgressShowCancel, project, CommandContext::project, ProjectHistory::PushState(), ViewInfo::selectedRegion, BasicUI::Success, tracks, XC, and XO().
Referenced by EditMenu().
void anonymous_namespace{EditMenus.cpp}::OnSplit | ( | const CommandContext & | context | ) |
Definition at line 792 of file EditMenus.cpp.
References FindSelection(), ProjectHistory::Get(), TrackList::Get(), project, CommandContext::project, TemporarySelection::pTrack, ProjectHistory::PushState(), CommandContext::temporarySelection, tracks, and XO().
Referenced by EditMenu().
void anonymous_namespace{EditMenus.cpp}::OnSplitCut | ( | const CommandContext & | context | ) |
Definition at line 678 of file EditMenus.cpp.
References WaveTrack::Copy(), TrackList::Create(), Clipboard::Get(), ProjectHistory::Get(), ViewInfo::Get(), TrackList::Get(), ProjectWindow::Get(), project, CommandContext::project, ProjectHistory::PushState(), ViewInfo::selectedRegion, WaveTrack::Silence(), WaveTrack::SplitCut(), Track::SupportsBasicEditing(), tracks, and XO().
Referenced by EditMenu().
void anonymous_namespace{EditMenus.cpp}::OnSplitDelete | ( | const CommandContext & | context | ) |
Definition at line 713 of file EditMenus.cpp.
References ProjectHistory::Get(), ViewInfo::Get(), TrackList::Get(), ProjectWindow::Get(), project, CommandContext::project, ProjectHistory::PushState(), ViewInfo::selectedRegion, WaveTrack::SplitDelete(), tracks, and XO().
Referenced by EditMenu().
void anonymous_namespace{EditMenus.cpp}::OnSplitNew | ( | const CommandContext & | context | ) |
Definition at line 857 of file EditMenus.cpp.
References WaveTrack::Copy(), ProjectHistory::Get(), ViewInfo::Get(), TrackList::Get(), ProjectWindow::Get(), project, CommandContext::project, ProjectHistory::PushState(), ViewInfo::selectedRegion, WideSampleSequence::SnapToSample(), WaveTrack::SplitDelete(), tracks, and XO().
Referenced by EditMenu().
void anonymous_namespace{EditMenus.cpp}::OnTrim | ( | const CommandContext & | context | ) |
Definition at line 771 of file EditMenus.cpp.
References ProjectHistory::Get(), ViewInfo::Get(), TrackList::Get(), ProjectWindow::Get(), project, CommandContext::project, ProjectHistory::PushState(), ViewInfo::selectedRegion, tracks, WaveTrack::Trim(), and XO().
Referenced by EditMenu().
void anonymous_namespace{EditMenus.cpp}::OnUndo | ( | const CommandContext & | context | ) |
Definition at line 168 of file EditMenus.cpp.
References AudacityMessageBox(), Track::EnsureVisible(), TrackFocus::Get(), ProjectHistory::Get(), UndoManager::Get(), TrackList::Get(), ProjectWindow::Get(), TrackPanel::Get(), ProjectHistory::PopState(), project, CommandContext::project, UndoStackElem::state, tracks, and XO().
Referenced by EditMenu().
auto anonymous_namespace{EditMenus.cpp}::canSelectAll |
Definition at line 1172 of file EditMenus.cpp.
AttachedItem anonymous_namespace{EditMenus.cpp}::sAttachment1 |
Definition at line 1150 of file EditMenus.cpp.
AttachedItem anonymous_namespace{EditMenus.cpp}::sAttachment2 |
Definition at line 1210 of file EditMenus.cpp.
auto anonymous_namespace{EditMenus.cpp}::selectAll |
Definition at line 1174 of file EditMenus.cpp.
RegisteredMenuItemEnabler anonymous_namespace{EditMenus.cpp}::selectAnyTracks |
Definition at line 1188 of file EditMenus.cpp.
RegisteredMenuItemEnabler anonymous_namespace{EditMenus.cpp}::selectTracks |
Definition at line 1180 of file EditMenus.cpp.
RegisteredMenuItemEnabler anonymous_namespace{EditMenus.cpp}::selectWaveTracks |
Definition at line 1195 of file EditMenus.cpp.
RegisteredMenuItemEnabler anonymous_namespace{EditMenus.cpp}::selectWaveTracks2 |
Definition at line 1203 of file EditMenus.cpp.