diff options
author | LittleWhite <lw.demoscene@googlemail.com> | 2015-07-28 18:43:18 +0200 |
---|---|---|
committer | LittleWhite <lw.demoscene@googlemail.com> | 2015-08-11 18:45:44 +0200 |
commit | 66eabd326fab12310f5d79ad7639fd9d28a73e19 (patch) | |
tree | 0877974c5d855ec0a9dd434a3f6b6baae1548890 /src/citra_qt/main.h | |
parent | Merge pull request #1018 from bbarenblat/master (diff) | |
download | yuzu-66eabd326fab12310f5d79ad7639fd9d28a73e19.tar yuzu-66eabd326fab12310f5d79ad7639fd9d28a73e19.tar.gz yuzu-66eabd326fab12310f5d79ad7639fd9d28a73e19.tar.bz2 yuzu-66eabd326fab12310f5d79ad7639fd9d28a73e19.tar.lz yuzu-66eabd326fab12310f5d79ad7639fd9d28a73e19.tar.xz yuzu-66eabd326fab12310f5d79ad7639fd9d28a73e19.tar.zst yuzu-66eabd326fab12310f5d79ad7639fd9d28a73e19.zip |
Diffstat (limited to 'src/citra_qt/main.h')
-rw-r--r-- | src/citra_qt/main.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/citra_qt/main.h b/src/citra_qt/main.h index 9fe9e0c9c..215e7c87d 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); @@ -85,6 +90,8 @@ private: CallstackWidget* callstackWidget; GPUCommandStreamWidget* graphicsWidget; GPUCommandListWidget* graphicsCommandsWidget; + + QAction* actions_recent_files[max_recent_files_item]; }; #endif // _CITRA_QT_MAIN_HXX_ |