59 lines
1.3 KiB
C++
59 lines
1.3 KiB
C++
/**********************************************************************
|
|
|
|
Audacity: A Digital Audio Editor
|
|
|
|
TracksPrefs.h
|
|
|
|
Brian Gunlogson
|
|
Joshua Haberman
|
|
James Crook
|
|
|
|
**********************************************************************/
|
|
|
|
#ifndef __AUDACITY_TRACKS_PREFS__
|
|
#define __AUDACITY_TRACKS_PREFS__
|
|
|
|
//#include <wx/defs.h>
|
|
|
|
//#include <wx/arrstr.h>
|
|
//#include <wx/window.h>
|
|
|
|
#include <vector>
|
|
#include "PrefsPanel.h"
|
|
|
|
class ShuttleGui;
|
|
|
|
class TracksPrefs final : public PrefsPanel
|
|
{
|
|
public:
|
|
TracksPrefs(wxWindow * parent, wxWindowID winid);
|
|
~TracksPrefs();
|
|
bool Commit() override;
|
|
wxString HelpPageName() override;
|
|
|
|
static bool GetPinnedHeadPreference();
|
|
static void SetPinnedHeadPreference(bool value, bool flush = false);
|
|
|
|
static wxString GetDefaultAudioTrackNamePreference();
|
|
|
|
private:
|
|
void Populate();
|
|
void PopulateOrExchange(ShuttleGui & S);
|
|
|
|
static int iPreferencePinned;
|
|
|
|
std::vector<int> mViewCodes;
|
|
wxArrayString mViewChoices;
|
|
std::vector<int> mSampleDisplayCodes;
|
|
wxArrayString mSampleDisplayChoices;
|
|
std::vector<int> mZoomCodes;
|
|
wxArrayString mZoomChoices;
|
|
};
|
|
|
|
class TracksPrefsFactory final : public PrefsPanelFactory
|
|
{
|
|
public:
|
|
PrefsPanel *operator () (wxWindow *parent, wxWindowID winid) override;
|
|
};
|
|
#endif
|