added possibility to use several wxFileHistories (patch 685876)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@19443 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2003-03-02 23:35:17 +00:00
parent c5ef41d3b4
commit e49c85af1c
4 changed files with 64 additions and 49 deletions

View File

@@ -30,13 +30,13 @@ files.
\membersection{wxFileHistory::m\_fileHistoryN}
\member{int}{m\_fileHistoryN}
\member{size_t}{m\_fileHistoryN}
The number of files stored in the history array.
\membersection{wxFileHistory::m\_fileMaxFiles}
\member{int}{m\_fileMaxFiles}
\member{size_t}{m\_fileMaxFiles}
The maximum number of files to be stored and displayed on the menu.
@@ -48,10 +48,15 @@ The file menu used to display the file history list (if enabled).
\membersection{wxFileHistory::wxFileHistory}
\func{}{wxFileHistory}{\param{int}{ maxFiles = 9}}
\func{}{wxFileHistory}{\param{size_t}{ maxFiles = 9}, \param{wxWindowID}{ idBase = wxID_FILE1}}
Constructor. Pass the maximum number of files that should be stored and displayed.
idBase defaults to wxID_FILE1 and represents the id given to the first history menu item.
Since menu items can't share the same ID you should change idBase (To one of your own
defined IDs) when using more than one wxFileHistory in your application.
\membersection{wxFileHistory::\destruct{wxFileHistory}}
\func{}{\destruct{wxFileHistory}}{\void}
@@ -76,19 +81,19 @@ Appends the files in the history list, to the given menu only.
\membersection{wxFileHistory::GetHistoryFile}\label{wxfilehistorygethistoryfile}
\constfunc{wxString}{GetHistoryFile}{\param{int}{ index}}
\constfunc{wxString}{GetHistoryFile}{\param{size_t}{ index}}
Returns the file at this index (zero-based).
\membersection{wxFileHistory::GetMaxFiles}
\constfunc{int}{GetMaxFiles}{\void}
\constfunc{size_t}{GetMaxFiles}{\void}
Returns the maximum number of files that can be stored.
\membersection{wxFileHistory::GetNoHistoryFiles}
\constfunc{int}{GetNoHistoryFiles}{\void}
\constfunc{size_t}{GetNoHistoryFiles}{\void}
Returns the number of files currently stored in the file history.