wxDocManager::GetNoHistoryFiles() renamed to GetHistoryFilesCount()

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@20556 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 2003-05-09 00:02:58 +00:00
parent 1162d0a257
commit 7af6b69e74
4 changed files with 15 additions and 13 deletions

View 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
=============

View 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.

View 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;

View 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;
}