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

Functions

void OnOutputGain (const CommandContext &context)
 
void OnOutputGainInc (const CommandContext &context)
 
void OnOutputGainDec (const CommandContext &context)
 
void OnInputGain (const CommandContext &context)
 
void OnInputGainInc (const CommandContext &context)
 
void OnInputGainDec (const CommandContext &context)
 
auto ExtraMixerMenu ()
 

Variables

AttachedToolBarMenuItem sAttachment1
 
AttachedToolBarMenuItem sAttachment2
 
AttachedItem sAttachment4
 

Function Documentation

◆ ExtraMixerMenu()

auto anonymous_namespace{MeterToolBar.cpp}::ExtraMixerMenu ( )

Definition at line 595 of file MeterToolBar.cpp.

596{
597 static auto menu = std::shared_ptr{
598 Menu( wxT("Mixer"), XXO("Mi&xer"),
599 Command( wxT("OutputGain"), XXO("Ad&just Playback Volume..."),
601 Command( wxT("OutputGainInc"), XXO("&Increase Playback Volume"),
603 Command( wxT("OutputGainDec"), XXO("&Decrease Playback Volume"),
605 Command( wxT("InputGain"), XXO("Adj&ust Recording Volume..."),
607 Command( wxT("InputGainInc"), XXO("I&ncrease Recording Volume"),
609 Command( wxT("InputGainDec"), XXO("D&ecrease Recording Volume"),
611 ) };
612 return menu;
613}
wxT("CloseDown"))
constexpr CommandFlag AlwaysEnabledFlag
Definition: CommandFlag.h:34
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 OnOutputGain(const CommandContext &context)
void OnInputGainDec(const CommandContext &context)
void OnInputGainInc(const CommandContext &context)
void OnInputGain(const CommandContext &context)
void OnOutputGainInc(const CommandContext &context)
void OnOutputGainDec(const CommandContext &context)

References AlwaysEnabledFlag, MenuRegistry::Command, MenuRegistry::Menu, OnInputGain(), OnInputGainDec(), OnInputGainInc(), OnOutputGain(), OnOutputGainDec(), OnOutputGainInc(), wxT(), and XXO().

Here is the call graph for this function:

◆ OnInputGain()

void anonymous_namespace{MeterToolBar.cpp}::OnInputGain ( const CommandContext context)

Definition at line 573 of file MeterToolBar.cpp.

574{
575 auto &project = context.project;
576 auto &tb = MeterToolBar::Get( project, false );
577 tb.ShowInputGainDialog();
578}
const auto project
AudacityProject & project
static MeterToolBar & Get(AudacityProject &project, bool forPlayMeterToolBar)

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

Referenced by ExtraMixerMenu().

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

◆ OnInputGainDec()

void anonymous_namespace{MeterToolBar.cpp}::OnInputGainDec ( const CommandContext context)

Definition at line 587 of file MeterToolBar.cpp.

588{
589 auto &project = context.project;
590 auto &tb = MeterToolBar::Get( project, false );
591 tb.AdjustInputGain(-1);
592}

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

Referenced by ExtraMixerMenu().

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

◆ OnInputGainInc()

void anonymous_namespace{MeterToolBar.cpp}::OnInputGainInc ( const CommandContext context)

Definition at line 580 of file MeterToolBar.cpp.

581{
582 auto &project = context.project;
583 auto &tb = MeterToolBar::Get( project, false );
584 tb.AdjustInputGain(1);
585}

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

Referenced by ExtraMixerMenu().

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

◆ OnOutputGain()

void anonymous_namespace{MeterToolBar.cpp}::OnOutputGain ( const CommandContext context)

Definition at line 552 of file MeterToolBar.cpp.

553{
554 auto &project = context.project;
555 auto &tb = MeterToolBar::Get( project, true );
556 tb.ShowOutputGainDialog();
557}

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

Referenced by ExtraMixerMenu().

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

◆ OnOutputGainDec()

void anonymous_namespace{MeterToolBar.cpp}::OnOutputGainDec ( const CommandContext context)

Definition at line 566 of file MeterToolBar.cpp.

567{
568 auto &project = context.project;
569 auto &tb = MeterToolBar::Get( project, true );
570 tb.AdjustOutputGain(-1);
571}

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

Referenced by ExtraMixerMenu().

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

◆ OnOutputGainInc()

void anonymous_namespace{MeterToolBar.cpp}::OnOutputGainInc ( const CommandContext context)

Definition at line 559 of file MeterToolBar.cpp.

560{
561 auto &project = context.project;
562 auto &tb = MeterToolBar::Get( project, true );
563 tb.AdjustOutputGain(1);
564}

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

Referenced by ExtraMixerMenu().

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

Variable Documentation

◆ sAttachment1

AttachedToolBarMenuItem anonymous_namespace{MeterToolBar.cpp}::sAttachment1
Initial value:
{
wxT("ShowRecordMeterTB"), XXO("&Recording Meter Toolbar"),
{}, { MeterToolBar::ID() }
}
static Identifier ID()
Methods for MeterToolBar.
static Identifier RecordID()

Definition at line 525 of file MeterToolBar.cpp.

◆ sAttachment2

AttachedToolBarMenuItem anonymous_namespace{MeterToolBar.cpp}::sAttachment2
Initial value:
{
wxT("ShowPlayMeterTB"), XXO("&Playback Meter Toolbar"),
{}, { MeterToolBar::ID() }
}
static Identifier PlayID()

Definition at line 532 of file MeterToolBar.cpp.

◆ sAttachment4

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

Definition at line 615 of file MeterToolBar.cpp.