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

Public Member Functions

void OnContrast (const CommandContext &context)
 

Detailed Description

Definition at line 672 of file Contrast.cpp.

Member Function Documentation

◆ OnContrast()

void anonymous_namespace{Contrast.cpp}::Handler::OnContrast ( const CommandContext context)
inline

Definition at line 673 of file Contrast.cpp.

674 {
675 auto &project = context.project;
676 CommandManager::Get(project).RegisterLastAnalyzer(context); //Register Contrast as Last Analyzer
677 auto contrastDialog = &GetAttachedWindows(project)
679
680 contrastDialog->CentreOnParent();
681 if( VetoDialogHook::Call( contrastDialog ) )
682 return;
683 contrastDialog->Show();
684 }
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)
static result_type Call(Arguments &&...arguments)
Null check of the installed function is done for you.
AttachedWindows::RegisteredFactory sContrastDialogKey
Definition: Contrast.cpp:661

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

Here is the call graph for this function:

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