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 \wxheading{Derived from
}
8 \helpref{wxObject
}{wxobject
}
12 \overview{wxFileHistory overview
}{wxfilehistoryoverview
}
14 \latexignore{\rtfignore{\wxheading{Members
}}}
16 \membersection{wxFileHistory::m
\_fileHistory}
18 \member{char**
}{m
\_fileHistory}
20 A character array of strings corresponding to the most recently opened
23 \membersection{wxFileHistory::m
\_fileHistoryN}
25 \member{int
}{m
\_fileHistoryN}
27 The number of files stored in the history array.
29 \membersection{wxFileHistory::m
\_fileMaxFiles}
31 \member{int
}{m
\_fileMaxFiles}
33 The maximum number of files to be stored and displayed on the menu.
35 \membersection{wxFileHistory::m
\_fileMenu}
37 \member{wxMenu*
}{m
\_fileMenu}
39 The file menu used to display the file history list (if enabled).
41 \membersection{wxFileHistory::wxFileHistory
}
43 \func{}{wxFileHistory
}{\param{int
}{ maxFiles =
9}}
45 Constructor. Pass the maximum number of files that should be stored and displayed.
47 \membersection{wxFileHistory::
\destruct{wxFileHistory
}}
49 \func{}{\destruct{wxFileHistory
}}{\void}
53 \membersection{wxFileHistory::AddFileToHistory
}
55 \func{void
}{AddFileToHistory
}{\param{const wxString\&
}{filename
}}
57 Adds a file to the file history list, if the object has a pointer to an appropriate file menu.
59 \membersection{wxFileHistory::FileHistoryLoad
}
61 \func{void
}{FileHistoryLoad
}{\param{const wxString\&
}{resourceFile
},
\param{const wxString\&
}{sectionName
}}
63 Loads the file history from a resource file, using the given section. This must be called
64 explicitly by the application.
66 \membersection{wxFileHistory::FileHistorySave
}
68 \func{void
}{FileHistorySave
}{\param{const wxString\&
}{resourceFile
},
\param{const wxString\&
}{sectionName
}}
70 Saves the file history into a resource file, using the given section. This must be called
71 explicitly by the application.
73 \membersection{wxFileHistory::FileHistoryUseMenu
}
75 \func{void
}{FileHistoryUseMenu
}{\param{wxMenu*
}{menu
}}
77 Use this menu for appending recently-visited
document filenames, for convenient
78 access. Calling this function with a valid menu pointer enables the history
81 \membersection{wxFileHistory::GetMaxFiles
}
83 \func{int
}{GetMaxFiles
}{\void}
85 Returns the maximum number of files that can be stored.
87 \membersection{wxFileHistory::GetNoHistoryFiles
}
89 \func{int
}{GetNoHistoryFiles
}{\void}
91 Returns the number of files currently stored in the file history.