wxMaxima
|
A class that maintains a list of recent documents. More...
#include <RecentDocuments.h>
Public Member Functions | |
RecentDocuments (const wxString &documentType) | |
The constructor. | |
void | AddDocument (wxString name) |
Add a new recent document. | |
void | Load () |
Load the recent documents list. | |
void | Save () |
Save the recent documents list. | |
std::list< wxString > | Get () const |
Get the list of recent documents. | |
wxString | Get (int num) const |
Get the nth item of the list of recent documents. | |
virtual | ~RecentDocuments () |
Make sure that we save the list of recent documents on closing the program. | |
A class that maintains a list of recent documents.
|
explicit |
The constructor.
documentType | The name of the list of recent documents to handle with this instance of the class. |
We cannot use wxWidget's recent documents class as we handle several types of recent documents: Documents, temporary save files for unsaved files and maxima packages
wxString RecentDocuments::Get | ( | int | num | ) | const |
Get the nth item of the list of recent documents.