2005-03-16 11:18:31 -05:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Name: config.h
|
|
|
|
// Purpose: wxConfig base header
|
2005-05-04 14:57:50 -04:00
|
|
|
// Author: Julian Smart
|
2005-03-16 11:18:31 -05:00
|
|
|
// Modified by:
|
|
|
|
// Created:
|
2005-05-04 14:57:50 -04:00
|
|
|
// Copyright: (c) Julian Smart
|
2005-03-16 11:18:31 -05:00
|
|
|
// RCS-ID: $Id$
|
|
|
|
// Licence: wxWindows licence
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
1998-08-22 12:41:51 -04:00
|
|
|
#ifndef _WX_CONFIG_H_BASE_
|
|
|
|
#define _WX_CONFIG_H_BASE_
|
|
|
|
|
2005-03-16 11:18:31 -05:00
|
|
|
#include "wx/defs.h"
|
2009-03-07 09:03:45 -05:00
|
|
|
|
|
|
|
#if wxUSE_CONFIG
|
|
|
|
|
1998-08-22 12:41:51 -04:00
|
|
|
#include "wx/confbase.h"
|
|
|
|
|
2008-03-01 20:14:16 -05:00
|
|
|
// ----------------------------------------------------------------------------
|
|
|
|
// define the native wxConfigBase implementation
|
|
|
|
// ----------------------------------------------------------------------------
|
|
|
|
|
|
|
|
// under Windows we prefer to use the native implementation but can be forced
|
|
|
|
// to use the file-based one
|
1999-12-02 11:32:16 -05:00
|
|
|
#if defined(__WXMSW__) && wxUSE_CONFIG_NATIVE
|
2008-03-01 20:14:16 -05:00
|
|
|
#include "wx/msw/regconf.h"
|
|
|
|
#define wxConfig wxRegConfig
|
|
|
|
#elif defined(__WXOS2__) && wxUSE_CONFIG_NATIVE
|
|
|
|
#include "wx/os2/iniconf.h"
|
|
|
|
#define wxConfig wxIniConfig
|
2004-12-29 04:48:43 -05:00
|
|
|
#elif defined(__WXPALMOS__) && wxUSE_CONFIG_NATIVE
|
2008-03-01 20:14:16 -05:00
|
|
|
#include "wx/palmos/prefconf.h"
|
|
|
|
#define wxConfig wxPrefConfig
|
|
|
|
#else // either we're under Unix or wish to always use config files
|
|
|
|
#include "wx/fileconf.h"
|
|
|
|
#define wxConfig wxFileConfig
|
1998-05-20 10:01:55 -04:00
|
|
|
#endif
|
|
|
|
|
2009-03-07 09:03:45 -05:00
|
|
|
#endif // wxUSE_CONFIG
|
|
|
|
|
2008-03-01 20:14:16 -05:00
|
|
|
#endif // _WX_CONFIG_H_BASE_
|