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

Function ExtraSelectionMenu

src/menus/TimelineMenus.cpp:48–69  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

46using namespace MenuRegistry;
47
48auto 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
71AttachedItem sAttachment2 { Indirect(ExtraSelectionMenu()),
72 wxT("View/Other/Toolbars") };

Callers 1

TimelineMenus.cppFile · 0.70

Calls 1

GetTimeDisplayModeFunction · 0.85

Tested by

no test coverage detected