Reimplemented wxFileName with m_relative field.

Adapted wxFileDialog to trailing slashes.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13038 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robert Roebling
2001-12-16 12:07:44 +00:00
parent c04857dd6a
commit 353f41cb3b
4 changed files with 224 additions and 107 deletions

View File

@@ -260,11 +260,12 @@ public:
static bool IsCaseSensitive( wxPathFormat format = wxPATH_NATIVE );
// is this filename absolute?
bool IsAbsolute( wxPathFormat format = wxPATH_NATIVE );
bool IsAbsolute() const
{ return !m_relative; }
// is this filename relative?
bool IsRelative( wxPathFormat format = wxPATH_NATIVE )
{ return !IsAbsolute(format); }
bool IsRelative() const
{ return m_relative; }
// Information about path format
@@ -354,6 +355,9 @@ private:
// the file name and extension (empty for directories)
wxString m_name,
m_ext;
// is the path relative
bool m_relative;
};
#endif // _WX_FILENAME_H_