mainwindow.h
changeset 401 f364b13047ba
parent 395 7ced3733ba60
child 404 53efc2562a7d
     1.1 --- a/mainwindow.h	Thu Nov 16 10:07:12 2006 +0000
     1.2 +++ b/mainwindow.h	Thu Nov 16 13:43:06 2006 +0000
     1.3 @@ -39,7 +39,7 @@
     1.4      void setupTestActions();
     1.5      void setupHelpActions();
     1.6      void setupContextMenus();
     1.7 -	void setupLastMapsMenu();
     1.8 +	void setupRecentMapsMenu();
     1.9  	void hideEvent (QHideEvent * );
    1.10  	void showEvent (QShowEvent * );
    1.11  	bool reallyWriteDirectory(const QString&);
    1.12 @@ -53,7 +53,8 @@
    1.13      ErrorCode fileLoad(QString ,const LoadMode &);
    1.14      void fileLoad(const LoadMode &);
    1.15      void fileLoad();
    1.16 -	void fileLoadLast(QAction *);
    1.17 +	void fileLoadRecent();
    1.18 +	void addRecentMap (const QString &);
    1.19      void fileSave(const SaveMode & );
    1.20      void fileSave();
    1.21      void fileSaveAs(const SaveMode &);
    1.22 @@ -183,8 +184,6 @@
    1.23  private:
    1.24  	QTabWidget *tabWidget;
    1.25  	FindWindow *findWindow;
    1.26 -	QStringList lastMaps;
    1.27 -	int maxLastMaps;
    1.28  	QProcess *procBrowser;
    1.29  
    1.30  	QStringList imageTypes;
    1.31 @@ -196,6 +195,10 @@
    1.32  
    1.33  	QColor currentColor;
    1.34  
    1.35 +	QMenu *recentFilesMenu;
    1.36 +	enum { MaxRecentFiles = 9 };
    1.37 +    QAction *recentFileActs[MaxRecentFiles];
    1.38 +
    1.39  	QAction* actionFileSave;
    1.40  	QAction* actionFilePrint;
    1.41  	QAction* actionEditUndo;