X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2ba4130573b01a7427f8fdd8349093f830ddfbd9..bd3e8827dd468030e34df0bde66fc6c38c4fa9b4:/include/wx/confbase.h diff --git a/include/wx/confbase.h b/include/wx/confbase.h index fbd1e57a13..503247fd56 100644 --- a/include/wx/confbase.h +++ b/include/wx/confbase.h @@ -8,18 +8,19 @@ // RCS-ID: $Id$ // Copyright: (c) 1997 Karsten Ballüder Ballueder@usa.net // Vadim Zeitlin -// Licence: wxWindows license +// Licence: wxWindows licence /////////////////////////////////////////////////////////////////////////////// #ifndef _WX_CONFBASE_H_ #define _WX_CONFBASE_H_ -#ifdef __GNUG__ +#if defined(__GNUG__) && !defined(__APPLE__) #pragma interface "confbase.h" #endif #include "wx/defs.h" #include "wx/string.h" +#include "wx/arrstr.h" // ---------------------------------------------------------------------------- // constants @@ -27,7 +28,7 @@ /// shall we be case sensitive in parsing variable names? #ifndef wxCONFIG_CASE_SENSITIVE - #define wxCONFIG_CASE_SENSITIVE FALSE + #define wxCONFIG_CASE_SENSITIVE 0 #endif /// separates group and entry names (probably shouldn't be changed) @@ -58,7 +59,8 @@ enum { wxCONFIG_USE_LOCAL_FILE = 1, wxCONFIG_USE_GLOBAL_FILE = 2, - wxCONFIG_USE_RELATIVE_PATH = 4 + wxCONFIG_USE_RELATIVE_PATH = 4, + wxCONFIG_USE_NO_ESCAPE_CHARACTERS = 8 }; // ---------------------------------------------------------------------------- @@ -72,7 +74,8 @@ enum // Keys are pairs "key_name = value" where value may be of string or integer // (long) type (TODO doubles and other types such as wxDate coming soon). // ---------------------------------------------------------------------------- -class WXDLLEXPORT wxConfigBase + +class WXDLLIMPEXP_BASE wxConfigBase { public: // constants @@ -291,7 +294,7 @@ private: // you work in the entry directory and the path is automatically restored // when the function returns // Taken out of wxConfig since not all compilers can cope with nested classes. -class wxConfigPathChanger +class WXDLLIMPEXP_BASE wxConfigPathChanger { public: // ctor/dtor do path changing/restorin @@ -306,6 +309,8 @@ private: wxString m_strName, // name of entry (i.e. name only) m_strOldPath; // saved path bool m_bChanged; // was the path changed? + + DECLARE_NO_COPY_CLASS(wxConfigPathChanger) }; @@ -335,12 +340,12 @@ private: '_' only. '$' must be escaped ('\$') in order to be taken literally. */ -WXDLLEXPORT wxString wxExpandEnvVars(const wxString &sz); +WXDLLIMPEXP_BASE wxString wxExpandEnvVars(const wxString &sz); /* Split path into parts removing '..' in progress */ -WXDLLEXPORT void wxSplitPath(wxArrayString& aParts, const wxChar *sz); +WXDLLIMPEXP_BASE void wxSplitPath(wxArrayString& aParts, const wxChar *sz); #endif