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


void OnKaraoke (const CommandContext &context)


AttachedWindows::RegisteredFactory sLyricsWindowKey
AttachedItem sAttachment

Function Documentation

◆ OnKaraoke()

void anonymous_namespace{LyricsWindow.cpp}::OnKaraoke ( const CommandContext context)

Definition at line 210 of file LyricsWindow.cpp.

212 auto &project = context.project;
214 auto lyricsWindow = &GetAttachedWindows(project).Get(sLyricsWindowKey);
215 lyricsWindow->Show();
216 lyricsWindow->Raise();
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:317
AudacityProject & project
AttachedWindows::RegisteredFactory sLyricsWindowKey

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

Here is the call graph for this function:

Variable Documentation

◆ sAttachment

AttachedItem anonymous_namespace{LyricsWindow.cpp}::sAttachment
Initial value:
Command( wxT("Karaoke"), XXO("&Karaoke"), OnKaraoke,
const ReservedCommandFlag & LabelTracksExistFlag()
XXO("&Cut/Copy/Paste Toolbar")
constexpr auto Command
Definition: MenuRegistry.h:456
void OnKaraoke(const CommandContext &context)

Definition at line 222 of file LyricsWindow.cpp.

◆ sLyricsWindowKey

AttachedWindows::RegisteredFactory anonymous_namespace{LyricsWindow.cpp}::sLyricsWindowKey
Initial value:
[]( AudacityProject &parent ) -> wxWeakRef< wxWindow > {
return safenew LyricsWindow( &parent );
#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

Definition at line 203 of file LyricsWindow.cpp.

Referenced by OnKaraoke().