]> git.saurik.com Git - wxWidgets.git/blob - docs/latex/wx/filehist.tex
fixes
[wxWidgets.git] / docs / latex / wx / filehist.tex
1 \section{\class{wxFileHistory}}\label{wxfilehistory}
2
3 The wxFileHistory encapsulates a user interface convenience, the
4 list of most recently visited files as shown on a menu (usually the File menu).
5
6 wxFileHistory can manage one or more file menus. More than one menu may be required
7 in an MDI application, where the file history should appear on each MDI child menu
8 as 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
24 A character array of strings corresponding to the most recently opened
25 files.
26
27 \membersection{wxFileHistory::m\_fileHistoryN}
28
29 \member{int}{m\_fileHistoryN}
30
31 The number of files stored in the history array.
32
33 \membersection{wxFileHistory::m\_fileMaxFiles}
34
35 \member{int}{m\_fileMaxFiles}
36
37 The 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
43 The 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
49 Constructor. 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
55 Destructor.
56
57 \membersection{wxFileHistory::AddFileToHistory}
58
59 \func{void}{AddFileToHistory}{\param{const wxString\& }{filename}}
60
61 Adds 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
67 Appends the files in the history list, to all menus managed by the file history object.
68
69 \func{void}{AddFilesToMenu}{\param{wxMenu*}{ menu}}
70
71 Appends 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
77 Returns the file at this index (zero-based).
78
79 \membersection{wxFileHistory::GetMaxFiles}
80
81 \constfunc{int}{GetMaxFiles}{\void}
82
83 Returns the maximum number of files that can be stored.
84
85 \membersection{wxFileHistory::GetNoHistoryFiles}
86
87 \constfunc{int}{GetNoHistoryFiles}{\void}
88
89 Returns the number of files currently stored in the file history.
90
91 \membersection{wxFileHistory::Load}
92
93 \func{void}{Load}{\param{wxConfigBase\& }{config}}
94
95 Loads 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
105 Removes 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
111 Saves the file history into the given config object. This must be called
112 explicitly 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
122 Adds this menu to the list of those managed by this object.
123
124