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

A PrefsPanel to enable/disable certain warning messages. More...

#include <WarningsPrefs.h>

Inheritance diagram for WarningsPrefs:
PrefsPanel wxPanelWrapper wxTabTraversalWrapper< wxPanel >

Public Member Functions

 WarningsPrefs (wxWindow *parent, wxWindowID winid)
 
 ~WarningsPrefs ()
 
bool Commit () override
 
wxString HelpPageName () override
 
- 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 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 (const wxTabTraversalWrapper &)=delete
 
 wxTabTraversalWrapper (wxTabTraversalWrapper &&)=delete
 
wxTabTraversalWrapperoperator= (const wxTabTraversalWrapper &)=delete
 
wxTabTraversalWrapperoperator= (wxTabTraversalWrapper &&)=delete
 

Private Member Functions

void Populate ()
 
void PopulateOrExchange (ShuttleGui &S) override
 

Detailed Description

A PrefsPanel to enable/disable certain warning messages.

Definition at line 24 of file WarningsPrefs.h.

Constructor & Destructor Documentation

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

Definition at line 31 of file WarningsPrefs.cpp.

References Populate().

32 : PrefsPanel(parent, winid, _("Warnings"))
33 {
34  Populate();
35 }
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
WarningsPrefs::~WarningsPrefs ( )

Definition at line 37 of file WarningsPrefs.cpp.

38 {
39 }

Member Function Documentation

bool WarningsPrefs::Commit ( )
overridevirtual

Implements PrefsPanel.

Definition at line 86 of file WarningsPrefs.cpp.

References eIsSavingToPrefs, and PopulateOrExchange().

87 {
90 
91  return true;
92 }
Derived from ShuttleGuiBase, an Audacity specific class for shuttling data to and from GUI...
Definition: ShuttleGui.h:409
void PopulateOrExchange(ShuttleGui &S) override
wxString WarningsPrefs::HelpPageName ( )
overridevirtual

Reimplemented from PrefsPanel.

Definition at line 94 of file WarningsPrefs.cpp.

95 {
96  return "Warnings_Preferences";
97 }
void WarningsPrefs::Populate ( )
private

Definition at line 41 of file WarningsPrefs.cpp.

References eIsCreatingFromPrefs, and PopulateOrExchange().

Referenced by WarningsPrefs().

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 }
Derived from ShuttleGuiBase, an Audacity specific class for shuttling data to and from GUI...
Definition: ShuttleGui.h:409
void PopulateOrExchange(ShuttleGui &S) override
void WarningsPrefs::PopulateOrExchange ( ShuttleGui S)
overrideprivate

Definition at line 52 of file WarningsPrefs.cpp.

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

Referenced by Commit(), and Populate().

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 }
void EndScroller()
Definition: ShuttleGui.cpp:828
wxScrolledWindow * StartScroller(int iStyle=0)
Definition: ShuttleGui.cpp:795
_("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: