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:
@@ -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.}
|
||||||
|
@@ -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 );
|
||||||
|
Reference in New Issue
Block a user