readded back SetFullName

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@9028 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 2000-12-31 15:23:43 +00:00
parent 9e8d860761
commit 7124df9b59
2 changed files with 9 additions and 1 deletions

View File

@ -224,12 +224,15 @@ public:
wxString GetName() const { return m_name; }
bool HasName() const { return !m_name.IsEmpty(); }
// full name is the file name + extension (but without the path)
void SetFullName(const wxString& fullname);
wxString GetFullName() const;
const wxArrayString &GetDirs() const { return m_dirs; }
// Construct path only - possibly with the trailing separator
wxString GetPath( bool add_separator = FALSE, wxPathFormat format = wxPATH_NATIVE ) const;
wxString GetPath( bool add_separator = FALSE,
wxPathFormat format = wxPATH_NATIVE ) const;
// more readable synonym
wxString GetPathWithSep(wxPathFormat format = wxPATH_NATIVE ) const

View File

@ -432,6 +432,11 @@ void wxFileName::RemoveDir( int pos )
// accessors
// ----------------------------------------------------------------------------
void wxFileName::SetFullName(const wxString& fullname)
{
SplitPath(fullname, NULL /* no path */, &m_name, &m_ext);
}
wxString wxFileName::GetFullName() const
{
wxString fullname = m_name;