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 | ClearClipboard () |
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 () |
const ReservedCommandFlag & | JoinClipsAvailableFlag () |
auto | EditMenu () |
auto | ExtraEditMenu () |
using anonymous_namespace{EditMenus.cpp}::Correspondence = typedef std::vector<std::pair<Track*, const Track*> > |
Definition at line 514 of file EditMenus.cpp.
void anonymous_namespace{EditMenus.cpp}::ClearClipboard | ( | ) |
Definition at line 239 of file EditMenus.cpp.
References safenew.
Referenced by OnCopy(), and OnCut().
const ReservedCommandFlag & anonymous_namespace{EditMenus.cpp}::CutCopyAvailableFlag | ( | ) |
Definition at line 1071 of file EditMenus.cpp.
References TrackList::Any(), CommandFlagOptions::DisableDefaultMessage(), 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 128 of file EditMenus.cpp.
References TrackFocus::Get(), ProjectTimeSignature::Get(), ProjectHistory::Get(), ProjectRate::Get(), ViewInfo::Get(), TrackList::Get(), Viewport::Get(), GetProjectTempo(), ProjectRate::GetRate(), ProjectTimeSignature::GetTempo(), Track::PasteInto(), project, ProjectHistory::PushState(), QUANTIZED_TIME, ViewInfo::selectedRegion, Track::SetSelected(), Viewport::ShowTrack(), tracks, 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(), Viewport::Get(), TrackPanel::Get(), LabelTrackView::Get(), WaveChannelView::GetFirst(), 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 111 of file EditMenus.cpp.
References TrackList::Create(), and WaveTrackUtilities::DiscardTrimmed().
Referenced by FindSourceTracks().
auto anonymous_namespace{EditMenus.cpp}::EditMenu | ( | ) |
Definition at line 1121 of file EditMenus.cpp.
References AudioIONotBusyFlag(), MenuRegistry::Command, CutCopyAvailableFlag(), EditableTracksSelectedFlag(), CommandManager::Get(), JoinClipsAvailableFlag(), MenuRegistry::Menu, CommandManager::ModifyUndoMenuItems(), NoAutoSelect(), OnCopy(), OnCut(), OnDelete(), OnDisjoin(), OnDuplicate(), OnJoin(), OnPaste(), OnPreferences(), OnRedo(), OnSilence(), OnSplit(), OnSplitCut(), OnSplitDelete(), OnSplitNew(), OnTrim(), OnUndo(), project, RedoAvailableFlag(), MenuRegistry::Section, MenuCreator::Special, TimeSelectedFlag(), UndoAvailableFlag(), WaveTracksSelectedFlag(), wxT(), and XXO().
BlockArray::size_type anonymous_namespace{EditMenus.cpp}::EstimateCopiedBlocks | ( | const TrackList & | src, |
const TrackList & | dst | ||
) |
Definition at line 103 of file EditMenus.cpp.
References TrackList::Any(), and WaveTrackUtilities::CountBlocks().
Referenced by NotificationScope().
wxULongLong anonymous_namespace{EditMenus.cpp}::EstimateCopyBytesCount | ( | const TrackList & | src, |
const TrackList & | dst | ||
) |
Definition at line 91 of file EditMenus.cpp.
References TrackList::Any(), WaveTrackUtilities::GetSequenceSamplesCount(), and SAMPLE_SIZE.
Referenced by FindSourceTracks().
auto anonymous_namespace{EditMenus.cpp}::ExtraEditMenu | ( | ) |
Definition at line 1248 of file EditMenus.cpp.
References AudioIONotBusyFlag(), MenuRegistry::Command, EditableTracksSelectedFlag(), MenuRegistry::Menu, NoAutoSelect(), OnDelete(), TimeSelectedFlag(), wxT(), and XXO().
Correspondence anonymous_namespace{EditMenus.cpp}::FindCorrespondence | ( | TrackList & | dstTracks, |
const TrackList & | srcTracks | ||
) |
Definition at line 516 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 419 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 441 of file EditMenus.cpp.
References AudioPasteDialog::DISCARD, DuplicateDiscardTrimmed(), EstimateCopyBytesCount(), Clipboard::Get(), TrackList::Get(), GetProjectFrame(), HasHiddenData(), CommandContext::project, project, ChoiceSetting::Read(), tracks, TracksBehaviorsAudioTrackPastePolicy, and wxT().
Referenced by OnPaste().
Whether the source track may be pasted into the destination track.
Definition at line 503 of file EditMenus.cpp.
References ChannelGroup::NChannels(), and Track::SameKindAs().
Referenced by FindCorrespondence().
bool anonymous_namespace{EditMenus.cpp}::HasHiddenData | ( | const TrackList & | trackList | ) |
Definition at line 171 of file EditMenus.cpp.
References TrackList::Any().
Referenced by FindSourceTracks().
const ReservedCommandFlag & anonymous_namespace{EditMenus.cpp}::JoinClipsAvailableFlag | ( | ) |
Definition at line 1096 of file EditMenus.cpp.
References AudioIOBusyPred(), CommandFlagOptions::DisableDefaultMessage(), flag, ViewInfo::Get(), TrackList::Get(), WaveTrackUtilities::GetClipsIntersecting(), project, and TrackList::Selected().
Referenced by EditMenu().
auto anonymous_namespace{EditMenus.cpp}::NotificationScope | ( | const CommandContext & | context, |
const TrackList & | srcTracks | ||
) |
Definition at line 476 of file EditMenus.cpp.
References EstimateCopiedBlocks(), TrackList::Get(), WaveTrackFactory::Get(), BasicUI::MakeProgress(), CommandContext::project, project, tracks, and XO().
Referenced by OnPaste().
void anonymous_namespace{EditMenus.cpp}::OnCopy | ( | const CommandContext & | context | ) |
Definition at line 373 of file EditMenus.cpp.
References ClearClipboard(), TrackList::Create(), Clipboard::Get(), ViewInfo::Get(), TrackList::Get(), TrackPanel::Get(), LabelTrackView::Get(), WaveChannelView::GetFirst(), CommandContext::project, project, ViewInfo::selectedRegion, and tracks.
Referenced by EditMenu().
void anonymous_namespace{EditMenus.cpp}::OnCut | ( | const CommandContext & | context | ) |
Definition at line 253 of file EditMenus.cpp.
References NoteTrack::Clear(), ClearClipboard(), NoteTrack::Copy(), TrackList::Create(), NoteTrack::Cut(), Clipboard::Get(), ProjectHistory::Get(), ViewInfo::Get(), TrackList::Get(), AdornedRulerPanel::Get(), TrackPanel::Get(), LabelTrackView::Get(), WaveChannelView::GetFirst(), gPrefs, SyncLock::IsSelectedOrSyncLockSelectedP(), CommandContext::project, project, ProjectHistory::PushState(), audacity::BasicSettings::Read(), anonymous_namespace{TimeTrackVRulerControls.cpp}::ruler(), ViewInfo::selectedRegion, Track::SupportsBasicEditing(), tracks, MenuRegistry::Visit(), wxT(), and XO().
Referenced by EditMenu().
void anonymous_namespace{EditMenus.cpp}::OnDelete | ( | const CommandContext & | context | ) |
Definition at line 348 of file EditMenus.cpp.
References NotifyingSelectedRegion::duration(), ProjectHistory::Get(), ViewInfo::Get(), TrackList::Get(), SyncLock::IsSelectedOrSyncLockSelected(), CommandContext::project, 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 1000 of file EditMenus.cpp.
References ProjectHistory::Get(), ViewInfo::Get(), TrackList::Get(), CommandContext::project, project, ProjectHistory::PushState(), ViewInfo::selectedRegion, tracks, and XO().
Referenced by EditMenu().
void anonymous_namespace{EditMenus.cpp}::OnDuplicate | ( | const CommandContext & | context | ) |
Definition at line 735 of file EditMenus.cpp.
References ProjectHistory::Get(), ViewInfo::Get(), TrackList::Get(), CommandContext::project, project, ProjectHistory::PushState(), ViewInfo::selectedRegion, tracks, and XO().
Referenced by EditMenu().
void anonymous_namespace{EditMenus.cpp}::OnJoin | ( | const CommandContext & | context | ) |
Definition at line 976 of file EditMenus.cpp.
References ProjectHistory::Get(), ViewInfo::Get(), TrackList::Get(), CommandContext::project, project, ProjectHistory::PushState(), ViewInfo::selectedRegion, BasicUI::SplitProgress(), tracks, TimeStretching::WithClipRenderingProgress(), and XO().
Referenced by EditMenu().
void anonymous_namespace{EditMenus.cpp}::OnPaste | ( | const CommandContext & | context | ) |
Definition at line 546 of file EditMenus.cpp.
References AudacityMessageBox(), WaveTrack::ClearAndPaste(), DoPasteNothingSelected(), DoPasteText(), FindCorrespondence(), FindSelection(), FindSourceTracks(), TrackFocus::Get(), Clipboard::Get(), ProjectHistory::Get(), ViewInfo::Get(), SyncLockState::Get(), TrackList::Get(), Viewport::Get(), ProjectFileManager::Get(), GetEditClipsCanMove(), gPrefs, SyncLock::Group(), ProjectFileManager::Import(), SyncLockState::IsSyncLocked(), WaveTrack::NChannels(), NotificationScope(), CommandContext::project, project, ProjectHistory::PushState(), audacity::BasicSettings::ReadBool(), ViewInfo::selectedRegion, NotifyingSelectedRegion::setTimes(), Viewport::ShowTrack(), tracks, Track::TypeSwitch(), wxT(), and XO().
Referenced by EditMenu().
void anonymous_namespace{EditMenus.cpp}::OnPreferences | ( | const CommandContext & | context | ) |
Definition at line 1015 of file EditMenus.cpp.
References MenuCreator::Get(), GetProjectFrame(), CommandContext::project, project, MenuCreator::RebuildMenuBar(), and PrefsDialog::ShowModal().
Referenced by EditMenu().
void anonymous_namespace{EditMenus.cpp}::OnRedo | ( | const CommandContext & | context | ) |
Definition at line 211 of file EditMenus.cpp.
References AudacityMessageBox(), TrackFocus::Get(), ProjectHistory::Get(), UndoManager::Get(), TrackList::Get(), Viewport::Get(), TrackPanel::Get(), ProjectHistory::PopState(), CommandContext::project, project, Viewport::ShowTrack(), UndoStackElem::state, tracks, and XO().
Referenced by EditMenu().
void anonymous_namespace{EditMenus.cpp}::OnSilence | ( | const CommandContext & | context | ) |
Definition at line 818 of file EditMenus.cpp.
References ProjectHistory::Get(), ViewInfo::Get(), TrackList::Get(), CommandContext::project, project, ProjectHistory::PushState(), ViewInfo::selectedRegion, BasicUI::SplitProgress(), tracks, TimeStretching::WithClipRenderingProgress(), XC, and XO().
Referenced by EditMenu().
void anonymous_namespace{EditMenus.cpp}::OnSplit | ( | const CommandContext & | context | ) |
Definition at line 862 of file EditMenus.cpp.
References FindSelection(), ProjectHistory::Get(), TrackList::Get(), CommandContext::project, 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 762 of file EditMenus.cpp.
References WaveTrack::Copy(), TrackList::Create(), Clipboard::Get(), ProjectHistory::Get(), ViewInfo::Get(), TrackList::Get(), CommandContext::project, 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 796 of file EditMenus.cpp.
References ProjectHistory::Get(), ViewInfo::Get(), TrackList::Get(), CommandContext::project, 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 927 of file EditMenus.cpp.
References WaveTrack::Copy(), ProjectHistory::Get(), ViewInfo::Get(), TrackList::Get(), CommandContext::project, 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 842 of file EditMenus.cpp.
References ProjectHistory::Get(), ViewInfo::Get(), TrackList::Get(), CommandContext::project, 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 182 of file EditMenus.cpp.
References AudacityMessageBox(), TrackFocus::Get(), ProjectHistory::Get(), UndoManager::Get(), TrackList::Get(), Viewport::Get(), TrackPanel::Get(), ProjectHistory::PopState(), CommandContext::project, project, Viewport::ShowTrack(), UndoStackElem::state, tracks, and XO().
Referenced by EditMenu().
auto anonymous_namespace{EditMenus.cpp}::canSelectAll |
Definition at line 1264 of file EditMenus.cpp.
AttachedItem anonymous_namespace{EditMenus.cpp}::sAttachment1 { Indirect(EditMenu()) } |
Definition at line 1246 of file EditMenus.cpp.
AttachedItem anonymous_namespace{EditMenus.cpp}::sAttachment2 |
Definition at line 1302 of file EditMenus.cpp.
auto anonymous_namespace{EditMenus.cpp}::selectAll |
Definition at line 1266 of file EditMenus.cpp.
RegisteredMenuItemEnabler anonymous_namespace{EditMenus.cpp}::selectAnyTracks |
Definition at line 1280 of file EditMenus.cpp.
RegisteredMenuItemEnabler anonymous_namespace{EditMenus.cpp}::selectTracks |
Definition at line 1272 of file EditMenus.cpp.
RegisteredMenuItemEnabler anonymous_namespace{EditMenus.cpp}::selectWaveTracks |
Definition at line 1287 of file EditMenus.cpp.
RegisteredMenuItemEnabler anonymous_namespace{EditMenus.cpp}::selectWaveTracks2 |
Definition at line 1295 of file EditMenus.cpp.