X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/353327844e319db755c2e7a07a4cf5b53cef35c4..fd495ab3ea1282ddb8bb0cd0fb79fc758ae5fcee:/docs/latex/wx/dir.tex diff --git a/docs/latex/wx/dir.tex b/docs/latex/wx/dir.tex index 4c06f3bce3..6a3dbe6a83 100644 --- a/docs/latex/wx/dir.tex +++ b/docs/latex/wx/dir.tex @@ -126,7 +126,23 @@ empty) and flags, return TRUE on success. Continue enumerating files satisfying the criteria specified by the last call to \helpref{GetFirst}{wxdirgetfirst}. -\membersection{wxDir::Traverse}{wxdirtraverse} +\membersection{wxDir::HasFiles}\label{wxdirhasfiles} + +\func{bool}{HasFiles}{\param{const wxString& }{filespec = wxEmptyString}} + +Returns {\tt TRUE} if the directory contains any files matching the given +{\it filespec}. If {\it filespec} is empty, look for any files at all. In any +case, even hidden files are taken into account. + +\membersection{wxDir::HasSubDirs}\label{wxdirhassubdirs} + +\func{bool}{HasSubDirs}{\param{const wxString& }{dirspec = wxEmptyString}} + +Returns {\tt TRUE} if the directory contains any subdirectories (if a non +empty {\it filespec} is given, only check for directories matching it). +The hidden subdirectories are taken into account as well. + +\membersection{wxDir::Traverse}\label{wxdirtraverse} \func{size\_t}{Traverse}{\param{wxDirTraverser& }{sink}, \param{const wxString& }{filespec = wxEmptyString}, \param{int }{flags = wxDIR\_DEFAULT}} @@ -148,7 +164,7 @@ error. See also: \helpref{GetAllFiles}{wxdirgetallfiles} -\membersection{wxDirTraverser::GetAllFiles}{wxdirtraversergetallfiles} +\membersection{wxDir::GetAllFiles}\label{wxdirgetallfiles} \func{static size\_t}{GetAllFiles}{\param{const wxString& }{dirname}, \param{wxArrayString *}{files}, \param{const wxString& }{filespec = wxEmptyString}, \param{int }{flags = wxDIR\_DEFAULT}} @@ -216,6 +232,7 @@ enum wxDirTraverseResult wxDIR_CONTINUE // continue into this directory }; \end{verbatim} +} \wxheading{Include files} @@ -223,7 +240,7 @@ enum wxDirTraverseResult \latexignore{\rtfignore{\wxheading{Members}}} -\membersection{wxDirTraverser::OnFile}{wxdirtraverseronfile} +\membersection{wxDirTraverser::OnFile}\label{wxdirtraverseronfile} \func{virtual wxDirTraverseResult}{OnFile}{\param{const wxString& }{filename}} @@ -231,7 +248,7 @@ This function is called for each file. It may return {\tt wxDIR\_STOP} to abort traversing (for example, if the file being searched is found) or {\tt wxDIR\_CONTINUE} to proceed. -\membersection{wxDirTraverser::OnDir}{wxdirtraverserondir} +\membersection{wxDirTraverser::OnDir}\label{wxdirtraverserondir} \func{virtual wxDirTraverseResult}{OnDir}{\param{const wxString& }{dirname}}