Mercurial > hg > svgui
comparison widgets/InteractiveFileFinder.h @ 842:8432d2551fb2 tonioni
Update subrepos and merge from default branch
author | Chris Cannam |
---|---|
date | Tue, 02 Sep 2014 16:23:48 +0100 |
parents | 831188672987 |
children | a18e78b9c78b |
comparison
equal
deleted
inserted
replaced
826:43256b925e15 | 842:8432d2551fb2 |
---|---|
42 QString getSaveFileName(FileType type, QString fallbackLocation = ""); | 42 QString getSaveFileName(FileType type, QString fallbackLocation = ""); |
43 void registerLastOpenedFilePath(FileType type, QString path); | 43 void registerLastOpenedFilePath(FileType type, QString path); |
44 | 44 |
45 QString find(FileType type, QString location, QString lastKnownLocation = ""); | 45 QString find(FileType type, QString location, QString lastKnownLocation = ""); |
46 | 46 |
47 static void setParentWidget(QWidget *); | |
48 | |
47 static InteractiveFileFinder *getInstance() { return &m_instance; } | 49 static InteractiveFileFinder *getInstance() { return &m_instance; } |
48 | 50 |
49 protected: | 51 protected: |
50 InteractiveFileFinder(); | 52 InteractiveFileFinder(); |
51 static InteractiveFileFinder m_instance; | 53 static InteractiveFileFinder m_instance; |
53 QString findRelative(QString location, QString relativeTo); | 55 QString findRelative(QString location, QString relativeTo); |
54 QString locateInteractive(FileType type, QString thing); | 56 QString locateInteractive(FileType type, QString thing); |
55 | 57 |
56 QString m_sessionExtension; | 58 QString m_sessionExtension; |
57 QString m_lastLocatedLocation; | 59 QString m_lastLocatedLocation; |
60 | |
61 QWidget *m_parent; | |
58 }; | 62 }; |
59 | 63 |
60 #endif | 64 #endif |
61 | 65 |