Added recent file list

This commit is contained in:
Magne Sjaastad
2014-07-23 12:22:57 +02:00
parent 9236d27272
commit 7db9b83c45
2 changed files with 100 additions and 6 deletions

View File

@@ -111,7 +111,8 @@ private:
bool checkForDocumentModifications();
void updateMRUList(const QString &fileName, bool remove = false);
void updateRecentFileActions();
void addRecentFiles(const QString& file);
QMdiSubWindow* findMdiSubWindow(RiuViewer* viewer);
@@ -137,6 +138,13 @@ private:
QAction* m_closeProjectAction;
QAction* m_exitAction;
// Recent files
enum { MaxRecentFiles = 5 };
QAction* m_recentFilesSeparatorAction;
QMenu* m_recentFilesMenu;
QAction* m_recentFileActions[MaxRecentFiles];
// Edit actions
QAction* m_editPreferences;
QAction* m_newPropertyView;
@@ -203,6 +211,8 @@ private slots:
void slotSaveProjectAs();
void slotCloseProject();
void slotOpenRecentFile();
void slotRefreshFileActions();
// Edit slots