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

A PrefsPanel used to select import and export options. More...

#include <ImportExportPrefs.h>

Inheritance diagram for ImportExportPrefs:
PrefsPanel wxPanelWrapper wxTabTraversalWrapper< wxPanel >

Public Member Functions

 ImportExportPrefs (wxWindow *parent)
 
 ~ImportExportPrefs ()
 
bool Commit () override
 
wxString HelpPageName () override
 
- Public Member Functions inherited from PrefsPanel
 PrefsPanel (wxWindow *parent, const wxString &title)
 
virtual ~PrefsPanel ()
 
virtual void Preview ()
 
virtual bool ShowsPreviewButton ()
 
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)
 
 ~wxTabTraversalWrapper ()
 

Private Member Functions

void Populate ()
 Creates the dialog and its contents. More...
 
void PopulateOrExchange (ShuttleGui &S)
 

Detailed Description

A PrefsPanel used to select import and export options.

Definition at line 24 of file ImportExportPrefs.h.

Constructor & Destructor Documentation

ImportExportPrefs::ImportExportPrefs ( wxWindow *  parent)

Definition at line 28 of file ImportExportPrefs.cpp.

References Populate().

29 : PrefsPanel(parent, _("Import / Export"))
30 {
31  Populate();
32 }
PrefsPanel(wxWindow *parent, const wxString &title)
Definition: PrefsPanel.h:46
_("Move Track &Down")+wxT("\t")+(GetActiveProject() -> GetCommandManager() ->GetKeyFromName(wxT("TrackMoveDown"))), OnMoveTrack) POPUP_MENU_ITEM(OnMoveTopID, _("Move Track to &Top")+wxT("\t")+(GetActiveProject() ->GetCommandManager() ->GetKeyFromName(wxT("TrackMoveTop"))), OnMoveTrack) POPUP_MENU_ITEM(OnMoveBottomID, _("Move Track to &Bottom")+wxT("\t")+(GetActiveProject() ->GetCommandManager() ->GetKeyFromName(wxT("TrackMoveBottom"))), OnMoveTrack) void TrackMenuTable::OnSetName(wxCommandEvent &)
void Populate()
Creates the dialog and its contents.
ImportExportPrefs::~ImportExportPrefs ( )

Definition at line 34 of file ImportExportPrefs.cpp.

35 {
36 }

Member Function Documentation

bool ImportExportPrefs::Commit ( )
overridevirtual

Implements PrefsPanel.

Definition at line 108 of file ImportExportPrefs.cpp.

References eIsSavingToPrefs, and PopulateOrExchange().

109 {
110  ShuttleGui S(this, eIsSavingToPrefs);
112 
113  return true;
114 }
void PopulateOrExchange(ShuttleGui &S)
Derived from ShuttleGuiBase, an Audacity specific class for shuttling data to and from GUI...
Definition: ShuttleGui.h:366
wxString ImportExportPrefs::HelpPageName ( )
overridevirtual

Reimplemented from PrefsPanel.

Definition at line 116 of file ImportExportPrefs.cpp.

117 {
118  return "Import_-_Export_Preferences";
119 }
void ImportExportPrefs::Populate ( )
private

Creates the dialog and its contents.

Definition at line 39 of file ImportExportPrefs.cpp.

References eIsCreatingFromPrefs, and PopulateOrExchange().

Referenced by ImportExportPrefs().

40 {
41  //------------------------- Main section --------------------
42  // Now construct the GUI itself.
43  // Use 'eIsCreatingFromPrefs' so that the GUI is
44  // initialised with values from gPrefs.
47  // ----------------------- End of main section --------------
48 }
void PopulateOrExchange(ShuttleGui &S)
Derived from ShuttleGuiBase, an Audacity specific class for shuttling data to and from GUI...
Definition: ShuttleGui.h:366
void ImportExportPrefs::PopulateOrExchange ( ShuttleGui S)
private

Definition at line 50 of file ImportExportPrefs.cpp.

