wxMaxima
Loading...
Searching...
No Matches
Public Member Functions
RecentDocuments Class Reference

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.
 

Detailed Description

A class that maintains a list of recent documents.

Constructor & Destructor Documentation

◆ RecentDocuments()

RecentDocuments::RecentDocuments ( const wxString &  documentType)
explicit

The constructor.

Parameters
documentTypeThe 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

Member Function Documentation

◆ Get()

wxString RecentDocuments::Get ( int  num) const

Get the nth item of the list of recent documents.

Note
This function traverses the list of recent documents. Therefore it is slower than an iterator if one needs to access each element in turn.

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