Audacity 3.2.0
Public Member Functions | List of all members
anonymous_namespace{FreqWindow.cpp}::Handler Struct Reference
Inheritance diagram for anonymous_namespace{FreqWindow.cpp}::Handler:
[legend]
Collaboration diagram for anonymous_namespace{FreqWindow.cpp}::Handler:
[legend]

Public Member Functions

void OnPlotSpectrum (const CommandContext &context)
 

Detailed Description

Definition at line 1215 of file FreqWindow.cpp.

Member Function Documentation

◆ OnPlotSpectrum()

void anonymous_namespace{FreqWindow.cpp}::Handler::OnPlotSpectrum ( const CommandContext context)
inline

Definition at line 1216 of file FreqWindow.cpp.

1217 {
1218 auto &project = context.project;
1219 CommandManager::Get(project).RegisterLastAnalyzer(context); //Register Plot Spectrum as Last Analyzer
1220 auto freqWindow = &GetAttachedWindows(project)
1222
1223 if( VetoDialogHook::Call( freqWindow ) )
1224 return;
1225 freqWindow->Show(true);
1226 freqWindow->Raise();
1227 freqWindow->SetFocus();
1228 }
AUDACITY_DLL_API AttachedWindows & GetAttachedWindows(AudacityProject &project)
Subclass & Get(const RegisteredFactory &key)
Get reference to an attachment, creating on demand if not present, down-cast it to Subclass.
Definition: ClientData.h:309
AudacityProject & project
void RegisterLastAnalyzer(const CommandContext &context)
static CommandManager & Get(AudacityProject &project)
Displays a spectrum plot of the waveform. Has options for selecting parameters of the plot.
Definition: FreqWindow.h:58
bool Show(bool show=true) override
Definition: FreqWindow.cpp:555
static result_type Call(Arguments &&...arguments)
Null check of the installed function is done for you.
AttachedWindows::RegisteredFactory sFrequencyWindowKey

References GlobalHook< VetoDialogHook, bool(wxDialog *) >::Call(), CommandManager::Get(), ClientData::Site< Host, ClientData, ObjectCopyingPolicy, Pointer, ObjectLockingPolicy, RegistryLockingPolicy >::Get(), GetAttachedWindows(), CommandContext::project, CommandManager::RegisterLastAnalyzer(), anonymous_namespace{FreqWindow.cpp}::sFrequencyWindowKey, and FrequencyPlotDialog::Show().

Here is the call graph for this function:

The documentation for this struct was generated from the following file: