Mercurial > hg > svgui
comparison widgets/InteractiveFileFinder.h @ 831:831188672987
Make it possible to set the parent widget
| author | Chris Cannam | 
|---|---|
| date | Wed, 13 Aug 2014 16:42:25 +0100 | 
| parents | d0fd7630d32f | 
| children | a18e78b9c78b | 
   comparison
  equal
  deleted
  inserted
  replaced
| 830:8bb9320f78a4 | 831:831188672987 | 
|---|---|
| 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 | 
