forked from tenacityteam/tenacity-legacy
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathQualityPrefs.h
55 lines (39 loc) · 1.22 KB
/
QualityPrefs.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
/**********************************************************************
Audacity: A Digital Audio Editor
QualityPrefs.h
Joshua Haberman
James Crook
**********************************************************************/
#ifndef __AUDACITY_QUALITY_PREFS__
#define __AUDACITY_QUALITY_PREFS__
#include <vector>
#include <wx/defs.h>
#include "PrefsPanel.h"
class wxChoice;
class wxTextCtrl;
class ShuttleGui;
enum sampleFormat : unsigned;
enum DitherType : unsigned;
#define QUALITY_PREFS_PLUGIN_SYMBOL ComponentInterfaceSymbol{ XO("Quality") }
class AUDACITY_DLL_API QualityPrefs final : public PrefsPanel
{
public:
QualityPrefs(wxWindow * parent, wxWindowID winid);
virtual ~QualityPrefs();
ComponentInterfaceSymbol GetSymbol() override;
TranslatableString GetDescription() override;
bool Commit() override;
ManualPageID HelpPageName() override;
void PopulateOrExchange(ShuttleGui & S) override;
private:
void Populate();
void GetNamesAndLabels();
void OnSampleRateChoice(wxCommandEvent & e);
TranslatableStrings mSampleRateNames;
std::vector<int> mSampleRateLabels;
wxChoice *mSampleRates;
wxTextCtrl *mOtherSampleRate;
int mOtherSampleRateValue;
DECLARE_EVENT_TABLE()
};
#endif