]> git.saurik.com Git - wxWidgets.git/commitdiff
wxDocManager::GetNoHistoryFiles() renamed to GetHistoryFilesCount()
authorVadim Zeitlin <vadim@wxwidgets.org>
Fri, 9 May 2003 00:02:58 +0000 (00:02 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Fri, 9 May 2003 00:02:58 +0000 (00:02 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@20556 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

docs/changes.txt
docs/latex/wx/docmanag.tex
include/wx/docview.h
src/common/docview.cpp

index 2a8bb95f03cd8dbc7ddbd1b483e116b881e3b541..2e6c7ff10593d30459c392ab5b071df82e9e3870 100644 (file)
@@ -5,6 +5,8 @@ wxWindows 2.5/2.6 Change Log
 INCOMPATIBLE CHANGES SINCE 2.4.x
 ================================
 
+- wxDocManager::GetNoHistoryFiles() renamed to GetHistoryFilesCount()
+
 OTHER CHANGES
 =============
 
index 50b9e0da96c30a61f1292e700c6ff1ab2410145d..83b22df2e5f97f29b1b23a77ca76578e9191b82c 100644 (file)
@@ -246,9 +246,9 @@ Returns the directory last selected by the user when opening a file. Initially e
 
 Returns the number of documents that can be open simultaneously.
 
-\membersection{wxDocManager::GetNoHistoryFiles}
+\membersection{wxDocManager::GetHistoryFilesCount}
 
-\func{int}{GetNoHistoryFiles}{\void}
+\func{size\_t}{GetHistoryFilesCount}{\void}
 
 Returns the number of files currently stored in the file history.
 
index ef9a47fd52e8b08356cd0b3e76e6f11d2de3e95f..0c900011ba0cbf597d1822cb3e508b8395bc9fc1 100644 (file)
@@ -399,7 +399,7 @@ public:
     // File history management
     virtual void AddFileToHistory(const wxString& file);
     virtual void RemoveFileFromHistory(size_t i);
-    virtual size_t GetNoHistoryFiles() const;
+    virtual size_t GetHistoryFilesCount() const;
     virtual wxString GetHistoryFile(size_t i) const;
     virtual void FileHistoryUseMenu(wxMenu *menu);
     virtual void FileHistoryRemoveMenu(wxMenu *menu);
@@ -411,12 +411,15 @@ public:
     virtual void FileHistoryAddFilesToMenu();
     virtual void FileHistoryAddFilesToMenu(wxMenu* menu);
 
-    inline wxString GetLastDirectory() const { return m_lastDirectory; }
-    inline void SetLastDirectory(const wxString& dir) { m_lastDirectory = dir; }
+    wxString GetLastDirectory() const { return m_lastDirectory; }
+    void SetLastDirectory(const wxString& dir) { m_lastDirectory = dir; }
 
     // Get the current document manager
     static wxDocManager* GetDocumentManager() { return sm_docManager; }
 
+    // deprecated, don't use
+    virtual size_t GetNoHistoryFiles() const;
+
 protected:
     long              m_flags;
     int               m_defaultDocumentNameCounter;
@@ -560,13 +563,13 @@ public:
 
     // Accessors
     virtual wxString GetHistoryFile(size_t i) const;
-
-    // A synonym for GetNoHistoryFiles
     virtual size_t GetCount() const { return m_fileHistoryN; }
-    size_t GetNoHistoryFiles() const { return m_fileHistoryN; }
 
     wxList& GetMenus() const { return (wxList&) m_fileMenus; }
 
+    // deprecated, don't use
+    size_t GetNoHistoryFiles() const { return m_fileHistoryN; }
+
 protected:
     // Last n files
     wxChar**          m_fileHistory;
index e3d0f5ab88718fd02314b28e983c6c2c4406ef4f..601a15803c6ed5c252eb9a8a8ddf8f0228595568 100644 (file)
@@ -1374,12 +1374,9 @@ void wxDocManager::FileHistoryAddFilesToMenu()
         m_fileHistory->AddFilesToMenu();
 }
 
-size_t wxDocManager::GetNoHistoryFiles() const
+size_t wxDocManager::GetHistoryFilesCount() const
 {
-    if (m_fileHistory)
-        return m_fileHistory->GetNoHistoryFiles();
-    else
-        return 0;
+    return m_fileHistory ? m_fileHistory->GetCount() : 0;
 }