Audacity 3.2.0
|
Namespace for functions for Clip menu. More...
Classes | |
struct | FoundClip |
struct | FoundClipBoundary |
struct | FoundTrack |
Variables | |
AttachedItem | sAttachment1 { Indirect(ClipSelectMenu()), wxT("Select/Basic") } |
AttachedItem | sAttachment2 |
AttachedItem | sAttachment3 |
Namespace for functions for Clip menu.
double anonymous_namespace{ClipMenus.cpp}::AdjustForFindingEndTimes | ( | const WaveTrack::IntervalConstHolders & | clips, |
double | time | ||
) |
Definition at line 82 of file ClipMenus.cpp.
References WaveClipUtilities::SharesBoundaryWithNextClip().
Referenced by FindNextClipBoundary(), and FindPrevClipBoundary().
double anonymous_namespace{ClipMenus.cpp}::AdjustForFindingStartTimes | ( | const WaveTrack::IntervalConstHolders & | clips, |
double | time | ||
) |
Definition at line 60 of file ClipMenus.cpp.
References WaveClipUtilities::SharesBoundaryWithNextClip().
Referenced by FindNextClip(), FindNextClipBoundary(), FindPrevClip(), and FindPrevClipBoundary().
TranslatableString anonymous_namespace{ClipMenus.cpp}::ClipBoundaryMessage | ( | const std::vector< FoundClipBoundary > & | results | ) |
Definition at line 262 of file ClipMenus.cpp.
References TranslatableString::empty(), str, XO(), and XP.
Referenced by DoCursorClipBoundary(), and DoSelectClipBoundary().
auto anonymous_namespace{ClipMenus.cpp}::ClipCursorItems | ( | ) |
Definition at line 768 of file ClipMenus.cpp.
References MenuRegistry::Command, MenuRegistry::Items, MenuRegistry::Options::LongName(), OnCursorNextClipBoundary(), OnCursorPrevClipBoundary(), WaveTracksExistFlag(), wxT(), XO(), and XXO().
auto anonymous_namespace{ClipMenus.cpp}::ClipSelectMenu | ( | ) |
Definition at line 744 of file ClipMenus.cpp.
References MenuRegistry::Command, MenuRegistry::Menu, OnSelectCursorToNextClipBoundary(), OnSelectNextClip(), OnSelectPrevClip(), OnSelectPrevClipBoundaryToCursor(), WaveTracksExistFlag(), wxT(), XO(), and XXO().
void anonymous_namespace{ClipMenus.cpp}::DoClipLeftOrRight | ( | AudacityProject & | project, |
bool | right, | ||
bool | keyUp | ||
) |
Definition at line 625 of file ClipMenus.cpp.
References CONSOLIDATE, DoClipMove(), TrackFocus::Get(), ProjectHistory::Get(), UndoManager::Get(), ViewInfo::Get(), SyncLockState::Get(), TrackList::Get(), Viewport::Get(), SyncLockState::IsSyncLocked(), project, ProjectHistory::PushState(), tracks, and XO().
Referenced by OnClipLeft(), and OnClipRight().
double anonymous_namespace{ClipMenus.cpp}::DoClipMove | ( | AudacityProject & | project, |
TrackList & | trackList, | ||
bool | syncLocked, | ||
bool | right | ||
) |
Definition at line 578 of file ClipMenus.cpp.
References AttachedVirtualFunction< Tag, Return, This, Arguments >::Call(), ClipMoveState::DoSlideHorizontal(), TrackFocus::Get(), ViewInfo::Get(), ClipMoveState::Init(), TrackShifter::Miss, project, and TrackShifter::Track.
Referenced by DoClipLeftOrRight().
void anonymous_namespace{ClipMenus.cpp}::DoCursorClipBoundary | ( | AudacityProject & | project, |
bool | next | ||
) |
Definition at line 553 of file ClipMenus.cpp.
References ClipBoundaryMessage(), FindClipBoundaries(), TrackFocus::Get(), ProjectHistory::Get(), ViewInfo::Get(), Viewport::Get(), ProjectHistory::ModifyState(), project, and ViewInfo::selectedRegion.
Referenced by OnCursorNextClipBoundary(), and OnCursorPrevClipBoundary().
void anonymous_namespace{ClipMenus.cpp}::DoSelectClip | ( | AudacityProject & | project, |
bool | next | ||
) |
Definition at line 503 of file ClipMenus.cpp.
References TranslatableString::empty(), FindClips(), TrackFocus::Get(), ProjectHistory::Get(), ViewInfo::Get(), Viewport::Get(), ProjectHistory::ModifyState(), project, ViewInfo::selectedRegion, str, XO(), and XP.
Referenced by OnSelectNextClip(), and OnSelectPrevClip().
void anonymous_namespace{ClipMenus.cpp}::DoSelectClipBoundary | ( | AudacityProject & | project, |
bool | next | ||
) |
Definition at line 331 of file ClipMenus.cpp.
References ClipBoundaryMessage(), FindClipBoundaries(), TrackFocus::Get(), ProjectHistory::Get(), ViewInfo::Get(), ProjectHistory::ModifyState(), project, and ViewInfo::selectedRegion.
Referenced by OnSelectCursorToNextClipBoundary(), and OnSelectPrevClipBoundaryToCursor().
auto anonymous_namespace{ClipMenus.cpp}::ExtraTimeShiftItems | ( | ) |
Definition at line 789 of file ClipMenus.cpp.
References MenuRegistry::Command, MenuRegistry::Items, OnClipLeft(), OnClipRight(), TrackPanelHasFocus(), TracksExistFlag(), MenuRegistry::Options::WantKeyUp(), wxT(), and XXO().
int anonymous_namespace{ClipMenus.cpp}::FindClipBoundaries | ( | AudacityProject & | project, |
double | time, | ||
bool | next, | ||
std::vector< FoundClipBoundary > & | finalResults | ||
) |
Definition at line 212 of file ClipMenus.cpp.
References FindNextClipBoundary(), FindPrevClipBoundary(), TrackList::Get(), Track::GetSelected(), project, anonymous_namespace{ClipMenus.cpp}::FoundClipBoundary::time, and tracks.
Referenced by DoCursorClipBoundary(), and DoSelectClipBoundary().
int anonymous_namespace{ClipMenus.cpp}::FindClips | ( | AudacityProject & | project, |
double | t0, | ||
double | t1, | ||
bool | next, | ||
std::vector< FoundClip > & | finalResults | ||
) |
Definition at line 435 of file ClipMenus.cpp.
References anonymous_namespace{ClipMenus.cpp}::FoundClip::endTime, FindNextClip(), FindPrevClip(), TrackList::Get(), Track::GetSelected(), project, anonymous_namespace{ClipMenus.cpp}::FoundClip::startTime, and tracks.
Referenced by DoSelectClip().
FoundClip anonymous_namespace{ClipMenus.cpp}::FindNextClip | ( | const WaveTrack * | wt, |
double | t0, | ||
double | t1 | ||
) |
Definition at line 355 of file ClipMenus.cpp.
References AdjustForFindingStartTimes(), WaveTrack::SortedIntervalArray(), and anonymous_namespace{ClipMenus.cpp}::FoundTrack::waveTrack.
Referenced by FindClips().
FoundClipBoundary anonymous_namespace{ClipMenus.cpp}::FindNextClipBoundary | ( | const WaveTrack * | wt, |
double | time | ||
) |
Definition at line 96 of file ClipMenus.cpp.
References AdjustForFindingEndTimes(), AdjustForFindingStartTimes(), WaveClipUtilities::SharesBoundaryWithNextClip(), WaveTrack::SortedIntervalArray(), and anonymous_namespace{ClipMenus.cpp}::FoundTrack::waveTrack.
Referenced by FindClipBoundaries().
FoundClip anonymous_namespace{ClipMenus.cpp}::FindPrevClip | ( | const WaveTrack * | wt, |
double | t0, | ||
double | t1 | ||
) |
Definition at line 394 of file ClipMenus.cpp.
References AdjustForFindingStartTimes(), WaveTrack::SortedIntervalArray(), and anonymous_namespace{ClipMenus.cpp}::FoundTrack::waveTrack.
Referenced by FindClips().
FoundClipBoundary anonymous_namespace{ClipMenus.cpp}::FindPrevClipBoundary | ( | const WaveTrack * | wt, |
double | time | ||
) |
Definition at line 149 of file ClipMenus.cpp.
References AdjustForFindingEndTimes(), AdjustForFindingStartTimes(), WaveClipUtilities::SharesBoundaryWithNextClip(), WaveTrack::SortedIntervalArray(), and anonymous_namespace{ClipMenus.cpp}::FoundTrack::waveTrack.
Referenced by FindClipBoundaries().
void anonymous_namespace{ClipMenus.cpp}::OnClipLeft | ( | const CommandContext & | context | ) |
Definition at line 714 of file ClipMenus.cpp.
References DoClipLeftOrRight(), CommandContext::pEvt, CommandContext::project, and project.
Referenced by ExtraTimeShiftItems().
void anonymous_namespace{ClipMenus.cpp}::OnClipRight | ( | const CommandContext & | context | ) |
Definition at line 726 of file ClipMenus.cpp.
References DoClipLeftOrRight(), CommandContext::pEvt, CommandContext::project, and project.
Referenced by ExtraTimeShiftItems().
void anonymous_namespace{ClipMenus.cpp}::OnCursorNextClipBoundary | ( | const CommandContext & | context | ) |
Definition at line 705 of file ClipMenus.cpp.
References DoCursorClipBoundary(), CommandContext::project, and project.
Referenced by ClipCursorItems().
void anonymous_namespace{ClipMenus.cpp}::OnCursorPrevClipBoundary | ( | const CommandContext & | context | ) |
Definition at line 698 of file ClipMenus.cpp.
References DoCursorClipBoundary(), CommandContext::project, and project.
Referenced by ClipCursorItems().
void anonymous_namespace{ClipMenus.cpp}::OnSelectCursorToNextClipBoundary | ( | const CommandContext & | context | ) |
Definition at line 679 of file ClipMenus.cpp.
References DoSelectClipBoundary(), CommandContext::project, and project.
Referenced by ClipSelectMenu().
void anonymous_namespace{ClipMenus.cpp}::OnSelectNextClip | ( | const CommandContext & | context | ) |
Definition at line 692 of file ClipMenus.cpp.
References DoSelectClip(), CommandContext::project, and project.
Referenced by ClipSelectMenu().
void anonymous_namespace{ClipMenus.cpp}::OnSelectPrevClip | ( | const CommandContext & | context | ) |
Definition at line 686 of file ClipMenus.cpp.
References DoSelectClip(), CommandContext::project, and project.
Referenced by ClipSelectMenu().
void anonymous_namespace{ClipMenus.cpp}::OnSelectPrevClipBoundaryToCursor | ( | const CommandContext & | context | ) |
Definition at line 672 of file ClipMenus.cpp.
References DoSelectClipBoundary(), CommandContext::project, and project.
Referenced by ClipSelectMenu().
AttachedItem anonymous_namespace{ClipMenus.cpp}::sAttachment1 { Indirect(ClipSelectMenu()), wxT("Select/Basic") } |
Definition at line 766 of file ClipMenus.cpp.
AttachedItem anonymous_namespace{ClipMenus.cpp}::sAttachment2 |
Definition at line 784 of file ClipMenus.cpp.
AttachedItem anonymous_namespace{ClipMenus.cpp}::sAttachment3 |
Definition at line 801 of file ClipMenus.cpp.