summaryrefslogtreecommitdiffstats
path: root/src/citra_qt/main.h
diff options
context:
space:
mode:
authorLittleWhite <lw.demoscene@googlemail.com>2015-08-17 22:50:52 +0200
committerLittleWhite <lw.demoscene@googlemail.com>2015-08-19 21:33:34 +0200
commitadee93d7847749877dac29ae9f66e8ef8869fd89 (patch)
tree37b41700ca75175bacb91d0fa249c79384181949 /src/citra_qt/main.h
parentMerge pull request #1038 from LittleWhite-tb/contributing-include (diff)
downloadyuzu-adee93d7847749877dac29ae9f66e8ef8869fd89.tar
yuzu-adee93d7847749877dac29ae9f66e8ef8869fd89.tar.gz
yuzu-adee93d7847749877dac29ae9f66e8ef8869fd89.tar.bz2
yuzu-adee93d7847749877dac29ae9f66e8ef8869fd89.tar.lz
yuzu-adee93d7847749877dac29ae9f66e8ef8869fd89.tar.xz
yuzu-adee93d7847749877dac29ae9f66e8ef8869fd89.tar.zst
yuzu-adee93d7847749877dac29ae9f66e8ef8869fd89.zip
Diffstat (limited to 'src/citra_qt/main.h')
-rw-r--r--src/citra_qt/main.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/citra_qt/main.h b/src/citra_qt/main.h
index 4b260ae8b..6f1292295 100644
--- a/src/citra_qt/main.h
+++ b/src/citra_qt/main.h
@@ -60,6 +60,24 @@ private:
void BootGame(const std::string& filename);
void ShutdownGame();
+ /**
+ * Stores the filename in the recently loaded files list.
+ * The new filename is stored at the beginning of the recently loaded files list.
+ * After inserting the new entry, duplicates are removed meaning that if
+ * this was inserted from \a OnMenuRecentFile(), the entry will be put on top
+ * and remove from its previous position.
+ *
+ * Finally, this function calls \a UpdateRecentFiles() to update the UI.
+ *
+ * @param filename the filename to store
+ */
+ void StoreRecentFile(const QString& filename);
+
+ /**
+ * Updates the recent files menu.
+ * Menu entries are rebuilt from the configuration file.
+ * If there is no entry in the menu, the menu is greyed out.
+ */
void UpdateRecentFiles();
void closeEvent(QCloseEvent* event) override;