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

Function OnPlotSpectrum

src/FreqWindow.cpp:1157–1167  ·  view source on GitHub ↗

Define our extra menu item that invokes that factory

Source from the content-addressed store, hash-verified

1155
1156// Define our extra menu item that invokes that factory
1157void OnPlotSpectrum(const CommandContext &context)
1158{
1159 auto &project = context.project;
1160 CommandManager::Get(project).RegisterLastAnalyzer(context);
1161 auto freqWindow = &GetAttachedWindows(project)
1162 .Get< FrequencyPlotDialog >( sFrequencyWindowKey );
1163
1164 freqWindow->Show(true);
1165 freqWindow->Raise();
1166 freqWindow->SetFocus();
1167}
1168
1169// Register that menu item
1170

Callers

nothing calls this directly

Calls 5

GetFunction · 0.85
RegisterLastAnalyzerMethod · 0.80
RaiseMethod · 0.80
ShowMethod · 0.45
SetFocusMethod · 0.45

Tested by

no test coverage detected