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:
parent
9e8d860761
commit
7124df9b59
@ -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
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user