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

Functions

void OnInputDevice (const CommandContext &context)
 
void OnOutputDevice (const CommandContext &context)
 
void OnInputChannels (const CommandContext &context)
 
void OnAudioHost (const CommandContext &context)
 
auto ExtraDeviceMenu ()
 

Variables

AttachedToolBarMenuItem sAttachment
 
AttachedItem sAttachment2
 

Function Documentation

◆ ExtraDeviceMenu()

auto anonymous_namespace{DeviceToolBar.cpp}::ExtraDeviceMenu ( )

Definition at line 809 of file DeviceToolBar.cpp.

810{
811 static auto menu = std::shared_ptr{
812 Menu( wxT("Device"), XXO("De&vice"),
813 Command( wxT("InputDevice"), XXO("Change &Recording Device..."),
815 AudioIONotBusyFlag(), wxT("Shift+I") ),
816 Command( wxT("OutputDevice"), XXO("Change &Playback Device..."),
818 AudioIONotBusyFlag(), wxT("Shift+O") ),
819 Command( wxT("AudioHost"), XXO("Change Audio &Host..."), OnAudioHost,
820 AudioIONotBusyFlag(), wxT("Shift+H") ),
821 Command( wxT("InputChannels"), XXO("Change Recording Cha&nnels..."),
823 AudioIONotBusyFlag(), wxT("Shift+N") )
824 ) };
825 return menu;
826}
wxT("CloseDown"))
const ReservedCommandFlag & AudioIONotBusyFlag()
XXO("&Cut/Copy/Paste Toolbar")
constexpr auto Command
Definition: MenuRegistry.h:456
constexpr auto Menu
Items will appear in a main toolbar menu or in a sub-menu.
Definition: MenuRegistry.h:445
void OnInputDevice(const CommandContext &context)
void OnInputChannels(const CommandContext &context)
void OnAudioHost(const CommandContext &context)
void OnOutputDevice(const CommandContext &context)

References AudioIONotBusyFlag(), MenuRegistry::Command, MenuRegistry::Menu, OnAudioHost(), OnInputChannels(), OnInputDevice(), OnOutputDevice(), wxT(), and XXO().

Here is the call graph for this function:

◆ OnAudioHost()

void anonymous_namespace{DeviceToolBar.cpp}::OnAudioHost ( const CommandContext context)

Definition at line 798 of file DeviceToolBar.cpp.

799{
800 auto &project = context.project;
801 auto &tb = DeviceToolBar::Get( project );
802 tb.ShowHostDialog();
803}
const auto project
AudacityProject & project
static DeviceToolBar & Get(AudacityProject &project)

References DeviceToolBar::Get(), CommandContext::project, and project.

Referenced by ExtraDeviceMenu().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ OnInputChannels()

void anonymous_namespace{DeviceToolBar.cpp}::OnInputChannels ( const CommandContext context)

Definition at line 791 of file DeviceToolBar.cpp.

792{
793 auto &project = context.project;
794 auto &tb = DeviceToolBar::Get( project );
795 tb.ShowChannelsDialog();
796}

References DeviceToolBar::Get(), CommandContext::project, and project.

Referenced by ExtraDeviceMenu().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ OnInputDevice()

void anonymous_namespace{DeviceToolBar.cpp}::OnInputDevice ( const CommandContext context)

Definition at line 777 of file DeviceToolBar.cpp.

778{
779 auto &project = context.project;
780 auto &tb = DeviceToolBar::Get( project );
781 tb.ShowInputDialog();
782}

References DeviceToolBar::Get(), CommandContext::project, and project.

Referenced by ExtraDeviceMenu().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ OnOutputDevice()

void anonymous_namespace{DeviceToolBar.cpp}::OnOutputDevice ( const CommandContext context)

Definition at line 784 of file DeviceToolBar.cpp.

785{
786 auto &project = context.project;
787 auto &tb = DeviceToolBar::Get( project );
788 tb.ShowOutputDialog();
789}

References DeviceToolBar::Get(), CommandContext::project, and project.

Referenced by ExtraDeviceMenu().

Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ sAttachment

AttachedToolBarMenuItem anonymous_namespace{DeviceToolBar.cpp}::sAttachment
Initial value:
{
DeviceToolBar::ID(), wxT("ShowDeviceTB"), XXO("&Device Toolbar")
}
static Identifier ID()

Definition at line 764 of file DeviceToolBar.cpp.

◆ sAttachment2

AttachedItem anonymous_namespace{DeviceToolBar.cpp}::sAttachment2
Initial value:
Placement{ wxT("Optional/Extra/Part1"), { OrderingHint::End } }
}
std::unique_ptr< detail::IndirectItem< Item > > Indirect(const std::shared_ptr< Item > &ptr)
A convenience function.
Definition: Registry.h:175

Definition at line 828 of file DeviceToolBar.cpp.