![]() |
Audacity 3.2.0
|
A PrefsPanel used for setting audio quality. More...
#include <QualityPrefs.h>
Public Member Functions | |
QualityPrefs (wxWindow *parent, wxWindowID winid) | |
virtual | ~QualityPrefs () |
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 |
Private Member Functions | |
void | Populate () |
void | GetNamesAndLabels () |
void | OnSampleRateChoice (wxCommandEvent &e) |
Private Attributes | |
TranslatableStrings | mSampleRateNames |
std::vector< int > | mSampleRateLabels |
wxChoice * | mSampleRates |
wxTextCtrl * | mOtherSampleRate |
int | mOtherSampleRateValue |
Additional Inherited Members | |
![]() | |
using | Factories = std::vector< PrefsPanel::PrefsNode > |
using | Factory = std::function< PrefsPanel *(wxWindow *parent, wxWindowID winid, AudacityProject *) > |
![]() | |
static Factories & | DefaultFactories () |
A PrefsPanel used for setting audio quality.
Definition at line 28 of file QualityPrefs.h.
QualityPrefs::QualityPrefs | ( | wxWindow * | parent, |
wxWindowID | winid | ||
) |
Definition at line 39 of file QualityPrefs.cpp.
|
virtual |
Definition at line 46 of file QualityPrefs.cpp.
|
overridevirtual |
Implements PrefsPanel.
Definition at line 198 of file QualityPrefs.cpp.
References QualitySettings::DefaultSampleRate, eIsSavingToPrefs, FileConfig::Flush(), gPrefs, InitDitherers(), Setting< T >::Invalidate(), mOtherSampleRate, mOtherSampleRateValue, PopulateOrExchange(), S, and Setting< T >::Write().
|
overridevirtual |
Implements ComponentInterface.
Definition at line 55 of file QualityPrefs.cpp.
References XO().
|
private |
Gets the lists of names and lists of labels which are used in the choice controls. The names are what the user sees in the wxChoice. The corresponding labels are what gets stored.
Definition at line 87 of file QualityPrefs.cpp.
References mSampleRateLabels, mSampleRateNames, AudioIOBase::NumStandardRates, AudioIOBase::StandardRates, and XO().
Referenced by Populate().
|
overridevirtual |
Implements ComponentInterface.
Definition at line 50 of file QualityPrefs.cpp.
References QUALITY_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 QualityPrefs.cpp.
|
private |
Enables or disables the Edit box depending on whether we selected 'Other...' or not.
Definition at line 192 of file QualityPrefs.cpp.
References mOtherSampleRate, and mSampleRates.
Referenced by Populate().
|
private |
Definition at line 65 of file QualityPrefs.cpp.
References QualitySettings::DefaultSampleRate, eIsCreatingFromPrefs, GetNamesAndLabels(), mOtherSampleRateValue, OnSampleRateChoice(), PopulateOrExchange(), Setting< T >::Read(), and S.
|
override |
Definition at line 115 of file QualityPrefs.cpp.
References Resample::BestMethodSetting, Dither::BestSetting, QualitySettings::DefaultSampleRate, Resample::FastMethodSetting, Dither::FastSetting, ID_SAMPLE_RATE_CHOICE, mOtherSampleRate, mOtherSampleRateValue, mSampleRateLabels, mSampleRateNames, mSampleRates, S, QualitySettings::SampleFormatSetting, XO(), and XXO().
Referenced by Commit(), and Populate().
|
private |
Definition at line 49 of file QualityPrefs.h.
Referenced by Commit(), OnSampleRateChoice(), and PopulateOrExchange().
|
private |
Definition at line 50 of file QualityPrefs.h.
Referenced by Commit(), Populate(), and PopulateOrExchange().
|
private |
Definition at line 46 of file QualityPrefs.h.
Referenced by GetNamesAndLabels(), and PopulateOrExchange().
|
private |
Definition at line 45 of file QualityPrefs.h.
Referenced by GetNamesAndLabels(), and PopulateOrExchange().
|
private |
Definition at line 48 of file QualityPrefs.h.
Referenced by OnSampleRateChoice(), and PopulateOrExchange().