MCPcopy Create free account
hub / github.com/audacity/audacity / ExtraCursorMenu

Function ExtraCursorMenu

src/menus/SelectMenus.cpp:1136–1161  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1134};
1135
1136auto ExtraCursorMenu()
1137{
1138 static auto menu = std::shared_ptr{
1139 ( FinderScope{ findCommandHandler },
1140 Menu( wxT("Cursor"), XXO("&Cursor"),
1141 Command( wxT("CursorLeft"), XXO("Cursor &Left"), FN(OnCursorLeft),
1142 TracksExistFlag() | TrackPanelHasFocus(),
1143 Options{ wxT("Left") }.WantKeyUp().AllowDup() ),
1144 Command( wxT("CursorRight"), XXO("Cursor &Right"), FN(OnCursorRight),
1145 TracksExistFlag() | TrackPanelHasFocus(),
1146 Options{ wxT("Right") }.WantKeyUp().AllowDup() ),
1147 Command( wxT("CursorShortJumpLeft"), XXO("Cursor Sh&ort Jump Left"),
1148 FN(OnCursorShortJumpLeft),
1149 TracksExistFlag() | TrackPanelHasFocus(), wxT(",") ),
1150 Command( wxT("CursorShortJumpRight"), XXO("Cursor Shor&t Jump Right"),
1151 FN(OnCursorShortJumpRight),
1152 TracksExistFlag() | TrackPanelHasFocus(), wxT(".") ),
1153 Command( wxT("CursorLongJumpLeft"), XXO("Cursor Long J&ump Left"),
1154 FN(OnCursorLongJumpLeft),
1155 TracksExistFlag() | TrackPanelHasFocus(), wxT("Shift+,") ),
1156 Command( wxT("CursorLongJumpRight"), XXO("Cursor Long Ju&mp Right"),
1157 FN(OnCursorLongJumpRight),
1158 TracksExistFlag() | TrackPanelHasFocus(), wxT("Shift+.") )
1159 ) ) };
1160 return menu;
1161}
1162
1163AttachedItem sAttachment4{ Indirect(ExtraCursorMenu()),
1164 wxT("Optional/Extra/Part2")

Callers 1

SelectMenus.cppFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected