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
21class wxTextCtrl;
22class 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
43class RecordingPrefs final : public PrefsPanel
44{
45 public:
46 RecordingPrefs(wxWindow * parent, wxWindowID winid);
47 virtual ~RecordingPrefs();
48 ComponentInterfaceSymbol GetSymbol() const override;
49 TranslatableString GetDescription() const override;
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
#define S(N)
Definition: ToChars.cpp:64
ComponentInterfaceSymbol pairs a persistent string identifier used internally with an optional,...
Base class for a panel in the PrefsDialog. Classes derived from this class include BatchPrefs,...
Definition: PrefsPanel.h:51
A PrefsPanel used to select recording options.
ManualPageID HelpPageName() override
If not empty string, the Help button is added below the panel.
TranslatableString GetDescription() const override
bool Commit() override
wxTextCtrl * mToggleCustomName
void PopulateOrExchange(ShuttleGui &S) override
ComponentInterfaceSymbol GetSymbol() const override
RecordingPrefs(wxWindow *parent, wxWindowID winid)
bool mUseCustomTrackName
void OnToggleCustomName(wxCommandEvent &)
virtual ~RecordingPrefs()
Derived from ShuttleGuiBase, an Audacity specific class for shuttling data to and from GUI.
Definition: ShuttleGui.h:640
Holds a msgid for the translation catalog; may also bind format arguments.