GetPath() now has wxPATH_GET_COLUME by default

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22324 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2003-07-27 22:53:23 +00:00
parent 7c4728f633
commit 93fa67c0e6
2 changed files with 5 additions and 3 deletions

View File

@@ -378,7 +378,7 @@ Returns the name part of the filename.
\membersection{wxFileName::GetPath}\label{wxfilenamegetpath} \membersection{wxFileName::GetPath}\label{wxfilenamegetpath}
\constfunc{wxString}{GetPath}{\param{int }{flags = $0$}, \param{wxPathFormat }{format = wxPATH\_NATIVE}} \constfunc{wxString}{GetPath}{\param{int }{flags = {\tt wxPATH\_GET\_VOLUME}}, \param{wxPathFormat }{format = wxPATH\_NATIVE}}
Returns the path part of the filename (without the name or extension). The Returns the path part of the filename (without the name or extension). The
possible flags values are: possible flags values are:
@@ -386,7 +386,8 @@ possible flags values are:
\twocolwidtha{5cm} \twocolwidtha{5cm}
\begin{twocollist}\itemsep=0pt \begin{twocollist}\itemsep=0pt
\twocolitem{{\bf wxPATH\_GET\_VOLUME}}{Return the path with the volume (does \twocolitem{{\bf wxPATH\_GET\_VOLUME}}{Return the path with the volume (does
nothing for the filename formats without volumes)} nothing for the filename formats without volumes), otherwise the path without
volume part is returned.}
\twocolitem{{\bf wxPATH\_GET\_SEPARATOR}}{Return the path with the trailing \twocolitem{{\bf wxPATH\_GET\_SEPARATOR}}{Return the path with the trailing
separator, if this flag is not given there will be no separator at the end of separator, if this flag is not given there will be no separator at the end of
the path.} the path.}

View File

@@ -359,7 +359,8 @@ public:
const wxArrayString& GetDirs() const { return m_dirs; } const wxArrayString& GetDirs() const { return m_dirs; }
// flags are combination of wxPATH_GET_XXX flags // flags are combination of wxPATH_GET_XXX flags
wxString GetPath(int flags = 0, wxPathFormat format = wxPATH_NATIVE) const; wxString GetPath(int flags = wxPATH_GET_VOLUME,
wxPathFormat format = wxPATH_NATIVE) const;
// Replace current path with this one // Replace current path with this one
void SetPath( const wxString &path, wxPathFormat format = wxPATH_NATIVE ); void SetPath( const wxString &path, wxPathFormat format = wxPATH_NATIVE );