#include <InteractiveFileFinder.h>

Inheritance diagram for InteractiveFileFinder:
Inheritance graph
Collaboration diagram for InteractiveFileFinder:
Collaboration graph

Public Member Functions

virtual ~InteractiveFileFinder ()
 
void setApplicationSessionExtension (QString extension)
 Specify the extension for this application's session files (without the dot) More...
 
QString getApplicationSessionExtension () const
 
QString getOpenFileName (FileType type, QString fallbackLocation="") override
 
QStringList getOpenFileNames (FileType type, QString fallbackLocation="") override
 
QString getSaveFileName (FileType type, QString fallbackLocation="") override
 
void registerLastOpenedFilePath (FileType type, QString path) override
 
QString find (FileType type, QString location, QString lastKnownLocation="") override
 

Static Public Member Functions

static void setParentWidget (QWidget *)
 
static InteractiveFileFindergetInstance ()
 

Protected Member Functions

 InteractiveFileFinder ()
 
QString findRelative (QString location, QString relativeTo)
 
QString locateInteractive (FileType type, QString thing)
 
QStringList getOpenFileNames (FileType type, QString fallbackLocation, bool multiple)
 

Protected Attributes

QString m_sessionExtension
 
QString m_lastLocatedLocation
 
QWidget * m_parent
 

Static Protected Attributes

static InteractiveFileFinder m_instance
 

Detailed Description

Definition at line 25 of file InteractiveFileFinder.h.

Constructor & Destructor Documentation

InteractiveFileFinder::~InteractiveFileFinder ( )
virtual

Definition at line 44 of file InteractiveFileFinder.cpp.

InteractiveFileFinder::InteractiveFileFinder ( )
protected

Definition at line 36 of file InteractiveFileFinder.cpp.

Referenced by getInstance().

Member Function Documentation

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
QString InteractiveFileFinder::getOpenFileName ( FileType  type,
QString  fallbackLocation = "" 
)
override
QStringList InteractiveFileFinder::getOpenFileNames ( FileType  type,
QString  fallbackLocation = "" 
)
override

Definition at line 72 of file InteractiveFileFinder.cpp.

Referenced by getApplicationSessionExtension(), and getOpenFileName().

QString InteractiveFileFinder::getSaveFileName ( FileType  type,
QString  fallbackLocation = "" 
)
override

Definition at line 279 of file InteractiveFileFinder.cpp.

References m_parent, and m_sessionExtension.

Referenced by getApplicationSessionExtension().

void InteractiveFileFinder::registerLastOpenedFilePath ( FileType  type,
QString  path 
)
override

Definition at line 485 of file InteractiveFileFinder.cpp.

Referenced by getApplicationSessionExtension().

QString InteractiveFileFinder::find ( FileType  type,
QString  location,
QString  lastKnownLocation = "" 
)
override
void InteractiveFileFinder::setParentWidget ( QWidget *  parent)
static

Definition at line 49 of file InteractiveFileFinder.cpp.

References getInstance(), and m_parent.

Referenced by getApplicationSessionExtension().

static InteractiveFileFinder* InteractiveFileFinder::getInstance ( )
inlinestatic

Definition at line 59 of file InteractiveFileFinder.h.

References InteractiveFileFinder(), and m_instance.

Referenced by ImageDialog::browseClicked(), and setParentWidget().

QString InteractiveFileFinder::findRelative ( QString  location,
QString  relativeTo 
)
protected

Definition at line 572 of file InteractiveFileFinder.cpp.

Referenced by find().

QString InteractiveFileFinder::locateInteractive ( FileType  type,
QString  thing 
)
protected

Definition at line 612 of file InteractiveFileFinder.cpp.

References getOpenFileName(), and m_lastLocatedLocation.

Referenced by find().

QStringList InteractiveFileFinder::getOpenFileNames ( FileType  type,
QString  fallbackLocation,
bool  multiple 
)
protected

Definition at line 81 of file InteractiveFileFinder.cpp.

References m_parent, and m_sessionExtension.

Member Data Documentation

InteractiveFileFinder InteractiveFileFinder::m_instance
staticprotected

Definition at line 63 of file InteractiveFileFinder.h.

Referenced by getInstance().

QString InteractiveFileFinder::m_sessionExtension
protected
QString InteractiveFileFinder::m_lastLocatedLocation
protected

Definition at line 73 of file InteractiveFileFinder.h.

Referenced by find(), and locateInteractive().

QWidget* InteractiveFileFinder::m_parent
protected

Definition at line 75 of file InteractiveFileFinder.h.

Referenced by getOpenFileNames(), getSaveFileName(), and setParentWidget().


The documentation for this class was generated from the following files: