#include <FileFinder.h>
Collaboration diagram for FileFinder:

Definition at line 22 of file FileFinder.h.
Public Types | |
| enum | FileType { SessionFile, AudioFile, LayerFile, LayerFileNoMidi, SessionOrAudioFile, ImageFile, AnyFile } |
Public Member Functions | |
| virtual | ~FileFinder () |
| QString | getOpenFileName (FileType type, QString fallbackLocation="") |
| QString | getSaveFileName (FileType type, QString fallbackLocation="") |
| void | registerLastOpenedFilePath (FileType type, QString path) |
| QString | find (FileType type, QString location, QString lastKnownLocation="") |
Static Public Member Functions | |
| static FileFinder * | getInstance () |
Protected Member Functions | |
| FileFinder () | |
| QString | findRelative (QString location, QString relativeTo) |
| QString | locateInteractive (FileType type, QString thing) |
Protected Attributes | |
| QString | m_lastLocatedLocation |
Static Protected Attributes | |
| static FileFinder * | m_instance |
| enum FileFinder::FileType |
Definition at line 29 of file FileFinder.h.
| FileFinder::~FileFinder | ( | ) | [virtual] |
Definition at line 38 of file FileFinder.cpp.
| FileFinder::FileFinder | ( | ) | [protected] |
| QString FileFinder::getOpenFileName | ( | FileType | type, | |
| QString | fallbackLocation = "" | |||
| ) |
Definition at line 52 of file FileFinder.cpp.
References AnyFile, AudioFile, DataFileReaderFactory::getKnownExtensions(), AudioFileReaderFactory::getKnownExtensions(), ImageFile, LayerFile, LayerFileNoMidi, SessionFile, and SessionOrAudioFile.
Referenced by ImageDialog::browseClicked(), MainWindowBase::getOpenFileName(), and locateInteractive().
| QString FileFinder::getSaveFileName | ( | FileType | type, | |
| QString | fallbackLocation = "" | |||
| ) |
Definition at line 186 of file FileFinder.cpp.
References AnyFile, AudioFile, ImageFile, LayerFile, LayerFileNoMidi, SessionFile, and SessionOrAudioFile.
Referenced by MainWindowBase::getSaveFileName().
| void FileFinder::registerLastOpenedFilePath | ( | FileType | type, | |
| QString | path | |||
| ) |
Definition at line 335 of file FileFinder.cpp.
References AnyFile, AudioFile, ImageFile, LayerFile, LayerFileNoMidi, SessionFile, and SessionOrAudioFile.
Referenced by MainWindowBase::registerLastOpenedFilePath().
| QString FileFinder::find | ( | FileType | type, | |
| QString | location, | |||
| QString | lastKnownLocation = "" | |||
| ) |
Definition at line 379 of file FileFinder.cpp.
References FileSource::canHandleScheme(), findRelative(), locateInteractive(), and m_lastLocatedLocation.
Referenced by SVFileReader::readModel().
| FileFinder * FileFinder::getInstance | ( | ) | [static] |
Definition at line 43 of file FileFinder.cpp.
References FileFinder(), and m_instance.
Referenced by ImageDialog::browseClicked(), MainWindowBase::getOpenFileName(), MainWindowBase::getSaveFileName(), SVFileReader::readModel(), and MainWindowBase::registerLastOpenedFilePath().
| QString FileFinder::findRelative | ( | QString | location, | |
| QString | relativeTo | |||
| ) | [protected] |
Definition at line 404 of file FileFinder.cpp.
References FileSource::isRemote().
Referenced by find().
| QString FileFinder::locateInteractive | ( | FileType | type, | |
| QString | thing | |||
| ) | [protected] |
Definition at line 444 of file FileFinder.cpp.
References AudioFile, getOpenFileName(), and m_lastLocatedLocation.
Referenced by find().
FileFinder * FileFinder::m_instance [static, protected] |
QString FileFinder::m_lastLocatedLocation [protected] |
1.5.1