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

Public Member Functions

void OnHistory (const CommandContext &context)
 

Detailed Description

Definition at line 506 of file HistoryWindow.cpp.

Member Function Documentation

◆ OnHistory()

void anonymous_namespace{HistoryWindow.cpp}::Handler::OnHistory ( const CommandContext context)
inline

Definition at line 507 of file HistoryWindow.cpp.

508 {
509 auto &project = context.project;
510
511 auto historyWindow = &GetAttachedWindows(project).Get(sHistoryWindowKey);
512 historyWindow->Show();
513 historyWindow->Raise();
514 }
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
AttachedWindows::RegisteredFactory sHistoryWindowKey

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

Here is the call graph for this function:

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