Audacity 3.2.0
Public Member Functions | List of all members
GlobalPrefsDialog Class Referencefinal

#include <PrefsDialog.h>

Inheritance diagram for GlobalPrefsDialog:
[legend]
Collaboration diagram for GlobalPrefsDialog:
[legend]

Public Member Functions

 GlobalPrefsDialog (wxWindow *parent, AudacityProject *pProject, PrefsPanel::Factories &factories=PrefsPanel::DefaultFactories())
 
virtual ~GlobalPrefsDialog ()
 
long GetPreferredPage () override
 
void SavePreferredPage () override
 
- Public Member Functions inherited from PrefsDialog
 PrefsDialog (wxWindow *parent, AudacityProject *pProject, const TranslatableString &titlePrefix=XO("Preferences:"), PrefsPanel::Factories &factories=PrefsPanel::DefaultFactories())
 
virtual ~PrefsDialog ()
 
int ShowModal () override
 
void ShuttleAll (ShuttleGui &S)
 
void OnCategoryChange (wxCommandEvent &e)
 
void OnOK (wxCommandEvent &e)
 
void OnCancel (wxCommandEvent &e)
 
void OnPreview (wxCommandEvent &e)
 
void OnHelp (wxCommandEvent &e)
 
void OnTreeKeyDown (wxTreeEvent &e)
 
void SelectPageByName (const wxString &pageName)
 
int GetSelectedPage () const
 
- Public Member Functions inherited from wxDialogWrapper
 wxDialogWrapper ()
 
 wxDialogWrapper (wxWindow *parent, wxWindowID id, const TranslatableString &title, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxDEFAULT_DIALOG_STYLE, const TranslatableString &name=XO("Dialog"))
 
bool Create (wxWindow *parent, wxWindowID id, const TranslatableString &title, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxDEFAULT_DIALOG_STYLE, const TranslatableString &name=XO("Dialog"))
 
void SetTitle (const TranslatableString &title)
 
void SetLabel (const TranslatableString &title)
 
void SetName (const TranslatableString &title)
 
void SetName ()
 
- Public Member Functions inherited from wxTabTraversalWrapper< wxDialog >
 wxTabTraversalWrapper (Args &&... args)
 
 wxTabTraversalWrapper (const wxTabTraversalWrapper &)=delete
 
 wxTabTraversalWrapper (wxTabTraversalWrapper &&)=delete
 
wxTabTraversalWrapperoperator= (const wxTabTraversalWrapper &)=delete
 
wxTabTraversalWrapperoperator= (wxTabTraversalWrapper &&)=delete
 

Additional Inherited Members

virtual long GetPreferredPage ()=0
 
virtual void SavePreferredPage ()=0
 

Detailed Description

Definition at line 77 of file PrefsDialog.h.

Constructor & Destructor Documentation

◆ GlobalPrefsDialog()

GlobalPrefsDialog::GlobalPrefsDialog ( wxWindow *  parent,
AudacityProject pProject,
PrefsPanel::Factories factories = PrefsPanel::DefaultFactories() 
)
Parameters
pProjectmay be null

Definition at line 817 of file PrefsDialog.cpp.

820 : PrefsDialog(parent, pProject, XO("Preferences:"), factories)
821{
822}
XO("Cut/Copy/Paste")
PrefsDialog(wxWindow *parent, AudacityProject *pProject, const TranslatableString &titlePrefix=XO("Preferences:"), PrefsPanel::Factories &factories=PrefsPanel::DefaultFactories())

◆ ~GlobalPrefsDialog()

GlobalPrefsDialog::~GlobalPrefsDialog ( )
virtual

Definition at line 824 of file PrefsDialog.cpp.

825{
826}

Member Function Documentation

◆ GetPreferredPage()

long GlobalPrefsDialog::GetPreferredPage ( )
overridevirtual

Implements PrefsDialog.

Definition at line 828 of file PrefsDialog.cpp.

829{
830 long prefscat = gPrefs->Read(wxT("/Prefs/PrefsCategory"), 0L);
831 return prefscat;
832}
wxT("CloseDown"))
audacity::BasicSettings * gPrefs
Definition: Prefs.cpp:68
virtual bool Read(const wxString &key, bool *value) const =0

References gPrefs, audacity::BasicSettings::Read(), and wxT().

Here is the call graph for this function:

◆ SavePreferredPage()

void GlobalPrefsDialog::SavePreferredPage ( )
overridevirtual

Implements PrefsDialog.

Definition at line 834 of file PrefsDialog.cpp.

835{
836 gPrefs->Write(wxT("/Prefs/PrefsCategory"), (long)GetSelectedPage());
837 gPrefs->Flush();
838}
int GetSelectedPage() const
virtual bool Flush() noexcept=0
virtual bool Write(const wxString &key, bool value)=0

References audacity::BasicSettings::Flush(), PrefsDialog::GetSelectedPage(), gPrefs, audacity::BasicSettings::Write(), and wxT().

Here is the call graph for this function:

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