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:
@@ -224,12 +224,15 @@ public:
|
|||||||
wxString GetName() const { return m_name; }
|
wxString GetName() const { return m_name; }
|
||||||
bool HasName() const { return !m_name.IsEmpty(); }
|
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;
|
wxString GetFullName() const;
|
||||||
|
|
||||||
const wxArrayString &GetDirs() const { return m_dirs; }
|
const wxArrayString &GetDirs() const { return m_dirs; }
|
||||||
|
|
||||||
// Construct path only - possibly with the trailing separator
|
// 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
|
// more readable synonym
|
||||||
wxString GetPathWithSep(wxPathFormat format = wxPATH_NATIVE ) const
|
wxString GetPathWithSep(wxPathFormat format = wxPATH_NATIVE ) const
|
||||||
|
@@ -432,6 +432,11 @@ void wxFileName::RemoveDir( int pos )
|
|||||||
// accessors
|
// accessors
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
|
|
||||||
|
void wxFileName::SetFullName(const wxString& fullname)
|
||||||
|
{
|
||||||
|
SplitPath(fullname, NULL /* no path */, &m_name, &m_ext);
|
||||||
|
}
|
||||||
|
|
||||||
wxString wxFileName::GetFullName() const
|
wxString wxFileName::GetFullName() const
|
||||||
{
|
{
|
||||||
wxString fullname = m_name;
|
wxString fullname = m_name;
|
||||||
|
Reference in New Issue
Block a user