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

Functions

void OnPlayAtSpeed (const CommandContext &context)
 
void OnPlayAtSpeedLooped (const CommandContext &context)
 
void OnPlayAtSpeedCutPreview (const CommandContext &context)
 
void OnSetPlaySpeed (const CommandContext &context)
 
void OnPlaySpeedInc (const CommandContext &context)
 
void OnPlaySpeedDec (const CommandContext &context)
 
auto ExtraPlayAtSpeedMenu ()
 
auto ExtraPlayAtSpeedItems ()
 

Variables

AttachedToolBarMenuItem sAttachment
 
AttachedItem sAttachment2
 
AttachedItem sAttachment3
 

Function Documentation

◆ ExtraPlayAtSpeedItems()

auto anonymous_namespace{TranscriptionToolBar.cpp}::ExtraPlayAtSpeedItems ( )

Definition at line 1156 of file TranscriptionToolBar.cpp.

1157{
1158 static auto items = std::shared_ptr{
1159 Items( "",
1160 /* i18n-hint: 'Normal Play-at-Speed' doesn't loop or cut preview. */
1161 Command( wxT("PlayAtSpeedLooped"), XXO("&Play-at-Speed"),
1163 Command( wxT("PlayAtSpeed"), XXO("Play-at-Speed &Once"),
1165 Command( wxT("PlayAtSpeedCutPreview"), XXO("Play C&ut Preview-at-Speed"),
1167 Command( wxT("SetPlaySpeed"), XXO("Ad&just Playback Speed..."),
1169 Command( wxT("PlaySpeedInc"), XXO("&Increase Playback Speed"),
1171 Command( wxT("PlaySpeedDec"), XXO("&Decrease Playback Speed"),
1173 ) };
1174 return items;
1175}
wxT("CloseDown"))
const ReservedCommandFlag & CaptureNotBusyFlag()
XXO("&Cut/Copy/Paste Toolbar")
constexpr auto Items
Definition: MenuRegistry.h:427
constexpr auto Command
Definition: MenuRegistry.h:456
void OnPlayAtSpeedCutPreview(const CommandContext &context)
void OnPlaySpeedDec(const CommandContext &context)
void OnPlaySpeedInc(const CommandContext &context)
void OnPlayAtSpeed(const CommandContext &context)
void OnSetPlaySpeed(const CommandContext &context)
void OnPlayAtSpeedLooped(const CommandContext &context)

References CaptureNotBusyFlag(), MenuRegistry::Command, MenuRegistry::Items, OnPlayAtSpeed(), OnPlayAtSpeedCutPreview(), OnPlayAtSpeedLooped(), OnPlaySpeedDec(), OnPlaySpeedInc(), OnSetPlaySpeed(), wxT(), and XXO().

Here is the call graph for this function:

◆ ExtraPlayAtSpeedMenu()

auto anonymous_namespace{TranscriptionToolBar.cpp}::ExtraPlayAtSpeedMenu ( )

Definition at line 1145 of file TranscriptionToolBar.cpp.

1146{
1147 static auto menu = std::shared_ptr{
1148 Menu( wxT("PlayAtSpeed"), XXO("&Play-at-Speed") ) };
1149 return menu;
1150}
constexpr auto Menu
Items will appear in a main toolbar menu or in a sub-menu.
Definition: MenuRegistry.h:445

References MenuRegistry::Menu, wxT(), and XXO().

Here is the call graph for this function:

◆ OnPlayAtSpeed()

void anonymous_namespace{TranscriptionToolBar.cpp}::OnPlayAtSpeed ( const CommandContext context)

Definition at line 1083 of file TranscriptionToolBar.cpp.

1084{
1085 auto &project = context.project;
1086 auto tb = &TranscriptionToolBar::Get( project );
1087
1088 if (tb) {
1089 tb->PlayAtSpeed(false, false);
1090 }
1091}
const auto project
AudacityProject & project
static TranscriptionToolBar & Get(AudacityProject &project)

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

Referenced by ExtraPlayAtSpeedItems().

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

◆ OnPlayAtSpeedCutPreview()

void anonymous_namespace{TranscriptionToolBar.cpp}::OnPlayAtSpeedCutPreview ( const CommandContext context)

Definition at line 1103 of file TranscriptionToolBar.cpp.

1104{
1105 auto &project = context.project;
1106 auto tb = &TranscriptionToolBar::Get( project );
1107
1108 if (tb) {
1109 tb->PlayAtSpeed(false, true);
1110 }
1111}

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

Referenced by ExtraPlayAtSpeedItems().

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

◆ OnPlayAtSpeedLooped()

void anonymous_namespace{TranscriptionToolBar.cpp}::OnPlayAtSpeedLooped ( const CommandContext context)

Definition at line 1093 of file TranscriptionToolBar.cpp.

1094{
1095 auto &project = context.project;
1096 auto tb = &TranscriptionToolBar::Get( project );
1097
1098 if (tb) {
1099 tb->PlayAtSpeed(true, false);
1100 }
1101}

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

Referenced by ExtraPlayAtSpeedItems().

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

◆ OnPlaySpeedDec()

void anonymous_namespace{TranscriptionToolBar.cpp}::OnPlaySpeedDec ( const CommandContext context)

Definition at line 1133 of file TranscriptionToolBar.cpp.

1134{
1135 auto &project = context.project;
1136 auto tb = &TranscriptionToolBar::Get( project );
1137
1138 if (tb) {
1139 tb->AdjustPlaySpeed(-0.01f);
1140 }
1141}

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

Referenced by ExtraPlayAtSpeedItems().

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

◆ OnPlaySpeedInc()

void anonymous_namespace{TranscriptionToolBar.cpp}::OnPlaySpeedInc ( const CommandContext context)

Definition at line 1123 of file TranscriptionToolBar.cpp.

1124{
1125 auto &project = context.project;
1126 auto tb = &TranscriptionToolBar::Get( project );
1127
1128 if (tb) {
1129 tb->AdjustPlaySpeed(0.01f);
1130 }
1131}

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

Referenced by ExtraPlayAtSpeedItems().

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

◆ OnSetPlaySpeed()

void anonymous_namespace{TranscriptionToolBar.cpp}::OnSetPlaySpeed ( const CommandContext context)

Definition at line 1113 of file TranscriptionToolBar.cpp.

1114{
1115 auto &project = context.project;
1116 auto tb = &TranscriptionToolBar::Get( project );
1117
1118 if (tb) {
1119 tb->ShowPlaySpeedDialog();
1120 }
1121}

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

Referenced by ExtraPlayAtSpeedItems().

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

Variable Documentation

◆ sAttachment

AttachedToolBarMenuItem anonymous_namespace{TranscriptionToolBar.cpp}::sAttachment
Initial value:
{
wxT("ShowTranscriptionTB"), XXO("Pla&y-at-Speed Toolbar")
}
static Identifier ID()

Definition at line 1070 of file TranscriptionToolBar.cpp.

◆ sAttachment2

AttachedItem anonymous_namespace{TranscriptionToolBar.cpp}::sAttachment2
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 1152 of file TranscriptionToolBar.cpp.

◆ sAttachment3

AttachedItem anonymous_namespace{TranscriptionToolBar.cpp}::sAttachment3
Initial value:
Placement{ wxT("Optional/Extra/Part1/PlayAtSpeed"),
}
bool Begin(const FilePath &dataDir)
Definition: Journal.cpp:226

Definition at line 1177 of file TranscriptionToolBar.cpp.