Audacity 3.2.0
Public Member Functions | Private Member Functions | List of all members
QualityPrefs Class Referencefinal

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

#include <QualityPrefs.h>

Inheritance diagram for QualityPrefs:
[legend]
Collaboration diagram for QualityPrefs:
[legend]

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
 
- Public Member Functions inherited from PrefsPanel
 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 ()
 
- Public Member Functions inherited from wxPanelWrapper
 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 ()
 
- Public Member Functions inherited from wxTabTraversalWrapper< wxPanel >
 wxTabTraversalWrapper (Args &&... args)
 
 wxTabTraversalWrapper (const wxTabTraversalWrapper &)=delete
 
 wxTabTraversalWrapper (wxTabTraversalWrapper &&)=delete
 
wxTabTraversalWrapperoperator= (const wxTabTraversalWrapper &)=delete
 
wxTabTraversalWrapperoperator= (wxTabTraversalWrapper &&)=delete
 

Private Member Functions

void Populate ()
 

Additional Inherited Members

- Public Types inherited from PrefsPanel
using Factories = std::vector< PrefsPanel::PrefsNode >
 
using Factory = std::function< PrefsPanel *(wxWindow *parent, wxWindowID winid, AudacityProject *) >
 
- Static Public Member Functions inherited from PrefsPanel
static FactoriesDefaultFactories ()
 

Detailed Description

A PrefsPanel used for setting audio quality.

Definition at line 26 of file QualityPrefs.h.

Constructor & Destructor Documentation

◆ QualityPrefs()

QualityPrefs::QualityPrefs ( wxWindow *  parent,
wxWindowID  winid 
)

Definition at line 36 of file QualityPrefs.cpp.

38: PrefsPanel(parent, winid, XO("Quality"))
39{
40 Populate();
41}
XO("Cut/Copy/Paste")
PrefsPanel(wxWindow *parent, wxWindowID winid, const TranslatableString &title)
Definition: PrefsPanel.h:94

◆ ~QualityPrefs()

QualityPrefs::~QualityPrefs ( )
virtual

Definition at line 43 of file QualityPrefs.cpp.

44{
45}

Member Function Documentation

◆ Commit()

bool QualityPrefs::Commit ( )
overridevirtual

Implements PrefsPanel.

Definition at line 111 of file QualityPrefs.cpp.

112{
115
116 // Tell CopySamples() to use these ditherers now
118
119 return true;
120}
void InitDitherers()
@ eIsSavingToPrefs
Definition: ShuttleGui.h:47
#define S(N)
Definition: ToChars.cpp:64
void PopulateOrExchange(ShuttleGui &S) override
Derived from ShuttleGuiBase, an Audacity specific class for shuttling data to and from GUI.
Definition: ShuttleGui.h:630

References eIsSavingToPrefs, InitDitherers(), PopulateOrExchange(), and S.

Here is the call graph for this function:

◆ GetDescription()

TranslatableString QualityPrefs::GetDescription ( ) const
overridevirtual

Implements ComponentInterface.

Definition at line 52 of file QualityPrefs.cpp.

53{
54 return XO("Preferences for Quality");
55}

References XO().

Here is the call graph for this function:

◆ GetSymbol()

ComponentInterfaceSymbol QualityPrefs::GetSymbol ( ) const
overridevirtual

Implements ComponentInterface.

Definition at line 47 of file QualityPrefs.cpp.

48{
50}
#define QUALITY_PREFS_PLUGIN_SYMBOL
Definition: QualityPrefs.h:24

References QUALITY_PREFS_PLUGIN_SYMBOL.

◆ HelpPageName()

ManualPageID QualityPrefs::HelpPageName ( )
overridevirtual

If not empty string, the Help button is added below the panel.

Default returns empty string.

Reimplemented from PrefsPanel.

Definition at line 57 of file QualityPrefs.cpp.

58{
59 return "Quality_Preferences";
60}

◆ Populate()

void QualityPrefs::Populate ( )
private

Definition at line 62 of file QualityPrefs.cpp.

63{
64 //------------------------- Main section --------------------
65 // Now construct the GUI itself.
66 // Use 'eIsCreatingFromPrefs' so that the GUI is
67 // initialised with values from gPrefs.
70 // ----------------------- End of main section --------------
71}
@ eIsCreatingFromPrefs
Definition: ShuttleGui.h:46

References eIsCreatingFromPrefs, PopulateOrExchange(), and S.

Here is the call graph for this function:

◆ PopulateOrExchange()

void QualityPrefs::PopulateOrExchange ( ShuttleGui S)
override

Definition at line 73 of file QualityPrefs.cpp.

74{
75 S.SetBorder(2);
76 S.StartScroller();
77
78 S.StartStatic(XO("Real-time Conversion"));
79 {
80 S.StartMultiColumn(2, wxEXPAND);
81 {
82 S.TieChoice(XXO("Sample Rate Con&verter:"),
84
85 /* i18n-hint: technical term for randomization to reduce undesirable resampling artifacts */
86 S.TieChoice(XXO("&Dither:"),
88 }
89 S.EndMultiColumn();
90 }
91 S.EndStatic();
92
93 S.StartStatic(XO("High-quality Conversion"));
94 {
95 S.StartMultiColumn(2);
96 {
97 S.TieChoice(XXO("Sample Rate Conver&ter:"),
99
100 /* i18n-hint: technical term for randomization to reduce undesirable resampling artifacts */
101 S.TieChoice(XXO("Dit&her:"),
103 }
104 S.EndMultiColumn();
105 }
106 S.EndStatic();
107 S.EndScroller();
108
109}
XXO("&Cut/Copy/Paste Toolbar")
static EnumSetting< DitherType > BestSetting
Definition: Dither.h:29
static EnumSetting< DitherType > FastSetting
Definition: Dither.h:28
static EnumSetting< int > FastMethodSetting
Definition: Resample.h:42
static EnumSetting< int > BestMethodSetting
Definition: Resample.h:43

References Resample::BestMethodSetting, Dither::BestSetting, Resample::FastMethodSetting, Dither::FastSetting, S, XO(), and XXO().

Referenced by Commit(), and Populate().

Here is the call graph for this function:
Here is the caller graph for this function:

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