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 601 of file MeterToolBar.cpp.

602{
603 static auto menu = std::shared_ptr{
604 Menu( wxT("Mixer"), XXO("Mi&xer"),
605 Command( wxT("OutputGain"), XXO("Ad&just Playback Volume..."),
607 Command( wxT("OutputGainInc"), XXO("&Increase Playback Volume"),
609 Command( wxT("OutputGainDec"), XXO("&Decrease Playback Volume"),
611 Command( wxT("InputGain"), XXO("Adj&ust Recording Volume..."),
613 Command( wxT("InputGainInc"), XXO("I&ncrease Recording Volume"),
615 Command( wxT("InputGainDec"), XXO("D&ecrease Recording Volume"),
617 ) };
618 return menu;
619}
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 579 of file MeterToolBar.cpp.

580{
581 auto &project = context.project;
582 auto &tb = MeterToolBar::Get( project, false );
583 tb.ShowInputGainDialog();
584}
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 593 of file MeterToolBar.cpp.

594{
595 auto &project = context.project;
596 auto &tb = MeterToolBar::Get( project, false );
597 tb.AdjustInputGain(-1);
598}

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 586 of file MeterToolBar.cpp.

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

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 558 of file MeterToolBar.cpp.

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

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 572 of file MeterToolBar.cpp.

573{
574 auto &project = context.project;
575 auto &tb = MeterToolBar::Get( project, true );
576 tb.AdjustOutputGain(-1);
577}

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 565 of file MeterToolBar.cpp.

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

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 531 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 538 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 621 of file MeterToolBar.cpp.