]> git.saurik.com Git - wxWidgets.git/blame - docs/latex/wx/filehist.tex
Resubmitted binary files that may been corrupted
[wxWidgets.git] / docs / latex / wx / filehist.tex
CommitLineData
a660d684
KB
1\section{\class{wxFileHistory}}\label{wxfilehistory}
2
3The wxFileHistory encapsulates a user interface convenience, the
4list of most recently visited files as shown on a menu (usually the File menu).
5
6\wxheading{Derived from}
7
8\helpref{wxObject}{wxobject}
9
10\wxheading{See also}
11
12\overview{wxFileHistory overview}{wxfilehistoryoverview}
13
14\latexignore{\rtfignore{\wxheading{Members}}}
15
16\membersection{wxFileHistory::m\_fileHistory}
17
18\member{char**}{m\_fileHistory}
19
20A character array of strings corresponding to the most recently opened
21files.
22
23\membersection{wxFileHistory::m\_fileHistoryN}
24
25\member{int}{m\_fileHistoryN}
26
27The number of files stored in the history array.
28
29\membersection{wxFileHistory::m\_fileMaxFiles}
30
31\member{int}{m\_fileMaxFiles}
32
33The maximum number of files to be stored and displayed on the menu.
34
35\membersection{wxFileHistory::m\_fileMenu}
36
37\member{wxMenu*}{m\_fileMenu}
38
39The file menu used to display the file history list (if enabled).
40
41\membersection{wxFileHistory::wxFileHistory}
42
43\func{}{wxFileHistory}{\param{int}{ maxFiles = 9}}
44
45Constructor. Pass the maximum number of files that should be stored and displayed.
46
47\membersection{wxFileHistory::\destruct{wxFileHistory}}
48
49\func{}{\destruct{wxFileHistory}}{\void}
50
51Destructor.
52
53\membersection{wxFileHistory::AddFileToHistory}
54
55\func{void}{AddFileToHistory}{\param{const wxString\& }{filename}}
56
57Adds a file to the file history list, if the object has a pointer to an appropriate file menu.
58
59\membersection{wxFileHistory::FileHistoryLoad}
60
61\func{void}{FileHistoryLoad}{\param{const wxString\& }{resourceFile}, \param{const wxString\& }{sectionName}}
62
63Loads the file history from a resource file, using the given section. This must be called
64explicitly by the application.
65
66\membersection{wxFileHistory::FileHistorySave}
67
68\func{void}{FileHistorySave}{\param{const wxString\& }{resourceFile}, \param{const wxString\& }{sectionName}}
69
70Saves the file history into a resource file, using the given section. This must be called
71explicitly by the application.
72
73\membersection{wxFileHistory::FileHistoryUseMenu}
74
75\func{void}{FileHistoryUseMenu}{\param{wxMenu* }{menu}}
76
77Use this menu for appending recently-visited document filenames, for convenient
78access. Calling this function with a valid menu pointer enables the history
79list functionality.
80
81\membersection{wxFileHistory::GetMaxFiles}
82
83\func{int}{GetMaxFiles}{\void}
84
85Returns the maximum number of files that can be stored.
86
87\membersection{wxFileHistory::GetNoHistoryFiles}
88
89\func{int}{GetNoHistoryFiles}{\void}
90
91Returns the number of files currently stored in the file history.
92
93