Mercurial > hg > svgui
diff widgets/InteractiveFileFinder.h @ 760:d0fd7630d32f tonioni
Make session file extension parameterisable, use .ton for Tony
author | Chris Cannam |
---|---|
date | Wed, 02 Apr 2014 18:22:41 +0100 |
parents | 3228b7913aa4 |
children | 831188672987 |
line wrap: on
line diff
--- a/widgets/InteractiveFileFinder.h Wed Apr 02 10:26:27 2014 +0100 +++ b/widgets/InteractiveFileFinder.h Wed Apr 02 18:22:41 2014 +0100 @@ -18,6 +18,7 @@ #include "data/fileio/FileFinder.h" +#include <QApplication> #include <QString> #include <QObject> @@ -29,6 +30,14 @@ public: virtual ~InteractiveFileFinder(); + /// Specify the extension for this application's session files + /// (without the dot) + void setApplicationSessionExtension(QString extension); + + QString getApplicationSessionExtension() const { + return m_sessionExtension; + } + QString getOpenFileName(FileType type, QString fallbackLocation = ""); QString getSaveFileName(FileType type, QString fallbackLocation = ""); void registerLastOpenedFilePath(FileType type, QString path); @@ -44,6 +53,7 @@ QString findRelative(QString location, QString relativeTo); QString locateInteractive(FileType type, QString thing); + QString m_sessionExtension; QString m_lastLocatedLocation; };