svgui
1.9
|
#include <InteractiveFileFinder.h>
Public Member Functions | |
virtual | ~InteractiveFileFinder () |
void | setApplicationSessionExtension (QString extension) |
Specify the extension for this application's session files (without the dot) | |
QString | getApplicationSessionExtension () const |
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 void | setParentWidget (QWidget *) |
static InteractiveFileFinder * | getInstance () |
Protected Member Functions | |
InteractiveFileFinder () | |
QString | findRelative (QString location, QString relativeTo) |
QString | locateInteractive (FileType type, QString thing) |
Protected Attributes | |
QString | m_sessionExtension |
QString | m_lastLocatedLocation |
QWidget * | m_parent |
Static Protected Attributes | |
static InteractiveFileFinder | m_instance |
Definition at line 25 of file InteractiveFileFinder.h.
InteractiveFileFinder::~InteractiveFileFinder | ( | ) | [virtual] |
Definition at line 44 of file InteractiveFileFinder.cpp.
InteractiveFileFinder::InteractiveFileFinder | ( | ) | [protected] |
Definition at line 35 of file InteractiveFileFinder.cpp.
void InteractiveFileFinder::setApplicationSessionExtension | ( | QString | extension | ) |
Specify the extension for this application's session files (without the dot)
Definition at line 55 of file InteractiveFileFinder.cpp.
References m_sessionExtension.
QString InteractiveFileFinder::getApplicationSessionExtension | ( | ) | const [inline] |
Definition at line 37 of file InteractiveFileFinder.h.
References m_sessionExtension.
QString InteractiveFileFinder::getOpenFileName | ( | FileType | type, |
QString | fallbackLocation = "" |
||
) |
Definition at line 61 of file InteractiveFileFinder.cpp.
References m_parent, and m_sessionExtension.
Referenced by ImageDialog::browseClicked(), and locateInteractive().
QString InteractiveFileFinder::getSaveFileName | ( | FileType | type, |
QString | fallbackLocation = "" |
||
) |
Definition at line 227 of file InteractiveFileFinder.cpp.
References m_parent, and m_sessionExtension.
void InteractiveFileFinder::registerLastOpenedFilePath | ( | FileType | type, |
QString | path | ||
) |
Definition at line 417 of file InteractiveFileFinder.cpp.
QString InteractiveFileFinder::find | ( | FileType | type, |
QString | location, | ||
QString | lastKnownLocation = "" |
||
) |
Definition at line 475 of file InteractiveFileFinder.cpp.
References findRelative(), locateInteractive(), and m_lastLocatedLocation.
void InteractiveFileFinder::setParentWidget | ( | QWidget * | parent | ) | [static] |
Definition at line 49 of file InteractiveFileFinder.cpp.
References getInstance(), and m_parent.
static InteractiveFileFinder* InteractiveFileFinder::getInstance | ( | ) | [inline, static] |
Definition at line 49 of file InteractiveFileFinder.h.
References m_instance.
Referenced by ImageDialog::browseClicked(), and setParentWidget().
QString InteractiveFileFinder::findRelative | ( | QString | location, |
QString | relativeTo | ||
) | [protected] |
Definition at line 500 of file InteractiveFileFinder.cpp.
Referenced by find().
QString InteractiveFileFinder::locateInteractive | ( | FileType | type, |
QString | thing | ||
) | [protected] |
Definition at line 540 of file InteractiveFileFinder.cpp.
References getOpenFileName(), and m_lastLocatedLocation.
Referenced by find().
InteractiveFileFinder InteractiveFileFinder::m_instance [static, protected] |
Definition at line 53 of file InteractiveFileFinder.h.
Referenced by getInstance().
QString InteractiveFileFinder::m_sessionExtension [protected] |
Definition at line 58 of file InteractiveFileFinder.h.
Referenced by getApplicationSessionExtension(), getOpenFileName(), getSaveFileName(), and setApplicationSessionExtension().
QString InteractiveFileFinder::m_lastLocatedLocation [protected] |
Definition at line 59 of file InteractiveFileFinder.h.
Referenced by find(), and locateInteractive().
QWidget* InteractiveFileFinder::m_parent [protected] |
Definition at line 61 of file InteractiveFileFinder.h.
Referenced by getOpenFileName(), getSaveFileName(), and setParentWidget().