Audacity 3.2.0
BatchPrefs.cpp
Go to the documentation of this file.
1/**********************************************************************
2
3 Audacity: A Digital Audio Editor
4
5 BatchPrefs.cpp
6
7 Dominic Mazzoni
8 James Crook
9
10*******************************************************************//*******************************************************************/
16
17
18#include "BatchPrefs.h"
19
20#include <wx/defs.h>
21#include <wx/textdlg.h>
22
23#include "Prefs.h"
24#include "ShuttleGui.h"
25
26BEGIN_EVENT_TABLE(BatchPrefs, PrefsPanel)
28
29
30BatchPrefs::BatchPrefs(wxWindow * parent, wxWindowID winid):
31 PrefsPanel(parent, winid, XO("Batch"))
32{
33 Populate();
34}
35
37{
39}
40
42{
43 return XO("Preferences for Batch");
44}
45
47{
48 return "Batch_Preferences";
49}
50
53{
54 //------------------------- Main section --------------------
55 // Now construct the GUI itself.
56 // Use 'eIsCreatingFromPrefs' so that the GUI is
57 // initialised with values from gPrefs.
60 // ----------------------- End of main section --------------
61}
62
65{
66 S.SetBorder( 2 );
67 S.StartScroller();
68 S.StartHorizontalLay( wxEXPAND, 0 );
69
70 S.StartStatic( XO("Behaviors"),1 );
71 {
72#ifdef _DEBUG
73 S.TieCheckBox( XXO("&Don't apply effects in batch mode"),
74 {wxT("/Batch/Debug"), false});
75#endif
76 }
77 S.EndStatic();
78 S.EndHorizontalLay();
79 S.EndScroller();
80 return;
81}
82
85{
88
89 return true;
90}
91
93{
94}
95
96#if 0
97namespace{
99 [](wxWindow *parent, wxWindowID winid, AudacityProject *)
100 {
101 wxASSERT(parent); // to justify safenew
102 return safenew BatchPrefs(parent, winid);
103 },
104 false,
105 // Register with an explicit ordering hint because this one is
106 // only conditionally compiled
107 { "", { Registry::OrderingHint::Before, "KeyConfig" } }
108};
109}
110#endif
wxT("CloseDown"))
END_EVENT_TABLE()
#define BATCH_PREFS_PLUGIN_SYMBOL
Definition: BatchPrefs.h:21
XO("Cut/Copy/Paste")
XXO("&Cut/Copy/Paste Toolbar")
#define safenew
Definition: MemoryX.h:10
@ eIsCreatingFromPrefs
Definition: ShuttleGui.h:46
@ eIsSavingToPrefs
Definition: ShuttleGui.h:47
#define S(N)
Definition: ToChars.cpp:64
The top-level handle to an Audacity project. It serves as a source of events that other objects can b...
Definition: Project.h:90
A probably unused PrefsPanel that in debug builds could offer a setting used in debugging batch (aka ...
Definition: BatchPrefs.h:24
void Populate()
Creates the dialog and its contents.
Definition: BatchPrefs.cpp:52
void PopulateOrExchange(ShuttleGui &S) override
Defines the dialog and does data exchange with it.
Definition: BatchPrefs.cpp:64
ManualPageID HelpPageName() override
If not empty string, the Help button is added below the panel.
Definition: BatchPrefs.cpp:46
bool Commit() override
Send changed values back to Prefs, and update Audacity.
Definition: BatchPrefs.cpp:84
ComponentInterfaceSymbol GetSymbol() const override
Definition: BatchPrefs.cpp:36
TranslatableString GetDescription() const override
Definition: BatchPrefs.cpp:41
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
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.