Audacity 3.2.0
Public Member Functions | Private Member Functions | List of all members
BatchPrefs Class Referencefinal

A probably unused PrefsPanel that in debug builds could offer a setting used in debugging batch (aka macros) processing. More...

#include <BatchPrefs.h>

Inheritance diagram for BatchPrefs:
[legend]
Collaboration diagram for BatchPrefs:
[legend]

Public Member Functions

 BatchPrefs (wxWindow *parent, wxWindowID winid)
 Constructor. More...
 
 ~BatchPrefs ()
 
ComponentInterfaceSymbol GetSymbol () const override
 
TranslatableString GetDescription () const override
 
ManualPageID HelpPageName () override
 If not empty string, the Help button is added below the panel. More...
 
bool Commit () override
 Send changed values back to Prefs, and update Audacity. More...
 
void PopulateOrExchange (ShuttleGui &S) override
 Defines the dialog and does data exchange with it. More...
 
- Public Member Functions inherited from PrefsPanel
 PrefsPanel (wxWindow *parent, wxWindowID winid, const TranslatableString &title)
 
virtual ~PrefsPanel ()
 
virtual void Preview ()
 
virtual bool Commit ()=0
 
virtual PluginPath GetPath () const override
 
virtual VendorSymbol GetVendor () const override
 
virtual wxString GetVersion () const override
 
virtual bool ShowsPreviewButton ()
 
virtual void PopulateOrExchange (ShuttleGui &WXUNUSED(S))
 
virtual ManualPageID HelpPageName ()
 If not empty string, the Help button is added below the panel. More...
 
virtual void Cancel ()
 
- Public Member Functions inherited from wxPanelWrapper
 wxPanelWrapper ()
 
 wxPanelWrapper (wxWindow *parent, wxWindowID winid=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxTAB_TRAVERSAL|wxNO_BORDER, const TranslatableString &name=XO("Panel"))
 
bool Create (wxWindow *parent, wxWindowID winid=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxTAB_TRAVERSAL|wxNO_BORDER, const TranslatableString &name=XO("Panel"))
 
void SetLabel (const TranslatableString &label)
 
void SetName (const TranslatableString &name)
 
void SetToolTip (const TranslatableString &toolTip)
 
void SetName ()
 
- Public Member Functions inherited from wxTabTraversalWrapper< wxPanel >
 wxTabTraversalWrapper (Args &&... args)
 
 wxTabTraversalWrapper (const wxTabTraversalWrapper &)=delete
 
 wxTabTraversalWrapper (wxTabTraversalWrapper &&)=delete
 
wxTabTraversalWrapperoperator= (const wxTabTraversalWrapper &)=delete
 
wxTabTraversalWrapperoperator= (wxTabTraversalWrapper &&)=delete
 

Private Member Functions

void Populate ()
 Creates the dialog and its contents. More...
 

Additional Inherited Members

- Public Types inherited from PrefsPanel
using Factories = std::vector< PrefsPanel::PrefsNode >
 
using Factory = std::function< PrefsPanel *(wxWindow *parent, wxWindowID winid, AudacityProject *) >
 
- Static Public Member Functions inherited from PrefsPanel
static FactoriesDefaultFactories ()
 

Detailed Description

A probably unused PrefsPanel that in debug builds could offer a setting used in debugging batch (aka macros) processing.

Definition at line 23 of file BatchPrefs.h.

Constructor & Destructor Documentation

◆ BatchPrefs()

BatchPrefs::BatchPrefs ( wxWindow *  parent,
wxWindowID  winid 
)

Constructor.

Definition at line 30 of file BatchPrefs.cpp.

30 :
31 PrefsPanel(parent, winid, XO("Batch"))
32{
33 Populate();
34}
XO("Cut/Copy/Paste")
void Populate()
Creates the dialog and its contents.
Definition: BatchPrefs.cpp:52
PrefsPanel(wxWindow *parent, wxWindowID winid, const TranslatableString &title)
Definition: PrefsPanel.h:94

◆ ~BatchPrefs()

BatchPrefs::~BatchPrefs ( )

Definition at line 92 of file BatchPrefs.cpp.

93{
94}

Member Function Documentation

◆ Commit()

bool BatchPrefs::Commit ( )
overridevirtual

Send changed values back to Prefs, and update Audacity.

Implements PrefsPanel.

Definition at line 84 of file BatchPrefs.cpp.

85{
88
89 return true;
90}
@ eIsSavingToPrefs
Definition: ShuttleGui.h:47
#define S(N)
Definition: ToChars.cpp:64
void PopulateOrExchange(ShuttleGui &S) override
Defines the dialog and does data exchange with it.
Definition: BatchPrefs.cpp:64
Derived from ShuttleGuiBase, an Audacity specific class for shuttling data to and from GUI.
Definition: ShuttleGui.h:640

References eIsSavingToPrefs, PopulateOrExchange(), and S.

Here is the call graph for this function:

◆ GetDescription()

TranslatableString BatchPrefs::GetDescription ( ) const
overridevirtual

Implements ComponentInterface.

Definition at line 41 of file BatchPrefs.cpp.

42{
43 return XO("Preferences for Batch");
44}

References XO().

Here is the call graph for this function:

◆ GetSymbol()

ComponentInterfaceSymbol BatchPrefs::GetSymbol ( ) const
overridevirtual

Implements ComponentInterface.

Definition at line 36 of file BatchPrefs.cpp.

37{
39}
#define BATCH_PREFS_PLUGIN_SYMBOL
Definition: BatchPrefs.h:21

References BATCH_PREFS_PLUGIN_SYMBOL.

◆ HelpPageName()

ManualPageID BatchPrefs::HelpPageName ( )
overridevirtual

If not empty string, the Help button is added below the panel.

Default returns empty string.

Reimplemented from PrefsPanel.

Definition at line 46 of file BatchPrefs.cpp.

47{
48 return "Batch_Preferences";
49}

◆ Populate()

void BatchPrefs::Populate ( )
private

Creates the dialog and its contents.

Definition at line 52 of file BatchPrefs.cpp.

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}
@ eIsCreatingFromPrefs
Definition: ShuttleGui.h:46

References eIsCreatingFromPrefs, PopulateOrExchange(), and S.

Here is the call graph for this function:

◆ PopulateOrExchange()

void BatchPrefs::PopulateOrExchange ( ShuttleGui S)
override

Defines the dialog and does data exchange with it.

Definition at line 64 of file BatchPrefs.cpp.

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}
wxT("CloseDown"))
XXO("&Cut/Copy/Paste Toolbar")

References S, wxT(), XO(), and XXO().

Referenced by Commit(), and Populate().

Here is the call graph for this function:
Here is the caller graph for this function:

The documentation for this class was generated from the following files: