Audacity  2.2.2
WarningsPrefs.cpp
Go to the documentation of this file.
1 /**********************************************************************
2 
3  Audacity: A Digital Audio Editor
4 
5  WarningsPrefs.cpp
6 
7  Brian Gunlogson
8  Joshua Haberman
9  Dominic Mazzoni
10  James Crook
11 
12 
13 *******************************************************************//*******************************************************************/
19 
20 #include "../Audacity.h"
21 
22 #include <wx/defs.h>
23 
24 #include "../ShuttleGui.h"
25 
26 #include "WarningsPrefs.h"
27 #include "../Internat.h"
28 
30 
31 WarningsPrefs::WarningsPrefs(wxWindow * parent, wxWindowID winid)
32 : PrefsPanel(parent, winid, _("Warnings"))
33 {
34  Populate();
35 }
36 
38 {
39 }
40 
42 {
43  //------------------------- Main section --------------------
44  // Now construct the GUI itself.
45  // Use 'eIsCreatingFromPrefs' so that the GUI is
46  // initialised with values from gPrefs.
49  // ----------------------- End of main section --------------
50 }
51 
53 {
54  S.SetBorder(2);
55  S.StartScroller();
56 
57  S.StartStatic(_("Show Warnings/Prompts for"));
58  {
59  S.TieCheckBox(_("Saving &projects"),
60  wxT("/Warnings/FirstProjectSave"),
61  true);
62  S.TieCheckBox(_("Saving &empty project"),
63  wxT("/GUI/EmptyCanBeDirty"),
64  true);
65  S.TieCheckBox(_("&Low disk space at launch or new project"),
66  wxT("/Warnings/DiskSpaceWarning"),
67  true);
68  S.TieCheckBox(_("Mixing down to &mono during export"),
69  wxT("/Warnings/MixMono"),
70  true);
71  S.TieCheckBox(_("Mixing down to &stereo during export"),
72  wxT("/Warnings/MixStereo"),
73  true);
74  S.TieCheckBox(_("Mixing down on export (&Custom FFmpeg or external program)"),
75  wxT("/Warnings/MixUnknownChannels"),
76  true);
77  S.TieCheckBox(_("&Importing uncompressed audio files"),
78  wxT("/Warnings/CopyOrEditUncompressedDataAsk"),
79  true);
80  }
81  S.EndStatic();
82  S.EndScroller();
83 
84 }
85 
87 {
90 
91  return true;
92 }
93 
95 {
96  return "Warnings_Preferences";
97 }
98 
99 PrefsPanel *WarningsPrefsFactory::operator () (wxWindow *parent, wxWindowID winid)
100 {
101  wxASSERT(parent); // to justify safenew
102  return safenew WarningsPrefs(parent, winid);
103 }
Derived from ShuttleGuiBase, an Audacity specific class for shuttling data to and from GUI...
Definition: ShuttleGui.h:409
WarningsPrefs(wxWindow *parent, wxWindowID winid)
bool Commit() override
PrefsPanel * operator()(wxWindow *parent, wxWindowID winid) override
void EndScroller()
Definition: ShuttleGui.cpp:828
A PrefsPanel to enable/disable certain warning messages.
Definition: WarningsPrefs.h:24
#define safenew
Definition: Audacity.h:230
wxScrolledWindow * StartScroller(int iStyle=0)
Definition: ShuttleGui.cpp:795
wxString HelpPageName() override
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
void SetBorder(int Border)
Definition: ShuttleGui.h:286
void PopulateOrExchange(ShuttleGui &S) override