Audacity  2.2.2
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 #include "../Audacity.h"
18 
19 #include <wx/defs.h>
20 #include <wx/intl.h>
21 #include <wx/textdlg.h>
22 
23 #include "BatchPrefs.h"
24 #include "../Languages.h"
25 #include "../Prefs.h"
26 #include "../Project.h"
27 #include "../BatchCommandDialog.h"
28 #include "../ShuttleGui.h"
29 #include "../toolbars/ToolManager.h"
30 
31 BEGIN_EVENT_TABLE(BatchPrefs, PrefsPanel)
33 
35 BatchPrefs::BatchPrefs(wxWindow * parent, wxWindowID winid):
36  PrefsPanel(parent, winid, _("Batch"))
37 {
38  Populate();
39 }
40 
43 {
44  //------------------------- Main section --------------------
45  // Now construct the GUI itself.
46  // Use 'eIsCreatingFromPrefs' so that the GUI is
47  // initialised with values from gPrefs.
50  // ----------------------- End of main section --------------
51 }
52 
55 {
56  S.SetBorder( 2 );
57  S.StartScroller();
58  S.StartHorizontalLay( wxEXPAND, 0 );
59 
60  S.StartStatic( _("Behaviors"),1 );
61  {
62 #ifdef __WXDEBUG__
63  S.TieCheckBox( _("&Don't apply effects in batch mode"),
64  wxT("/Batch/Debug"), false);
65 #endif
66  }
67  S.EndStatic();
68  S.EndHorizontalLay();
69  S.EndScroller();
70  return;
71 }
72 
75 {
76  ShuttleGui S( this, eIsSavingToPrefs );
77  PopulateOrExchange( S );
78 
79  return true;
80 }
81 
83 {
84 }
85 
86 PrefsPanel *BatchPrefsFactory::operator () (wxWindow *parent, wxWindowID winid)
87 {
88  wxASSERT(parent); // to justify safenew
89  return safenew BatchPrefs(parent, winid);
90 }
Derived from ShuttleGuiBase, an Audacity specific class for shuttling data to and from GUI...
Definition: ShuttleGui.h:409
void PopulateOrExchange(ShuttleGui &S) override
Defines the dialog and does data exchange with it.
Definition: BatchPrefs.cpp:54
bool Commit() override
Send changed values back to Prefs, and update Audacity.
Definition: BatchPrefs.cpp:74
void EndScroller()
Definition: ShuttleGui.cpp:828
#define safenew
Definition: Audacity.h:230
void EndHorizontalLay()
void Populate()
Creates the dialog and its contents.
Definition: BatchPrefs.cpp:42
wxScrolledWindow * StartScroller(int iStyle=0)
Definition: ShuttleGui.cpp:795
void StartHorizontalLay(int PositionFlags=wxALIGN_CENTRE, int iProp=1)
PrefsPanel * operator()(wxWindow *parent, wxWindowID winid) override
Definition: BatchPrefs.cpp:86
Used within the PrefsDialog, classes derived from this class include AudioIOPrefs, BatchPrefs, DirectoriesPrefs, FileFormatPrefs, GUIPrefs, KeyConfigPrefs, MousePrefs, QualityPrefs, SpectrumPrefs and ThemePrefs.
Definition: PrefsPanel.h:45
_("Move Track &Down")+wxT("\t")+(GetActiveProject() -> GetCommandManager() ->GetKeyFromName(wxT("TrackMoveDown")).Raw()), OnMoveTrack) POPUP_MENU_ITEM(OnMoveTopID, _("Move Track to &Top")+wxT("\t")+(GetActiveProject() ->GetCommandManager() ->GetKeyFromName(wxT("TrackMoveTop")).Raw()), OnMoveTrack) POPUP_MENU_ITEM(OnMoveBottomID, _("Move Track to &Bottom")+wxT("\t")+(GetActiveProject() ->GetCommandManager() ->GetKeyFromName(wxT("TrackMoveBottom")).Raw()), OnMoveTrack)#define SET_TRACK_NAME_PLUGIN_SYMBOLclass SetTrackNameCommand:public AudacityCommand
wxCheckBox * TieCheckBox(const wxString &Prompt, WrappedType &WrappedRef)
wxStaticBox * StartStatic(const wxString &Str, int iProp=0)
Definition: ShuttleGui.cpp:763
END_EVENT_TABLE()
void SetBorder(int Border)
Definition: ShuttleGui.h:286
A PrefsPanel that builds up a chain of effects in MacroCommands.
Definition: BatchPrefs.h:23