summaryrefslogtreecommitdiff
path: root/src/mainwindow.h
diff options
context:
space:
mode:
authorLukáš Lalinský <lalinsky@gmail.com>2008-12-07 11:14:52 +0100
committerLukáš Lalinský <lalinsky@gmail.com>2008-12-07 11:14:52 +0100
commit7a17710fcb72e21e819351d1c74124545685986e (patch)
tree4b4ff9e596fb633168652bad110faadf49a9e7f2 /src/mainwindow.h
parentc98761516ee1b61c0b0440faab3c13e8fbf34861 (diff)
downloaddbmodel-7a17710fcb72e21e819351d1c74124545685986e.tar.xz
Add a list of recently used files
Diffstat (limited to 'src/mainwindow.h')
-rw-r--r--src/mainwindow.h11
1 files changed, 11 insertions, 0 deletions
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