Audacity  3.0.3
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

Detailed Description

Definition at line 80 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 805 of file PrefsDialog.cpp.

808  : PrefsDialog(parent, pProject, XO("Preferences:"), factories)
809 {
810 }

◆ ~GlobalPrefsDialog()

GlobalPrefsDialog::~GlobalPrefsDialog ( )
virtual

Definition at line 812 of file PrefsDialog.cpp.

813 {
814 }

Member Function Documentation

◆ GetPreferredPage()

long GlobalPrefsDialog::GetPreferredPage ( )
overridevirtual

Implements PrefsDialog.

Definition at line 816 of file PrefsDialog.cpp.

817 {
818  long prefscat = gPrefs->Read(wxT("/Prefs/PrefsCategory"), 0L);
819  return prefscat;
820 }

References gPrefs.

◆ SavePreferredPage()

void GlobalPrefsDialog::SavePreferredPage ( )
overridevirtual

Implements PrefsDialog.

Definition at line 822 of file PrefsDialog.cpp.

823 {
824  gPrefs->Write(wxT("/Prefs/PrefsCategory"), (long)GetSelectedPage());
825  gPrefs->Flush();
826 }

References FileConfig::Flush(), PrefsDialog::GetSelectedPage(), and gPrefs.

Here is the call graph for this function:

The documentation for this class was generated from the following files:
gPrefs
FileConfig * gPrefs
Definition: Prefs.cpp:70
XO
#define XO(s)
Definition: Internat.h:31
PrefsDialog::GetSelectedPage
int GetSelectedPage() const
Definition: PrefsDialog.cpp:797
FileConfig::Flush
virtual bool Flush(bool bCurrentOnly=false) wxOVERRIDE
Definition: FileConfig.cpp:143
PrefsDialog::PrefsDialog
PrefsDialog(wxWindow *parent, AudacityProject *pProject, const TranslatableString &titlePrefix=XO("Preferences:"), PrefsPanel::Factories &factories=PrefsPanel::DefaultFactories())
Definition: PrefsDialog.cpp:446