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)
 
BaseItemSharedPtr ExtraPlayAtSpeedMenu ()
 
BaseItemSharedPtr ExtraPlayAtSpeedItems ()
 

Variables

AttachedToolBarMenuItem sAttachment
 
AttachedItem sAttachment2
 
AttachedItem sAttachment3
 

Function Documentation

◆ ExtraPlayAtSpeedItems()

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

Definition at line 1166 of file TranscriptionToolBar.cpp.

1167{
1168 static BaseItemSharedPtr items{
1169 Items( "",
1170 /* i18n-hint: 'Normal Play-at-Speed' doesn't loop or cut preview. */
1171 Command( wxT("PlayAtSpeedLooped"), XXO("&Play-at-Speed"),
1173 Command( wxT("PlayAtSpeed"), XXO("Play-at-Speed &Once"),
1175 Command( wxT("PlayAtSpeedCutPreview"), XXO("Play C&ut Preview-at-Speed"),
1177 Command( wxT("SetPlaySpeed"), XXO("Ad&just Playback Speed..."),
1179 Command( wxT("PlaySpeedInc"), XXO("&Increase Playback Speed"),
1181 Command( wxT("PlaySpeedDec"), XXO("&Decrease Playback Speed"),
1183 ) };
1184 return items;
1185}
wxT("CloseDown"))
const ReservedCommandFlag & CaptureNotBusyFlag()
XXO("&Cut/Copy/Paste Toolbar")
constexpr auto Items
constexpr auto Command
std::shared_ptr< BaseItem > BaseItemSharedPtr
Definition: Registry.h:74
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(), MenuTable::Command, MenuTable::Items, OnPlayAtSpeed(), OnPlayAtSpeedCutPreview(), OnPlayAtSpeedLooped(), OnPlaySpeedDec(), OnPlaySpeedInc(), OnSetPlaySpeed(), wxT(), and XXO().

Here is the call graph for this function:

◆ ExtraPlayAtSpeedMenu()

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

Definition at line 1154 of file TranscriptionToolBar.cpp.

1155{
1156 static BaseItemSharedPtr menu{
1157 Menu( wxT("PlayAtSpeed"), XXO("&Play-at-Speed") ) };
1158 return menu;
1159}
constexpr auto Menu

References MenuTable::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 1092 of file TranscriptionToolBar.cpp.

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

References TranscriptionToolBar::Get(), and CommandContext::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 1112 of file TranscriptionToolBar.cpp.

1113{
1114 auto &project = context.project;
1115 auto tb = &TranscriptionToolBar::Get( project );
1116
1117 if (tb) {
1118 tb->PlayAtSpeed(false, true);
1119 }
1120}

References TranscriptionToolBar::Get(), and CommandContext::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 1102 of file TranscriptionToolBar.cpp.

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

References TranscriptionToolBar::Get(), and CommandContext::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 1142 of file TranscriptionToolBar.cpp.

1143{
1144 auto &project = context.project;
1145 auto tb = &TranscriptionToolBar::Get( project );
1146
1147 if (tb) {
1148 tb->AdjustPlaySpeed(-0.1f);
1149 }
1150}

References TranscriptionToolBar::Get(), and CommandContext::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 1132 of file TranscriptionToolBar.cpp.

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

References TranscriptionToolBar::Get(), and CommandContext::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 1122 of file TranscriptionToolBar.cpp.

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

References TranscriptionToolBar::Get(), and CommandContext::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 1079 of file TranscriptionToolBar.cpp.

◆ sAttachment2

AttachedItem anonymous_namespace{TranscriptionToolBar.cpp}::sAttachment2
Initial value:
{
wxT("Optional/Extra/Part1"),
}
std::unique_ptr< IndirectItem > Indirect(const BaseItemSharedPtr &ptr)
A convenience function.
Definition: Registry.h:97

Definition at line 1161 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 1187 of file TranscriptionToolBar.cpp.