Audacity  3.0.0
Public Member Functions | Public Attributes | List of all members
AudacityPrefs Class Reference

Our own specialisation of wxFileConfig. It is essentially a renaming, though it does provide one new access function. Most of the prefs work is actually done by the InitPreferences() function. More...

#include <Prefs.h>

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

Public Member Functions

 AudacityPrefs (const wxString &appName={}, const wxString &vendorName={}, const wxString &localFilename={}, const wxString &globalFilename={}, long style=wxCONFIG_USE_LOCAL_FILE|wxCONFIG_USE_GLOBAL_FILE, const wxMBConv &conv=wxConvAuto())
 
void SetVersionKeysInit (int major, int minor, int micro)
 
void GetVersionKeysInit (int &major, int &minor, int &micro) const
 

Public Attributes

int mVersionMajorKeyInit {}
 
int mVersionMinorKeyInit {}
 
int mVersionMicroKeyInit {}
 

Detailed Description

Our own specialisation of wxFileConfig. It is essentially a renaming, though it does provide one new access function. Most of the prefs work is actually done by the InitPreferences() function.

Definition at line 58 of file Prefs.h.

Constructor & Destructor Documentation

◆ AudacityPrefs()

AudacityPrefs::AudacityPrefs ( const wxString &  appName = {},
const wxString &  vendorName = {},
const wxString &  localFilename = {},
const wxString &  globalFilename = {},
long  style = wxCONFIG_USE_LOCAL_FILE | wxCONFIG_USE_GLOBAL_FILE,
const wxMBConv &  conv = wxConvAuto() 
)

Definition at line 175 of file Prefs.cpp.

180  :
181  wxFileConfig(appName,
182  vendorName,
183  localFilename,
184  globalFilename,
185  style,
186  conv)
187 {
188 }

Member Function Documentation

◆ GetVersionKeysInit()

void AudacityPrefs::GetVersionKeysInit ( int &  major,
int &  minor,
int &  micro 
) const
inline

Definition at line 75 of file Prefs.h.

76  {
77  major = mVersionMajorKeyInit;
78  minor = mVersionMinorKeyInit;
79  micro = mVersionMicroKeyInit;
80  }

Referenced by AudacityApp::InitPart2(), and ToolManager::ReadConfig().

Here is the caller graph for this function:

◆ SetVersionKeysInit()

void AudacityPrefs::SetVersionKeysInit ( int  major,
int  minor,
int  micro 
)
inline

Definition at line 69 of file Prefs.h.

70  {
71  mVersionMajorKeyInit = major;
72  mVersionMinorKeyInit = minor;
73  mVersionMicroKeyInit = micro;
74  }

Referenced by anonymous_namespace{AudacityApp.cpp}::PopulatePreferences().

Here is the caller graph for this function:

Member Data Documentation

◆ mVersionMajorKeyInit

int AudacityPrefs::mVersionMajorKeyInit {}

Definition at line 84 of file Prefs.h.

◆ mVersionMicroKeyInit

int AudacityPrefs::mVersionMicroKeyInit {}

Definition at line 86 of file Prefs.h.

◆ mVersionMinorKeyInit

int AudacityPrefs::mVersionMinorKeyInit {}

Definition at line 85 of file Prefs.h.


The documentation for this class was generated from the following files:
AudacityPrefs::mVersionMinorKeyInit
int mVersionMinorKeyInit
Definition: Prefs.h:85
AudacityPrefs::mVersionMajorKeyInit
int mVersionMajorKeyInit
Definition: Prefs.h:84
AudacityPrefs::mVersionMicroKeyInit
int mVersionMicroKeyInit
Definition: Prefs.h:86