![]() |
Audacity 3.2.0
|
A PrefsPanel for general GUI preferences. More...
#include <GUIPrefs.h>
Public Member Functions | |
GUIPrefs (wxWindow *parent, wxWindowID winid) | |
~GUIPrefs () | |
ComponentInterfaceSymbol | GetSymbol () const override |
TranslatableString | GetDescription () const override |
bool | Commit () override |
ManualPageID | HelpPageName () override |
If not empty string, the Help button is added below the panel. More... | |
void | PopulateOrExchange (ShuttleGui &S) override |
![]() | |
PrefsPanel (wxWindow *parent, wxWindowID winid, const TranslatableString &title) | |
virtual | ~PrefsPanel () |
virtual void | Preview () |
virtual bool | Commit ()=0 |
virtual PluginPath | GetPath () const override |
virtual VendorSymbol | GetVendor () const override |
virtual wxString | GetVersion () const override |
virtual bool | ShowsPreviewButton () |
virtual void | PopulateOrExchange (ShuttleGui &WXUNUSED(S)) |
virtual ManualPageID | HelpPageName () |
If not empty string, the Help button is added below the panel. More... | |
virtual void | Cancel () |
![]() | |
wxPanelWrapper () | |
wxPanelWrapper (wxWindow *parent, wxWindowID winid=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxTAB_TRAVERSAL|wxNO_BORDER, const TranslatableString &name=XO("Panel")) | |
bool | Create (wxWindow *parent, wxWindowID winid=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxTAB_TRAVERSAL|wxNO_BORDER, const TranslatableString &name=XO("Panel")) |
void | SetLabel (const TranslatableString &label) |
void | SetName (const TranslatableString &name) |
void | SetToolTip (const TranslatableString &toolTip) |
void | SetName () |
![]() | |
wxTabTraversalWrapper (Args &&... args) | |
wxTabTraversalWrapper (const wxTabTraversalWrapper &)=delete | |
wxTabTraversalWrapper (wxTabTraversalWrapper &&)=delete | |
wxTabTraversalWrapper & | operator= (const wxTabTraversalWrapper &)=delete |
wxTabTraversalWrapper & | operator= (wxTabTraversalWrapper &&)=delete |
Static Public Member Functions | |
static void | GetRangeChoices (TranslatableStrings *pChoices, wxArrayStringEx *pCodes, int *pDefaultRangeIndex=nullptr) |
static void | GetLTSChoices (TranslatableStrings *pChoices, wxArrayStringEx *pCodes, int *pDefaultIndex=nullptr) |
![]() | |
static Factories & | DefaultFactories () |
Private Member Functions | |
void | Populate () |
Private Attributes | |
wxArrayStringEx | mLangCodes |
TranslatableStrings | mLangNames |
wxArrayStringEx | mRangeCodes |
TranslatableStrings | mRangeChoices |
int | mDefaultRangeIndex |
TranslatableStrings | mUTSNames |
std::vector< int > | mUTSLabels |
wxArrayStringEx | mLTSCodes |
TranslatableStrings | mLTSChoices |
int | mDefaultLTSIndex |
Additional Inherited Members | |
![]() | |
using | Factories = std::vector< PrefsPanel::PrefsNode > |
using | Factory = std::function< PrefsPanel *(wxWindow *parent, wxWindowID winid, AudacityProject *) > |
A PrefsPanel for general GUI preferences.
Definition at line 25 of file GUIPrefs.h.
GUIPrefs::GUIPrefs | ( | wxWindow * | parent, |
wxWindowID | winid | ||
) |
Definition at line 39 of file GUIPrefs.cpp.
References Populate().
GUIPrefs::~GUIPrefs | ( | ) |
Definition at line 46 of file GUIPrefs.cpp.
|
overridevirtual |
Implements PrefsPanel.
Definition at line 257 of file GUIPrefs.cpp.
References AColor::ApplyUpdatedImages(), BeatsPerMinute, DecibelScaleCutoff, ThemeBase::DeleteUnusedThemes(), eIsSavingToPrefs, FileConfig::Flush(), gPrefs, GUIBlendThemes, Setting< T >::Invalidate(), ThemeBase::LoadPreferredTheme(), LowerTimeSignature, PopulateOrExchange(), S, GUISettings::SetLang(), theTheme, UpperTimeSignature, and wxT().
|
overridevirtual |
Implements ComponentInterface.
Definition at line 55 of file GUIPrefs.cpp.
References XO().
|
static |
Definition at line 102 of file GUIPrefs.cpp.
References flag, Verbatim(), and wxT().
Referenced by Populate().
|
static |
Definition at line 65 of file GUIPrefs.cpp.
Referenced by WaveformSettings::ConvertToActualDBRange(), WaveformSettings::ConvertToEnumeratedDBRange(), Populate(), and WaveformPrefs::Populate().
|
overridevirtual |
Implements ComponentInterface.
Definition at line 50 of file GUIPrefs.cpp.
References GUI_PREFS_PLUGIN_SYMBOL.
|
overridevirtual |
If not empty string, the Help button is added below the panel.
Default returns empty string.
Reimplemented from PrefsPanel.
Definition at line 60 of file GUIPrefs.cpp.
|
private |
Definition at line 133 of file GUIPrefs.cpp.
References FileNames::AudacityPathList(), eIsCreatingFromPrefs, Languages::GetLanguages(), GetLTSChoices(), GetRangeChoices(), wxArrayStringEx::insert(), mDefaultLTSIndex, mDefaultRangeIndex, mLangCodes, mLangNames, mLTSChoices, mLTSCodes, mRangeChoices, mRangeCodes, PopulateOrExchange(), and S.
Referenced by GUIPrefs().
|
override |
Definition at line 165 of file GUIPrefs.cpp.
References BeatsPerMinute, ByColumns, DecibelScaleCutoff, GUIBlendThemes, GUITheme(), LowerTimeSignature, mDefaultLTSIndex, mDefaultRangeIndex, mLangCodes, mLangNames, mLTSChoices, mLTSCodes, mRangeChoices, mRangeCodes, S, UpperTimeSignature, wxT(), XO(), and XXO().
Referenced by Commit(), and Populate().
|
private |
Definition at line 64 of file GUIPrefs.h.
Referenced by Populate(), and PopulateOrExchange().
|
private |
Definition at line 57 of file GUIPrefs.h.
Referenced by Populate(), and PopulateOrExchange().
|
private |
Definition at line 52 of file GUIPrefs.h.
Referenced by Populate(), and PopulateOrExchange().
|
private |
Definition at line 53 of file GUIPrefs.h.
Referenced by Populate(), and PopulateOrExchange().
|
private |
Definition at line 63 of file GUIPrefs.h.
Referenced by Populate(), and PopulateOrExchange().
|
private |
Definition at line 62 of file GUIPrefs.h.
Referenced by Populate(), and PopulateOrExchange().
|
private |
Definition at line 56 of file GUIPrefs.h.
Referenced by Populate(), and PopulateOrExchange().
|
private |
Definition at line 55 of file GUIPrefs.h.
Referenced by Populate(), and PopulateOrExchange().
|
private |
Definition at line 60 of file GUIPrefs.h.
|
private |
Definition at line 59 of file GUIPrefs.h.