Audacity  2.2.2
ProjectsPrefs.cpp
Go to the documentation of this file.
1 /**********************************************************************
2 
3  Audacity: A Digital Audio Editor
4 
5  ProjectsPrefs.cpp
6 
7  Joshua Haberman
8  Dominic Mazzoni
9  James Crook
10 
11 *******************************************************************//*******************************************************************/
18 
19 #include "../Audacity.h"
20 
21 #include <wx/defs.h>
22 #include <wx/textctrl.h>
23 
24 #include "../Prefs.h"
25 #include "../ShuttleGui.h"
26 
27 #include "ProjectsPrefs.h"
28 #include "../Internat.h"
29 
31 
32 ProjectsPrefs::ProjectsPrefs(wxWindow * parent, wxWindowID winid)
33 : PrefsPanel(parent, winid,
34  /* i18n-hint: (noun) i.e Audacity projects. */
35  _("Projects"))
36 {
37  Populate();
38 }
39 
41 {
42 }
43 
46 {
47  //------------------------- Main section --------------------
48  // Now construct the GUI itself.
49  // Use 'eIsCreatingFromPrefs' so that the GUI is
50  // initialised with values from gPrefs.
53  // ----------------------- End of main section --------------
54 }
55 
57 {
58  S.SetBorder(2);
59  S.StartScroller();
60 
61  S.StartStatic(_("When saving a project that depends on other audio files"));
62  {
63  S.StartRadioButtonGroup(wxT("/FileFormats/SaveProjectWithDependencies"), wxT("ask"));
64  {
65  S.TieRadioButton(_("&Copy all audio into project (safest)"),
66  wxT("copy"));
67  S.TieRadioButton(_("Do &not copy any audio"),
68  wxT("never"));
69  S.TieRadioButton(_("As&k"),
70  wxT("ask"));
71  }
73  }
74  S.EndStatic();
75  S.EndScroller();
76 
77 }
78 
80 {
83 
84  return true;
85 }
86 
88 {
89  return "Projects_Preferences";
90 }
91 
92 PrefsPanel *ProjectsPrefsFactory::operator () (wxWindow *parent, wxWindowID winid)
93 {
94  wxASSERT(parent); // to justify safenew
95  return safenew ProjectsPrefs(parent, winid);
96 }
void Populate()
Creates the dialog and its contents.
Derived from ShuttleGuiBase, an Audacity specific class for shuttling data to and from GUI...
Definition: ShuttleGui.h:366
void EndRadioButtonGroup()
A PrefsPanel used to select options related to Audacity Project handling.
Definition: ProjectsPrefs.h:24
PrefsPanel * operator()(wxWindow *parent, wxWindowID winid) override
void EndScroller()
Definition: ShuttleGui.cpp:770
#define safenew
Definition: Audacity.h:223
wxScrolledWindow * StartScroller(int iStyle=0)
Definition: ShuttleGui.cpp:733
wxString HelpPageName() override
void PopulateOrExchange(ShuttleGui &S)
wxRadioButton * TieRadioButton(const wxString &Prompt, WrappedType &WrappedRef)
Used within the PrefsDialog, classes derived from this class include AudioIOPrefs, BatchPrefs, DirectoriesPrefs, FileFormatPrefs, GUIPrefs, KeyConfigPrefs, MousePrefs, QualityPrefs, SpectrumPrefs and ThemePrefs.
Definition: PrefsPanel.h:43
_("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 &)
ProjectsPrefs(wxWindow *parent, wxWindowID winid)
wxStaticBox * StartStatic(const wxString &Str, int iProp=0)
Definition: ShuttleGui.cpp:701
bool Commit() override
void SetBorder(int Border)
Definition: ShuttleGui.h:251
void StartRadioButtonGroup(const wxString &SettingName)