25#include <wx/textctrl.h>
47 return XO(
"Preferences for Playback");
52 return "Playback_Preferences";
69 return "/AudioIO/UnpinnedScrubbing";
80 const auto suffix =
XO(
"seconds");
85 S.StartStatic(
XO(
"Effects Preview"));
90 .TieNumericTextBox(
XXO(
"&Length:"),
91 {
wxT(
"/AudioIO/EffectsPreviewLen"),
94 S.AddUnits(
XO(
"seconds"));
101 S.StartStatic(
XO(
"Cut Preview"));
103 S.StartThreeColumn();
106 .TieNumericTextBox(
XXO(
"&Before cut region:"),
107 {
wxT(
"/AudioIO/CutPreviewBeforeLen"),
110 S.AddUnits(
XO(
"seconds"));
113 .TieNumericTextBox(
XXO(
"&After cut region:"),
114 {
wxT(
"/AudioIO/CutPreviewAfterLen"),
117 S.AddUnits(
XO(
"seconds"));
123 S.StartStatic(
XO(
"Seek Time when playing"));
125 S.StartThreeColumn();
128 .TieNumericTextBox(
XXO(
"&Short period:"),
129 {
wxT(
"/AudioIO/SeekShortPeriod"),
132 S.AddUnits(
XO(
"seconds"));
135 .TieNumericTextBox(
XXO(
"Lo&ng period:"),
136 {
wxT(
"/AudioIO/SeekLongPeriod"),
139 S.AddUnits(
XO(
"seconds"));
145 S.StartStatic(
XO(
"Options"));
147 S.StartVerticalLay();
151 S.TieCheckBox(
XXO(
"&Micro-fades"), {
"/AudioIO/Microfades",
false});
152 S.TieCheckBox(
XXO(
"Always scrub un&pinned"),
XXO("&Cut/Copy/Paste Toolbar")
#define PLAYBACK_PREFS_PLUGIN_SYMBOL
audacity::BasicSettings * gPrefs
The top-level handle to an Audacity project. It serves as a source of events that other objects can b...
ComponentInterfaceSymbol pairs a persistent string identifier used internally with an optional,...
A PrefsPanel used to select playback options.
void PopulateOrExchange(ShuttleGui &S) override
ComponentInterfaceSymbol GetSymbol() const override
static bool GetUnpinnedScrubbingPreference()
ManualPageID HelpPageName() override
If not empty string, the Help button is added below the panel.
TranslatableString GetDescription() const override
PlaybackPrefs(wxWindow *parent, wxWindowID winid)
Base class for a panel in the PrefsDialog. Classes derived from this class include BatchPrefs,...
Derived from ShuttleGuiBase, an Audacity specific class for shuttling data to and from GUI.
Holds a msgid for the translation catalog; may also bind format arguments.
bool ReadBool(const wxString &key, bool defaultValue) const
PrefsPanel::Registration sAttachment
const char * UnpinnedScrubbingPreferenceKey()
bool UnpinnedScrubbingPreferenceDefault()