]> git.saurik.com Git - wxWidgets.git/commitdiff
readded back SetFullName
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 31 Dec 2000 15:23:43 +0000 (15:23 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 31 Dec 2000 15:23:43 +0000 (15:23 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@9028 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/filename.h
src/common/filename.cpp

index 76f9e2169e5646e38b97b83e22b1649a4dd678c0..67a153d89530250fffd9600e6b601635a4179e90 100644 (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
index e0c45c36ff3b733648c2b6073eaeb87baa7c1d47..ef07caccef375db9fe4ac0e23c06f132233c98e3 100644 (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;