use wxStandardPaths and wxFileName in wxFileConfig resulting in big code simplification and cleanup but also in change of the default file locations under Windows (replaces patch 1620492)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44893 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -393,8 +393,8 @@ However, this path may be also used as user data directory
|
||||
(see \helpref{wxStandardPaths::GetUserDataDir}{wxstandardpathsgetuserdatadir}) if
|
||||
the application has several data files. In this case wxCONFIG\_USE\_SUBDIR
|
||||
flag, which changes the default local configuration file to \tt{~/.appname/appname}
|
||||
should be used. Notice that this flag is ignored on non-Unix system, including
|
||||
VMS, or if a non-default \textit{localFilename} is provided. \newsince{2.8.2}
|
||||
should be used. Notice that this flag is ignored if \textit{localFilename} is
|
||||
provided. \newsince{2.8.2}
|
||||
|
||||
For wxFileConfig, you can also add wxCONFIG\_USE\_NO\_ESCAPE\_CHARACTERS which
|
||||
will turn off character escaping for the values of entries stored in the config
|
||||
|
@@ -44,6 +44,32 @@ as usual.
|
||||
\helpref{Save}{wxfileconfigsave}
|
||||
|
||||
|
||||
\membersection{wxFileName::GetGlobalFile}\label{wxfilenamegetglobalfile}
|
||||
|
||||
\func{static wxFileName}{GetGlobalFile}{\param{const wxString\& }{basename}}
|
||||
|
||||
Return the full path to the file which would be used by wxFileConfig as global,
|
||||
system-wide, file if it were constructed with \arg{basename} as ``global
|
||||
filename'' parameter in the constructor. Notice that this function cannot be
|
||||
used if \arg{basename} is already a full path name.
|
||||
|
||||
|
||||
\membersection{wxFileName::GetLocalFile}\label{wxfilenamegetlocalfile}
|
||||
|
||||
\func{static wxFileName}{GetLocalFile}{\param{const wxString\& }{basename}, \param{int }{style = $0$}}
|
||||
|
||||
Return the full path to the file which would be used by wxFileConfig as local,
|
||||
user-specific, file if it were constructed with \arg{basename} as ``local
|
||||
filename'' parameter in the constructor.
|
||||
|
||||
\arg{style} has the same meaning as in \helpref{constructor}{wxconfigbasector}
|
||||
and can contain any combination of styles but only wxCONFIG\_USE\_SUBDIR bit is
|
||||
examined by this function.
|
||||
|
||||
Notice that this function cannot be used if \arg{basename} is already a full
|
||||
path name.
|
||||
|
||||
|
||||
\membersection{wxFileConfig::Save}\label{wxfileconfigsave}
|
||||
|
||||
\func{bool}{Save}{\param{wxOutputStream\& }{os}, \param{wxMBConv\& }{conv = wxConvUTF8}}
|
||||
|
Reference in New Issue
Block a user