Audacity 3.2.0
|
Classes | |
struct | SeekInfo |
Enumerations | |
enum | CursorDirection { DIRECTION_LEFT = -1 , DIRECTION_RIGHT = +1 } |
enum | SelectionOperation { SELECTION_EXTEND , SELECTION_CONTRACT , CURSOR_MOVE } |
enum | TimeUnit { TIME_UNIT_SECONDS , TIME_UNIT_PIXELS } |
Functions | |
constexpr auto | GetWindowSize (double projectRate) |
double | NearestZeroCrossing (AudacityProject &project, double t0) |
bool | OnlyHandleKeyUp (const CommandContext &context) |
void | SeekWhenAudioActive (double seekStep, wxLongLong &lastSelectionAdjustment) |
double | GridMove (AudacityProject &project, double t, int minPix) |
double | OffsetTime (AudacityProject &project, double t, double offset, TimeUnit timeUnit, SnapMode snapMode) |
void | MoveWhenAudioInactive (AudacityProject &project, double seekStep, TimeUnit timeUnit) |
void | SeekWhenAudioInactive (AudacityProject &project, double seekStep, TimeUnit timeUnit, SelectionOperation operation) |
void | SeekLeftOrRight (AudacityProject &project, double direction, SelectionOperation operation, SeekInfo &info) |
void | DoCursorMove (AudacityProject &project, double seekStep, wxLongLong &lastSelectionAdjustment) |
void | DoBoundaryMove (AudacityProject &project, int step, SeekInfo &info) |
auto | SelectMenu () |
auto | ExtraSelectionMenu () |
auto | CursorMenu () |
auto | ExtraCursorMenu () |
auto | ExtraSeekMenu () |
Variables | |
AttachedItem | sAttachment1 { Indirect(SelectMenu()) } |
AttachedItem | sAttachment2 |
AttachedItem | sAttachment0 |
AttachedItem | sAttachment4 |
AttachedItem | sAttachment5 |
enum anonymous_namespace{SelectMenus.cpp}::CursorDirection |
Enumerator | |
---|---|
DIRECTION_LEFT | |
DIRECTION_RIGHT |
Definition at line 132 of file SelectMenus.cpp.
enum anonymous_namespace{SelectMenus.cpp}::SelectionOperation |
Enumerator | |
---|---|
SELECTION_EXTEND | |
SELECTION_CONTRACT | |
CURSOR_MOVE |
Definition at line 137 of file SelectMenus.cpp.
enum anonymous_namespace{SelectMenus.cpp}::TimeUnit |
Enumerator | |
---|---|
TIME_UNIT_SECONDS | |
TIME_UNIT_PIXELS |
Definition at line 143 of file SelectMenus.cpp.
auto anonymous_namespace{SelectMenus.cpp}::CursorMenu | ( | ) |
Definition at line 1091 of file SelectMenus.cpp.
References AudioIONotBusyFlag(), CanStopAudioStreamFlag(), anonymous_namespace{TimerRecordDialog.cpp}::CanStopFlags, MenuRegistry::Command, EditableTracksSelectedFlag(), findCommandHandler(), FN, MenuRegistry::Options::LongName(), MenuRegistry::Menu, TimeSelectedFlag(), wxT(), XO(), and XXO().
void anonymous_namespace{SelectMenus.cpp}::DoBoundaryMove | ( | AudacityProject & | project, |
int | step, | ||
SeekInfo & | info | ||
) |
Definition at line 368 of file SelectMenus.cpp.
References details::end(), AudioIO::Get(), ProjectAudioIO::Get(), ProjectHistory::Get(), ViewInfo::Get(), TrackList::Get(), Viewport::Get(), ProjectAudioIO::IsAudioActive(), min(), anonymous_namespace{SelectMenus.cpp}::SeekInfo::mLastSelectionAdjustment, ProjectHistory::ModifyState(), project, and tracks.
Referenced by SelectActions::Handler::OnSelSetExtendLeft(), and SelectActions::Handler::OnSelSetExtendRight().
void anonymous_namespace{SelectMenus.cpp}::DoCursorMove | ( | AudacityProject & | project, |
double | seekStep, | ||
wxLongLong & | lastSelectionAdjustment | ||
) |
Definition at line 352 of file SelectMenus.cpp.
References ProjectAudioIO::Get(), ProjectHistory::Get(), ProjectHistory::ModifyState(), MoveWhenAudioInactive(), project, SeekWhenAudioActive(), and TIME_UNIT_SECONDS.
Referenced by SelectActions::Handler::OnCursorLongJumpLeft(), SelectActions::Handler::OnCursorLongJumpRight(), SelectActions::Handler::OnCursorShortJumpLeft(), and SelectActions::Handler::OnCursorShortJumpRight().
auto anonymous_namespace{SelectMenus.cpp}::ExtraCursorMenu | ( | ) |
Definition at line 1136 of file SelectMenus.cpp.
References MenuRegistry::Command, findCommandHandler(), FN, MenuRegistry::Menu, TrackPanelHasFocus(), TracksExistFlag(), wxT(), and XXO().
auto anonymous_namespace{SelectMenus.cpp}::ExtraSeekMenu | ( | ) |
Definition at line 1167 of file SelectMenus.cpp.
References AudioIOBusyFlag(), MenuRegistry::Command, findCommandHandler(), FN, MenuRegistry::Menu, wxT(), and XXO().
auto anonymous_namespace{SelectMenus.cpp}::ExtraSelectionMenu | ( | ) |
Definition at line 1044 of file SelectMenus.cpp.
References AlwaysEnabledFlag, MenuRegistry::Command, findCommandHandler(), FN, MenuRegistry::Menu, TrackPanelHasFocus(), TracksExistFlag(), wxT(), and XXO().
|
constexpr |
Definition at line 31 of file SelectMenus.cpp.
Referenced by NearestZeroCrossing(), and SelectActions::Handler::OnZeroCrossing().
double anonymous_namespace{SelectMenus.cpp}::GridMove | ( | AudacityProject & | project, |
double | t, | ||
int | minPix | ||
) |
Definition at line 176 of file SelectMenus.cpp.
References ProjectSnap::Get(), ViewInfo::Get(), and project.
Referenced by OffsetTime().
void anonymous_namespace{SelectMenus.cpp}::MoveWhenAudioInactive | ( | AudacityProject & | project, |
double | seekStep, | ||
TimeUnit | timeUnit | ||
) |
Definition at line 210 of file SelectMenus.cpp.
References ProjectSnap::Get(), ViewInfo::Get(), TrackList::Get(), Viewport::Get(), AdornedRulerPanel::Get(), TrackPanel::Get(), OffsetTime(), project, anonymous_namespace{TimeTrackVRulerControls.cpp}::ruler(), settings(), SNAP_OFF, and tracks.
Referenced by DoCursorMove(), and SeekWhenAudioInactive().
double anonymous_namespace{SelectMenus.cpp}::NearestZeroCrossing | ( | AudacityProject & | project, |
double | t0 | ||
) |
Definition at line 36 of file SelectMenus.cpp.
References fillTwo, ProjectRate::Get(), TrackList::Get(), ProjectRate::GetRate(), GetWindowSize(), anonymous_namespace{StretchingSequenceIntegrationTest.cpp}::iChannel, min(), project, and tracks.
Referenced by SelectActions::Handler::OnZeroCrossing().
double anonymous_namespace{SelectMenus.cpp}::OffsetTime | ( | AudacityProject & | project, |
double | t, | ||
double | offset, | ||
TimeUnit | timeUnit, | ||
SnapMode | snapMode | ||
) |
Definition at line 194 of file SelectMenus.cpp.
References ViewInfo::Get(), GridMove(), project, SNAP_OFF, and TIME_UNIT_SECONDS.
Referenced by MoveWhenAudioInactive(), and SeekWhenAudioInactive().
bool anonymous_namespace{SelectMenus.cpp}::OnlyHandleKeyUp | ( | const CommandContext & | context | ) |
Definition at line 117 of file SelectMenus.cpp.
References ProjectAudioIO::Get(), ProjectHistory::Get(), ProjectAudioIO::IsAudioActive(), ProjectHistory::ModifyState(), CommandContext::pEvt, CommandContext::project, and project.
Referenced by SelectActions::Handler::OnCursorLeft(), SelectActions::Handler::OnCursorRight(), SelectActions::Handler::OnSelContractLeft(), SelectActions::Handler::OnSelContractRight(), SelectActions::Handler::OnSelExtendLeft(), and SelectActions::Handler::OnSelExtendRight().
void anonymous_namespace{SelectMenus.cpp}::SeekLeftOrRight | ( | AudacityProject & | project, |
double | direction, | ||
SelectionOperation | operation, | ||
SeekInfo & | info | ||
) |
Definition at line 314 of file SelectMenus.cpp.
References CURSOR_MOVE, ProjectAudioIO::Get(), anonymous_namespace{SelectMenus.cpp}::SeekInfo::mLastSelectionAdjustment, anonymous_namespace{SelectMenus.cpp}::SeekInfo::mSeekLong, anonymous_namespace{SelectMenus.cpp}::SeekInfo::mSeekShort, project, SeekWhenAudioActive(), SeekWhenAudioInactive(), SELECTION_EXTEND, and TIME_UNIT_PIXELS.
Referenced by SelectActions::Handler::OnCursorLeft(), SelectActions::Handler::OnCursorRight(), SelectActions::Handler::OnSeekLeftLong(), SelectActions::Handler::OnSeekLeftShort(), SelectActions::Handler::OnSeekRightLong(), SelectActions::Handler::OnSeekRightShort(), SelectActions::Handler::OnSelContractLeft(), SelectActions::Handler::OnSelContractRight(), SelectActions::Handler::OnSelExtendLeft(), and SelectActions::Handler::OnSelExtendRight().
void anonymous_namespace{SelectMenus.cpp}::SeekWhenAudioActive | ( | double | seekStep, |
wxLongLong & | lastSelectionAdjustment | ||
) |
Definition at line 155 of file SelectMenus.cpp.
References AudioIO::Get().
Referenced by DoCursorMove(), and SeekLeftOrRight().
void anonymous_namespace{SelectMenus.cpp}::SeekWhenAudioInactive | ( | AudacityProject & | project, |
double | seekStep, | ||
TimeUnit | timeUnit, | ||
SelectionOperation | operation | ||
) |
Definition at line 269 of file SelectMenus.cpp.
References CURSOR_MOVE, details::end(), ProjectSnap::Get(), ViewInfo::Get(), TrackList::Get(), Viewport::Get(), min(), MoveWhenAudioInactive(), OffsetTime(), project, SELECTION_CONTRACT, SELECTION_EXTEND, settings(), and tracks.
Referenced by SeekLeftOrRight().
auto anonymous_namespace{SelectMenus.cpp}::SelectMenu | ( | ) |
Definition at line 954 of file SelectMenus.cpp.
References AlwaysEnabledFlag, MenuRegistry::Command, EditableTracksSelectedFlag(), findCommandHandler(), FN, IsSyncLockedFlag(), MenuRegistry::Options::LongName(), MenuRegistry::Menu, MenuRegistry::Section, TracksExistFlag(), WaveTracksExistFlag(), WaveTracksSelectedFlag(), wxT(), XO(), and XXO().
AttachedItem anonymous_namespace{SelectMenus.cpp}::sAttachment0 |
Definition at line 1132 of file SelectMenus.cpp.
AttachedItem anonymous_namespace{SelectMenus.cpp}::sAttachment1 { Indirect(SelectMenu()) } |
Definition at line 1042 of file SelectMenus.cpp.
AttachedItem anonymous_namespace{SelectMenus.cpp}::sAttachment2 |
Definition at line 1085 of file SelectMenus.cpp.
AttachedItem anonymous_namespace{SelectMenus.cpp}::sAttachment4 |
Definition at line 1163 of file SelectMenus.cpp.
AttachedItem anonymous_namespace{SelectMenus.cpp}::sAttachment5 |
Definition at line 1189 of file SelectMenus.cpp.