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