X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ba7fe276d4606f96352a468dbad872aa48932d8c..bf95a04f16759468ee7af83a7a78019399c648bb:/docs/latex/wx/filesys.tex diff --git a/docs/latex/wx/filesys.tex b/docs/latex/wx/filesys.tex index 10a5c6e082..d01ce1ee96 100644 --- a/docs/latex/wx/filesys.tex +++ b/docs/latex/wx/filesys.tex @@ -53,33 +53,33 @@ care about it. \membersection{wxFileSystem::ChangePathTo}\label{wxfilesystemchangepathto} -\func{void}{ChangePathTo}{\param{const wxString\& }{location}, \param{bool }{is\_dir = FALSE}} +\func{void}{ChangePathTo}{\param{const wxString\& }{location}, \param{bool }{is\_dir = false}} Sets the current location. {\it location} parameter passed to \helpref{OpenFile}{wxfilesystemopenfile} is relative to this path. -{\bf Caution! } Unless {\it is\_dir} is TRUE the {\it location} parameter +{\bf Caution! } Unless {\it is\_dir} is true the {\it location} parameter is not the directory name but the name of the file in this directory. All these commands change the path to "dir/subdir/": \begin{verbatim} ChangePathTo("dir/subdir/xh.htm"); - ChangePathTo("dir/subdir", TRUE); -C hangePathTo("dir/subdir/", TRUE); + ChangePathTo("dir/subdir", true); +C hangePathTo("dir/subdir/", true); \end{verbatim} \wxheading{Parameters} \docparam{location}{the new location. Its meaning depends on the value of {\it is\_dir}} -\docparam{is\_dir}{if TRUE {\it location} is new directory. If FALSE (default) +\docparam{is\_dir}{if true {\it location} is new directory. If false (default) {\it location} is {\bf file in} the new directory.} \wxheading{Example} \begin{verbatim} f = fs -> OpenFile("hello.htm"); // opens file 'hello.htm' - fs -> ChangePathTo("subdir/folder", TRUE); + fs -> ChangePathTo("subdir/folder", true); f = fs -> OpenFile("hello.htm"); // opens file 'subdir/folder/hello.htm' !! \end{verbatim} @@ -125,7 +125,7 @@ absolute path. \membersection{wxFileSystem::URLToFileName}\label{wxfilesystemurltofilename} -\func{static wxFileName}{URLToFileName}{\param{const wxString& }{url}} +\func{static wxFileName}{URLToFileName}{\param{const wxString\& }{url}} Converts URL into a well-formed filename. The URL must use the {\tt file} protocol.