| 46 | using namespace MenuRegistry; |
| 47 | |
| 48 | auto ExtraSelectionMenu() |
| 49 | { |
| 50 | static auto menu = std::shared_ptr{ Menu( |
| 51 | wxT("Timeline"), XXO("Tim&eline"), |
| 52 | Command( |
| 53 | wxT("MinutesAndSeconds"), XXO("Minutes and Seconds"), |
| 54 | OnSetMinutesSeconds, AlwaysEnabledFlag, |
| 55 | Options{}.CheckTest( |
| 56 | [](const AudacityProject& project) { |
| 57 | return GetTimeDisplayMode(project) == |
| 58 | TimeDisplayMode::MinutesAndSeconds; |
| 59 | })), |
| 60 | Command( |
| 61 | wxT("BeatsAndMeasures"), XXO("Beats and Measures"), |
| 62 | OnSetBeatsAndMeasures, AlwaysEnabledFlag, |
| 63 | Options{}.CheckTest( |
| 64 | [](const AudacityProject& project) { |
| 65 | return GetTimeDisplayMode(project) == |
| 66 | TimeDisplayMode::BeatsAndMeasures; |
| 67 | }))) }; |
| 68 | return menu; |
| 69 | } |
| 70 | |
| 71 | AttachedItem sAttachment2 { Indirect(ExtraSelectionMenu()), |
| 72 | wxT("View/Other/Toolbars") }; |
no test coverage detected