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

A PrefsPanel that builds up a chain of effects in MacroCommands. More...

#include <BatchPrefs.h>

Inheritance diagram for BatchPrefs:
PrefsPanel wxPanelWrapper wxTabTraversalWrapper< wxPanel >

Public Member Functions

 BatchPrefs (wxWindow *parent, wxWindowID winid)
 Constructor. More...
 
 ~BatchPrefs ()
 
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 wxString &title)
 
virtual ~PrefsPanel ()
 
virtual void Preview ()
 
virtual bool ShowsPreviewButton ()
 
virtual void PopulateOrExchange (ShuttleGui &WXUNUSED(S))
 
virtual wxString HelpPageName ()
 
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 wxString &name=_("Panel"))
 
bool Create (wxWindow *parent, wxWindowID winid=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxTAB_TRAVERSAL|wxNO_BORDER, const wxString &name=_("Panel"))
 
- Public Member Functions inherited from wxTabTraversalWrapper< wxPanel >
 wxTabTraversalWrapper (Args &&...args)
 

Private Member Functions

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

Detailed Description

A PrefsPanel that builds up a chain of effects in MacroCommands.

Definition at line 23 of file BatchPrefs.h.

Constructor & Destructor Documentation

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

Constructor.

Definition at line 35 of file BatchPrefs.cpp.

35  :
36  PrefsPanel(parent, winid, _("Batch"))
37 {
38  Populate();
39 }
void Populate()
Creates the dialog and its contents.
Definition: BatchPrefs.cpp:42
PrefsPanel(wxWindow *parent, wxWindowID winid, const wxString &title)
Definition: PrefsPanel.h:48
_("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
BatchPrefs::~BatchPrefs ( )

Definition at line 82 of file BatchPrefs.cpp.

83 {
84 }

Member Function Documentation

bool BatchPrefs::Commit ( )
overridevirtual

Send changed values back to Prefs, and update Audacity.

Implements PrefsPanel.

Definition at line 74 of file BatchPrefs.cpp.

References eIsSavingToPrefs, and PopulateOrExchange().

75 {
76  ShuttleGui S( this, eIsSavingToPrefs );
77  PopulateOrExchange( S );
78 
79  return true;
80 }
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
void BatchPrefs::Populate ( )
private

Creates the dialog and its contents.

Definition at line 42 of file BatchPrefs.cpp.

References eIsCreatingFromPrefs, and PopulateOrExchange().

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 }
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
void BatchPrefs::PopulateOrExchange ( ShuttleGui S)
override

Defines the dialog and does data exchange with it.

Definition at line 54 of file BatchPrefs.cpp.

References _(), ShuttleGuiBase::EndHorizontalLay(), ShuttleGuiBase::EndScroller(), ShuttleGuiBase::EndStatic(), ShuttleGuiBase::SetBorder(), ShuttleGuiBase::StartHorizontalLay(), ShuttleGuiBase::StartScroller(), ShuttleGuiBase::StartStatic(), and ShuttleGuiBase::TieCheckBox().

Referenced by Commit(), and Populate().

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 }
void EndScroller()
Definition: ShuttleGui.cpp:828
void EndHorizontalLay()
wxScrolledWindow * StartScroller(int iStyle=0)
Definition: ShuttleGui.cpp:795
void StartHorizontalLay(int PositionFlags=wxALIGN_CENTRE, int iProp=1)
_("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
void SetBorder(int Border)
Definition: ShuttleGui.h:286

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