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

Method DoRepeatProcess

libraries/lib-menus/CommandManager.cpp:891–906  ·  view source on GitHub ↗

Used to invoke Repeat Last Analyzer Process for built-in, non-nyquist plug-ins.

Source from the content-addressed store, hash-verified

889
890// Used to invoke Repeat Last Analyzer Process for built-in, non-nyquist plug-ins.
891void CommandManager::DoRepeatProcess(const CommandContext& context, int id)
892{
893 mLastProcessId = 0; //Don't Process this as repeat
894 if (auto iter = mCommandNumericIDHash.find(id);
895 iter != mCommandNumericIDHash.end()
896 ) {
897 const auto entry = iter->second;
898 // Discriminate the union entry->callback by entry->finder
899 if (auto &finder = entry->finder) {
900 auto &handler = finder(context.project);
901 (handler.*(entry->callback.memberFn))(context);
902 }
903 else
904 (entry->callback.nonMemberFn)(context);
905 }
906}
907
908
909///Call this when a menu event is received.

Callers 2

OnRepeatLastToolFunction · 0.80
OnRepeatLastAnalyzerFunction · 0.80

Calls 2

findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected