mirror of
https://github.com/cookiengineer/audacity
synced 2025-05-04 17:49:45 +02:00
// Indentation settings for Vim and Emacs etc. lines from all files, as Campbell's patch (except for other changes to Languages.cpp)
44 lines
1.2 KiB
C
44 lines
1.2 KiB
C
/**********************************************************************
|
|
|
|
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
|