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

#include <PrefsDialog.h>

Inheritance diagram for GlobalPrefsDialog:
PrefsDialog wxDialogWrapper wxTabTraversalWrapper< wxDialog >

Public Member Functions

 GlobalPrefsDialog (wxWindow *parent, Factories &factories=DefaultFactories())
 
virtual ~GlobalPrefsDialog ()
 
long GetPreferredPage () override
 
void SavePreferredPage () override
 
- Public Member Functions inherited from PrefsDialog
 PrefsDialog (wxWindow *parent, const wxString &titlePrefix=_("Preferences: "), Factories &factories=DefaultFactories())
 
virtual ~PrefsDialog ()
 
int ShowModal () override
 
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 wxString &title, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxDEFAULT_DIALOG_STYLE, const wxString &name=_("Dialog"))
 
bool Create (wxWindow *parent, wxWindowID id, const wxString &title, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxDEFAULT_DIALOG_STYLE, const wxString &name=_("Dialog"))
 
- Public Member Functions inherited from wxTabTraversalWrapper< wxDialog >
 wxTabTraversalWrapper (Args &&...args)
 

Additional Inherited Members

- Public Types inherited from PrefsDialog
typedef std::vector< PrefsNodeFactories
 
- Static Public Member Functions inherited from PrefsDialog
static FactoriesDefaultFactories ()
 

Detailed Description

Definition at line 93 of file PrefsDialog.h.

Constructor & Destructor Documentation

GlobalPrefsDialog::GlobalPrefsDialog ( wxWindow *  parent,
Factories factories = DefaultFactories() 
)

Definition at line 546 of file PrefsDialog.cpp.

547  : PrefsDialog(parent, _("Preferences: "), factories)
548 {
549 }
PrefsDialog(wxWindow *parent, const wxString &titlePrefix=_("Preferences: "), Factories &factories=DefaultFactories())
_("Move Track &Down")+wxT("\t")+(GetActiveProject() -> GetCommandManager() ->GetKeyFromName(wxT("TrackMoveDown"))), OnMoveTrack) POPUP_MENU_ITEM(OnMoveTopID, _("Move Track to &Top")+wxT("\t")+(GetActiveProject() ->GetCommandManager() ->GetKeyFromName(wxT("TrackMoveTop"))), OnMoveTrack) POPUP_MENU_ITEM(OnMoveBottomID, _("Move Track to &Bottom")+wxT("\t")+(GetActiveProject() ->GetCommandManager() ->GetKeyFromName(wxT("TrackMoveBottom"))), OnMoveTrack) void TrackMenuTable::OnSetName(wxCommandEvent &)
GlobalPrefsDialog::~GlobalPrefsDialog ( )
virtual

Definition at line 551 of file PrefsDialog.cpp.

552 {
553 }

Member Function Documentation

long GlobalPrefsDialog::GetPreferredPage ( )
overridevirtual

Implements PrefsDialog.

Definition at line 555 of file PrefsDialog.cpp.

References gPrefs.

556 {
557  long prefscat = gPrefs->Read(wxT("/Prefs/PrefsCategory"), 0L);
558  return prefscat;
559 }
wxFileConfig * gPrefs
Definition: Prefs.cpp:72
void GlobalPrefsDialog::SavePreferredPage ( )
overridevirtual

Implements PrefsDialog.

Definition at line 561 of file PrefsDialog.cpp.

References PrefsDialog::GetSelectedPage(), and gPrefs.

562 {
563  gPrefs->Write(wxT("/Prefs/PrefsCategory"), (long)GetSelectedPage());
564  gPrefs->Flush();
565 }
wxFileConfig * gPrefs
Definition: Prefs.cpp:72
int GetSelectedPage() const

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