|
Omnidome
Fulldome Mapping Software Toolkit
|
Data structure and menu to store default sessions. More...
#include <RecentSessions.h>


Public Slots | |
| void | clear () |
| Clear list of recent files. More... | |
| void | addFile (QString const &) |
| Add a new file to list. More... | |
| void | setNumberOfFiles (int) |
| Set maximum number of files. More... | |
| void | setActionStates () |
| Disable action for which file does not exists. More... | |
Signals | |
| void | fileToBeLoaded (QString const &) |
Public Member Functions | |
| RecentSessions (QObject *=nullptr) | |
| ~RecentSessions () | |
| QMenu * | menu () |
| Return pointer to menu. More... | |
| void | readFromSettings () |
| Read recent files from settings. More... | |
| void | writeToSettings () const |
| Write recent files to settings. More... | |
| int | numberOfFiles () const |
| Return maximum number of files. More... | |
Private Member Functions | |
| void | addFile (QString const &, bool _regenerateMenu) |
| Add file and optionally regenerate menu. More... | |
| int | fileInList (QString const &) const |
| Return index of file if in list, return -1 if not. More... | |
| void | generateMenu () |
| Generate menu from recent files, create new menu if necessary. More... | |
Private Attributes | |
| std::deque< QString > | recentFiles_ |
| std::vector< RecentFileAction * > | actions_ |
| QUniquePtr< QMenu > | menu_ |
| int | numberOfFiles_ = 16 |
Data structure and menu to store default sessions.
| omni::ui::RecentSessions::RecentSessions | ( | QObject * | _parent = nullptr | ) |
|
slot |
Add a new file to list.
|
private |
Add file and optionally regenerate menu.
|
slot |
Clear list of recent files.
|
private |
Return index of file if in list, return -1 if not.
|
signal |
|
private |
Generate menu from recent files, create new menu if necessary.
| QMenu * omni::ui::RecentSessions::menu | ( | ) |
Return pointer to menu.
| int omni::ui::RecentSessions::numberOfFiles | ( | ) | const |
Return maximum number of files.
| void omni::ui::RecentSessions::readFromSettings | ( | ) |
Read recent files from settings.
|
slot |
Disable action for which file does not exists.
|
slot |
Set maximum number of files.
| void omni::ui::RecentSessions::writeToSettings | ( | ) | const |
Write recent files to settings.
|
private |
|
private |
|
private |
|
private |
1.8.6