1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-07-15 16:17:41 +02:00
audacity/src/prefs/QualityPrefs.h
Paul Licameli 8399effc45 Table-driven construction of Prefs dialog. A factory for each kind of panel...
... and maybe a future plug-in protocol to break compilation dependency on
all of the PrefsPanel subclasses.
2015-07-26 19:41:20 -04:00

62 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 <wx/defs.h>
#include <wx/arrstr.h>
#include <wx/choice.h>
#include <wx/dynarray.h>
#include <wx/textctrl.h>
#include "PrefsPanel.h"
class ShuttleGui;
class QualityPrefs :public PrefsPanel
{
public:
QualityPrefs(wxWindow * parent);
virtual ~QualityPrefs();
virtual bool Apply();
private:
void Populate();
void PopulateOrExchange(ShuttleGui & S);
void GetNamesAndLabels();
void OnSampleRateChoice(wxCommandEvent & e);
wxArrayString mDitherNames;
wxArrayInt mDitherLabels;
wxArrayString mSampleRateNames;
wxArrayInt mSampleRateLabels;
wxArrayString mSampleFormatNames;
wxArrayInt mSampleFormatLabels;
wxArrayString mConverterNames;
wxArrayInt mConverterLabels;
wxChoice *mSampleRates;
wxTextCtrl *mOtherSampleRate;
int mOtherSampleRateValue;
DECLARE_EVENT_TABLE();
};
class QualityPrefsFactory : public PrefsPanelFactory
{
public:
virtual PrefsPanel *Create(wxWindow *parent);
};
#endif