Audacity  2.2.0
FileHistory Class Reference

Similar to FileHistory, but customized to our needs. More...

#include <FileHistory.h>

Public Member Functions

 FileHistory (size_t maxfiles=12, wxWindowID idbase=wxID_FILE)
 
virtual ~FileHistory ()
 
void AddFileToHistory (const wxString &file, bool update=true)
 
void RemoveFileFromHistory (size_t i, bool update=true)
 
void Clear ()
 
void UseMenu (wxMenu *menu)
 
void RemoveMenu (wxMenu *menu)
 
void Load (wxConfigBase &config, const wxString &group)
 
void Save (wxConfigBase &config, const wxString &group)
 
void AddFilesToMenu ()
 
void AddFilesToMenu (wxMenu *menu)
 
size_t GetCount ()
 
const wxString & GetHistoryFile (size_t i) const
 

Private Attributes

size_t mMaxFiles
 
wxWindowID mIDBase
 
std::vector< wxMenu * > mMenus
 
wxArrayString mHistory
 

Detailed Description

Similar to FileHistory, but customized to our needs.

Constructor & Destructor Documentation

FileHistory::FileHistory ( size_t  maxfiles = 12,
wxWindowID  idbase = wxID_FILE 
)

References mIDBase, and mMaxFiles.

FileHistory::~FileHistory ( )
virtual

Member Function Documentation

void FileHistory::AddFilesToMenu ( )
void FileHistory::AddFilesToMenu ( wxMenu *  menu)

References _(), mHistory, and mIDBase.

void FileHistory::AddFileToHistory ( const wxString &  file,
bool  update = true 
)
void FileHistory::Clear ( )

References AddFilesToMenu(), and mHistory.

size_t FileHistory::GetCount ( )

References mHistory.

Referenced by ExportCLOptions::PopulateOrExchange().

const wxString & FileHistory::GetHistoryFile ( size_t  i) const

References mHistory.

Referenced by ExportCLOptions::PopulateOrExchange().

void FileHistory::Load ( wxConfigBase &  config,
const wxString &  group 
)
void FileHistory::RemoveFileFromHistory ( size_t  i,
bool  update = true 
)

References AddFilesToMenu(), and mHistory.

void FileHistory::RemoveMenu ( wxMenu *  menu)
void FileHistory::Save ( wxConfigBase &  config,
const wxString &  group 
)
void FileHistory::UseMenu ( wxMenu *  menu)

Member Data Documentation

wxArrayString FileHistory::mHistory
private
wxWindowID FileHistory::mIDBase
private

Referenced by AddFilesToMenu(), and FileHistory().

size_t FileHistory::mMaxFiles
private

Referenced by AddFileToHistory(), and FileHistory().

std::vector<wxMenu*> FileHistory::mMenus
private

Referenced by AddFilesToMenu(), RemoveMenu(), and UseMenu().


The documentation for this class was generated from the following files: