57 return XO(
"Preferences for GUI");
62 return "Interface_Preferences";
68 int *pDefaultRangeIndex
84 static const std::initializer_list<TranslatableString> sChoices = {
85 XO(
"-36 dB (shallow range for high-amplitude editing)") ,
86 XO(
"-48 dB (PCM range of 8 bit samples)") ,
87 XO(
"-60 dB (PCM range of 10 bit samples)") ,
88 XO(
"-72 dB (PCM range of 12 bit samples)") ,
89 XO(
"-84 dB (PCM range of 14 bit samples)") ,
90 XO(
"-96 dB (PCM range of 16 bit samples)") ,
91 XO(
"-120 dB (approximate limit of human hearing)") ,
92 XO(
"-145 dB (PCM range of 24 bit samples)") ,
98 if (pDefaultRangeIndex)
99 *pDefaultRangeIndex = 2;
145 S.StartStatic(
XO(
"Display"));
147 S.StartMultiColumn(2);
149 S.TieChoice(
XXO(
"&Language:"), LanguageSetting);
152 S.TieChoice(
XXO(
"Meter dB &range:"), DBSetting);
158 S.StartStatic(
XO(
"Options"));
161 S.TieCheckBox(
XXO(
"Show 'How to Get &Help' at launch"),
162 {
wxT(
"/GUI/ShowSplashScreen"),
164 S.TieCheckBox(
XXO(
"Show e&xtra menus"),
165 {
wxT(
"/GUI/ShowExtraMenus"),
167#ifdef EXPERIMENTAL_THEME_PREFS
170 S.TieCheckBox(
XXO(
"Show alternative &styling (Mac vs PC)"),
171 {
wxT(
"/GUI/ShowMac"),
174 S.TieCheckBox(
XXO(
"&Beep on completion of longer activities"),
175 {
wxT(
"/GUI/BeepOnCompletion"),
177 S.TieCheckBox(
XXO(
"Re&tain labels if selection snaps to a label"),
178 {
wxT(
"/GUI/RetainLabels"),
182 S.TieCheckBox(
XXO(
"Use mostly Left-to-Right layouts in RTL languages"),
183 {
"/GUI/RtlWorkaround",
186#ifdef EXPERIMENTAL_CEE_NUMBERS_OPTION
187 S.TieCheckBox(
XXO(
"Never use comma as decimal point"),
188 {
wxT(
"/Locale/CeeNumberFormat"),
206 if (!(lang.empty() || lang == L
"System") && (lang != usedLang)) {
233 static BoolSetting pref {
"/GUI/ShowClipping",
false };
IntSetting DecibelScaleCutoff
Negation of this value is the lowest dB level that should be shown in dB scales.
XXO("&Cut/Copy/Paste Toolbar")
BoolSetting & ShowRMSPref()
BoolSetting & ShowClippingPref()
#define GUI_PREFS_PLUGIN_SYMBOL
audacity::BasicSettings * gPrefs
THEME_API ChoiceSetting & GUITheme()
std::vector< TranslatableString > TranslatableStrings
static void ApplyUpdatedImages()
The top-level handle to an Audacity project. It serves as a source of events that other objects can b...
This specialization of Setting for bool adds a Toggle method to negate the saved value.
ComponentInterfaceSymbol pairs a persistent string identifier used internally with an optional,...
A PrefsPanel for general GUI preferences.
GUIPrefs(wxWindow *parent, wxWindowID winid)
wxArrayStringEx mRangeCodes
TranslatableString GetDescription() const override
wxArrayStringEx mLangCodes
void PopulateOrExchange(ShuttleGui &S) override
ComponentInterfaceSymbol GetSymbol() const override
static void GetRangeChoices(TranslatableStrings *pChoices, wxArrayStringEx *pCodes, int *pDefaultRangeIndex=nullptr)
TranslatableStrings mLangNames
ManualPageID HelpPageName() override
If not empty string, the Help button is added below the panel.
TranslatableStrings mRangeChoices
Base class for a panel in the PrefsDialog. Classes derived from this class include BatchPrefs,...
void Invalidate() override
Derived from ShuttleGuiBase, an Audacity specific class for shuttling data to and from GUI.
void DeleteUnusedThemes()
static bool LoadPreferredTheme()
Holds a msgid for the translation catalog; may also bind format arguments.
virtual bool Flush() noexcept=0
virtual bool Write(const wxString &key, bool value)=0
virtual bool Read(const wxString &key, bool *value) const =0
Extend wxArrayString with move operations and construction and insertion fromstd::initializer_list.
iterator insert(const_iterator pos, std::initializer_list< T > items)
FILES_API const FilePaths & AudacityPathList()
A list of directories that should be searched for Audacity files (plug-ins, help files,...
AUDACITY_DLL_API wxString SetLang(const wxString &lang)
void GetLanguages(FilePaths pathList, wxArrayString &langCodes, TranslatableStrings &langNames)
PrefsPanel::Registration sAttachment