X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/3980000ca63a479b7b30ca93c07edbf12e4a51b7..21dc4be5d27fd73cda55795ab9d1e7e02b494c46:/docs/latex/wx/config.tex diff --git a/docs/latex/wx/config.tex b/docs/latex/wx/config.tex index ac188139cf..d8b57af2b4 100644 --- a/docs/latex/wx/config.tex +++ b/docs/latex/wx/config.tex @@ -2,7 +2,7 @@ wxConfigBase class defines the basic interface of all config classes. It can not be used by itself (it is an abstract base class) and you will always use one -of its derivations: wxIniConfig, \helpref{wxFileConfig}{wxfileconfig}, +of its derivations: \helpref{wxFileConfig}{wxfileconfig}, wxRegConfig or any other. However, usually you don't even need to know the precise nature of the class @@ -12,7 +12,7 @@ the registry under Win32 or text-based config files under Unix (or even Windows 3.1 .INI files if you're really unlucky). To make writing the portable code even easier, wxWidgets provides a typedef wxConfig which is mapped onto the native wxConfigBase implementation on the given -platform: i.e. wxRegConfig under Win32 (optionally wxIniConfig) and +platform: i.e. wxRegConfig under Win32 and wxFileConfig otherwise. See \helpref{config overview}{wxconfigoverview} for the descriptions of all @@ -30,8 +30,7 @@ No base class (to let wxWidgets choose a wxConfig class for your platform)\\ (base config class)\\ (wxFileConfig class)\\ - (wxRegConfig class)\\ - (wxIniConfig class) + (wxRegConfig class) \wxheading{Example} @@ -200,6 +199,7 @@ explicitly. Having said all this, enumerating the config entries/groups is very simple: \begin{verbatim} + wxConfigBase *config = ...; wxArrayString aNames; // enumeration variables @@ -386,6 +386,7 @@ add wxCONFIG\_USE\_NO\_ESCAPE\_CHARACTERS which will turn off character escaping for the values of entries stored in the config file: for example a {\it foo} key with some backslash characters will be stored as {\tt foo=C:$\backslash$mydir} instead of the usual storage of {\tt foo=C:$\backslash\backslash$mydir}. +For wxRegConfig, this flag refers to HKLM, and provides read-only access. The wxCONFIG\_USE\_NO\_ESCAPE\_CHARACTERS style can be helpful if your config file must be read or written to by a non-wxWidgets program (which might not @@ -804,3 +805,4 @@ implements the following methods:\par \twocolitem{{\bf WriteBool(key, value)}}{Writes a boolean} \end{twocollist} }} +