summaryrefslogtreecommitdiffstats
path: root/src/citra_qt/main.h
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2015-08-16 06:22:10 +0200
committerbunnei <bunneidev@gmail.com>2015-08-16 06:22:10 +0200
commit882040fde7d168aeeadbc8007c7bc8a574809ecf (patch)
treee2bd20713b1473cf47d1b6875eb612bcc256372c /src/citra_qt/main.h
parentMerge pull request #1032 from lioncash/swap (diff)
parentAdd menu and logic to save and load recently loaded files. (diff)
downloadyuzu-882040fde7d168aeeadbc8007c7bc8a574809ecf.tar
yuzu-882040fde7d168aeeadbc8007c7bc8a574809ecf.tar.gz
yuzu-882040fde7d168aeeadbc8007c7bc8a574809ecf.tar.bz2
yuzu-882040fde7d168aeeadbc8007c7bc8a574809ecf.tar.lz
yuzu-882040fde7d168aeeadbc8007c7bc8a574809ecf.tar.xz
yuzu-882040fde7d168aeeadbc8007c7bc8a574809ecf.tar.zst
yuzu-882040fde7d168aeeadbc8007c7bc8a574809ecf.zip
Diffstat (limited to 'src/citra_qt/main.h')
-rw-r--r--src/citra_qt/main.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/citra_qt/main.h b/src/citra_qt/main.h
index 61114a04d..4b260ae8b 100644
--- a/src/citra_qt/main.h
+++ b/src/citra_qt/main.h
@@ -24,6 +24,8 @@ class GMainWindow : public QMainWindow
{
Q_OBJECT
+ static const int max_recent_files_item = 10; ///< Max number of recently loaded items to keep track
+
// TODO: Make use of this!
enum {
UI_IDLE,
@@ -58,6 +60,8 @@ private:
void BootGame(const std::string& filename);
void ShutdownGame();
+ void UpdateRecentFiles();
+
void closeEvent(QCloseEvent* event) override;
private slots:
@@ -66,6 +70,7 @@ private slots:
void OnStopGame();
void OnMenuLoadFile();
void OnMenuLoadSymbolMap();
+ void OnMenuRecentFile();
void OnOpenHotkeysDialog();
void OnConfigure();
void OnDisplayTitleBars(bool);
@@ -86,6 +91,8 @@ private:
CallstackWidget* callstackWidget;
GPUCommandStreamWidget* graphicsWidget;
GPUCommandListWidget* graphicsCommandsWidget;
+
+ QAction* actions_recent_files[max_recent_files_item];
};
#endif // _CITRA_QT_MAIN_HXX_