406b23cae7
... in many places where the function call will later need to be between modules (or libraries, or the executable) and the annotation will be a necessity to keep the linkage working on Windows. That's all that this sweeping commit does.
58 lines
1.3 KiB
C++
58 lines
1.3 KiB
C++
/**********************************************************************
|
|
|
|
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;
|
|
wxString HelpPageName() override;
|
|
void PopulateOrExchange(ShuttleGui & S) override;
|
|
|
|
static sampleFormat SampleFormatChoice();
|
|
|
|
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
|