1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-05-06 14:52:34 +02:00
audacity/src/Prefs.h

56 lines
1.5 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
// 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