1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-06-20 14:20:06 +02:00
audacity/src/prefs/TracksPrefs.h
James Crook 0cc9c6bc3b Zoom Toggle
Added preferences for Zoom-Toggle and put into menus.
New helper functions for determining zoom scaling.

Optional EXPERIMENTAL_ZOOM_TOGGLE_BUTTON added, and Light theme updated.
Not enabled for 2.2.2.
2018-01-07 17:14:33 +00:00

58 lines
1.2 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 "PrefsPanel.h"
class ShuttleGui;
class TracksPrefs final : public PrefsPanel
{
public:
TracksPrefs(wxWindow * parent);
~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;
wxArrayInt mViewCodes;
wxArrayString mViewChoices;
wxArrayInt mSampleDisplayCodes;
wxArrayString mSampleDisplayChoices;
wxArrayInt mZoomCodes;
wxArrayString mZoomChoices;
};
class TracksPrefsFactory final : public PrefsPanelFactory
{
public:
PrefsPanel *Create(wxWindow *parent) override;
};
#endif