mirror of
https://github.com/cookiengineer/audacity
synced 2025-12-24 01:21:13 +01:00
Locate and position the current Audacity source code, and clear a variety of old junk out of the way into junk-branches
This commit is contained in:
55
src/Prefs.h
Normal file
55
src/Prefs.h
Normal file
@@ -0,0 +1,55 @@
|
||||
/**********************************************************************
|
||||
|
||||
Audacity: A Digital Audio Editor
|
||||
|
||||
Prefs.h
|
||||
|
||||
Dominic Mazzoni
|
||||
Markus Meyer
|
||||
|
||||
Audacity uses wxWidgets' wxFileConfig class to handle preferences.
|
||||
In Audacity versions prior to 1.3.1, it used wxConfig, which would
|
||||
store the prefs in a platform-dependent way (e.g. in the registry
|
||||
on Windows). Now it always stores the settings in a configuration file
|
||||
in the Audacity Data Directory.
|
||||
|
||||
Every time we read a preference, we need to specify the default
|
||||
value for that preference, to be used if the preference hasn't
|
||||
been set before.
|
||||
|
||||
So, to avoid code duplication, we provide functions in this file
|
||||
to read and write preferences which have a nonobvious default
|
||||
value, so that if we later want to change this value, we only
|
||||
have to change it in one place.
|
||||
|
||||
See Prefs.cpp for a (complete?) list of preferences we keep
|
||||
track of...
|
||||
|
||||
**********************************************************************/
|
||||
#ifndef __AUDACITY_PREFS__
|
||||
#define __AUDACITY_PREFS__
|
||||
|
||||
#include "Audacity.h"
|
||||
|
||||
#include <wx/config.h>
|
||||
#include <wx/fileconf.h>
|
||||
|
||||
void InitPreferences();
|
||||
void FinishPreferences();
|
||||
|
||||
extern AUDACITY_DLL_API wxFileConfig *gPrefs;
|
||||
extern int gMenusDirty;
|
||||
|
||||
#endif
|
||||
|
||||
// Indentation settings for Vim and Emacs and unique identifier for Arch, a
|
||||
// version control system. Please do not modify past this point.
|
||||
//
|
||||
// Local Variables:
|
||||
// c-basic-offset: 3
|
||||
// indent-tabs-mode: nil
|
||||
// End:
|
||||
//
|
||||
// vim: et sts=3 sw=3
|
||||
// arch-tag: 1550a015-ed6f-47ce-a942-9211cfad50c8
|
||||
|
||||
Reference in New Issue
Block a user