1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-08-09 08:31:13 +02:00
audacity/src/prefs/TracksBehaviorsPrefs.h
Paul Licameli 6d5bc21d50 Define and use wxArrayStringEx...
reducing verbosity where there were repeated calls of Add(), and defining
move construction and assignment for efficient returns from functions
2019-03-10 16:23:44 -04:00

49 lines
1.1 KiB
C++

/**********************************************************************
Audacity: A Digital Audio Editor
TracksBehaviorsPrefs.h
Brian Gunlogson
Joshua Haberman
James Crook
Steve Daulton
**********************************************************************/
#ifndef __AUDACITY_TRACKSBEHAVIORS_PREFS__
#define __AUDACITY_TRACKSBEHAVIORS_PREFS__
#include "PrefsPanel.h"
class ShuttleGui;
class TracksBehaviorsPrefs final : public PrefsPanel
{
public:
TracksBehaviorsPrefs(wxWindow * parent, wxWindowID winid);
~TracksBehaviorsPrefs();
bool Commit() override;
wxString HelpPageName() override;
static const wxChar *ScrollingPreferenceKey();
static inline bool ScrollingPreferenceDefault() { return false; }
private:
void Populate();
void PopulateOrExchange(ShuttleGui & S) override;
wxArrayStringEx mSoloCodes;
wxArrayStringEx mSoloChoices;
};
/// A PrefsPanelFactory that creates one TracksBehaviorsPrefs panel.
class TracksBehaviorsPrefsFactory final : public PrefsPanelFactory
{
public:
explicit TracksBehaviorsPrefsFactory();
PrefsPanel *operator () (wxWindow *parent, wxWindowID winid) override;
};
#endif