Audacity  3.2.0
RecordingPrefs.h
Go to the documentation of this file.
1 /**********************************************************************
2 
3  Audacity: A Digital Audio Editor
4 
5  RecordingPrefs.h
6 
7  Joshua Haberman
8  James Crook
9 
10 **********************************************************************/
11 
12 #ifndef __AUDACITY_RECORDING_PREFS__
13 #define __AUDACITY_RECORDING_PREFS__
14 
15 
16 
17 #include <wx/defs.h>
18 
19 #include "PrefsPanel.h"
20 
21 class wxTextCtrl;
22 class ShuttleGui;
23 
24 #ifdef EXPERIMENTAL_AUTOMATED_INPUT_LEVEL_ADJUSTMENT
25  #define AILA_DEF_TARGET_PEAK 92
26  #define AILA_DEF_DELTA_PEAK 2
27  #define AILA_DEF_ANALYSIS_TIME 1000
28  #define AILA_DEF_NUMBER_ANALYSIS 5
29 #endif
30 
31 #define RECORDING_PREFS_PLUGIN_SYMBOL ComponentInterfaceSymbol{ \
32  L"Recording", \
33  /* i18n-hint: modifier as in "Recording preferences", not progressive verb */ \
34  XC("Recording", "preference") \
35 }
36 
37 #define AUDIO_PRE_ROLL_KEY (wxT("/AudioIO/PreRoll"))
38 #define DEFAULT_PRE_ROLL_SECONDS 5.0
39 
40 #define AUDIO_ROLL_CROSSFADE_KEY (wxT("/AudioIO/Crossfade"))
41 #define DEFAULT_ROLL_CROSSFADE_MS 10.0
42 
43 class RecordingPrefs final : public PrefsPanel
44 {
45  public:
46  RecordingPrefs(wxWindow * parent, wxWindowID winid);
47  virtual ~RecordingPrefs();
50 
51  bool Commit() override;
52  ManualPageID HelpPageName() override;
53  void PopulateOrExchange(ShuttleGui & S) override;
54 
55  private:
56  void Populate();
57  void OnToggleCustomName(wxCommandEvent & /* Evt */);
58 
59  wxTextCtrl *mToggleCustomName;
62 
63  DECLARE_EVENT_TABLE()
64 };
65 
66 #endif
RecordingPrefs::mToggleCustomName
wxTextCtrl * mToggleCustomName
Definition: RecordingPrefs.h:59
TranslatableString
Holds a msgid for the translation catalog; may also bind format arguments.
Definition: TranslatableString.h:32
RecordingPrefs::RecordingPrefs
RecordingPrefs(wxWindow *parent, wxWindowID winid)
Definition: RecordingPrefs.cpp:43
S
#define S(N)
Definition: ToChars.cpp:64
PrefsPanel.h
RecordingPrefs::PopulateOrExchange
void PopulateOrExchange(ShuttleGui &S) override
Definition: RecordingPrefs.cpp:82
RecordingPrefs::Populate
void Populate()
Definition: RecordingPrefs.cpp:71
ComponentInterfaceSymbol
ComponentInterfaceSymbol pairs a persistent string identifier used internally with an optional,...
Definition: ComponentInterfaceSymbol.h:27
RecordingPrefs::GetSymbol
ComponentInterfaceSymbol GetSymbol() override
Definition: RecordingPrefs.cpp:56
RecordingPrefs::~RecordingPrefs
virtual ~RecordingPrefs()
Definition: RecordingPrefs.cpp:52
RecordingPrefs::HelpPageName
ManualPageID HelpPageName() override
If not empty string, the Help button is added below the panel.
Definition: RecordingPrefs.cpp:66
RecordingPrefs::mUseCustomTrackName
bool mUseCustomTrackName
Definition: RecordingPrefs.h:60
RecordingPrefs::OnToggleCustomName
void OnToggleCustomName(wxCommandEvent &)
Definition: RecordingPrefs.cpp:298
TaggedIdentifier< ManualPageIDTag >
RecordingPrefs::Commit
bool Commit() override
Definition: RecordingPrefs.cpp:269
RecordingPrefs::GetDescription
TranslatableString GetDescription() override
Definition: RecordingPrefs.cpp:61
PrefsPanel
Base class for a panel in the PrefsDialog. Classes derived from this class include BatchPrefs,...
Definition: PrefsPanel.h:51
RecordingPrefs::mOldNameChoice
bool mOldNameChoice
Definition: RecordingPrefs.h:61
RecordingPrefs
A PrefsPanel used to select recording options.
Definition: RecordingPrefs.h:44
ShuttleGui
Derived from ShuttleGuiBase, an Audacity specific class for shuttling data to and from GUI.
Definition: ShuttleGui.h:631