mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Added recent file list
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user