Audacity  2.2.0
QualityPrefs Class Referencefinal

A PrefsPanel used for setting audio quality. More...

#include <QualityPrefs.h>

Inheritance diagram for QualityPrefs:
PrefsPanel wxTabTraversalWrapper< Base >

Public Member Functions

 QualityPrefs (wxWindow *parent)
 
virtual ~QualityPrefs ()
 
bool Commit () override
 
wxString HelpPageName () override
 
- Public Member Functions inherited from PrefsPanel
 PrefsPanel (wxWindow *parent, const wxString &title)
 
virtual ~PrefsPanel ()
 
virtual void Preview ()
 
virtual bool ShowsPreviewButton ()
 
virtual void Cancel ()
 
- Public Member Functions inherited from wxTabTraversalWrapper< Base >
template<typename... Args>
 wxTabTraversalWrapper (Args &&...args)
 
 ~wxTabTraversalWrapper ()
 

Private Member Functions

void Populate ()
 
void PopulateOrExchange (ShuttleGui &S)
 
void GetNamesAndLabels ()
 
void OnSampleRateChoice (wxCommandEvent &e)
 

Private Attributes

wxArrayString mDitherNames
 
wxArrayInt mDitherLabels
 
wxArrayString mSampleRateNames
 
wxArrayInt mSampleRateLabels
 
wxArrayString mSampleFormatNames
 
wxArrayInt mSampleFormatLabels
 
wxArrayString mConverterNames
 
wxArrayInt mConverterLabels
 
wxChoice * mSampleRates
 
wxTextCtrl * mOtherSampleRate
 
int mOtherSampleRateValue
 

Detailed Description

A PrefsPanel used for setting audio quality.

Constructor & Destructor Documentation

QualityPrefs::QualityPrefs ( wxWindow *  parent)
QualityPrefs::~QualityPrefs ( )
virtual

Member Function Documentation

bool QualityPrefs::Commit ( )
overridevirtual
void QualityPrefs::GetNamesAndLabels ( )
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.

References _(), Resample::GetMethodName(), Resample::GetNumMethods(), mConverterLabels, mConverterNames, mDitherLabels, mDitherNames, mSampleFormatLabels, mSampleFormatNames, mSampleRateLabels, mSampleRateNames, Dither::none, AudioIO::NumStandardRates, Dither::rectangle, Dither::shaped, AudioIO::StandardRates, and Dither::triangle.

Referenced by Populate().

wxString QualityPrefs::HelpPageName ( )
overridevirtual

Reimplemented from PrefsPanel.

void QualityPrefs::OnSampleRateChoice ( wxCommandEvent &  e)
private

Enables or disables the Edit box depending on whether we selected 'Other...' or not.

References mOtherSampleRate, and mSampleRates.

Referenced by Populate().

Member Data Documentation

wxArrayInt QualityPrefs::mConverterLabels
private
wxArrayString QualityPrefs::mConverterNames
private
wxArrayInt QualityPrefs::mDitherLabels
private
wxArrayString QualityPrefs::mDitherNames
private
wxTextCtrl* QualityPrefs::mOtherSampleRate
private
int QualityPrefs::mOtherSampleRateValue
private
wxArrayInt QualityPrefs::mSampleFormatLabels
private
wxArrayString QualityPrefs::mSampleFormatNames
private
wxArrayInt QualityPrefs::mSampleRateLabels
private
wxArrayString QualityPrefs::mSampleRateNames
private
wxChoice* QualityPrefs::mSampleRates
private

The documentation for this class was generated from the following files: