diff options
author | Boris Barbulovski <bbarbulovski@gmail.com> | 2014-02-13 22:48:07 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-02-13 22:05:05 -0800 |
commit | 51220f26ef712c31a9a7213807787829d4bb4818 (patch) | |
tree | 2a39b00818a4ac23947bb024ae4ff29ea74f8ba5 /qt-ui/mainwindow.h | |
parent | 933d44083e2f0787c46228ce03f924e8f4f84414 (diff) | |
download | subsurface-51220f26ef712c31a9a7213807787829d4bb4818.tar.gz |
Add recent files to main menu.
Add(up to four) recent files to File main menu.
Signed-off-by: Boris Barbulovski <bbarbulovski@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/mainwindow.h')
-rw-r--r-- | qt-ui/mainwindow.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/qt-ui/mainwindow.h b/qt-ui/mainwindow.h index deacdec76..24d3d701f 100644 --- a/qt-ui/mainwindow.h +++ b/qt-ui/mainwindow.h @@ -45,6 +45,8 @@ public: static MainWindow *instance(); ProfileGraphicsView *graphics(); MainTab *information(); + void loadRecentFiles(QSettings *s); + void addRecentFile(const QStringList &newFiles); DiveListView *dive_list(); GlobeGPS *globe(); void showError(QString message); @@ -60,6 +62,7 @@ public: QTabWidget *tabWidget(); private slots: /* file menu action */ + void recentFileTriggered(bool checked); void on_actionNew_triggered(); void on_actionOpen_triggered(); void on_actionSave_triggered(); |