diff widgets/InteractiveFileFinder.h @ 1440:18101be79c9c

Add function to request multiple filenames
author Chris Cannam
date Tue, 23 Apr 2019 16:17:33 +0100
parents 05d614f6e46d
children
line wrap: on
line diff
--- a/widgets/InteractiveFileFinder.h	Thu Mar 21 15:25:05 2019 +0000
+++ b/widgets/InteractiveFileFinder.h	Tue Apr 23 16:17:33 2019 +0100
@@ -38,11 +38,21 @@
         return m_sessionExtension;
     }
 
-    QString getOpenFileName(FileType type, QString fallbackLocation = "") override;
-    QString getSaveFileName(FileType type, QString fallbackLocation = "") override;
-    void registerLastOpenedFilePath(FileType type, QString path) override;
+    QString getOpenFileName(FileType type,
+                            QString fallbackLocation = "") override;
+    
+    QStringList getOpenFileNames(FileType type,
+                                 QString fallbackLocation = "") override;
+    
+    QString getSaveFileName(FileType type,
+                            QString fallbackLocation = "") override;
+    
+    void registerLastOpenedFilePath(FileType type,
+                                    QString path) override;
 
-    QString find(FileType type, QString location, QString lastKnownLocation = "") override;
+    QString find(FileType type,
+                 QString location,
+                 QString lastKnownLocation = "") override;
 
     static void setParentWidget(QWidget *);
 
@@ -55,6 +65,10 @@
     QString findRelative(QString location, QString relativeTo);
     QString locateInteractive(FileType type, QString thing);
 
+    QStringList getOpenFileNames(FileType type,
+                                 QString fallbackLocation,
+                                 bool multiple);
+
     QString m_sessionExtension;
     QString m_lastLocatedLocation;