Audacity 3.2.0
Classes | Functions | Variables
anonymous_namespace{HistoryWindow.cpp} Namespace Reference

Classes

struct  SpaceUsageCalculator
 

Functions

void OnHistory (const CommandContext &context)
 

Variables

AttachedWindows::RegisteredFactory sHistoryWindowKey
 
AttachedItem sAttachment
 

Function Documentation

◆ OnHistory()

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

Definition at line 505 of file HistoryWindow.cpp.

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

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

Here is the call graph for this function:

Variable Documentation

◆ sAttachment

AttachedItem anonymous_namespace{HistoryWindow.cpp}::sAttachment

Definition at line 517 of file HistoryWindow.cpp.

◆ sHistoryWindowKey

AttachedWindows::RegisteredFactory anonymous_namespace{HistoryWindow.cpp}::sHistoryWindowKey
Initial value:
{
[]( AudacityProject &parent ) -> wxWeakRef< wxWindow > {
auto &undoManager = UndoManager::Get( parent );
return safenew HistoryDialog( &parent, &undoManager );
}
}
#define safenew
Definition: MemoryX.h:10
The top-level handle to an Audacity project. It serves as a source of events that other objects can b...
Definition: Project.h:90
Works with UndoManager to allow user to see descriptions of and undo previous commands....
Definition: HistoryWindow.h:30
static UndoManager & Get(AudacityProject &project)
Definition: UndoManager.cpp:71

Definition at line 497 of file HistoryWindow.cpp.

Referenced by OnHistory().