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

Function RegisterMenuItems

modules/etc/mod-null/ModNullCallback.cpp:74–93  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

72
73namespace {
74void RegisterMenuItems()
75{
76 // Get here only after the module version check passes
77 using namespace MenuRegistry;
78 // We add two new commands into the Analyze menu.
79 static AttachedItem sAttachment{ wxT("Analyze"),
80 ( FinderScope( ident ), Section( wxT("NullModule"),
81 Command(
82 _T("A New Command"), // internal name
83 XXO("1st Experimental Command..."), //displayed name
84 ModNullFN( OnFuncFirst ),
85 AudioIONotBusyFlag() ),
86 Command(
87 _T("Another New Command"),
88 XXO("2nd Experimental Command"),
89 ModNullFN( OnFuncSecond ),
90 AudioIONotBusyFlag() )
91 ) )
92 };
93}
94}
95
96// This is the function that connects us to Audacity.

Callers 1

ModuleDispatchFunction · 0.70

Calls 2

FinderScopeFunction · 0.85
SectionClass · 0.85

Tested by

no test coverage detected