Mercurial > hg > svgui
comparison 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 |
comparison
equal
deleted
inserted
replaced
1435:aa0616116537 | 1440:18101be79c9c |
---|---|
36 | 36 |
37 QString getApplicationSessionExtension() const { | 37 QString getApplicationSessionExtension() const { |
38 return m_sessionExtension; | 38 return m_sessionExtension; |
39 } | 39 } |
40 | 40 |
41 QString getOpenFileName(FileType type, QString fallbackLocation = "") override; | 41 QString getOpenFileName(FileType type, |
42 QString getSaveFileName(FileType type, QString fallbackLocation = "") override; | 42 QString fallbackLocation = "") override; |
43 void registerLastOpenedFilePath(FileType type, QString path) override; | 43 |
44 QStringList getOpenFileNames(FileType type, | |
45 QString fallbackLocation = "") override; | |
46 | |
47 QString getSaveFileName(FileType type, | |
48 QString fallbackLocation = "") override; | |
49 | |
50 void registerLastOpenedFilePath(FileType type, | |
51 QString path) override; | |
44 | 52 |
45 QString find(FileType type, QString location, QString lastKnownLocation = "") override; | 53 QString find(FileType type, |
54 QString location, | |
55 QString lastKnownLocation = "") override; | |
46 | 56 |
47 static void setParentWidget(QWidget *); | 57 static void setParentWidget(QWidget *); |
48 | 58 |
49 static InteractiveFileFinder *getInstance() { return &m_instance; } | 59 static InteractiveFileFinder *getInstance() { return &m_instance; } |
50 | 60 |
53 static InteractiveFileFinder m_instance; | 63 static InteractiveFileFinder m_instance; |
54 | 64 |
55 QString findRelative(QString location, QString relativeTo); | 65 QString findRelative(QString location, QString relativeTo); |
56 QString locateInteractive(FileType type, QString thing); | 66 QString locateInteractive(FileType type, QString thing); |
57 | 67 |
68 QStringList getOpenFileNames(FileType type, | |
69 QString fallbackLocation, | |
70 bool multiple); | |
71 | |
58 QString m_sessionExtension; | 72 QString m_sessionExtension; |
59 QString m_lastLocatedLocation; | 73 QString m_lastLocatedLocation; |
60 | 74 |
61 QWidget *m_parent; | 75 QWidget *m_parent; |
62 }; | 76 }; |