References _(), ShuttleGuiBase::EndRadioButtonGroup(), ShuttleGuiBase::EndScroller(), ShuttleGuiBase::EndStatic(), ShuttleGuiBase::SetBorder(), ShuttleGuiBase::StartRadioButtonGroup(), ShuttleGuiBase::StartScroller(), ShuttleGuiBase::StartStatic(), ShuttleGuiBase::TieCheckBox(), and ShuttleGuiBase::TieRadioButton().

Referenced by Commit(), and Populate().

51 {
52  S.SetBorder(2);
53  S.StartScroller();
54 
55  S.StartStatic(_("When importing audio files"));
56  {
57  S.StartRadioButtonGroup(wxT("/FileFormats/CopyOrEditUncompressedData"), wxT("copy"));
58  {
59  S.TieRadioButton(_("&Copy uncompressed files into the project (safer)"),
60  wxT("copy"));
61  S.TieRadioButton(_("&Read uncompressed files from original location (faster)"),
62  wxT("edit"));
63  }
65 
66  S.TieCheckBox(_("&Normalize all tracks in project"),
67  wxT("/AudioFiles/NormalizeOnLoad"),
68  false);
69  }
70  S.EndStatic();
71 
72  S.StartStatic(_("When exporting tracks to an audio file"));
73  {
74  S.StartRadioButtonGroup(wxT("/FileFormats/ExportDownMix"), true);
75  {
76  S.TieRadioButton(_("&Mix down to Stereo or Mono"),
77  true);
78  S.TieRadioButton(_("&Use custom mix"),
79  false);
80  }
82 
83  S.TieCheckBox(_("S&how Metadata Tags editor before export"),
84  wxT("/AudioFiles/ShowId3Dialog"),
85  true);
86  // This documentation is unlikely to help somebody who cannot figure it out by discovering the Options button in the dialog.
87  // It's only clutter in this Prefs tab, so removed.
88  // S.AddFixedText(_("Note: Export quality options can be chosen by clicking the Options\nbutton in the Export dialog."));
89  }
90  S.EndStatic();
91 #ifdef USE_MIDI
92  S.StartStatic(_("Exported Allegro (.gro) files save time as:"));
93  {
94  S.StartRadioButtonGroup(wxT("/FileFormats/AllegroStyle"), true);
95  {
96  S.TieRadioButton(_("&Seconds"),
97  true);
98  S.TieRadioButton(_("&Beats"),
99  false);
100  }
102  }
103  S.EndStatic();
104 #endif
105  S.EndScroller();
106 }
void EndRadioButtonGroup()
void EndScroller()
Definition: ShuttleGui.cpp:770
wxScrolledWindow * StartScroller(int iStyle=0)
Definition: ShuttleGui.cpp:733
wxRadioButton * TieRadioButton(const wxString &Prompt, WrappedType &WrappedRef)
_("Move Track &Down")+wxT("\t")+(GetActiveProject() -> GetCommandManager() ->GetKeyFromName(wxT("TrackMoveDown"))), OnMoveTrack) POPUP_MENU_ITEM(OnMoveTopID, _("Move Track to &Top")+wxT("\t")+(GetActiveProject() ->GetCommandManager() ->GetKeyFromName(wxT("TrackMoveTop"))), OnMoveTrack) POPUP_MENU_ITEM(OnMoveBottomID, _("Move Track to &Bottom")+wxT("\t")+(GetActiveProject() ->GetCommandManager() ->GetKeyFromName(wxT("TrackMoveBottom"))), OnMoveTrack) void TrackMenuTable::OnSetName(wxCommandEvent &)
wxCheckBox * TieCheckBox(const wxString &Prompt, WrappedType &WrappedRef)
wxStaticBox * StartStatic(const wxString &Str, int iProp=0)
Definition: ShuttleGui.cpp:701
void SetBorder(int Border)
Definition: ShuttleGui.h:251
void StartRadioButtonGroup(const wxString &SettingName)

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