Audacity  3.0.3
QualityPrefs.h
Go to the documentation of this file.
1 /**********************************************************************
2 
3  Audacity: A Digital Audio Editor
4 
5  QualityPrefs.h
6 
7  Joshua Haberman
8  James Crook
9 
10 **********************************************************************/
11 
12 #ifndef __AUDACITY_QUALITY_PREFS__
13 #define __AUDACITY_QUALITY_PREFS__
14 
15 #include <vector>
16 #include <wx/defs.h>
17 
18 #include "PrefsPanel.h"
19 
20 class wxChoice;
21 class wxTextCtrl;
22 class ShuttleGui;
23 enum sampleFormat : unsigned;
24 enum DitherType : unsigned;
25 
26 #define QUALITY_PREFS_PLUGIN_SYMBOL ComponentInterfaceSymbol{ XO("Quality") }
27 
28 class AUDACITY_DLL_API QualityPrefs final : public PrefsPanel
29 {
30  public:
31  QualityPrefs(wxWindow * parent, wxWindowID winid);
32  virtual ~QualityPrefs();
35 
36  bool Commit() override;
37  ManualPageID HelpPageName() override;
38  void PopulateOrExchange(ShuttleGui & S) override;
39 
40  private:
41  void Populate();
42  void GetNamesAndLabels();
43  void OnSampleRateChoice(wxCommandEvent & e);
44 
46  std::vector<int> mSampleRateLabels;
47 
48  wxChoice *mSampleRates;
49  wxTextCtrl *mOtherSampleRate;
51 
52  DECLARE_EVENT_TABLE()
53 };
54 
55 #endif
TranslatableString
Holds a msgid for the translation catalog; may also bind format arguments.
Definition: TranslatableString.h:32
QualityPrefs::mSampleRateNames
TranslatableStrings mSampleRateNames
Definition: QualityPrefs.h:45
QualityPrefs
A PrefsPanel used for setting audio quality.
Definition: QualityPrefs.h:29
ComponentInterface::GetSymbol
virtual ComponentInterfaceSymbol GetSymbol()=0
TranslatableStrings
std::vector< TranslatableString > TranslatableStrings
Definition: TranslatableString.h:295
QualityPrefs::mOtherSampleRate
wxTextCtrl * mOtherSampleRate
Definition: QualityPrefs.h:49
PrefsPanel.h
PrefsPanel::HelpPageName
virtual ManualPageID HelpPageName()
If not empty string, the Help button is added below the panel.
Definition: PrefsPanel.cpp:98
PrefsPanel::PopulateOrExchange
virtual void PopulateOrExchange(ShuttleGui &WXUNUSED(S))
Definition: PrefsPanel.h:116
QualityPrefs::mSampleRateLabels
std::vector< int > mSampleRateLabels
Definition: QualityPrefs.h:46
ComponentInterfaceSymbol
ComponentInterfaceSymbol pairs a persistent string identifier used internally with an optional,...
Definition: ComponentInterfaceSymbol.h:27
PrefsPanel::Commit
virtual bool Commit()=0
QualityPrefs::mOtherSampleRateValue
int mOtherSampleRateValue
Definition: QualityPrefs.h:50
QualityPrefs::mSampleRates
wxChoice * mSampleRates
Definition: QualityPrefs.h:48
ComponentInterface::GetDescription
virtual TranslatableString GetDescription()=0
sampleFormat
sampleFormat
Definition: SampleFormat.h:29
DitherType
DitherType
These ditherers are currently available:
Definition: Dither.h:19
TaggedIdentifier< ManualPageIDTag >
PrefsPanel
Base class for a panel in the PrefsDialog. Classes derived from this class include BatchPrefs,...
Definition: PrefsPanel.h:51
ShuttleGui
Derived from ShuttleGuiBase, an Audacity specific class for shuttling data to and from GUI.
Definition: ShuttleGui.h:631