The wxFileHistory encapsulates a user interface convenience, the list of most recently visited files as shown on a menu (usually the File menu).
wxFileHistory::fileHistory
wxFileHistory::fileHistoryN
wxFileHistory::fileMaxFiles
wxFileHistory::fileMenu
wxFileHistory::wxFileHistory
wxFileHistory::~wxFileHistory
wxFileHistory::AddFileToHistory
wxFileHistory::FileHistoryLoad
wxFileHistory::FileHistorySave
wxFileHistory::FileHistoryUseMenu
wxFileHistory::GetMaxFiles
wxFileHistory::GetNoHistoryFiles
char ** fileHistory
A character array of strings corresponding to the most recently opened files.
int fileHistoryN
The number of files stored in the history array.
int fileMaxFiles
The maximum number of files to be stored and displayed on the menu.
wxMenu * fileMenu
The file menu used to display the file history list (if enabled).
void wxFileHistory(int maxFiles = 9)
Constructor. Pass the maximum number of files that should be stored and displayed.
void ~wxFileHistory(void)
Destructor.
void AddFileToHistory(char *filename)
Adds a file to the file history list, if the object has a pointer to an appropriate file menu.
void FileHistoryLoad(char *resourceFile, char *sectionName)
Loads the file history from a resource file, using the given section. This must be called explicitly by the application.
void FileHistorySave(char *resourceFile, char *sectionName)
Saves the file history into a resource file, using the given section. This must be called explicitly by the application.
void FileHistoryUseMenu(wxMenu *menu)
Use this menu for appending recently-visited document filenames, for convenient access. Calling this function with a valid menu pointer enables the history list functionality.
int GetMaxFiles(void)
Returns the maximum number of files that can be stored.
int GetNoHistoryFiles(void)
Returns the number of files currently stored in the file history.