]> Shamusworld >> Repos - architektonas/blob - src/widgets/recentfiles.h
Bugfixes related to removing Snapper class.
[architektonas] / src / widgets / recentfiles.h
1 #ifndef __RECENTFILES_H__
2 #define __RECENTFILES_H__
3
4 #include <QtGui>
5
6 /**
7  * This class can store recent files in a list.
8  */
9 class RecentFiles: public QObject
10 {
11         public:
12                 RecentFiles(QWidget * parent, QMenu * menu, int num = 9);
13                 ~RecentFiles();
14
15                 void add(const QString & filename);
16                 QString get(int i);
17                 int count(void);
18                 int Maximum(void);
19                 void UpdateGUI(void);
20
21         private:
22                 int number;
23                 QStringList files;
24                 QList<QAction *> actionList;
25                 QAction * separator;
26 };
27
28 #endif  // __RECENTFILES_H__