]> git.saurik.com Git - wxWidgets.git/blame_incremental - docs/latex/wx/filehist.tex
Motif and other mods
[wxWidgets.git] / docs / latex / wx / filehist.tex
... / ...
CommitLineData
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
6wxFileHistory can manage one or more file menus. More than one menu may be required
7in an MDI application, where the file history should appear on each MDI child menu
8as well as the MDI parent frame.
9
10\wxheading{Derived from}
11
12\helpref{wxObject}{wxobject}
13
14\wxheading{See also}
15
16\helpref{wxFileHistory overview}{wxfilehistoryoverview}, \helpref{wxDocManager}{wxdocmanager}
17
18\latexignore{\rtfignore{\wxheading{Members}}}
19
20\membersection{wxFileHistory::m\_fileHistory}
21
22\member{char**}{m\_fileHistory}
23
24A character array of strings corresponding to the most recently opened
25files.
26
27\membersection{wxFileHistory::m\_fileHistoryN}
28
29\member{int}{m\_fileHistoryN}
30
31The number of files stored in the history array.
32
33\membersection{wxFileHistory::m\_fileMaxFiles}
34
35\member{int}{m\_fileMaxFiles}
36
37The maximum number of files to be stored and displayed on the menu.
38
39\membersection{wxFileHistory::m\_fileMenu}
40
41\member{wxMenu*}{m\_fileMenu}
42
43The file menu used to display the file history list (if enabled).
44
45\membersection{wxFileHistory::wxFileHistory}
46
47\func{}{wxFileHistory}{\param{int}{ maxFiles = 9}}
48
49Constructor. Pass the maximum number of files that should be stored and displayed.
50
51\membersection{wxFileHistory::\destruct{wxFileHistory}}
52
53\func{}{\destruct{wxFileHistory}}{\void}
54
55Destructor.
56
57\membersection{wxFileHistory::AddFileToHistory}
58
59\func{void}{AddFileToHistory}{\param{const wxString\& }{filename}}
60
61Adds a file to the file history list, if the object has a pointer to an appropriate file menu.
62
63\membersection{wxFileHistory::AddFilesToMenu}\label{wxfilehistoryaddfilestomenu}
64
65\func{void}{AddFilesToMenu}{\void}
66
67Appends the files in the history list, to all menus managed by the file history object.
68
69\func{void}{AddFilesToMenu}{\param{wxMenu*}{ menu}}
70
71Appends the files in the history list, to the given menu only.
72
73\membersection{wxFileHistory::GetHistoryFile}\label{wxfilehistorygethistoryfile}
74
75\constfunc{wxString}{GetHistoryFile}{\param{int}{ index}}
76
77Returns the file at this index (zero-based).
78
79\membersection{wxFileHistory::GetMaxFiles}
80
81\constfunc{int}{GetMaxFiles}{\void}
82
83Returns the maximum number of files that can be stored.
84
85\membersection{wxFileHistory::GetNoHistoryFiles}
86
87\constfunc{int}{GetNoHistoryFiles}{\void}
88
89Returns the number of files currently stored in the file history.
90
91\membersection{wxFileHistory::Load}
92
93\func{void}{Load}{\param{wxConfigBase\& }{config}}
94
95Loads the file history from the given config object. This function should be called explicitly by the application.
96
97\wxheading{See also}
98
99\helpref{wxConfig}{wxconfigbase}
100
101\membersection{wxFileHistory::RemoveMenu}
102
103\func{void}{RemoveMenu}{\param{wxMenu* }{menu}}
104
105Removes this menu from the list of those managed by this object.
106
107\membersection{wxFileHistory::Save}
108
109\func{void}{Save}{\param{wxConfigBase\& }{config}}
110
111Saves the file history into the given config object. This must be called
112explicitly by the application.
113
114\wxheading{See also}
115
116\helpref{wxConfig}{wxconfigbase}
117
118\membersection{wxFileHistory::UseMenu}
119
120\func{void}{UseMenu}{\param{wxMenu* }{menu}}
121
122Adds this menu to the list of those managed by this object.
123
124