Audacity 3.2.0
Functions
anonymous_namespace{Contrast.cpp}::anonymous_namespace{Contrast.cpp} Namespace Reference

Functions

void OnContrast (const CommandContext &context)
 

Function Documentation

◆ OnContrast()

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

Definition at line 582 of file Contrast.cpp.

583 {
584 auto &project = context.project;
586 auto contrastDialog = &GetAttachedWindows(project)
588
589 contrastDialog->CentreOnParent();
590 contrastDialog->Show();
591 }
AUDACITY_DLL_API AttachedWindows & GetAttachedWindows(AudacityProject &project)
const auto 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:318
AudacityProject & project
void RegisterLastAnalyzer(const CommandContext &context)
static CommandManager & Get(AudacityProject &project)
AttachedWindows::RegisteredFactory sContrastDialogKey
Definition: Contrast.cpp:570

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

Here is the call graph for this function: