2005-03-16 16:18:31 +00:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Name: config.h
|
|
|
|
// Purpose: wxConfig base header
|
2005-05-04 18:57:50 +00:00
|
|
|
// Author: Julian Smart
|
2005-03-16 16:18:31 +00:00
|
|
|
// Modified by:
|
|
|
|
// Created:
|
2005-05-04 18:57:50 +00:00
|
|
|
// Copyright: (c) Julian Smart
|
2005-03-16 16:18:31 +00:00
|
|
|
// RCS-ID: $Id$
|
|
|
|
// Licence: wxWindows licence
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
1998-08-22 16:41:51 +00:00
|
|
|
#ifndef _WX_CONFIG_H_BASE_
|
|
|
|
#define _WX_CONFIG_H_BASE_
|
|
|
|
|
2009-05-06 03:08:33 +00:00
|
|
|
#include "wx/confbase.h"
|
2009-03-07 14:03:45 +00:00
|
|
|
|
|
|
|
#if wxUSE_CONFIG
|
|
|
|
|
2008-03-02 01:14:16 +00: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 16:32:16 +00:00
|
|
|
#if defined(__WXMSW__) && wxUSE_CONFIG_NATIVE
|
2008-03-02 01:14:16 +00: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 09:48:43 +00:00
|
|
|
#elif defined(__WXPALMOS__) && wxUSE_CONFIG_NATIVE
|
2008-03-02 01:14:16 +00: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 14:01:55 +00:00
|
|
|
#endif
|
|
|
|
|
2009-03-07 14:03:45 +00:00
|
|
|
#endif // wxUSE_CONFIG
|
|
|
|
|
2008-03-02 01:14:16 +00:00
|
|
|
#endif // _WX_CONFIG_H_BASE_
|