57 void setMaxNumberOfItems (
int newMaxNumber);
68 int getNumFiles()
const;
74 File getFile (
int index)
const;
91 void addFile (
const File& file);
94 void removeFile (
const File& file);
101 void removeNonExistentFiles();
108 static void registerRecentFileNatively (
const File& file);
115 static void forgetRecentFileNatively (
const File& file);
122 static void clearRecentFilesNatively();
142 int createPopupMenuItems (
PopupMenu& menuToAddItemsTo,
145 bool dontAddNonExistentFiles,
146 const File** filesToAvoid =
nullptr);
166 void restoreFromString (
const String& stringifiedVersion);
172 int maxNumberOfItems;
Represents a local file or directory.
Manages a set of files for use as a list of recently-opened documents.
int getMaxNumberOfItems() const noexcept
Returns the number of items that this list will store.
const StringArray & getAllFilenames() const noexcept
Returns an array of all the absolute pathnames in the list.
A special array for holding a list of strings.
#define JUCE_LEAK_DETECTOR(OwnerClass)
This macro lets you embed a leak-detecting object inside a class.