From 7a17710fcb72e21e819351d1c74124545685986e Mon Sep 17 00:00:00 2001 From: Lukáš Lalinský Date: Sun, 7 Dec 2008 11:14:52 +0100 Subject: Add a list of recently used files --- src/mainwindow.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/mainwindow.h') diff --git a/src/mainwindow.h b/src/mainwindow.h index bd8e6f8..d8de166 100644 --- a/src/mainwindow.h +++ b/src/mainwindow.h @@ -53,6 +53,13 @@ public slots: void exportPNG(); void setViewScale(const QString &scale); + void loadFile(const QString &fileName); + void saveFile(const QString &fileName); + + void addRecentFile(const QString &fileName); + void openRecentFile(); + void updateRecentFileActions(); + protected: void setupUi(); void setupActions(); @@ -73,6 +80,10 @@ private: QAction *m_actionSave; QAction *m_actionSaveAs; QAction *m_actionExportPNG; + + enum { MaxRecentFiles = 5 }; + QAction *m_actionRecentFilesSeparator; + QAction *m_actionRecentFile[MaxRecentFiles]; }; #endif -- cgit v1.2.3-54-g00ecf