mirror of
https://github.com/cookiengineer/audacity
synced 2025-08-09 08:31:13 +02:00
reducing verbosity where there were repeated calls of Add(), and defining move construction and assignment for efficient returns from functions
49 lines
1.1 KiB
C++
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
|