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


const ReservedCommandFlagPlayableTracksExistFlag ()
void OnMixerBoard (const CommandContext &context)


AttachedWindows::RegisteredFactory sMixerBoardKey
AttachedItem sAttachment

Function Documentation

◆ OnMixerBoard()

void anonymous_namespace{MixerBoard.cpp}::OnMixerBoard ( const CommandContext context)

Definition at line 1531 of file MixerBoard.cpp.

1533 auto &project = context.project;
1535 auto mixerBoardFrame = &GetAttachedWindows(project).Get(sMixerBoardKey);
1536 mixerBoardFrame->Show();
1537 mixerBoardFrame->Raise();
1538 mixerBoardFrame->SetFocus();
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 sMixerBoardKey

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

Here is the call graph for this function:

◆ PlayableTracksExistFlag()

const ReservedCommandFlag & anonymous_namespace{MixerBoard.cpp}::PlayableTracksExistFlag ( )

Definition at line 1510 of file MixerBoard.cpp.

1510 { static ReservedCommandFlag flag{
1511 [](const AudacityProject &project){
1512 auto &tracks = TrackList::Get( project );
1513 return
1515 !tracks.Any<const NoteTrack>().empty()
1516 ||
1518 !tracks.Any<const WaveTrack>().empty()
1519 ;
1520 }
1521 }; return flag; }
static std::once_flag flag
The top-level handle to an Audacity project. It serves as a source of events that other objects can b...
Definition: Project.h:90
A Track that is used for Midi notes. (Somewhat old code).
Definition: NoteTrack.h:63
bool Any() const
Definition: Track.cpp:399
static TrackList & Get(AudacityProject &project)
Definition: Track.cpp:486
A Track that contains audio waveform data.
Definition: WaveTrack.h:57

References Track::Any(), flag, and TrackList::Get().

Here is the call graph for this function:

Variable Documentation

◆ sAttachment

AttachedItem anonymous_namespace{MixerBoard.cpp}::sAttachment
Initial value:
{ wxT("View/Windows"),
Command( wxT("MixerBoard"), XXO("&Mixer"), OnMixerBoard,
XXO("&Cut/Copy/Paste Toolbar")
std::unique_ptr< CommandItem > Command(const CommandID &name, const TranslatableString &label_in, void(Handler::*pmf)(const CommandContext &), CommandFlag flags, const CommandManager::Options &options={}, CommandHandlerFinder finder=FinderScope::DefaultFinder())
const ReservedCommandFlag & PlayableTracksExistFlag()
void OnMixerBoard(const CommandContext &context)

Definition at line 1544 of file MixerBoard.cpp.

◆ sMixerBoardKey

AttachedWindows::RegisteredFactory anonymous_namespace{MixerBoard.cpp}::sMixerBoardKey
Initial value:
[]( AudacityProject &parent ) -> wxWeakRef< wxWindow > {
return safenew MixerBoardFrame( &parent );
#define safenew
Definition: MemoryX.h:10

Definition at line 1524 of file MixerBoard.cpp.

Referenced by OnMixerBoard().