Audacity 3.2.0
Functions
DEFINE_VERSION_CHECK Namespace Reference

Functions

void RegisterMenuItems ()
 

Function Documentation

◆ RegisterMenuItems()

void DEFINE_VERSION_CHECK::RegisterMenuItems ( )

Definition at line 74 of file ModNullCallback.cpp.

75{
76 // Get here only after the module version check passes
77 using namespace MenuTable;
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 ),
86 Command(
87 _T("Another New Command"),
88 XXO("2nd Experimental Command"),
89 ModNullFN( OnFuncSecond ),
91 ) )
92 };
93}
wxT("CloseDown"))
const ReservedCommandFlag & AudioIONotBusyFlag()
XXO("&Cut/Copy/Paste Toolbar")
#define ModNullFN(X)
static CommandHandlerObject & ident(AudacityProject &project)
std::unique_ptr< MenuPart > Section(const Identifier &internalName, Args &&... args)
std::unique_ptr< CommandItem > Command(const CommandID &name, const TranslatableString &label_in, void(Handler::*pmf)(const CommandContext &), CommandFlag flags, const CommandManager::Options &options={}, CommandHandlerFinder finder=FinderScope::DefaultFinder())

References AudioIONotBusyFlag(), MenuTable::Command(), ident(), ModNullFN, anonymous_namespace{AdornedRulerPanel.cpp}::sAttachment, MenuTable::Section(), wxT(), and XXO().

Referenced by ModuleDispatch().

Here is the call graph for this function:
Here is the caller graph for this function: