1 \section{\class{wxFileHistory
}}\label{wxfilehistory
}
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).
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.
10 \wxheading{Derived from
}
12 \helpref{wxObject
}{wxobject
}
16 \helpref{wxFileHistory overview
}{wxfilehistoryoverview
},
\helpref{wxDocManager
}{wxdocmanager
}
18 \latexignore{\rtfignore{\wxheading{Members
}}}
20 \membersection{wxFileHistory::m
\_fileHistory}
22 \member{char**
}{m
\_fileHistory}
24 A character array of strings corresponding to the most recently opened
27 \membersection{wxFileHistory::m
\_fileHistoryN}
29 \member{int
}{m
\_fileHistoryN}
31 The number of files stored in the history array.
33 \membersection{wxFileHistory::m
\_fileMaxFiles}
35 \member{int
}{m
\_fileMaxFiles}
37 The maximum number of files to be stored and displayed on the menu.
39 \membersection{wxFileHistory::m
\_fileMenu}
41 \member{wxMenu*
}{m
\_fileMenu}
43 The file menu used to display the file history list (if enabled).
45 \membersection{wxFileHistory::wxFileHistory
}
47 \func{}{wxFileHistory
}{\param{int
}{ maxFiles =
9}}
49 Constructor. Pass the maximum number of files that should be stored and displayed.
51 \membersection{wxFileHistory::
\destruct{wxFileHistory
}}
53 \func{}{\destruct{wxFileHistory
}}{\void}
57 \membersection{wxFileHistory::AddFileToHistory
}
59 \func{void
}{AddFileToHistory
}{\param{const wxString\&
}{filename
}}
61 Adds a file to the file history list, if the object has a pointer to an appropriate file menu.
63 \membersection{wxFileHistory::AddFilesToMenu
}\label{wxfilehistoryaddfilestomenu
}
65 \func{void
}{AddFilesToMenu
}{\void}
67 Appends the files in the history list, to all menus managed by the file history object.
69 \func{void
}{AddFilesToMenu
}{\param{wxMenu*
}{ menu
}}
71 Appends the files in the history list, to the given menu only.
73 \membersection{wxFileHistory::GetHistoryFile
}\label{wxfilehistorygethistoryfile
}
75 \constfunc{wxString
}{GetHistoryFile
}{\param{int
}{ index
}}
77 Returns the file at this index (zero-based).
79 \membersection{wxFileHistory::GetMaxFiles
}
81 \constfunc{int
}{GetMaxFiles
}{\void}
83 Returns the maximum number of files that can be stored.
85 \membersection{wxFileHistory::GetNoHistoryFiles
}
87 \constfunc{int
}{GetNoHistoryFiles
}{\void}
89 Returns the number of files currently stored in the file history.
91 \membersection{wxFileHistory::Load
}
93 \func{void
}{Load
}{\param{wxConfigBase\&
}{config
}}
95 Loads the file history from the given config object. This function should be called explicitly by the application.
99 \helpref{wxConfig
}{wxconfigbase
}
101 \membersection{wxFileHistory::RemoveMenu
}
103 \func{void
}{RemoveMenu
}{\param{wxMenu*
}{menu
}}
105 Removes this menu from the list of those managed by this object.
107 \membersection{wxFileHistory::Save
}
109 \func{void
}{Save
}{\param{wxConfigBase\&
}{config
}}
111 Saves the file history into the given config object. This must be called
112 explicitly by the application.
116 \helpref{wxConfig
}{wxconfigbase
}
118 \membersection{wxFileHistory::UseMenu
}
120 \func{void
}{UseMenu
}{\param{wxMenu*
}{menu
}}
122 Adds this menu to the list of those managed by this object.