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:
@@ -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_
|
||||
|
Reference in New Issue
Block a user