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 83 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 808 of file PrefsDialog.cpp.

811 : PrefsDialog(parent, pProject, XO("Preferences:"), factories)
812{
813}
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 815 of file PrefsDialog.cpp.

816{
817}

Member Function Documentation

◆ GetPreferredPage()

long GlobalPrefsDialog::GetPreferredPage ( )
overridevirtual

Implements PrefsDialog.

Definition at line 819 of file PrefsDialog.cpp.

820{
821 long prefscat = gPrefs->Read(wxT("/Prefs/PrefsCategory"), 0L);
822 return prefscat;
823}
wxT("CloseDown"))
FileConfig * gPrefs
Definition: Prefs.cpp:70

References gPrefs, and wxT().

Here is the call graph for this function:

◆ SavePreferredPage()

void GlobalPrefsDialog::SavePreferredPage ( )
overridevirtual

Implements PrefsDialog.

Definition at line 825 of file PrefsDialog.cpp.

826{
827 gPrefs->Write(wxT("/Prefs/PrefsCategory"), (long)GetSelectedPage());
828 gPrefs->Flush();
829}
virtual bool Flush(bool bCurrentOnly=false) wxOVERRIDE
Definition: FileConfig.cpp:143
int GetSelectedPage() const

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

Here is the call graph for this function:

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