Provides a "File > Open Recent" menu.
Definition at line 16 of file VuoRecentFileMenu.hh.
Public Slots | |
void | clearRecentFileListActionTriggered () |
Clears the list of recently opened files. More... | |
Signals | |
void | recentFileSelected (QString filePath) |
Emitted when a file has been selected from the menu. More... | |
void | recentFileListCleared () |
Emitted when the user has cleared the list of recently opened files. More... | |
Public Member Functions | |
VuoRecentFileMenu (QWidget *parent=0) | |
Creates an "Open Recent" menu. More... | |
void | addFile (const QString &filePath) |
Adds file with path filePath to the list of recently opened files. More... | |
QStringList | getRecentFiles () |
Returns the list of recently opened files. More... | |
void | setRecentFiles (QStringList recentFiles) |
Sets the list of recently opened files. More... | |
void | pruneNonexistentFiles () |
Updates the internally stored list of recently opened files, removing any files that no longer exist. More... | |
void | openMostRecentFile () |
Opens the most recently opened file. More... | |
|
explicit |
Creates an "Open Recent" menu.
Definition at line 20 of file VuoRecentFileMenu.cc.
void VuoRecentFileMenu::addFile | ( | const QString & | filePath | ) |
Adds file with path filePath
to the list of recently opened files.
Definition at line 30 of file VuoRecentFileMenu.cc.
|
slot |
Clears the list of recently opened files.
Definition at line 166 of file VuoRecentFileMenu.cc.
QStringList VuoRecentFileMenu::getRecentFiles | ( | ) |
Returns the list of recently opened files.
Definition at line 176 of file VuoRecentFileMenu.cc.
void VuoRecentFileMenu::openMostRecentFile | ( | ) |
Opens the most recently opened file.
Definition at line 144 of file VuoRecentFileMenu.cc.
void VuoRecentFileMenu::pruneNonexistentFiles | ( | ) |
Updates the internally stored list of recently opened files, removing any files that no longer exist.
Definition at line 45 of file VuoRecentFileMenu.cc.
|
signal |
Emitted when the user has cleared the list of recently opened files.
|
signal |
Emitted when a file has been selected from the menu.
void VuoRecentFileMenu::setRecentFiles | ( | QStringList | recentFiles | ) |
Sets the list of recently opened files.
Definition at line 184 of file VuoRecentFileMenu.cc.