Audacity 3.2.0
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
20class wxChoice;
21class wxTextCtrl;
22class ShuttleGui;
23enum class sampleFormat : unsigned;
24enum DitherType : unsigned;
25
26#define QUALITY_PREFS_PLUGIN_SYMBOL ComponentInterfaceSymbol{ XO("Quality") }
27
28class AUDACITY_DLL_API QualityPrefs final : public PrefsPanel
29{
30 public:
31 QualityPrefs(wxWindow * parent, wxWindowID winid);
32 virtual ~QualityPrefs();
33 ComponentInterfaceSymbol GetSymbol() const override;
34 TranslatableString GetDescription() const override;
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
DitherType
These ditherers are currently available:
Definition: Dither.h:19
sampleFormat
The ordering of these values with operator < agrees with the order of increasing bit width.
Definition: SampleFormat.h:30
#define S(N)
Definition: ToChars.cpp:64
std::vector< TranslatableString > TranslatableStrings
virtual ComponentInterfaceSymbol GetSymbol() const =0
virtual TranslatableString GetDescription() const =0
ComponentInterfaceSymbol pairs a persistent string identifier used internally with an optional,...
Base class for a panel in the PrefsDialog. Classes derived from this class include BatchPrefs,...
Definition: PrefsPanel.h:51
virtual ManualPageID HelpPageName()
If not empty string, the Help button is added below the panel.
Definition: PrefsPanel.cpp:91
virtual bool Commit()=0
virtual void PopulateOrExchange(ShuttleGui &WXUNUSED(S))
Definition: PrefsPanel.h:120
A PrefsPanel used for setting audio quality.
Definition: QualityPrefs.h:29
wxTextCtrl * mOtherSampleRate
Definition: QualityPrefs.h:49
wxChoice * mSampleRates
Definition: QualityPrefs.h:48
int mOtherSampleRateValue
Definition: QualityPrefs.h:50
TranslatableStrings mSampleRateNames
Definition: QualityPrefs.h:45
std::vector< int > mSampleRateLabels
Definition: QualityPrefs.h:46
Derived from ShuttleGuiBase, an Audacity specific class for shuttling data to and from GUI.
Definition: ShuttleGui.h:625
Holds a msgid for the translation catalog; may also bind format arguments.